Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

vendor: update all dependencies

Nick Craig-Woodabb9f89f65bd
diff --git a/go.mod b/go.mod
index 3c8082346..418874a99 100644
--- a/go.mod
+++ b/go.mod
@@ -1,75 +1,70 @@
module github.com/rclone/rclone
require (
- bazil.org/fuse v0.0.0-20191225233854-3a99aca11732
- cloud.google.com/go v0.47.0 // indirect
+ bazil.org/fuse v0.0.0-20200117225306-7b5117fecadc
+ cloud.google.com/go v0.53.0 // indirect
github.com/Azure/azure-pipeline-go v0.2.2
github.com/Azure/azure-storage-blob-go v0.8.0
github.com/Azure/go-autorest/autorest/adal v0.6.0 // indirect
- github.com/Unknwon/goconfig v0.0.0-20190425194916-3dba17dd7b9e
+ github.com/Unknwon/goconfig v0.0.0-20191126170842-860a72fb44fd
github.com/a8m/tree v0.0.0-20181222104329-6a0b80129de4
github.com/abbot/go-http-auth v0.4.0
github.com/anacrolix/dms v1.1.0
github.com/atotto/clipboard v0.1.2
- github.com/aws/aws-sdk-go v1.25.31
+ github.com/aws/aws-sdk-go v1.29.9
github.com/billziss-gh/cgofuse v1.2.0
github.com/djherbis/times v1.2.0
- github.com/dropbox/dropbox-sdk-go-unofficial v5.4.0+incompatible
+ github.com/dropbox/dropbox-sdk-go-unofficial v5.6.0+incompatible
github.com/etcd-io/bbolt v1.3.3
- github.com/golang/groupcache v0.0.0-20191027212112-611e8accdfc9 // indirect
- github.com/google/go-cmp v0.3.1 // indirect
github.com/google/go-querystring v1.0.0 // indirect
github.com/gopherjs/gopherjs v0.0.0-20190812055157-5d271430af9f // indirect
github.com/hanwen/go-fuse/v2 v2.0.3-0.20191108143333-152e6ac32d54
- github.com/jlaffaye/ftp v0.0.0-20191025175106-a59fe673c9b2
+ github.com/jlaffaye/ftp v0.0.0-20191218041957-e1b8fdd0dcc3
github.com/jzelinskie/whirlpool v0.0.0-20170603002051-c19460b8caa6
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0 // indirect
github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect
github.com/koofr/go-httpclient v0.0.0-20190818202018-e0dc8fd921dc
github.com/koofr/go-koofrclient v0.0.0-20190724113126-8e5366da203a
github.com/mattn/go-colorable v0.1.4
- github.com/mattn/go-ieproxy v0.0.0-20190805055040-f9202b1cfdeb // indirect
- github.com/mattn/go-isatty v0.0.11-0.20191112051248-2a2f0ea997f9 // indirect
- github.com/mattn/go-runewidth v0.0.7
+ github.com/mattn/go-ieproxy v0.0.0-20200203040449-2dbc853185d9 // indirect
+ github.com/mattn/go-isatty v0.0.12 // indirect
+ github.com/mattn/go-runewidth v0.0.8
github.com/mitchellh/go-homedir v1.1.0
github.com/ncw/go-acd v0.0.0-20171120105400-887eb06ab6a2
- github.com/ncw/swift v1.0.49
- github.com/nsf/termbox-go v0.0.0-20191229070316-58d4fcbce2a7
+ github.com/ncw/swift v1.0.50
+ github.com/nsf/termbox-go v0.0.0-20200204031403-4d2b513ad8be
github.com/okzk/sdnotify v0.0.0-20180710141335-d9becc38acbd
github.com/onsi/ginkgo v1.9.0 // indirect
github.com/onsi/gomega v1.6.0 // indirect
github.com/patrickmn/go-cache v2.1.0+incompatible
- github.com/pkg/errors v0.8.1
- github.com/pkg/sftp v1.10.1
- github.com/putdotio/go-putio v0.0.0-20190822121956-19b9c636c877
+ github.com/pkg/errors v0.9.1
+ github.com/pkg/sftp v1.11.0
+ github.com/putdotio/go-putio/putio v0.0.0-20200123120452-16d982cac2b8
github.com/rfjakob/eme v0.0.0-20171028163933-2222dbd4ba46
github.com/sevlyar/go-daemon v0.1.5
github.com/sirupsen/logrus v1.4.2
- github.com/skratchdot/open-golang v0.0.0-20190402232053-79abb63cd66e
+ github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
github.com/smartystreets/assertions v1.0.1 // indirect
github.com/smartystreets/goconvey v0.0.0-20190731233626-505e41936337 // indirect
- github.com/spf13/cobra v0.0.5
+ github.com/spf13/cobra v0.0.6
github.com/spf13/pflag v1.0.5
- github.com/stretchr/testify v1.4.0
+ github.com/stretchr/testify v1.5.1
github.com/t3rm1n4l/go-mega v0.0.0-20200117211730-79a813bb328d
github.com/xanzy/ssh-agent v0.2.1
github.com/youmark/pkcs8 v0.0.0-20191102193632-94c173a94d60
- github.com/yunify/qingstor-sdk-go/v3 v3.1.1
+ github.com/yunify/qingstor-sdk-go/v3 v3.2.0
go.etcd.io/bbolt v1.3.3 // indirect
- go.opencensus.io v0.22.2 // indirect
- goftp.io/server v0.0.0-20190812052725-72a57b186803
- golang.org/x/crypto v0.0.0-20200109152110-61a87790db17
- golang.org/x/net v0.0.0-20191109021931-daa7c04131f5
- golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
+ goftp.io/server v0.3.2
+ golang.org/x/crypto v0.0.0-20200221231518-2aa609cf4a9d
+ golang.org/x/net v0.0.0-20200222125558-5a598a2470a0
+ golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e
- golang.org/x/sys v0.0.0-20191210023423-ac6580df4449
+ golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae
golang.org/x/text v0.3.2
golang.org/x/time v0.0.0-20191024005414-555d28b269f0
- google.golang.org/api v0.13.0
- google.golang.org/appengine v1.6.5 // indirect
- google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a // indirect
- google.golang.org/grpc v1.25.1 // indirect
- gopkg.in/yaml.v2 v2.2.5
+ google.golang.org/api v0.18.0
+ google.golang.org/genproto v0.0.0-20200225123651-fc8f55426688 // indirect
+ gopkg.in/yaml.v2 v2.2.8
)
go 1.13
diff --git a/go.sum b/go.sum
index 971a3a1ea..62c8f910c 100644
--- a/go.sum
+++ b/go.sum
@@ -1,5 +1,5 @@
-bazil.org/fuse v0.0.0-20191225233854-3a99aca11732 h1:gaB1+kZCJDExjlrdy37gIwxV0M7v81EzIFKQZ5o5YV0=
-bazil.org/fuse v0.0.0-20191225233854-3a99aca11732/go.mod h1:FbcW6z/2VytnFDhZfumh8Ss8zxHE6qpMP5sHTRe0EaM=
+bazil.org/fuse v0.0.0-20200117225306-7b5117fecadc h1:utDghgcjE8u+EBjHOgYT+dJPcnDF05KqWMBcjuJy510=
+bazil.org/fuse v0.0.0-20200117225306-7b5117fecadc/go.mod h1:FbcW6z/2VytnFDhZfumh8Ss8zxHE6qpMP5sHTRe0EaM=
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU=
@@ -7,16 +7,17 @@ cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6A
cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY=
cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc=
cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0=
-cloud.google.com/go v0.47.0 h1:1JUtpcY9E7+eTospEwWS2QXP3DEn7poB3E2j0jN74mM=
-cloud.google.com/go v0.47.0/go.mod h1:5p3Ky/7f3N10VBkhuR5LFtddroTiMyjZV/Kj5qOQFxU=
+cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To=
+cloud.google.com/go v0.53.0 h1:MZQCQQaRwOrAcuKjiHWHrgKykt4fZyuwF2dtiG3fGW8=
+cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M=
cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o=
+cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE=
cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE=
cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I=
+cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw=
cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw=
+cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos=
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
-gitea.com/goftp/file-driver v0.0.0-20190712091345-f79c2ed973f8/go.mod h1:ghdogu0Da3rwYCSJ20JPgTiMcDpzeRbzvuFIOOW3G7w=
-gitea.com/goftp/file-driver v0.0.0-20190812052443-efcdcba68b34 h1:3wshUWDKHcy8hrNafCS4rtuAdON2KYsuznc05zdHTrQ=
-gitea.com/goftp/file-driver v0.0.0-20190812052443-efcdcba68b34/go.mod h1:6+f1gclV97PmaVmE4YJbH3KIKnl+r3/HWR0zD/z1CG4=
github.com/Azure/azure-pipeline-go v0.2.1/go.mod h1:UGSo8XybXnIGZ3epmeBw7Jdz+HiUVpqIlpz/HKHylF4=
github.com/Azure/azure-pipeline-go v0.2.2 h1:6oiIS9yaG6XCCzhgAgKFfIWyo4LLCiDhZot6ltoThhY=
github.com/Azure/azure-pipeline-go v0.2.2/go.mod h1:4rQ/NZncSvGqNkkOsNpOU1tgoNuIlp9AfUH5G1tvCHc=
@@ -38,75 +39,100 @@ github.com/Azure/go-autorest/logger v0.1.0 h1:ruG4BSDXONFRrZZJ2GUXDiUyVpayPmb1Gn
github.com/Azure/go-autorest/logger v0.1.0/go.mod h1:oExouG+K6PryycPJfVSxi/koC6LSNgds39diKLz7Vrc=
github.com/Azure/go-autorest/tracing v0.5.0 h1:TRn4WjSnkcSy5AEG3pnbtFSwNtwzjr4VYyQflFE619k=
github.com/Azure/go-autorest/tracing v0.5.0/go.mod h1:r/s2XiOKccPW3HrqB+W0TQzfbtp2fGCgRFtBroKn4Dk=
+github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
+github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
github.com/RoaringBitmap/roaring v0.4.7/go.mod h1:8khRDP4HmeXns4xIj9oGrKSz7XTQiJx2zgh7AcNke4w=
-github.com/Unknwon/goconfig v0.0.0-20190425194916-3dba17dd7b9e h1:ZaFHdRwv6wJQMYsg5qITIsqWRqZRvUETiq0xxrl+8fc=
-github.com/Unknwon/goconfig v0.0.0-20190425194916-3dba17dd7b9e/go.mod h1:wngxua9XCNjvHjDiTiV26DaKDT+0c63QR6H5hjVUUxw=
+github.com/Unknwon/goconfig v0.0.0-20191126170842-860a72fb44fd h1:+CYOsXi89xOqBkj7CuEJjA2It+j+R3ngUZEydr6mtkw=
+github.com/Unknwon/goconfig v0.0.0-20191126170842-860a72fb44fd/go.mod h1:wngxua9XCNjvHjDiTiV26DaKDT+0c63QR6H5hjVUUxw=
github.com/a8m/tree v0.0.0-20181222104329-6a0b80129de4 h1:mK1/QgFPU4osbhjJ26B1w738kjQHaGJcon8uCLMS8fk=
github.com/a8m/tree v0.0.0-20181222104329-6a0b80129de4/go.mod h1:FSdwKX97koS5efgm8WevNf7XS3PqtyFkKDDXrz778cg=
github.com/abbot/go-http-auth v0.4.0 h1:QjmvZ5gSC7jm3Zg54DqWE/T5m1t2AfDu6QlXJT0EVT0=
github.com/abbot/go-http-auth v0.4.0/go.mod h1:Cz6ARTIzApMJDzh5bRMSUou6UMSp0IEXg9km/ci7TJM=
+github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
+github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
github.com/anacrolix/dms v1.1.0 h1:vbBXZS7T5FaZm+9p1pdmVVo9tN3qdc27bKSETdeT3xo=
github.com/anacrolix/dms v1.1.0/go.mod h1:msPKAoppoNRfrYplJqx63FZ+VipDZ4Xsj3KzIQxyU7k=
github.com/anacrolix/envpprof v0.0.0-20180404065416-323002cec2fa/go.mod h1:KgHhUaQMc8cC0+cEflSgCFNFbKwi5h54gqtVn8yhP7c=
github.com/anacrolix/envpprof v1.0.0/go.mod h1:KgHhUaQMc8cC0+cEflSgCFNFbKwi5h54gqtVn8yhP7c=
+github.com/anacrolix/ffprobe v1.0.0 h1:j8fGLBsXejwdXd0pkA9iR3Dt1XwMFv5wjeYWObcue8A=
github.com/anacrolix/ffprobe v1.0.0/go.mod h1:BIw+Bjol6CWjm/CRWrVLk2Vy+UYlkgmBZ05vpSYqZPw=
github.com/anacrolix/missinggo v1.1.0/go.mod h1:MBJu3Sk/k3ZfGYcS7z18gwfu72Ey/xopPFJJbTi5yIo=
github.com/anacrolix/tagflag v0.0.0-20180109131632-2146c8d41bf0/go.mod h1:1m2U/K6ZT+JZG0+bdMK6qauP49QT4wE5pmhJXOKKCHw=
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
github.com/atotto/clipboard v0.1.2 h1:YZCtFu5Ie8qX2VmVTBnrqLSiU9XOWwqNRmdT3gIQzbY=
github.com/atotto/clipboard v0.1.2/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI=
-github.com/aws/aws-sdk-go v1.25.31 h1:14mdh3HsTgRekePPkYcCbAaEXJknc3mN7f4XfsiMMDA=
-github.com/aws/aws-sdk-go v1.25.31/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
+github.com/aws/aws-sdk-go v1.29.9 h1:PHq9ddjfZYfCOXyqHKiCZ1CHRAk7nXhV7WTqj5l+bmQ=
+github.com/aws/aws-sdk-go v1.29.9/go.mod h1:1KvfttTE3SPKMpo8g2c6jL3ZKfXtFvKscTgahTma5Xg=
+github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
+github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
github.com/billziss-gh/cgofuse v1.2.0 h1:FMdQSygSBpD4yEPENJcmvfCdmNWMVkPLlD7wWdl/7IA=
github.com/billziss-gh/cgofuse v1.2.0/go.mod h1:LJjoaUojlVjgo5GQoEJTcJNqZJeRU0nCR84CyxKt2YM=
github.com/bradfitz/iter v0.0.0-20140124041915-454541ec3da2/go.mod h1:PyRFw1Lt2wKX4ZVSQ2mk+PeDa1rxyObEDlApuIsUKuo=
github.com/bradfitz/iter v0.0.0-20190303215204-33e6a9893b0c/go.mod h1:PyRFw1Lt2wKX4ZVSQ2mk+PeDa1rxyObEDlApuIsUKuo=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
+github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
+github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
+github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
+github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
+github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk=
github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
-github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk=
github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
-github.com/cpuguy83/go-md2man v1.0.10 h1:BSKMNlYxDvnunlTymqtgONjNnaRV1sTpcovwwjF22jk=
-github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE=
+github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
+github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
+github.com/cpuguy83/go-md2man/v2 v2.0.0 h1:EoUDS0afbrsXAZ9YQ9jdu/mZ2sXgT1/2yyNng4PGlyM=
+github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM=
github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
+github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no=
github.com/djherbis/times v1.2.0 h1:xANXjsC/iBqbO00vkWlYwPWgBgEVU6m6AFYg0Pic+Mc=
github.com/djherbis/times v1.2.0/go.mod h1:CGMZlo255K5r4Yw0b9RRfFQpM2y7uOmxg4jm9HsaVf8=
github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE=
-github.com/dropbox/dropbox-sdk-go-unofficial v5.4.0+incompatible h1:9jnukMIowLSo3SY7+GTwxmYJv4QC0LxXbo97zHWCyoc=
-github.com/dropbox/dropbox-sdk-go-unofficial v5.4.0+incompatible/go.mod h1:lr+LhMM3F6Y3lW1T9j2U5l7QeuWm87N9+PPXo3yH4qY=
+github.com/dropbox/dropbox-sdk-go-unofficial v5.6.0+incompatible h1:DtumzkLk2zZ2SeElEr+VNz+zV7l+BTe509cV4sKPXbM=
+github.com/dropbox/dropbox-sdk-go-unofficial v5.6.0+incompatible/go.mod h1:lr+LhMM3F6Y3lW1T9j2U5l7QeuWm87N9+PPXo3yH4qY=
github.com/dustin/go-humanize v0.0.0-20180421182945-02af3965c54e/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
-github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
+github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/etcd-io/bbolt v1.3.3 h1:gSJmxrs37LgTqR/oyJBWok6k6SvXEUerFTbltIhXkBM=
github.com/etcd-io/bbolt v1.3.3/go.mod h1:ZF2nL25h33cCyBtcyWeZ2/I3HQOfTP+0PIEvHjkjCrw=
github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I=
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
+github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
github.com/glycerine/go-unsnap-stream v0.0.0-20180323001048-9f0cb55181dd/go.mod h1:/20jfyN9Y5QPEAprSgKAUr+glWDY39ZiUEAYOEv5dsE=
github.com/glycerine/goconvey v0.0.0-20180728074245-46e3a41ad493/go.mod h1:Ogl1Tioa0aV7gstGFO7KhffUsb9M4ydbEbbxpcEDc24=
github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
-github.com/goftp/file-driver v0.0.0-20180502053751-5d604a0fc0c9 h1:cC0Hbb+18DJ4i6ybqDybvj4wdIDS4vnD0QEci98PgM8=
-github.com/goftp/file-driver v0.0.0-20180502053751-5d604a0fc0c9/go.mod h1:GpOj6zuVBG3Inr9qjEnuVTgBlk2lZ1S9DcoFiXWyKss=
-github.com/goftp/server v0.0.0-20190304020633-eabccc535b5a/go.mod h1:k/SS6VWkxY7dHPhoMQ8IdRu8L4lQtmGbhyXGg+vCnXE=
+github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
+github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
+github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
+github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=
+github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=
+github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
+github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
+github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4=
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58=
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
+github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6 h1:ZgQEtGgCBiWRM39fZuwSd1LwSqqSW0hOdXCYYDX0R3I=
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
-github.com/golang/groupcache v0.0.0-20191027212112-611e8accdfc9 h1:uHTyIjqVhYRhLbJ8nIiOJHkEZZ+5YoOsAbD3sk82NiE=
-github.com/golang/groupcache v0.0.0-20191027212112-611e8accdfc9/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
+github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
+github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e h1:1r7pUrabqp18hOBcwBwiTsbnFeTZHV9eER/QT5JVZxY=
+github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y=
+github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.3.1 h1:YF8+flBXS5eO826T4nzqPrxfhQThhXl0YzfuUPu4SBg=
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.3.2 h1:6nsPYzhq5kReh6QImI3k5qWzO4PEbvbIW2cwSfR/6xs=
github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
+github.com/golang/protobuf v1.3.3 h1:gyjaxf+svBWX08ZjK86iN9geUJF0H6gp2IRKX6Nf6/I=
+github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
github.com/google/btree v0.0.0-20180124185431-e89373fe6b4a/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
@@ -116,11 +142,14 @@ github.com/google/go-cmp v0.3.0 h1:crn/baboCvb5fXaQ0IJ1SGTsTVrWpDsCWC8EGETZijY=
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
github.com/google/go-cmp v0.3.1 h1:Xye71clBPdm5HgqGwUkwhbynsUJZhDbS20FvLhQ2izg=
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
+github.com/google/go-cmp v0.4.0 h1:xsAVV57WRhGj6kEIi8ReJzQlHHqcBYCElAvkovg3B/4=
+github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk=
github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs=
github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
+github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
github.com/googleapis/gax-go/v2 v2.0.5 h1:sjZBwGj9Jlw33ImPtvFviGYvseOtDM7hkSKB7+Tv3SM=
@@ -129,6 +158,10 @@ github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORR
github.com/gopherjs/gopherjs v0.0.0-20181103185306-d547d1d9531e/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
github.com/gopherjs/gopherjs v0.0.0-20190812055157-5d271430af9f h1:KMlcu9X58lhTA/KrfX8Bi1LQSO4pzoVjTiL3h4Jk+Zk=
github.com/gopherjs/gopherjs v0.0.0-20190812055157-5d271430af9f/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
+github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ=
+github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs=
+github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk=
+github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY=
github.com/hanwen/go-fuse v1.0.0 h1:GxS9Zrn6c35/BnfiVsZVWmsG803xwE7eVRDvcf/BEVc=
github.com/hanwen/go-fuse v1.0.0/go.mod h1:unqXarDXqzAk0rt98O2tVndEPIpUgLD9+rwFisZH3Ok=
github.com/hanwen/go-fuse/v2 v2.0.3-0.20191108143333-152e6ac32d54 h1:0JL4/kY3QKTRevfl0IbEncTzA+jczGba+swfDBBluuU=
@@ -140,21 +173,26 @@ github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T
github.com/hpcloud/tail v1.0.0 h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI=
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
github.com/huandu/xstrings v1.0.0/go.mod h1:4qWG/gcEcfX4z/mBDHJ++3ReCw9ibxbsNJbcucJdbSo=
+github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
github.com/jlaffaye/ftp v0.0.0-20190624084859-c1312a7102bf/go.mod h1:lli8NYPQOFy3O++YmYbqVgOcQ1JPCwdOy+5zSjKJ9qY=
-github.com/jlaffaye/ftp v0.0.0-20191025175106-a59fe673c9b2 h1:WY3P4euRv9s8F2rpZUK1jnk4ZMiV3O2ltdnoZK/GTUU=
-github.com/jlaffaye/ftp v0.0.0-20191025175106-a59fe673c9b2/go.mod h1:PwUeyujmhaGohgOf0kJKxPfk3HcRv8QD/wAUN44go4k=
+github.com/jlaffaye/ftp v0.0.0-20191218041957-e1b8fdd0dcc3 h1:QyB6CQGLB65Al72mAIbqrkGRk56JdGMHgBziM3F0FCw=
+github.com/jlaffaye/ftp v0.0.0-20191218041957-e1b8fdd0dcc3/go.mod h1:PwUeyujmhaGohgOf0kJKxPfk3HcRv8QD/wAUN44go4k=
github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af h1:pmfjZENx5imkbgOkpRUYLnmbU7UEFbjtDA2hxJ1ichM=
github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
+github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo=
github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU=
+github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk=
github.com/jtolds/gls v4.2.1+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo=
github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
+github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
github.com/jzelinskie/whirlpool v0.0.0-20170603002051-c19460b8caa6 h1:RyOL4+OIUc6u5ac2LclitlZvFES6k+sg18fBMfxFUUs=
github.com/jzelinskie/whirlpool v0.0.0-20170603002051-c19460b8caa6/go.mod h1:KmHnJWQrgEvbuy0vcvj00gtMqbvNn1L+3YUZLK/B92c=
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0 h1:iQTw/8FWTuc7uiaSepXwyf3o52HaUYcV+Tu66S3F5GA=
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0/go.mod h1:1NbS8ALrpOvjt0rHPNLyCIeMtbizbir8U//inJ+zuB8=
+github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q=
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
github.com/konsorten/go-windows-terminal-sequences v1.0.1 h1:mweAR1A6xJ3oS2pRaGiHgQ4OO8tzTaLawm8vnODuwDk=
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
@@ -166,6 +204,7 @@ github.com/koofr/go-koofrclient v0.0.0-20190724113126-8e5366da203a h1:02cx9xF4W2
github.com/koofr/go-koofrclient v0.0.0-20190724113126-8e5366da203a/go.mod h1:MRAz4Gsxd+OzrZ0owwrUHc0zLESL+1Y5syqK/sJxK2A=
github.com/kr/fs v0.1.0 h1:Jskdu9ieNAYnjxsi0LbQp1ulIKZV1LAFgK1tWhpZgl8=
github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg=
+github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
@@ -178,25 +217,29 @@ github.com/mattn/go-colorable v0.1.4 h1:snbPLB8fVfU9iwbbo30TPtbLRzwWu6aJS6Xh4eaa
github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
github.com/mattn/go-ieproxy v0.0.0-20190610004146-91bb50d98149/go.mod h1:31jz6HNzdxOmlERGGEc4v/dMssOfmp2p5bT/okiKFFc=
github.com/mattn/go-ieproxy v0.0.0-20190702010315-6dee0af9227d/go.mod h1:31jz6HNzdxOmlERGGEc4v/dMssOfmp2p5bT/okiKFFc=
-github.com/mattn/go-ieproxy v0.0.0-20190805055040-f9202b1cfdeb h1:hXqqXzQtJbENrsb+rsIqkVqcg4FUJL0SQFGw08Dgivw=
-github.com/mattn/go-ieproxy v0.0.0-20190805055040-f9202b1cfdeb/go.mod h1:31jz6HNzdxOmlERGGEc4v/dMssOfmp2p5bT/okiKFFc=
+github.com/mattn/go-ieproxy v0.0.0-20200203040449-2dbc853185d9 h1:a6/tH/zhh2tdoUSDgS4gNcY6H2Mae/70R+jEkRv52ws=
+github.com/mattn/go-ieproxy v0.0.0-20200203040449-2dbc853185d9/go.mod h1:pYabZ6IHcRpFh7vIaLfK7rdcWgFEb3SFJ6/gNWuh88E=
github.com/mattn/go-isatty v0.0.8 h1:HLtExJ+uU2HOZ+wI0Tt5DtUDrx8yhUqDcp7fYERX4CE=
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
-github.com/mattn/go-isatty v0.0.11-0.20191112051248-2a2f0ea997f9 h1:tM1L+QoyOIq/0KiBQ4y/jUW0jxB5kz35bz+PSoQYjq8=
-github.com/mattn/go-isatty v0.0.11-0.20191112051248-2a2f0ea997f9/go.mod h1:cxQpGCW53krnBJYXw0m6SYdk+OIHR4jbEstSUj/+MQ4=
-github.com/mattn/go-runewidth v0.0.7 h1:Ei8KR0497xHyKJPAv59M1dkC+rOZCMBJ+t3fZ+twI54=
-github.com/mattn/go-runewidth v0.0.7/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
+github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY=
+github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
+github.com/mattn/go-runewidth v0.0.8 h1:3tS41NlGYSmhhe/8fhGRzc+z3AYCw1Fe1WAyLuujKs0=
+github.com/mattn/go-runewidth v0.0.8/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
+github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
github.com/mschoch/smat v0.0.0-20160514031455-90eadee771ae/go.mod h1:qAyveg+e4CE+eKJXWVjKXM4ck2QobLqTDytGJbLLhJg=
+github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
github.com/ncw/go-acd v0.0.0-20171120105400-887eb06ab6a2 h1:VlXvEx6JbFp7F9iz92zXP2Ew+9VupSpfybr+TxmjdH0=
github.com/ncw/go-acd v0.0.0-20171120105400-887eb06ab6a2/go.mod h1:MLIrzg7gp/kzVBxRE1olT7CWYMCklcUWU+ekoxOD9x0=
-github.com/ncw/swift v1.0.49 h1:eQaKIjSt/PXLKfYgzg01nevmO+CMXfXGRhB1gOhDs7E=
-github.com/ncw/swift v1.0.49/go.mod h1:23YIA4yWVnGwv2dQlN4bB7egfYX6YLn0Yo/S6zZO/ZM=
+github.com/ncw/swift v1.0.50 h1:E01b5bVIssNhx2KnzAjMWEXkKrb8ytTqCDWY7lqmWjA=
+github.com/ncw/swift v1.0.50/go.mod h1:23YIA4yWVnGwv2dQlN4bB7egfYX6YLn0Yo/S6zZO/ZM=
+github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 h1:zYyBkD/k9seD2A7fsi6Oo2LfFZAehjjQMERAvZLEDnQ=
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646/go.mod h1:jpp1/29i3P1S/RLdc7JQKbRpFeM1dOBd8T9ki5s+AY8=
-github.com/nsf/termbox-go v0.0.0-20191229070316-58d4fcbce2a7 h1:OkWEy7aQeQTbgdrcGi9bifx+Y6bMM7ae7y42hDFaBvA=
-github.com/nsf/termbox-go v0.0.0-20191229070316-58d4fcbce2a7/go.mod h1:IuKpRQcYE1Tfu+oAQqaLisqDeXgjyyltCfsaoYN18NQ=
+github.com/nsf/termbox-go v0.0.0-20200204031403-4d2b513ad8be h1:yzmWtPyxEUIKdZg4RcPq64MfS8NA6A5fNOJgYhpR9EQ=
+github.com/nsf/termbox-go v0.0.0-20200204031403-4d2b513ad8be/go.mod h1:IuKpRQcYE1Tfu+oAQqaLisqDeXgjyyltCfsaoYN18NQ=
+github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U=
github.com/okzk/sdnotify v0.0.0-20180710141335-d9becc38acbd h1:+iAPaTbi1gZpcpDwe/BW1fx7Xoesv69hLNGPheoyhBs=
github.com/okzk/sdnotify v0.0.0-20180710141335-d9becc38acbd/go.mod h1:4soZNh0zW0LtYGdQ416i0jO0EIqMGcbtaspRS4BDvRQ=
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
@@ -210,44 +253,63 @@ github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/9
github.com/pengsrc/go-shared v0.2.1-0.20190131101655-1999055a4a14 h1:XeOYlK9W1uCmhjJSsY78Mcuh7MVkNjTzmHx1yBzizSU=
github.com/pengsrc/go-shared v0.2.1-0.20190131101655-1999055a4a14/go.mod h1:jVblp62SafmidSkvWrXyxAme3gaTfEtWwRPGz5cpvHg=
github.com/philhofer/fwd v1.0.0/go.mod h1:gk3iGcWd9+svBvR0sR+KPcfE+RNWozjowpeBVG3ZVNU=
+github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
-github.com/pkg/sftp v1.10.1 h1:VasscCm72135zRysgrJDKsntdmPN+OuU3+nnHYA9wyc=
-github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI=
+github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
+github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
+github.com/pkg/sftp v1.11.0 h1:4Zv0OGbpkg4yNuUtH0s8rvoYxRCNyT29NVUo6pgPmxI=
+github.com/pkg/sftp v1.11.0/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
+github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso=
+github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
+github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
-github.com/putdotio/go-putio v0.0.0-20190822121956-19b9c636c877 h1:sKIa5MAIViLAnQbEo+uiDi2FMowy8KcdZW8XZpmyNxs=
-github.com/putdotio/go-putio v0.0.0-20190822121956-19b9c636c877/go.mod h1:EWtDL88jJLLWZzywr0QaPO+mGP8gFpvl8dcox8qTk3Y=
+github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro=
+github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4=
+github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
+github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
+github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU=
+github.com/putdotio/go-putio/putio v0.0.0-20200123120452-16d982cac2b8 h1:Y258uzXU/potCYnQd1r6wlAnoMB68BiCkCcCnKx1SH8=
+github.com/putdotio/go-putio/putio v0.0.0-20200123120452-16d982cac2b8/go.mod h1:bSJjRokAHHOhA+XFxplld8w2R/dXLH7Z3BZ532vhFwU=
github.com/rfjakob/eme v0.0.0-20171028163933-2222dbd4ba46 h1:w2CpS5muK+jyydnmlkqpAhzKmHmMBzBkfYUDjQNS1Dk=
github.com/rfjakob/eme v0.0.0-20171028163933-2222dbd4ba46/go.mod h1:U2bmx0hDj8EyDdcxmD5t3XHDnBFnyNNc22n1R4008eM=
+github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg=
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
-github.com/russross/blackfriday v1.5.2 h1:HyvC0ARfnZBqnXwABFeSZHpKvJHJJfPz81GNueLj0oo=
-github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
+github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q=
+github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/ryszard/goskiplist v0.0.0-20150312221310-2dfbae5fcf46/go.mod h1:uAQ5PCi+MFsC7HjREoAz1BU+Mq60+05gifQSsHSDG/8=
github.com/sevlyar/go-daemon v0.1.5 h1:Zy/6jLbM8CfqJ4x4RPr7MJlSKt90f00kNM1D401C+Qk=
github.com/sevlyar/go-daemon v0.1.5/go.mod h1:6dJpPatBT9eUwM5VCw9Bt6CdX9Tk6UWvhW3MebLDRKE=
+github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo=
+github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
+github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
github.com/sirupsen/logrus v1.4.2 h1:SPIRibHv4MatM3XXNO2BJeFLZwZ2LvZgfQ5+UNI2im4=
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
-github.com/skratchdot/open-golang v0.0.0-20190402232053-79abb63cd66e h1:VAzdS5Nw68fbf5RZ8RDVlUvPXNU6Z3jtPCK/qvm4FoQ=
-github.com/skratchdot/open-golang v0.0.0-20190402232053-79abb63cd66e/go.mod h1:sUM3LWHvSMaG192sy56D9F7CNvL7jUJVXoqM1QKLnog=
+github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 h1:JIAuq3EEf9cgbU6AtGPK4CTG3Zf6CKMNqf0MHTggAUA=
+github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966/go.mod h1:sUM3LWHvSMaG192sy56D9F7CNvL7jUJVXoqM1QKLnog=
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=
github.com/smartystreets/assertions v1.0.1 h1:voD4ITNjPL5jjBfgR/r8fPIIBrliWrWHeiJApdr3r4w=
github.com/smartystreets/assertions v1.0.1/go.mod h1:kHHU4qYBaI3q23Pp3VPrmWhuIUrLW/7eUrw0BU5VaoM=
github.com/smartystreets/goconvey v0.0.0-20181108003508-044398e4856c/go.mod h1:XDJAKZRPZ1CvBcN2aX5YOUTYGHki24fSF0Iv48Ibg0s=
github.com/smartystreets/goconvey v0.0.0-20190731233626-505e41936337 h1:WN9BUFbdyOsSH/XohnWpXOlq9NBD5sGAB2FciQMUEe8=
github.com/smartystreets/goconvey v0.0.0-20190731233626-505e41936337/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=
+github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM=
+github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA=
github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ=
github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
-github.com/spf13/cobra v0.0.5 h1:f0B+LkLX6DtmRH1isoNA9VTtNUK9K8xYd28JNNfOv/s=
-github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU=
+github.com/spf13/cobra v0.0.6 h1:breEStsVwemnKh2/s6gMvSdMEkwW0sK8vGStnlVBMCs=
+github.com/spf13/cobra v0.0.6/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE=
github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo=
github.com/spf13/pflag v1.0.3 h1:zPAT6CGy6wXeQ7NtTnaTerfKOsV6V6F8agHXFiazDkg=
github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
-github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s=
+github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/objx v0.1.1 h1:2vfRuCMp5sSVIDSqO8oNnWJq7mPa6KVP3iPIwFBuy8A=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.2.1/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
@@ -257,20 +319,25 @@ github.com/stretchr/testify v1.3.1-0.20190311161405-34c6fa2dc709 h1:Ko2LQMrRU+Oy
github.com/stretchr/testify v1.3.1-0.20190311161405-34c6fa2dc709/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
+github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4=
+github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
github.com/t3rm1n4l/go-mega v0.0.0-20200117211730-79a813bb328d h1:GsRmok9VXIEc5B6SmRWuuO9hx4x2YBqFqgOXGt9Xs94=
github.com/t3rm1n4l/go-mega v0.0.0-20200117211730-79a813bb328d/go.mod h1:XWL4vDyd3JKmJx+hZWUVgCNmmhZ2dTBcaNDcxH465s0=
github.com/tinylib/msgp v1.0.2/go.mod h1:+d+yLhGm8mzTaHzB+wgMYrodPfmZrzkirds8fDWklFE=
+github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
github.com/tv42/httpunix v0.0.0-20191220191345-2ba4b9c3382c h1:u6SKchux2yDvFQnDHS3lPnIRmfVJ5Sxy3ao2SIdysLQ=
github.com/tv42/httpunix v0.0.0-20191220191345-2ba4b9c3382c/go.mod h1:hzIxponao9Kjc7aWznkXaL4U4TWaDSs8zcsY4Ka08nM=
-github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0=
+github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc=
github.com/willf/bitset v1.1.9/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPySAYV4=
github.com/xanzy/ssh-agent v0.2.1 h1:TCbipTQL2JiiCprBWx9frJ2eJlCYT00NmctrHxVAr70=
github.com/xanzy/ssh-agent v0.2.1/go.mod h1:mLlQY/MoOhWBj+gOGMQkOeiEvkx+8pJSI+0Bx9h2kr4=
+github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=
github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q=
github.com/youmark/pkcs8 v0.0.0-20191102193632-94c173a94d60 h1:Ud2neINE1YFEwrcJ4EqnbRZlm9R3T8SuFKeqjIw7k44=
github.com/youmark/pkcs8 v0.0.0-20191102193632-94c173a94d60/go.mod h1:rHwXgn7JulP+udvsHwJoVG1YGAP6VLg4y9I5dyZdqmA=
-github.com/yunify/qingstor-sdk-go/v3 v3.1.1 h1:jQkY9N+zSL8h8CqgrDQpXe8/mqJOx8vgGjk6O//RA/4=
-github.com/yunify/qingstor-sdk-go/v3 v3.1.1/go.mod h1:KciFNuMu6F4WLk9nGwwK69sCGKLCdd9f97ac/wfumS4=
+github.com/yunify/qingstor-sdk-go/v3 v3.2.0 h1:9sB2WZMgjwSUNZhrgvaNGazVltoFUUfuS9f0uCWtTr8=
+github.com/yunify/qingstor-sdk-go/v3 v3.2.0/go.mod h1:KciFNuMu6F4WLk9nGwwK69sCGKLCdd9f97ac/wfumS4=
+go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
go.etcd.io/bbolt v1.3.3 h1:MUGmc65QhB3pIlaQ5bB4LwqSj6GIonVJXpZiaKNyaKk=
go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
@@ -278,11 +345,14 @@ go.opencensus.io v0.22.0 h1:C9hSCOW830chIVkdja34wa6Ky+IzWllkUinR+BtRZd4=
go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8=
go.opencensus.io v0.22.2 h1:75k/FF0Q2YM8QYo07VPddOLBslDt1MZOdEslOHvmzAs=
go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
-goftp.io/server v0.0.0-20190712054601-1149070ae46b/go.mod h1:xreggPYu7ZuNe9PfbxiQca7bYGwU44IvlCCg3KzWJtQ=
-goftp.io/server v0.0.0-20190812034929-9b3874d17690/go.mod h1:99FISrRpwKfaL4Ey/dX8N48WToveng/s2OXR5sJ3cnc=
-goftp.io/server v0.0.0-20190812052725-72a57b186803 h1:I2IgXYRuOZ6LceE7VY6aSnYuUy6Wot3WFhqI5WsAHXQ=
-goftp.io/server v0.0.0-20190812052725-72a57b186803/go.mod h1:eDjthxa5tFTS2JVry2jHt1g9y3J0Vgu2Nd+lmNWev7Y=
-golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
+go.opencensus.io v0.22.3 h1:8sGtKOrtQqkN1bp2AtX+misvLIlOmsEsNd+9NIcPEm8=
+go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
+go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
+go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=
+go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q=
+goftp.io/server v0.3.2 h1:bcsI4ijbvFZkA4rrUtIE/t1jNhT+0uSkiTQ4ASjZAXQ=
+goftp.io/server v0.3.2/go.mod h1:wfeAZeQgacupLVl+Ex3ozYFaAGNfCKYZiZNxLzgw6z4=
+golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20190131182504-b8fe1690c613/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20190219172222-a4c6cb3142f2/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
@@ -290,13 +360,17 @@ golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8U
golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586 h1:7KByu05hhLed2MO29w7p1XfZvZ13m8mub3shuVftRs0=
golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
-golang.org/x/crypto v0.0.0-20200109152110-61a87790db17 h1:nVJ3guKA9qdkEQ3TUdXI9QSINo2CUPM/cySEvw2w8I0=
-golang.org/x/crypto v0.0.0-20200109152110-61a87790db17/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
+golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
+golang.org/x/crypto v0.0.0-20200221231518-2aa609cf4a9d h1:1ZiEyfaQIg3Qh0EoqpwAakHVhecoE5wlSg5GjnafJGw=
+golang.org/x/crypto v0.0.0-20200221231518-2aa609cf4a9d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek=
-golang.org/x/exp v0.0.0-20191002040644-a1355ae1e2c3/go.mod h1:NOZ3BPKG0ec/BKJQgnvsSFpcKLM5xXVWnvZS97DWHgE=
+golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY=
+golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
+golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
+golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM=
golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
@@ -305,14 +379,21 @@ golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTk
golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
+golang.org/x/lint v0.0.0-20190930215403-16217165b5de h1:5hukYrvBGR8/eNkX5mdUezrA6JiaEZDtJb9Ei+1LlBs=
golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
+golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs=
+golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE=
golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o=
golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc=
golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY=
+golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
+golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
@@ -320,15 +401,23 @@ golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn
golang.org/x/net v0.0.0-20190415214537-1da14a5a36f2/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859 h1:R/3boaszxrf1GEUWTVDzSKVwLmSJpwZ1yqXm8j0v2QI=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
-golang.org/x/net v0.0.0-20191109021931-daa7c04131f5 h1:bHNaocaoJxYBo5cw41UyTMLjYlb8wPY7+WFrnklbHOM=
-golang.org/x/net v0.0.0-20191109021931-daa7c04131f5/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20191112182307-2180aed22343/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20200222125558-5a598a2470a0 h1:MsuvTghUPjX762sGLnGsxC3HM0B5r83wEtYcYR8/vRs=
+golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0=
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
+golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
+golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d h1:TzXSXBo42m9gQenoE3b9BGiEpg5IG2JkU5FkPIawgtw=
+golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
@@ -338,8 +427,10 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e h1:vcxGaoTs7kV8m5Np9uUNQin4BrLOthgV7252N8V+FwY=
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190221075227-b4e8571b14e0/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
@@ -351,9 +442,17 @@ golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20191112214154-59a1497f0cea/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191210023423-ac6580df4449 h1:gSbV7h1NRL2G1xTg/owz62CST1oJBmxy4QpMMregXVQ=
golang.org/x/sys v0.0.0-20191210023423-ac6580df4449/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae h1:/WDfKMnPU+m5M4xB+6x4kaepxRw6jWvR5iDRdvjHgy8=
+golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=
@@ -363,6 +462,7 @@ golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 h1:SvFZT6jyqRaOeXpc5h/JSfZe
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20191024005414-555d28b269f0 h1:/5xXl8Y5W96D+TtHSlonuFqGHIWVuyCkGJLwGh9JJFs=
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
+golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
@@ -378,17 +478,32 @@ golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgw
golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
-golang.org/x/tools v0.0.0-20190927191325-030b2cf1153e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
-golang.org/x/tools v0.0.0-20191010171213-8abd42400456/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
+golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
+golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
+golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
+golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
+golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE=
google.golang.org/api v0.7.0 h1:9sdfJOzWlkqPltHAuzT2Cp+yrBeY1KRVYgms8soxMwM=
google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M=
google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
google.golang.org/api v0.9.0 h1:jbyannxz0XFD3zdjgrSUsaJbgpH4eTrkdhRChkHPfO8=
google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
-google.golang.org/api v0.13.0 h1:Q3Ui3V3/CVinFWFiW39Iw0kMuVrRzYX0wN6OPFp0lTA=
google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
+google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
+google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
+google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
+google.golang.org/api v0.18.0 h1:TgDr+1inK2XVUKZx3BYAqQg/GwucGdBkzZjWaTg/I+A=
+google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
@@ -405,33 +520,48 @@ google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98
google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55 h1:gSJIx1SDwno+2ElGhA4+qG2zF97qiUzTM+rQ0klBOcE=
google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8=
-google.golang.org/genproto v0.0.0-20191009194640-548a555dbc03/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a h1:Ob5/580gVHBJZgXnff1cZDbG+xLtMVE5mDRTe+nIsX4=
google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
+google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
+google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
+google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
+google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
+google.golang.org/genproto v0.0.0-20200225123651-fc8f55426688 h1:1+0Z5cgv1eDXJD9z2tdQF9PSSQnJXwism490hJydMRI=
+google.golang.org/genproto v0.0.0-20200225123651-fc8f55426688/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
+google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
google.golang.org/grpc v1.21.1 h1:j6XxA85m/6txkUCHvzlV5f+HBNl/1r5cZ2A/3IEFOO8=
google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
google.golang.org/grpc v1.23.0 h1:AzbTB6ux+okLTzP8Ru1Xs41C303zdcfEht7MQnYJt5A=
google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
-google.golang.org/grpc v1.25.1 h1:wdKvqQk7IttEw92GoRyKG2IDrUIpgpj6H6m81yfeMW0=
-google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
+google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
+google.golang.org/grpc v1.27.0 h1:rRYRFMVgRv6E0D70Skyfsr28tDXIuuPZyWGMPdMcnXg=
+google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
+google.golang.org/grpc v1.27.1 h1:zvIju4sqAGvwKspUQOhwnpcqSbzi7/H6QomNNjTL4sk=
+google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
+gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
gopkg.in/fsnotify.v1 v1.4.7 h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4=
gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
+gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo=
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
+gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74=
gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
-gopkg.in/yaml.v2 v2.2.5 h1:ymVxjfMaHvXD8RqPRmzHHsB3VvucivSkIAvJFDI5O3c=
-gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10=
+gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
+honnef.co/go/tools v0.0.1-2019.2.3 h1:3JgtbtFHMiCmsznwGVTUWbgGov+pVqnlf1dEJTNAXeM=
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
+rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
+rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
diff --git a/vendor/bazil.org/fuse/fs/serve.go b/vendor/bazil.org/fuse/fs/serve.go
index ac3efd311..033b8d59d 100644
--- a/vendor/bazil.org/fuse/fs/serve.go
+++ b/vendor/bazil.org/fuse/fs/serve.go
@@ -14,6 +14,7 @@ import (
"runtime"
"strings"
"sync"
+ "syscall"
"time"
"bazil.org/fuse"
@@ -467,7 +468,6 @@ func (sn *serveNode) attr(ctx context.Context, attr *fuse.Attr) error {
type serveHandle struct {
handle Handle
readData []byte
- nodeID fuse.NodeID
}
// NodeRef is deprecated. It remains here to decrease code churn on
@@ -501,9 +501,9 @@ func (c *Server) saveNode(inode uint64, node Node) (id fuse.NodeID, gen uint64)
return id, sn.generation
}
-func (c *Server) saveHandle(handle Handle, nodeID fuse.NodeID) (id fuse.HandleID) {
+func (c *Server) saveHandle(handle Handle) (id fuse.HandleID) {
c.meta.Lock()
- shandle := &serveHandle{handle: handle, nodeID: nodeID}
+ shandle := &serveHandle{handle: handle}
if n := len(c.freeHandle); n > 0 {
id = c.freeHandle[n-1]
c.freeHandle = c.freeHandle[:n-1]
@@ -756,7 +756,7 @@ func (e handleNotReaderError) Error() string {
var _ fuse.ErrorNumber = handleNotReaderError{}
func (e handleNotReaderError) Errno() fuse.Errno {
- return fuse.ENOTSUP
+ return fuse.Errno(syscall.ENOTSUP)
}
func initLookupResponse(s *fuse.LookupResponse) {
@@ -788,10 +788,11 @@ func (c *Server) serve(r fuse.Request) {
}
if snode == nil {
c.meta.Unlock()
+ err := syscall.ESTALE
c.debug(response{
Op: opName(r),
Request: logResponseHeader{ID: hdr.ID},
- Error: fuse.ESTALE.ErrnoName(),
+ Error: fuse.Errno(err).ErrnoName(),
// this is the only place that sets both Error and
// Out; not sure if i want to do that; might get rid
// of len(c.node) things altogether
@@ -799,7 +800,7 @@ func (c *Server) serve(r fuse.Request) {
MaxNode: fuse.NodeID(len(c.node)),
},
})
- r.RespondError(fuse.ESTALE)
+ r.RespondError(err)
return
}
node = snode.node
@@ -824,17 +825,12 @@ func (c *Server) serve(r fuse.Request) {
Request: logResponseHeader{ID: hdr.ID},
}
if err, ok := resp.(error); ok {
- msg.Error = err.Error()
- if ferr, ok := err.(fuse.ErrorNumber); ok {
- errno := ferr.Errno()
- msg.Errno = errno.ErrnoName()
- if errno == err {
- // it's just a fuse.Errno with no extra detail;
- // skip the textual message for log readability
- msg.Error = ""
- }
- } else {
- msg.Errno = fuse.DefaultErrno.ErrnoName()
+ errno := fuse.ToErrno(err)
+ msg.Errno = errno.ErrnoName()
+ if errno != err && syscall.Errno(errno) != err {
+ // if it's more than just a fuse.Errno or a
+ // syscall.Errno, log extra detail
+ msg.Error = err.Error()
}
} else {
msg.Out = resp
@@ -887,7 +883,7 @@ func (c *Server) serve(r fuse.Request) {
//
// Decent write-up on role of EINTR:
// http://250bpm.com/blog:12
- err = fuse.EINTR
+ err = syscall.EINTR
default:
// nothing
}
@@ -907,7 +903,7 @@ func (c *Server) handleRequest(ctx context.Context, node Node, snode *serveNode,
// Note: To FUSE, ENOSYS means "this server never implements this request."
// It would be inappropriate to return ENOSYS for other operations in this
// switch that might only be unavailable in some contexts, not all.
- return fuse.ENOSYS
+ return syscall.ENOSYS
case *fuse.StatfsRequest:
s := &fuse.StatfsResponse{}
@@ -956,7 +952,7 @@ func (c *Server) handleRequest(ctx context.Context, node Node, snode *serveNode,
initLookupResponse(&s.LookupResponse)
n, ok := node.(NodeSymlinker)
if !ok {
- return fuse.EIO // XXX or EPERM like Mkdir?
+ return syscall.EIO // XXX or EPERM like Mkdir?
}
n2, err := n.Symlink(ctx, r)
if err != nil {
@@ -972,7 +968,7 @@ func (c *Server) handleRequest(ctx context.Context, node Node, snode *serveNode,
case *fuse.ReadlinkRequest:
n, ok := node.(NodeReadlinker)
if !ok {
- return fuse.EIO /// XXX or EPERM?
+ return syscall.EIO /// XXX or EPERM?
}
target, err := n.Readlink(ctx, r)
if err != nil {
@@ -985,7 +981,7 @@ func (c *Server) handleRequest(ctx context.Context, node Node, snode *serveNode,
case *fuse.LinkRequest:
n, ok := node.(NodeLinker)
if !ok {
- return fuse.EIO /// XXX or EPERM?
+ return syscall.EIO /// XXX or EPERM?
}
c.meta.Lock()
var oldNode *serveNode
@@ -998,7 +994,7 @@ func (c *Server) handleRequest(ctx context.Context, node Node, snode *serveNode,
Request: r.Hdr(),
In: r,
})
- return fuse.EIO
+ return syscall.EIO
}
n2, err := n.Link(ctx, r, oldNode.node)
if err != nil {
@@ -1016,7 +1012,7 @@ func (c *Server) handleRequest(ctx context.Context, node Node, snode *serveNode,
case *fuse.RemoveRequest:
n, ok := node.(NodeRemover)
if !ok {
- return fuse.EIO /// XXX or EPERM?
+ return syscall.EIO /// XXX or EPERM?
}
err := n.Remove(ctx, r)
if err != nil {
@@ -1046,7 +1042,7 @@ func (c *Server) handleRequest(ctx context.Context, node Node, snode *serveNode,
} else if n, ok := node.(NodeRequestLookuper); ok {
n2, err = n.Lookup(ctx, r, s)
} else {
- return fuse.ENOENT
+ return syscall.ENOENT
}
if err != nil {
return err
@@ -1063,7 +1059,7 @@ func (c *Server) handleRequest(ctx context.Context, node Node, snode *serveNode,
initLookupResponse(&s.LookupResponse)
n, ok := node.(NodeMkdirer)
if !ok {
- return fuse.EPERM
+ return syscall.EPERM
}
n2, err := n.Mkdir(ctx, r)
if err != nil {
@@ -1088,7 +1084,7 @@ func (c *Server) handleRequest(ctx context.Context, node Node, snode *serveNode,
} else {
h2 = node
}
- s.Handle = c.saveHandle(h2, r.Hdr().Node)
+ s.Handle = c.saveHandle(h2)
done(s)
r.Respond(s)
return nil
@@ -1097,7 +1093,7 @@ func (c *Server) handleRequest(ctx context.Context, node Node, snode *serveNode,
n, ok := node.(NodeCreater)
if !ok {
// If we send back ENOSYS, FUSE will try mknod+open.
- return fuse.EPERM
+ return syscall.EPERM
}
s := &fuse.CreateResponse{OpenResponse: fuse.OpenResponse{}}
initLookupResponse(&s.LookupResponse)
@@ -1108,7 +1104,7 @@ func (c *Server) handleRequest(ctx context.Context, node Node, snode *serveNode,
if err := c.saveLookup(ctx, &s.LookupResponse, snode, r.Name, n2); err != nil {
return err
}
- s.Handle = c.saveHandle(h2, r.Hdr().Node)
+ s.Handle = c.saveHandle(h2)
done(s)
r.Respond(s)
return nil
@@ -1116,7 +1112,7 @@ func (c *Server) handleRequest(ctx context.Context, node Node, snode *serveNode,
case *fuse.GetxattrRequest:
n, ok := node.(NodeGetxattrer)
if !ok {
- return fuse.ENOTSUP
+ return syscall.ENOTSUP
}
s := &fuse.GetxattrResponse{}
err := n.Getxattr(ctx, r, s)
@@ -1124,7 +1120,7 @@ func (c *Server) handleRequest(ctx context.Context, node Node, snode *serveNode,
return err
}
if r.Size != 0 && uint64(len(s.Xattr)) > uint64(r.Size) {
- return fuse.ERANGE
+ return syscall.ERANGE
}
done(s)
r.Respond(s)
@@ -1133,7 +1129,7 @@ func (c *Server) handleRequest(ctx context.Context, node Node, snode *serveNode,
case *fuse.ListxattrRequest:
n, ok := node.(NodeListxattrer)
if !ok {
- return fuse.ENOTSUP
+ return syscall.ENOTSUP
}
s := &fuse.ListxattrResponse{}
err := n.Listxattr(ctx, r, s)
@@ -1141,7 +1137,7 @@ func (c *Server) handleRequest(ctx context.Context, node Node, snode *serveNode,
return err
}
if r.Size != 0 && uint64(len(s.Xattr)) > uint64(r.Size) {
- return fuse.ERANGE
+ return syscall.ERANGE
}
done(s)
r.Respond(s)
@@ -1150,7 +1146,7 @@ func (c *Server) handleRequest(ctx context.Context, node Node, snode *serveNode,
case *fuse.SetxattrRequest:
n, ok := node.(NodeSetxattrer)
if !ok {
- return fuse.ENOTSUP
+ return syscall.ENOTSUP
}
err := n.Setxattr(ctx, r)
if err != nil {
@@ -1163,7 +1159,7 @@ func (c *Server) handleRequest(ctx context.Context, node Node, snode *serveNode,
case *fuse.RemovexattrRequest:
n, ok := node.(NodeRemovexattrer)
if !ok {
- return fuse.ENOTSUP
+ return syscall.ENOTSUP
}
err := n.Removexattr(ctx, r)
if err != nil {
@@ -1189,7 +1185,7 @@ func (c *Server) handleRequest(ctx context.Context, node Node, snode *serveNode,
case *fuse.ReadRequest:
shandle := c.getHandle(r.Handle)
if shandle == nil {
- return fuse.ESTALE
+ return syscall.ESTALE
}
handle := shandle.handle
@@ -1254,7 +1250,7 @@ func (c *Server) handleRequest(ctx context.Context, node Node, snode *serveNode,
case *fuse.WriteRequest:
shandle := c.getHandle(r.Handle)
if shandle == nil {
- return fuse.ESTALE
+ return syscall.ESTALE
}
s := &fuse.WriteResponse{}
@@ -1266,12 +1262,12 @@ func (c *Server) handleRequest(ctx context.Context, node Node, snode *serveNode,
r.Respond(s)
return nil
}
- return fuse.EIO
+ return syscall.EIO
case *fuse.FlushRequest:
shandle := c.getHandle(r.Handle)
if shandle == nil {
- return fuse.ESTALE
+ return syscall.ESTALE
}
handle := shandle.handle
@@ -1287,7 +1283,7 @@ func (c *Server) handleRequest(ctx context.Context, node Node, snode *serveNode,
case *fuse.ReleaseRequest:
shandle := c.getHandle(r.Handle)
if shandle == nil {
- return fuse.ESTALE
+ return syscall.ESTALE
}
handle := shandle.handle
@@ -1323,11 +1319,11 @@ func (c *Server) handleRequest(ctx context.Context, node Node, snode *serveNode,
Request: r.Hdr(),
In: r,
})
- return fuse.EIO
+ return syscall.EIO
}
n, ok := node.(NodeRenamer)
if !ok {
- return fuse.EIO // XXX or EPERM like Mkdir?
+ return syscall.EIO // XXX or EPERM like Mkdir?
}
err := n.Rename(ctx, r, newDirNode.node)
if err != nil {
@@ -1340,7 +1336,7 @@ func (c *Server) handleRequest(ctx context.Context, node Node, snode *serveNode,
case *fuse.MknodRequest:
n, ok := node.(NodeMknoder)
if !ok {
- return fuse.EIO
+ return syscall.EIO
}
n2, err := n.Mknod(ctx, r)
if err != nil {
@@ -1358,7 +1354,7 @@ func (c *Server) handleRequest(ctx context.Context, node Node, snode *serveNode,
case *fuse.FsyncRequest:
n, ok := node.(NodeFsyncer)
if !ok {
- return fuse.EIO
+ return syscall.EIO
}
err := n.Fsync(ctx, r)
if err != nil {
diff --git a/vendor/bazil.org/fuse/fs/tree.go b/vendor/bazil.org/fuse/fs/tree.go
index f20f298af..329be1389 100644
--- a/vendor/bazil.org/fuse/fs/tree.go
+++ b/vendor/bazil.org/fuse/fs/tree.go
@@ -7,6 +7,7 @@ import (
"os"
pathpkg "path"
"strings"
+ "syscall"
"bazil.org/fuse"
)
@@ -84,7 +85,7 @@ func (t *tree) Lookup(ctx context.Context, name string) (Node, error) {
if n != nil {
return n, nil
}
- return nil, fuse.ENOENT
+ return nil, syscall.ENOENT
}
func (t *tree) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error) {
diff --git a/vendor/bazil.org/fuse/fuse.go b/vendor/bazil.org/fuse/fuse.go
index cd5833843..b774a25c5 100644
--- a/vendor/bazil.org/fuse/fuse.go
+++ b/vendor/bazil.org/fuse/fuse.go
@@ -79,7 +79,7 @@
// is cancelled and no longer needed, the context will be cancelled.
// Blocking operations should select on a receive from ctx.Done() and attempt to
// abort the operation early if the receive succeeds (meaning the channel is closed).
-// To indicate that the operation failed because it was aborted, return fuse.EINTR.
+// To indicate that the operation failed because it was aborted, return syscall.EINTR.
//
// If an operation does not block for an indefinite amount of time, supporting
// cancellation is not necessary.
@@ -90,8 +90,8 @@
// inspect req.Pid, req.Uid, and req.Gid as necessary to implement
// permission checking. The kernel FUSE layer normally prevents other
// users from accessing the FUSE file system (to change this, see
-// AllowOther, AllowRoot), but does not enforce access modes (to
-// change this, see DefaultPermissions).
+// AllowOther), but does not enforce access modes (to change this, see
+// DefaultPermissions).
//
// Mount Options
//
@@ -323,6 +323,8 @@ type ErrorNumber interface {
Errno() Errno
}
+// Deprecated: Return a syscall.Errno directly. See ToErrno for exact
+// rules.
const (
// ENOSYS indicates that the call is not supported.
ENOSYS = Errno(syscall.ENOSYS)
@@ -348,13 +350,14 @@ const (
const DefaultErrno = EIO
var errnoNames = map[Errno]string{
- ENOSYS: "ENOSYS",
- ESTALE: "ESTALE",
- ENOENT: "ENOENT",
- EIO: "EIO",
- EPERM: "EPERM",
- EINTR: "EINTR",
- EEXIST: "EEXIST",
+ ENOSYS: "ENOSYS",
+ ESTALE: "ESTALE",
+ ENOENT: "ENOENT",
+ EIO: "EIO",
+ EPERM: "EPERM",
+ EINTR: "EINTR",
+ EEXIST: "EEXIST",
+ Errno(syscall.ENAMETOOLONG): "ENAMETOOLONG",
}
// Errno implements Error and ErrorNumber using a syscall.Errno.
@@ -390,11 +393,28 @@ func (e Errno) MarshalText() ([]byte, error) {
return []byte(s), nil
}
-func (h *Header) RespondError(err error) {
- errno := DefaultErrno
- if ferr, ok := err.(ErrorNumber); ok {
- errno = ferr.Errno()
+// ToErrno converts arbitrary errors to Errno.
+//
+// If the underlying type of err is syscall.Errno, it is used
+// directly. No unwrapping is done, to prevent wrong errors from
+// leaking via e.g. *os.PathError.
+//
+// If err unwraps to implement ErrorNumber, that is used.
+//
+// Finally, returns DefaultErrno.
+func ToErrno(err error) Errno {
+ if err, ok := err.(syscall.Errno); ok {
+ return Errno(err)
}
+ var errnum ErrorNumber
+ if errors.As(err, &errnum) {
+ return Errno(errnum.Errno())
+ }
+ return DefaultErrno
+}
+
+func (h *Header) RespondError(err error) {
+ errno := ToErrno(err)
// FUSE uses negative errors!
// TODO: File bug report against OSXFUSE: positive error causes kernel panic.
buf := newBuffer(0)
diff --git a/vendor/bazil.org/fuse/fuse_kernel.go b/vendor/bazil.org/fuse/fuse_kernel.go
index 44b1fec0f..416d32aa1 100644
--- a/vendor/bazil.org/fuse/fuse_kernel.go
+++ b/vendor/bazil.org/fuse/fuse_kernel.go
@@ -633,8 +633,6 @@ func (fl WriteFlags) String() string {
return flagString(uint32(fl), writeFlagNames)
}
-const compatStatfsSize = 48
-
type statfsOut struct {
St kstatfs
}
diff --git a/vendor/bazil.org/fuse/options.go b/vendor/bazil.org/fuse/options.go
index d7abf2b7f..f09ffd4ed 100644
--- a/vendor/bazil.org/fuse/options.go
+++ b/vendor/bazil.org/fuse/options.go
@@ -148,37 +148,14 @@ func DaemonTimeout(name string) MountOption {
return daemonTimeout(name)
}
-var ErrCannotCombineAllowOtherAndAllowRoot = errors.New("cannot combine AllowOther and AllowRoot")
-
// AllowOther allows other users to access the file system.
-//
-// Only one of AllowOther or AllowRoot can be used.
func AllowOther() MountOption {
return func(conf *mountConfig) error {
- if _, ok := conf.options["allow_root"]; ok {
- return ErrCannotCombineAllowOtherAndAllowRoot
- }
conf.options["allow_other"] = ""
return nil
}
}
-// AllowRoot allows root (but not just everyone) to access the file
-// system.
-//
-// Only one of AllowOther or AllowRoot can be used.
-//
-// FreeBSD ignores this option.
-func AllowRoot() MountOption {
- return func(conf *mountConfig) error {
- if _, ok := conf.options["allow_other"]; ok {
- return ErrCannotCombineAllowOtherAndAllowRoot
- }
- conf.options["allow_root"] = ""
- return nil
- }
-}
-
// AllowDev enables interpreting character or block special devices on the
// filesystem.
func AllowDev() MountOption {
@@ -202,7 +179,7 @@ func AllowSUID() MountOption {
//
// Without this option, the Node itself decides what is and is not
// allowed. This is normally ok because FUSE file systems cannot be
-// accessed by other users without AllowOther/AllowRoot.
+// accessed by other users without AllowOther.
//
// FreeBSD ignores this option.
func DefaultPermissions() MountOption {
diff --git a/vendor/cloud.google.com/go/compute/metadata/.repo-metadata.json b/vendor/cloud.google.com/go/compute/metadata/.repo-metadata.json
deleted file mode 100644
index ca022ccc4..000000000
--- a/vendor/cloud.google.com/go/compute/metadata/.repo-metadata.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "name": "metadata",
- "name_pretty": "Google Compute Engine Metadata API",
- "product_documentation": "https://cloud.google.com/compute/docs/storing-retrieving-metadata",
- "client_documentation": "https://godoc.org/cloud.google.com/go/compute/metadata",
- "release_level": "ga",
- "language": "go",
- "repo": "googleapis/google-cloud-go",
- "distribution_name": "cloud.google.com/go/compute/metadata",
- "api_id": "compute:metadata",
- "requires_billing": false
-}
diff --git a/vendor/cloud.google.com/go/compute/metadata/metadata.go b/vendor/cloud.google.com/go/compute/metadata/metadata.go
index 4ff4e2f1c..9b1afb5cc 100644
--- a/vendor/cloud.google.com/go/compute/metadata/metadata.go
+++ b/vendor/cloud.google.com/go/compute/metadata/metadata.go
@@ -68,7 +68,6 @@ var (
Timeout: 2 * time.Second,
KeepAlive: 30 * time.Second,
}).Dial,
- ResponseHeaderTimeout: 2 * time.Second,
},
}}
subscribeClient = &Client{hc: &http.Client{
@@ -304,7 +303,10 @@ func (c *Client) getETag(suffix string) (value, etag string, err error) {
host = metadataIP
}
u := "http://" + host + "/computeMetadata/v1/" + suffix
- req, _ := http.NewRequest("GET", u, nil)
+ req, err := http.NewRequest("GET", u, nil)
+ if err != nil {
+ return "", "", err
+ }
req.Header.Set("Metadata-Flavor", "Google")
req.Header.Set("User-Agent", userAgent)
res, err := c.hc.Do(req)
@@ -407,11 +409,7 @@ func (c *Client) InstanceTags() ([]string, error) {
// InstanceName returns the current VM's instance ID string.
func (c *Client) InstanceName() (string, error) {
- host, err := c.Hostname()
- if err != nil {
- return "", err
- }
- return strings.Split(host, ".")[0], nil
+ return c.getTrimmed("instance/name")
}
// Zone returns the current VM's zone, such as "us-central1-b".
diff --git a/vendor/github.com/Unknwon/goconfig/README.md b/vendor/github.com/Unknwon/goconfig/README.md
index da6f14470..3a2218cb0 100644
--- a/vendor/github.com/Unknwon/goconfig/README.md
+++ b/vendor/github.com/Unknwon/goconfig/README.md
@@ -1,4 +1,4 @@
-goconfig [![Build Status](https://drone.io/github.com/Unknwon/goconfig/status.png)](https://drone.io/github.com/Unknwon/goconfig/latest) [![Go Walker](http://gowalker.org/api/v1/badge)](http://gowalker.org/github.com/Unknwon/goconfig)
+goconfig [![Go Walker](http://gowalker.org/api/v1/badge)](http://gowalker.org/github.com/Unknwon/goconfig)
========
[中文文档](README_ZH.md)
@@ -26,15 +26,11 @@ The configuration file consists of sections, led by a `[section]` header and fol
## Installation
- go get github.com/Unknwon/goconfig
-
-Or
-
- gopm get github.com/Unknwon/goconfig
+ go get github.com/unknwon/goconfig
## API Documentation
-[Go Walker](http://gowalker.org/github.com/Unknwon/goconfig).
+[Go Walker](http://gowalker.org/github.com/unknwon/goconfig).
## Example
diff --git a/vendor/github.com/anacrolix/dms/upnpav/upnpav.go b/vendor/github.com/anacrolix/dms/upnpav/upnpav.go
deleted file mode 100644
index 2ba7f8ade..000000000
--- a/vendor/github.com/anacrolix/dms/upnpav/upnpav.go
+++ /dev/null
@@ -1,45 +0,0 @@
-package upnpav
-
-import (
- "encoding/xml"
-)
-
-const (
- NoSuchObjectErrorCode = 701
-)
-
-type Resource struct {
- XMLName xml.Name `xml:"res"`
- ProtocolInfo string `xml:"protocolInfo,attr"`
- URL string `xml:",chardata"`
- Size uint64 `xml:"size,attr,omitempty"`
- Bitrate uint `xml:"bitrate,attr,omitempty"`
- Duration string `xml:"duration,attr,omitempty"`
- Resolution string `xml:"resolution,attr,omitempty"`
-}
-
-type Container struct {
- Object
- XMLName xml.Name `xml:"container"`
- ChildCount int `xml:"childCount,attr"`
-}
-
-type Item struct {
- Object
- XMLName xml.Name `xml:"item"`
- Res []Resource
-}
-
-type Object struct {
- ID string `xml:"id,attr"`
- ParentID string `xml:"parentID,attr"`
- Restricted int `xml:"restricted,attr"` // indicates whether the object is modifiable
- Class string `xml:"upnp:class"`
- Icon string `xml:"upnp:icon,omitempty"`
- Title string `xml:"dc:title"`
- Artist string `xml:"upnp:artist,omitempty"`
- Album string `xml:"upnp:album,omitempty"`
- Genre string `xml:"upnp:genre,omitempty"`
- AlbumArtURI string `xml:"upnp:albumArtURI,omitempty"`
- Searchable int `xml:"searchable,attr"`
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/arn/arn.go b/vendor/github.com/aws/aws-sdk-go/aws/arn/arn.go
new file mode 100644
index 000000000..1c4967429
--- /dev/null
+++ b/vendor/github.com/aws/aws-sdk-go/aws/arn/arn.go
@@ -0,0 +1,93 @@
+// Package arn provides a parser for interacting with Amazon Resource Names.
+package arn
+
+import (
+ "errors"
+ "strings"
+)
+
+const (
+ arnDelimiter = ":"
+ arnSections = 6
+ arnPrefix = "arn:"
+
+ // zero-indexed
+ sectionPartition = 1
+ sectionService = 2
+ sectionRegion = 3
+ sectionAccountID = 4
+ sectionResource = 5
+
+ // errors
+ invalidPrefix = "arn: invalid prefix"
+ invalidSections = "arn: not enough sections"
+)
+
+// ARN captures the individual fields of an Amazon Resource Name.
+// See http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html for more information.
+type ARN struct {
+ // The partition that the resource is in. For standard AWS regions, the partition is "aws". If you have resources in
+ // other partitions, the partition is "aws-partitionname". For example, the partition for resources in the China
+ // (Beijing) region is "aws-cn".
+ Partition string
+
+ // The service namespace that identifies the AWS product (for example, Amazon S3, IAM, or Amazon RDS). For a list of
+ // namespaces, see
+ // http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces.
+ Service string
+
+ // The region the resource resides in. Note that the ARNs for some resources do not require a region, so this
+ // component might be omitted.
+ Region string
+
+ // The ID of the AWS account that owns the resource, without the hyphens. For example, 123456789012. Note that the
+ // ARNs for some resources don't require an account number, so this component might be omitted.
+ AccountID string
+
+ // The content of this part of the ARN varies by service. It often includes an indicator of the type of resource —
+ // for example, an IAM user or Amazon RDS database - followed by a slash (/) or a colon (:), followed by the
+ // resource name itself. Some services allows paths for resource names, as described in
+ // http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arns-paths.
+ Resource string
+}
+
+// Parse parses an ARN into its constituent parts.
+//
+// Some example ARNs:
+// arn:aws:elasticbeanstalk:us-east-1:123456789012:environment/My App/MyEnvironment
+// arn:aws:iam::123456789012:user/David
+// arn:aws:rds:eu-west-1:123456789012:db:mysql-db
+// arn:aws:s3:::my_corporate_bucket/exampleobject.png
+func Parse(arn string) (ARN, error) {
+ if !strings.HasPrefix(arn, arnPrefix) {
+ return ARN{}, errors.New(invalidPrefix)
+ }
+ sections := strings.SplitN(arn, arnDelimiter, arnSections)
+ if len(sections) != arnSections {
+ return ARN{}, errors.New(invalidSections)
+ }
+ return ARN{
+ Partition: sections[sectionPartition],
+ Service: sections[sectionService],
+ Region: sections[sectionRegion],
+ AccountID: sections[sectionAccountID],
+ Resource: sections[sectionResource],
+ }, nil
+}
+
+// IsARN returns whether the given string is an ARN by looking for
+// whether the string starts with "arn:" and contains the correct number
+// of sections delimited by colons(:).
+func IsARN(arn string) bool {
+ return strings.HasPrefix(arn, arnPrefix) && strings.Count(arn, ":") >= arnSections-1
+}
+
+// String returns the canonical representation of the ARN
+func (arn ARN) String() string {
+ return arnPrefix +
+ arn.Partition + arnDelimiter +
+ arn.Service + arnDelimiter +
+ arn.Region + arnDelimiter +
+ arn.AccountID + arnDelimiter +
+ arn.Resource
+}
diff --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.go
index 285e54d67..a4eb6a7f4 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
@@ -70,7 +70,7 @@ func rValuesAtPath(v interface{}, path string, createPath, caseSensitive, nilTer
value = value.FieldByNameFunc(func(name string) bool {
if c == name {
return true
- } else if !caseSensitive && strings.ToLower(name) == strings.ToLower(c) {
+ } else if !caseSensitive && strings.EqualFold(name, c) {
return true
}
return false
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/config.go b/vendor/github.com/aws/aws-sdk-go/aws/config.go
index 8a7699b96..2def23fa1 100644
--- a/vendor/github.com/aws/aws-sdk-go/aws/config.go
+++ b/vendor/github.com/aws/aws-sdk-go/aws/config.go
@@ -161,6 +161,17 @@ type Config struct {
// on GetObject API calls.
S3DisableContentMD5Validation *bool
+ // Set this to `true` to have the S3 service client to use the region specified
+ // in the ARN, when an ARN is provided as an argument to a bucket parameter.
+ S3UseARNRegion *bool
+
+ // Set this to `true` to enable the SDK to unmarshal API response header maps to
+ // normalized lower case map keys.
+ //
+ // For example S3's X-Amz-Meta prefixed header will be unmarshaled to lower case
+ // Metadata member's map keys. The value of the header in the map is unaffected.
+ LowerCaseHeaderMaps *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
@@ -249,6 +260,9 @@ type Config struct {
// STSRegionalEndpoint will enable regional or legacy endpoint resolving
STSRegionalEndpoint endpoints.STSRegionalEndpoint
+
+ // S3UsEast1RegionalEndpoint will enable regional or legacy endpoint resolving
+ S3UsEast1RegionalEndpoint endpoints.S3UsEast1RegionalEndpoint
}
// NewConfig returns a new Config pointer that can be chained with builder
@@ -382,6 +396,13 @@ func (c *Config) WithS3DisableContentMD5Validation(enable bool) *Config {
}
+// WithS3UseARNRegion sets a config S3UseARNRegion value and
+// returning a Config pointer for chaining
+func (c *Config) WithS3UseARNRegion(enable bool) *Config {
+ c.S3UseARNRegion = &enable
+ return c
+}
+
// WithUseDualStack sets a config UseDualStack value returning a Config
// pointer for chaining.
func (c *Config) WithUseDualStack(enable bool) *Config {
@@ -430,6 +451,13 @@ func (c *Config) WithSTSRegionalEndpoint(sre endpoints.STSRegionalEndpoint) *Con
return c
}
+// WithS3UsEast1RegionalEndpoint will set whether or not to use regional endpoint flag
+// when resolving the endpoint for a service
+func (c *Config) WithS3UsEast1RegionalEndpoint(sre endpoints.S3UsEast1RegionalEndpoint) *Config {
+ c.S3UsEast1RegionalEndpoint = sre
+ return c
+}
+
func mergeInConfig(dst *Config, other *Config) {
if other == nil {
return
@@ -503,6 +531,10 @@ func mergeInConfig(dst *Config, other *Config) {
dst.S3DisableContentMD5Validation = other.S3DisableContentMD5Validation
}
+ if other.S3UseARNRegion != nil {
+ dst.S3UseARNRegion = other.S3UseARNRegion
+ }
+
if other.UseDualStack != nil {
dst.UseDualStack = other.UseDualStack
}
@@ -534,6 +566,10 @@ func mergeInConfig(dst *Config, other *Config) {
if other.STSRegionalEndpoint != endpoints.UnsetSTSEndpoint {
dst.STSRegionalEndpoint = other.STSRegionalEndpoint
}
+
+ if other.S3UsEast1RegionalEndpoint != endpoints.UnsetS3UsEast1Endpoint {
+ dst.S3UsEast1RegionalEndpoint = other.S3UsEast1RegionalEndpoint
+ }
}
// Copy will return a shallow copy of the Config object. If any additional
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/context_background_1_5.go b/vendor/github.com/aws/aws-sdk-go/aws/context_background_1_5.go
index 66c5945db..2f9446333 100644
--- a/vendor/github.com/aws/aws-sdk-go/aws/context_background_1_5.go
+++ b/vendor/github.com/aws/aws-sdk-go/aws/context_background_1_5.go
@@ -2,42 +2,8 @@
package aws
-import "time"
-
-// An emptyCtx is a copy of the Go 1.7 context.emptyCtx type. This is copied to
-// provide a 1.6 and 1.5 safe version of context that is compatible with Go
-// 1.7's Context.
-//
-// 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 backgroundCtx:
- return "aws.BackgroundContext"
- }
- return "unknown empty Context"
-}
-
-var (
- backgroundCtx = new(emptyCtx)
+import (
+ "github.com/aws/aws-sdk-go/internal/context"
)
// BackgroundContext returns a context that will never be canceled, has no
@@ -52,5 +18,5 @@ var (
//
// See https://golang.org/pkg/context for more information on Contexts.
func BackgroundContext() Context {
- return backgroundCtx
+ return context.BackgroundCtx
}
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.go
index 0c60e612e..aa902d708 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
@@ -161,7 +161,7 @@ func handleSendError(r *request.Request, err error) {
}
// Catch all request errors, and let the default retrier determine
// if the error is retryable.
- r.Error = awserr.New("RequestError", "send request failed", err)
+ r.Error = awserr.New(request.ErrCodeRequestError, "send request failed", err)
// Override the error with a context canceled error, if that was canceled.
ctx := r.Context()
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/context_background_go1.5.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/context_background_go1.5.go
new file mode 100644
index 000000000..5852b2648
--- /dev/null
+++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/context_background_go1.5.go
@@ -0,0 +1,22 @@
+// +build !go1.7
+
+package credentials
+
+import (
+ "github.com/aws/aws-sdk-go/internal/context"
+)
+
+// backgroundContext returns a context that will never be canceled, has no
+// values, and no deadline. This context is used by the SDK to provide
+// backwards compatibility with non-context API operations and functionality.
+//
+// Go 1.6 and before:
+// This context function is equivalent to context.Background in the Go stdlib.
+//
+// Go 1.7 and later:
+// The context returned will be the value returned by context.Background()
+//
+// See https://golang.org/pkg/context for more information on Contexts.
+func backgroundContext() Context {
+ return context.BackgroundCtx
+}
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/context_background_go1.7.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/context_background_go1.7.go
new file mode 100644
index 000000000..388b21541
--- /dev/null
+++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/context_background_go1.7.go
@@ -0,0 +1,20 @@
+// +build go1.7
+
+package credentials
+
+import "context"
+
+// backgroundContext returns a context that will never be canceled, has no
+// values, and no deadline. This context is used by the SDK to provide
+// backwards compatibility with non-context API operations and functionality.
+//
+// Go 1.6 and before:
+// This context function is equivalent to context.Background in the Go stdlib.
+//
+// Go 1.7 and later:
+// The context returned will be the value returned by context.Background()
+//
+// See https://golang.org/pkg/context for more information on Contexts.
+func backgroundContext() Context {
+ return context.Background()
+}
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/context_go1.5.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/context_go1.5.go
new file mode 100644
index 000000000..8152a864a
--- /dev/null
+++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/context_go1.5.go
@@ -0,0 +1,39 @@
+// +build !go1.9
+
+package credentials
+
+import "time"
+
+// Context is an copy of the Go v1.7 stdlib's context.Context interface.
+// It is represented as a SDK interface to enable you to use the "WithContext"
+// API methods with Go v1.6 and a Context type such as golang.org/x/net/context.
+//
+// This type, aws.Context, and context.Context are equivalent.
+//
+// See https://golang.org/pkg/context on how to use contexts.
+type Context interface {
+ // Deadline returns the time when work done on behalf of this context
+ // should be canceled. Deadline returns ok==false when no deadline is
+ // set. Successive calls to Deadline return the same results.
+ Deadline() (deadline time.Time, ok bool)
+
+ // Done returns a channel that's closed when work done on behalf of this
+ // context should be canceled. Done may return nil if this context can
+ // never be canceled. Successive calls to Done return the same value.
+ Done() <-chan struct{}
+
+ // Err returns a non-nil error value after Done is closed. Err returns
+ // Canceled if the context was canceled or DeadlineExceeded if the
+ // context's deadline passed. No other values for Err are defined.
+ // After Done is closed, successive calls to Err return the same value.
+ Err() error
+
+ // Value returns the value associated with this context for key, or nil
+ // if no value is associated with key. Successive calls to Value with
+ // the same key returns the same result.
+ //
+ // Use context values only for request-scoped data that transits
+ // processes and API boundaries, not for passing optional parameters to
+ // functions.
+ Value(key interface{}) interface{}
+}
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/context_go1.9.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/context_go1.9.go
new file mode 100644
index 000000000..4356edb3d
--- /dev/null
+++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/context_go1.9.go
@@ -0,0 +1,13 @@
+// +build go1.9
+
+package credentials
+
+import "context"
+
+// Context is an alias of the Go stdlib's context.Context interface.
+// It can be used within the SDK's API operation "WithContext" methods.
+//
+// This type, aws.Context, and context.Context are equivalent.
+//
+// See https://golang.org/pkg/context on how to use contexts.
+type Context = context.Context
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/credentials.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/credentials.go
index 4af592158..c75d7bba0 100644
--- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/credentials.go
+++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/credentials.go
@@ -50,10 +50,11 @@ package credentials
import (
"fmt"
- "sync"
+ "sync/atomic"
"time"
"github.com/aws/aws-sdk-go/aws/awserr"
+ "github.com/aws/aws-sdk-go/internal/sync/singleflight"
)
// AnonymousCredentials is an empty Credential object that can be used as
@@ -197,24 +198,24 @@ func (e *Expiry) ExpiresAt() time.Time {
// first instance of the credentials Value. All calls to Get() after that
// will return the cached credentials Value until IsExpired() returns true.
type Credentials struct {
- creds Value
- forceRefresh bool
-
- m sync.RWMutex
+ creds atomic.Value
+ sf singleflight.Group
provider Provider
}
// NewCredentials returns a pointer to a new Credentials with the provider set.
func NewCredentials(provider Provider) *Credentials {
- return &Credentials{
- provider: provider,
- forceRefresh: true,
+ c := &Credentials{
+ provider: provider,
}
+ c.creds.Store(Value{})
+ return c
}
-// Get returns the credentials value, or error if the credentials Value failed
-// to be retrieved.
+// GetWithContext returns the credentials value, or error if the credentials
+// Value failed to be retrieved. Will return early if the passed in context is
+// canceled.
//
// Will return the cached credentials Value if it has not expired. If the
// credentials Value has expired the Provider's Retrieve() will be called
@@ -222,31 +223,50 @@ func NewCredentials(provider Provider) *Credentials {
//
// If Credentials.Expire() was called the credentials Value will be force
// expired, and the next call to Get() will cause them to be refreshed.
-func (c *Credentials) Get() (Value, error) {
- // Check the cached credentials first with just the read lock.
- c.m.RLock()
- if !c.isExpired() {
- creds := c.creds
- c.m.RUnlock()
- return creds, nil
+//
+// Passed in Context is equivalent to aws.Context, and context.Context.
+func (c *Credentials) GetWithContext(ctx Context) (Value, error) {
+ if curCreds := c.creds.Load(); !c.isExpired(curCreds) {
+ return curCreds.(Value), nil
}
- c.m.RUnlock()
-
- // Credentials are expired need to retrieve the credentials taking the full
- // lock.
- c.m.Lock()
- defer c.m.Unlock()
-
- if c.isExpired() {
- creds, err := c.provider.Retrieve()
- if err != nil {
- return Value{}, err
- }
- c.creds = creds
- c.forceRefresh = false
+
+ // Cannot pass context down to the actual retrieve, because the first
+ // context would cancel the whole group when there is not direct
+ // association of items in the group.
+ resCh := c.sf.DoChan("", c.singleRetrieve)
+ select {
+ case res := <-resCh:
+ return res.Val.(Value), res.Err
+ case <-ctx.Done():
+ return Value{}, awserr.New("RequestCanceled",
+ "request context canceled", ctx.Err())
}
+}
+
+func (c *Credentials) singleRetrieve() (interface{}, error) {
+ if curCreds := c.creds.Load(); !c.isExpired(curCreds) {
+ return curCreds.(Value), nil
+ }
+
+ creds, err := c.provider.Retrieve()
+ if err == nil {
+ c.creds.Store(creds)
+ }
+
+ return creds, err
+}
- return c.creds, nil
+// Get returns the credentials value, or error if the credentials Value failed
+// to be retrieved.
+//
+// Will return the cached credentials Value if it has not expired. If the
+// credentials Value has expired the Provider's Retrieve() will be called
+// to refresh the credentials.
+//
+// If Credentials.Expire() was called the credentials Value will be force
+// expired, and the next call to Get() will cause them to be refreshed.
+func (c *Credentials) Get() (Value, error) {
+ return c.GetWithContext(backgroundContext())
}
// Expire expires the credentials and forces them to be retrieved on the
@@ -255,10 +275,7 @@ func (c *Credentials) Get() (Value, error) {
// This will override the Provider's expired state, and force Credentials
// to call the Provider's Retrieve().
func (c *Credentials) Expire() {
- c.m.Lock()
- defer c.m.Unlock()
-
- c.forceRefresh = true
+ c.creds.Store(Value{})
}
// IsExpired returns if the credentials are no longer valid, and need
@@ -267,31 +284,25 @@ func (c *Credentials) Expire() {
// If the Credentials were forced to be expired with Expire() this will
// reflect that override.
func (c *Credentials) IsExpired() bool {
- c.m.RLock()
- defer c.m.RUnlock()
-
- return c.isExpired()
+ return c.isExpired(c.creds.Load())
}
// isExpired helper method wrapping the definition of expired credentials.
-func (c *Credentials) isExpired() bool {
- return c.forceRefresh || c.provider.IsExpired()
+func (c *Credentials) isExpired(creds interface{}) bool {
+ return creds == nil || creds.(Value) == Value{} || c.provider.IsExpired()
}
// ExpiresAt provides access to the functionality of the Expirer interface of
// the underlying Provider, if it supports that interface. Otherwise, it returns
// an error.
func (c *Credentials) ExpiresAt() (time.Time, error) {
- c.m.RLock()
- defer c.m.RUnlock()
-
expirer, ok := c.provider.(Expirer)
if !ok {
return time.Time{}, awserr.New("ProviderNotExpirer",
- fmt.Sprintf("provider %s does not support ExpiresAt()", c.creds.ProviderName),
+ fmt.Sprintf("provider %s does not support ExpiresAt()", c.creds.Load().(Value).ProviderName),
nil)
}
- if c.forceRefresh {
+ if c.creds.Load().(Value) == (Value{}) {
// set expiration time to the distant past
return time.Time{}, nil
}
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/provider.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/provider.go
index 1980c8c14..e62483600 100644
--- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/provider.go
+++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/provider.go
@@ -90,6 +90,7 @@ import (
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/credentials"
+ "github.com/aws/aws-sdk-go/internal/sdkio"
)
const (
@@ -142,7 +143,7 @@ const (
// DefaultBufSize limits buffer size from growing to an enormous
// amount due to a faulty process.
- DefaultBufSize = 1024
+ DefaultBufSize = int(8 * sdkio.KibiByte)
// DefaultTimeout default limit on time a process can run.
DefaultTimeout = time.Duration(1) * time.Minute
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.go
index 2e528d130..9f37f44bc 100644
--- 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.go
@@ -144,6 +144,13 @@ type AssumeRoleProvider struct {
// Session name, if you wish to reuse the credentials elsewhere.
RoleSessionName string
+ // Optional, you can pass tag key-value pairs to your session. These tags are called session tags.
+ Tags []*sts.Tag
+
+ // A list of keys for session tags that you want to set as transitive.
+ // If you set a tag key as transitive, the corresponding key and value passes to subsequent sessions in a role chain.
+ TransitiveTagKeys []*string
+
// Expiry duration of the STS credentials. Defaults to 15 minutes if not set.
Duration time.Duration
@@ -269,10 +276,12 @@ func (p *AssumeRoleProvider) Retrieve() (credentials.Value, error) {
}
jitter := time.Duration(sdkrand.SeededRand.Float64() * p.MaxJitterFrac * float64(p.Duration))
input := &sts.AssumeRoleInput{
- DurationSeconds: aws.Int64(int64((p.Duration - jitter) / time.Second)),
- RoleArn: aws.String(p.RoleARN),
- RoleSessionName: aws.String(p.RoleSessionName),
- ExternalId: p.ExternalID,
+ DurationSeconds: aws.Int64(int64((p.Duration - jitter) / time.Second)),
+ RoleArn: aws.String(p.RoleARN),
+ RoleSessionName: aws.String(p.RoleSessionName),
+ ExternalId: p.ExternalID,
+ Tags: p.Tags,
+ TransitiveTagKeys: p.TransitiveTagKeys,
}
if p.Policy != nil {
input.Policy = p.Policy
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/csm/reporter.go b/vendor/github.com/aws/aws-sdk-go/aws/csm/reporter.go
index 9186587fc..835bcd49c 100644
--- a/vendor/github.com/aws/aws-sdk-go/aws/csm/reporter.go
+++ b/vendor/github.com/aws/aws-sdk-go/aws/csm/reporter.go
@@ -89,7 +89,7 @@ func getMetricException(err awserr.Error) metricException {
code := err.Code()
switch code {
- case "RequestError",
+ case request.ErrCodeRequestError,
request.ErrCodeSerialization,
request.CanceledErrorCode:
return sdkException{
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.go
index d126764ce..12897eef6 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
@@ -4,6 +4,7 @@ import (
"encoding/json"
"fmt"
"net/http"
+ "strconv"
"strings"
"time"
@@ -12,8 +13,41 @@ import (
"github.com/aws/aws-sdk-go/internal/sdkuri"
)
+// getToken uses the duration to return a token for EC2 metadata service,
+// or an error if the request failed.
+func (c *EC2Metadata) getToken(duration time.Duration) (tokenOutput, error) {
+ op := &request.Operation{
+ Name: "GetToken",
+ HTTPMethod: "PUT",
+ HTTPPath: "/api/token",
+ }
+
+ var output tokenOutput
+ req := c.NewRequest(op, nil, &output)
+
+ // remove the fetch token handler from the request handlers to avoid infinite recursion
+ req.Handlers.Sign.RemoveByName(fetchTokenHandlerName)
+
+ // Swap the unmarshalMetadataHandler with unmarshalTokenHandler on this request.
+ req.Handlers.Unmarshal.Swap(unmarshalMetadataHandlerName, unmarshalTokenHandler)
+
+ ttl := strconv.FormatInt(int64(duration/time.Second), 10)
+ req.HTTPRequest.Header.Set(ttlHeader, ttl)
+
+ err := req.Send()
+
+ // Errors with bad request status should be returned.
+ if err != nil {
+ err = awserr.NewRequestFailure(
+ awserr.New(req.HTTPResponse.Status, http.StatusText(req.HTTPResponse.StatusCode), err),
+ req.HTTPResponse.StatusCode, req.RequestID)
+ }
+
+ return output, err
+}
+
// GetMetadata uses the path provided to request information from the EC2
-// instance metdata service. The content will be returned as a string, or
+// instance metadata 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{
@@ -21,11 +55,11 @@ func (c *EC2Metadata) GetMetadata(p string) (string, error) {
HTTPMethod: "GET",
HTTPPath: sdkuri.PathJoin("/meta-data", p),
}
-
output := &metadataOutput{}
+
req := c.NewRequest(op, nil, output)
- err := req.Send()
+ err := req.Send()
return output.Content, err
}
@@ -41,13 +75,8 @@ func (c *EC2Metadata) GetUserData() (string, error) {
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)
- }
- })
- err := req.Send()
+ err := req.Send()
return output.Content, err
}
@@ -63,8 +92,8 @@ func (c *EC2Metadata) GetDynamicData(p string) (string, error) {
output := &metadataOutput{}
req := c.NewRequest(op, nil, output)
- err := req.Send()
+ err := req.Send()
return output.Content, err
}
@@ -116,17 +145,17 @@ func (c *EC2Metadata) IAMInfo() (EC2IAMInfo, error) {
// Region returns the region the instance is running in.
func (c *EC2Metadata) Region() (string, error) {
- resp, err := c.GetMetadata("placement/availability-zone")
+ ec2InstanceIdentityDocument, err := c.GetInstanceIdentityDocument()
if err != nil {
return "", err
}
-
- if len(resp) == 0 {
- return "", awserr.New("EC2MetadataError", "invalid Region response", nil)
+ // extract region from the ec2InstanceIdentityDocument
+ region := ec2InstanceIdentityDocument.Region
+ if len(region) == 0 {
+ return "", awserr.New("EC2MetadataError", "invalid region received for ec2metadata instance", nil)
}
-
- // returns region without the suffix. Eg: us-west-2a becomes us-west-2
- return resp[:len(resp)-1], nil
+ // returns region
+ return region, nil
}
// Available returns if the application has access to the EC2 Metadata service.
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/service.go b/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/service.go
index 4c5636e35..b8b2940d7 100644
--- a/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/service.go
+++ b/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/service.go
@@ -13,6 +13,7 @@ import (
"io"
"net/http"
"os"
+ "strconv"
"strings"
"time"
@@ -24,9 +25,25 @@ import (
"github.com/aws/aws-sdk-go/aws/request"
)
-// ServiceName is the name of the service.
-const ServiceName = "ec2metadata"
-const disableServiceEnvVar = "AWS_EC2_METADATA_DISABLED"
+const (
+ // ServiceName is the name of the service.
+ ServiceName = "ec2metadata"
+ disableServiceEnvVar = "AWS_EC2_METADATA_DISABLED"
+
+ // Headers for Token and TTL
+ ttlHeader = "x-aws-ec2-metadata-token-ttl-seconds"
+ tokenHeader = "x-aws-ec2-metadata-token"
+
+ // Named Handler constants
+ fetchTokenHandlerName = "FetchTokenHandler"
+ unmarshalMetadataHandlerName = "unmarshalMetadataHandler"
+ unmarshalTokenHandlerName = "unmarshalTokenHandler"
+ enableTokenProviderHandlerName = "enableTokenProviderHandler"
+
+ // TTL constants
+ defaultTTL = 21600 * time.Second
+ ttlExpirationWindow = 30 * time.Second
+)
// A EC2Metadata is an EC2 Metadata service Client.
type EC2Metadata struct {
@@ -63,8 +80,10 @@ func NewClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
// use a shorter timeout than default because the metadata
// service is local if it is running, and to fail faster
// if not running on an ec2 instance.
- Timeout: 5 * time.Second,
+ Timeout: 1 * time.Second,
}
+ // max number of retries on the client operation
+ cfg.MaxRetries = aws.Int(2)
}
svc := &EC2Metadata{
@@ -80,13 +99,27 @@ func NewClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
),
}
- svc.Handlers.Unmarshal.PushBack(unmarshalHandler)
+ // token provider instance
+ tp := newTokenProvider(svc, defaultTTL)
+
+ // NamedHandler for fetching token
+ svc.Handlers.Sign.PushBackNamed(request.NamedHandler{
+ Name: fetchTokenHandlerName,
+ Fn: tp.fetchTokenHandler,
+ })
+ // NamedHandler for enabling token provider
+ svc.Handlers.Complete.PushBackNamed(request.NamedHandler{
+ Name: enableTokenProviderHandlerName,
+ Fn: tp.enableTokenProviderHandler,
+ })
+
+ svc.Handlers.Unmarshal.PushBackNamed(unmarshalHandler)
svc.Handlers.UnmarshalError.PushBack(unmarshalError)
svc.Handlers.Validate.Clear()
svc.Handlers.Validate.PushBack(validateEndpointHandler)
// Disable the EC2 Metadata service if the environment variable is set.
- // This shortcirctes the service's functionality to always fail to send
+ // This short-circuits the service's functionality to always fail to send
// requests.
if strings.ToLower(os.Getenv(disableServiceEnvVar)) == "true" {
svc.Handlers.Send.SwapNamed(request.NamedHandler{
@@ -107,7 +140,6 @@ func NewClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
for _, option := range opts {
option(svc.Client)
}
-
return svc
}
@@ -119,30 +151,74 @@ type metadataOutput struct {
Content string
}
-func unmarshalHandler(r *request.Request) {
- defer r.HTTPResponse.Body.Close()
- b := &bytes.Buffer{}
- if _, err := io.Copy(b, r.HTTPResponse.Body); err != nil {
- r.Error = awserr.New(request.ErrCodeSerialization, "unable to unmarshal EC2 metadata response", err)
- return
- }
+type tokenOutput struct {
+ Token string
+ TTL time.Duration
+}
- if data, ok := r.Data.(*metadataOutput); ok {
- data.Content = b.String()
- }
+// unmarshal token handler is used to parse the response of a getToken operation
+var unmarshalTokenHandler = request.NamedHandler{
+ Name: unmarshalTokenHandlerName,
+ Fn: func(r *request.Request) {
+ defer r.HTTPResponse.Body.Close()
+ var b bytes.Buffer
+ if _, err := io.Copy(&b, r.HTTPResponse.Body); err != nil {
+ r.Error = awserr.NewRequestFailure(awserr.New(request.ErrCodeSerialization,
+ "unable to unmarshal EC2 metadata response", err), r.HTTPResponse.StatusCode, r.RequestID)
+ return
+ }
+
+ v := r.HTTPResponse.Header.Get(ttlHeader)
+ data, ok := r.Data.(*tokenOutput)
+ if !ok {
+ return
+ }
+
+ data.Token = b.String()
+ // TTL is in seconds
+ i, err := strconv.ParseInt(v, 10, 64)
+ if err != nil {
+ r.Error = awserr.NewRequestFailure(awserr.New(request.ParamFormatErrCode,
+ "unable to parse EC2 token TTL response", err), r.HTTPResponse.StatusCode, r.RequestID)
+ return
+ }
+ t := time.Duration(i) * time.Second
+ data.TTL = t
+ },
+}
+
+var unmarshalHandler = request.NamedHandler{
+ Name: unmarshalMetadataHandlerName,
+ Fn: func(r *request.Request) {
+ defer r.HTTPResponse.Body.Close()
+ var b bytes.Buffer
+ if _, err := io.Copy(&b, r.HTTPResponse.Body); err != nil {
+ r.Error = awserr.NewRequestFailure(awserr.New(request.ErrCodeSerialization,
+ "unable to unmarshal EC2 metadata response", err), r.HTTPResponse.StatusCode, r.RequestID)
+ return
+ }
+
+ if data, ok := r.Data.(*metadataOutput); ok {
+ data.Content = b.String()
+ }
+ },
}
func unmarshalError(r *request.Request) {
defer r.HTTPResponse.Body.Close()
- b := &bytes.Buffer{}
- if _, err := io.Copy(b, r.HTTPResponse.Body); err != nil {
- r.Error = awserr.New(request.ErrCodeSerialization, "unable to unmarshal EC2 metadata error response", err)
+ var b bytes.Buffer
+
+ if _, err := io.Copy(&b, r.HTTPResponse.Body); err != nil {
+ r.Error = awserr.NewRequestFailure(
+ awserr.New(request.ErrCodeSerialization, "unable to unmarshal EC2 metadata error response", err),
+ r.HTTPResponse.StatusCode, r.RequestID)
return
}
// 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("EC2MetadataError", "failed to make EC2Metadata request", errors.New(b.String()))
+ r.Error = awserr.NewRequestFailure(awserr.New("EC2MetadataError", "failed to make EC2Metadata request", errors.New(b.String())),
+ r.HTTPResponse.StatusCode, r.RequestID)
}
func validateEndpointHandler(r *request.Request) {
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/token_provider.go b/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/token_provider.go
new file mode 100644
index 000000000..663372a91
--- /dev/null
+++ b/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/token_provider.go
@@ -0,0 +1,92 @@
+package ec2metadata
+
+import (
+ "net/http"
+ "sync/atomic"
+ "time"
+
+ "github.com/aws/aws-sdk-go/aws/awserr"
+ "github.com/aws/aws-sdk-go/aws/credentials"
+ "github.com/aws/aws-sdk-go/aws/request"
+)
+
+// A tokenProvider struct provides access to EC2Metadata client
+// and atomic instance of a token, along with configuredTTL for it.
+// tokenProvider also provides an atomic flag to disable the
+// fetch token operation.
+// The disabled member will use 0 as false, and 1 as true.
+type tokenProvider struct {
+ client *EC2Metadata
+ token atomic.Value
+ configuredTTL time.Duration
+ disabled uint32
+}
+
+// A ec2Token struct helps use of token in EC2 Metadata service ops
+type ec2Token struct {
+ token string
+ credentials.Expiry
+}
+
+// newTokenProvider provides a pointer to a tokenProvider instance
+func newTokenProvider(c *EC2Metadata, duration time.Duration) *tokenProvider {
+ return &tokenProvider{client: c, configuredTTL: duration}
+}
+
+// fetchTokenHandler fetches token for EC2Metadata service client by default.
+func (t *tokenProvider) fetchTokenHandler(r *request.Request) {
+
+ // short-circuits to insecure data flow if tokenProvider is disabled.
+ if v := atomic.LoadUint32(&t.disabled); v == 1 {
+ return
+ }
+
+ if ec2Token, ok := t.token.Load().(ec2Token); ok && !ec2Token.IsExpired() {
+ r.HTTPRequest.Header.Set(tokenHeader, ec2Token.token)
+ return
+ }
+
+ output, err := t.client.getToken(t.configuredTTL)
+
+ if err != nil {
+
+ // change the disabled flag on token provider to true,
+ // when error is request timeout error.
+ if requestFailureError, ok := err.(awserr.RequestFailure); ok {
+ switch requestFailureError.StatusCode() {
+ case http.StatusForbidden, http.StatusNotFound, http.StatusMethodNotAllowed:
+ atomic.StoreUint32(&t.disabled, 1)
+ case http.StatusBadRequest:
+ r.Error = requestFailureError
+ }
+
+ // Check if request timed out while waiting for response
+ if e, ok := requestFailureError.OrigErr().(awserr.Error); ok {
+ if e.Code() == request.ErrCodeRequestError {
+ atomic.StoreUint32(&t.disabled, 1)
+ }
+ }
+ }
+ return
+ }
+
+ newToken := ec2Token{
+ token: output.Token,
+ }
+ newToken.SetExpiration(time.Now().Add(output.TTL), ttlExpirationWindow)
+ t.token.Store(newToken)
+
+ // Inject token header to the request.
+ if ec2Token, ok := t.token.Load().(ec2Token); ok {
+ r.HTTPRequest.Header.Set(tokenHeader, ec2Token.token)
+ }
+}
+
+// enableTokenProviderHandler enables the token provider
+func (t *tokenProvider) enableTokenProviderHandler(r *request.Request) {
+ // If the error code status is 401, we enable the token provider
+ if e, ok := r.Error.(awserr.RequestFailure); ok && e != nil &&
+ e.StatusCode() == http.StatusUnauthorized {
+ atomic.StoreUint32(&t.disabled, 0)
+ }
+}
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/endpoints/decode.go b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/decode.go
index 87b9ff3ff..343a2106f 100644
--- a/vendor/github.com/aws/aws-sdk-go/aws/endpoints/decode.go
+++ b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/decode.go
@@ -83,6 +83,7 @@ func decodeV3Endpoints(modelDef modelDefinition, opts DecodeModelOptions) (Resol
p := &ps[i]
custAddEC2Metadata(p)
custAddS3DualStack(p)
+ custRegionalS3(p)
custRmIotDataService(p)
custFixAppAutoscalingChina(p)
custFixAppAutoscalingUsGov(p)
@@ -100,6 +101,33 @@ func custAddS3DualStack(p *partition) {
custAddDualstack(p, "s3-control")
}
+func custRegionalS3(p *partition) {
+ if p.ID != "aws" {
+ return
+ }
+
+ service, ok := p.Services["s3"]
+ if !ok {
+ return
+ }
+
+ // If global endpoint already exists no customization needed.
+ if _, ok := service.Endpoints["aws-global"]; ok {
+ return
+ }
+
+ service.PartitionEndpoint = "aws-global"
+ service.Endpoints["us-east-1"] = endpoint{}
+ service.Endpoints["aws-global"] = endpoint{
+ Hostname: "s3.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ }
+
+ p.Services["s3"] = service
+}
+
func custAddDualstack(p *partition, svcName string) {
s, ok := p.Services[svcName]
if !ok {
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go
index f63449788..36029a3d4 100644
--- a/vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go
+++ b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go
@@ -169,7 +169,7 @@ var awsPartition = partition{
"us-east-1": endpoint{},
},
},
- "acm": service{
+ "access-analyzer": service{
Endpoints: endpoints{
"ap-east-1": endpoint{},
@@ -192,6 +192,59 @@ var awsPartition = partition{
"us-west-2": endpoint{},
},
},
+ "acm": service{
+
+ Endpoints: endpoints{
+ "ap-east-1": endpoint{},
+ "ap-northeast-1": endpoint{},
+ "ap-northeast-2": endpoint{},
+ "ap-south-1": endpoint{},
+ "ap-southeast-1": endpoint{},
+ "ap-southeast-2": endpoint{},
+ "ca-central-1": endpoint{},
+ "ca-central-1-fips": endpoint{
+ Hostname: "acm-fips.ca-central-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ca-central-1",
+ },
+ },
+ "eu-central-1": endpoint{},
+ "eu-north-1": endpoint{},
+ "eu-west-1": endpoint{},
+ "eu-west-2": endpoint{},
+ "eu-west-3": endpoint{},
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-1-fips": endpoint{
+ Hostname: "acm-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "us-east-2": endpoint{},
+ "us-east-2-fips": endpoint{
+ Hostname: "acm-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "us-west-1": endpoint{},
+ "us-west-1-fips": endpoint{
+ Hostname: "acm-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "us-west-2": endpoint{},
+ "us-west-2-fips": endpoint{
+ Hostname: "acm-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ },
+ },
"acm-pca": service{
Defaults: endpoint{
Protocols: []string{"https"},
@@ -209,12 +262,42 @@ var awsPartition = partition{
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
- "me-south-1": endpoint{},
- "sa-east-1": endpoint{},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-1": endpoint{},
- "us-west-2": endpoint{},
+ "fips-ca-central-1": endpoint{
+ Hostname: "acm-pca-fips.ca-central-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ca-central-1",
+ },
+ },
+ "fips-us-east-1": endpoint{
+ Hostname: "acm-pca-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "acm-pca-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "acm-pca-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "acm-pca-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"api.ecr": service{
@@ -425,11 +508,7 @@ var awsPartition = partition{
},
"application-autoscaling": service{
Defaults: endpoint{
- Hostname: "autoscaling.{region}.amazonaws.com",
Protocols: []string{"http", "https"},
- CredentialScope: credentialScope{
- Service: "application-autoscaling",
- },
},
Endpoints: endpoints{
"ap-east-1": endpoint{},
@@ -462,9 +541,12 @@ var awsPartition = partition{
"ap-southeast-2": endpoint{},
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
+ "eu-north-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
"us-east-1": endpoint{},
"us-east-2": endpoint{},
"us-west-1": endpoint{},
@@ -527,6 +609,7 @@ var awsPartition = partition{
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
"me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
"us-east-1": endpoint{},
"us-east-2": endpoint{},
"us-west-1": endpoint{},
@@ -560,11 +643,7 @@ var awsPartition = partition{
},
"autoscaling-plans": service{
Defaults: endpoint{
- Hostname: "autoscaling.{region}.amazonaws.com",
Protocols: []string{"http", "https"},
- CredentialScope: credentialScope{
- Service: "autoscaling-plans",
- },
},
Endpoints: endpoints{
"ap-northeast-1": endpoint{},
@@ -675,9 +754,15 @@ var awsPartition = partition{
Endpoints: endpoints{
"ap-northeast-1": endpoint{},
+ "ap-northeast-2": endpoint{},
+ "ap-south-1": endpoint{},
"ap-southeast-1": endpoint{},
+ "ap-southeast-2": endpoint{},
+ "ca-central-1": endpoint{},
"eu-central-1": endpoint{},
+ "eu-north-1": endpoint{},
"eu-west-1": endpoint{},
+ "eu-west-2": endpoint{},
"us-east-1": endpoint{},
"us-east-2": endpoint{},
"us-west-2": endpoint{},
@@ -864,6 +949,7 @@ var awsPartition = partition{
"codecommit": service{
Endpoints: endpoints{
+ "ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
"ap-south-1": endpoint{},
@@ -1029,6 +1115,9 @@ var awsPartition = partition{
Protocols: []string{"https"},
},
Endpoints: endpoints{
+ "ap-northeast-1": endpoint{},
+ "ap-northeast-2": endpoint{},
+ "ap-south-1": endpoint{},
"ap-southeast-1": endpoint{},
"ap-southeast-2": endpoint{},
"ca-central-1": endpoint{},
@@ -1079,8 +1168,10 @@ var awsPartition = partition{
Endpoints: endpoints{
"ap-northeast-1": endpoint{},
+ "ap-southeast-1": endpoint{},
"ap-southeast-2": endpoint{},
"eu-central-1": endpoint{},
+ "eu-west-2": endpoint{},
"us-east-1": endpoint{},
"us-west-2": endpoint{},
},
@@ -1104,6 +1195,22 @@ var awsPartition = partition{
"us-west-2": endpoint{},
},
},
+ "dataexchange": service{
+
+ Endpoints: endpoints{
+ "ap-northeast-1": endpoint{},
+ "ap-northeast-2": endpoint{},
+ "ap-southeast-1": endpoint{},
+ "ap-southeast-2": endpoint{},
+ "eu-central-1": endpoint{},
+ "eu-west-1": endpoint{},
+ "eu-west-2": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
+ },
+ },
"datapipeline": service{
Endpoints: endpoints{
@@ -1117,12 +1224,15 @@ var awsPartition = partition{
"datasync": service{
Endpoints: endpoints{
+ "ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
+ "ap-south-1": endpoint{},
"ap-southeast-1": endpoint{},
"ap-southeast-2": endpoint{},
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
+ "eu-north-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
@@ -1151,6 +1261,7 @@ var awsPartition = partition{
},
},
"me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
"us-east-1": endpoint{},
"us-east-2": endpoint{},
"us-west-1": endpoint{},
@@ -1166,6 +1277,8 @@ var awsPartition = partition{
"ap-southeast-2": endpoint{},
"eu-central-1": endpoint{},
"eu-west-1": endpoint{},
+ "eu-west-2": endpoint{},
+ "eu-west-3": endpoint{},
"sa-east-1": endpoint{},
"us-east-1": endpoint{},
"us-east-2": endpoint{},
@@ -1205,7 +1318,8 @@ var awsPartition = partition{
"discovery": service{
Endpoints: endpoints{
- "us-west-2": endpoint{},
+ "eu-central-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"dms": service{
@@ -1264,6 +1378,12 @@ var awsPartition = partition{
Region: "ap-southeast-2",
},
},
+ "ca-central-1": endpoint{
+ Hostname: "rds.ca-central-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ca-central-1",
+ },
+ },
"eu-central-1": endpoint{
Hostname: "rds.eu-central-1.amazonaws.com",
CredentialScope: credentialScope{
@@ -1322,6 +1442,7 @@ var awsPartition = partition{
"eu-north-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
+ "eu-west-3": endpoint{},
"sa-east-1": endpoint{},
"us-east-1": endpoint{},
"us-east-2": endpoint{},
@@ -1505,6 +1626,7 @@ var awsPartition = partition{
"elasticfilesystem": service{
Endpoints: endpoints{
+ "ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
"ap-south-1": endpoint{},
@@ -1512,9 +1634,12 @@ var awsPartition = partition{
"ap-southeast-2": endpoint{},
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
+ "eu-north-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
"us-east-1": endpoint{},
"us-east-2": endpoint{},
"us-west-1": endpoint{},
@@ -1692,11 +1817,16 @@ var awsPartition = partition{
Endpoints: endpoints{
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
+ "ap-south-1": endpoint{},
"ap-southeast-1": endpoint{},
"ap-southeast-2": endpoint{},
+ "ca-central-1": endpoint{},
"eu-central-1": endpoint{},
+ "eu-north-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
+ "eu-west-3": endpoint{},
+ "sa-east-1": endpoint{},
"us-east-1": endpoint{},
"us-east-2": endpoint{},
"us-west-1": endpoint{},
@@ -1707,6 +1837,7 @@ var awsPartition = partition{
Endpoints: endpoints{
"ap-northeast-1": endpoint{},
+ "ap-northeast-2": endpoint{},
"ap-southeast-1": endpoint{},
"eu-west-1": endpoint{},
"us-east-1": endpoint{},
@@ -1830,8 +1961,10 @@ var awsPartition = partition{
"groundstation": service{
Endpoints: endpoints{
- "us-east-2": endpoint{},
- "us-west-2": endpoint{},
+ "eu-north-1": endpoint{},
+ "me-south-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-2": endpoint{},
},
},
"guardduty": service{
@@ -2053,6 +2186,29 @@ var awsPartition = partition{
},
},
},
+ "iotsecuredtunneling": service{
+
+ Endpoints: endpoints{
+ "ap-east-1": endpoint{},
+ "ap-northeast-1": endpoint{},
+ "ap-northeast-2": endpoint{},
+ "ap-south-1": endpoint{},
+ "ap-southeast-1": endpoint{},
+ "ap-southeast-2": endpoint{},
+ "ca-central-1": endpoint{},
+ "eu-central-1": endpoint{},
+ "eu-north-1": endpoint{},
+ "eu-west-1": endpoint{},
+ "eu-west-2": endpoint{},
+ "eu-west-3": endpoint{},
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
+ },
+ },
"iotthingsgraph": service{
Defaults: endpoint{
CredentialScope: credentialScope{
@@ -2083,6 +2239,7 @@ var awsPartition = partition{
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
+ "me-south-1": endpoint{},
"sa-east-1": endpoint{},
"us-east-1": endpoint{},
"us-east-2": endpoint{},
@@ -2116,16 +2273,20 @@ var awsPartition = partition{
"kinesisanalytics": service{
Endpoints: endpoints{
+ "ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
"ap-south-1": endpoint{},
"ap-southeast-1": endpoint{},
"ap-southeast-2": endpoint{},
+ "ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
"us-east-1": endpoint{},
"us-east-2": endpoint{},
"us-west-2": endpoint{},
@@ -2134,11 +2295,20 @@ var awsPartition = partition{
"kinesisvideo": service{
Endpoints: endpoints{
+ "ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
+ "ap-northeast-2": endpoint{},
+ "ap-south-1": endpoint{},
+ "ap-southeast-1": endpoint{},
"ap-southeast-2": endpoint{},
+ "ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-west-1": endpoint{},
+ "eu-west-2": endpoint{},
+ "eu-west-3": endpoint{},
+ "sa-east-1": endpoint{},
"us-east-1": endpoint{},
+ "us-east-2": endpoint{},
"us-west-2": endpoint{},
},
},
@@ -2169,12 +2339,17 @@ var awsPartition = partition{
Endpoints: endpoints{
"ap-northeast-1": endpoint{},
+ "ap-northeast-2": endpoint{},
"ap-south-1": endpoint{},
"ap-southeast-1": endpoint{},
"ap-southeast-2": endpoint{},
+ "ca-central-1": endpoint{},
+ "eu-central-1": endpoint{},
"eu-west-1": endpoint{},
+ "eu-west-2": endpoint{},
"us-east-1": endpoint{},
"us-east-2": endpoint{},
+ "us-west-1": endpoint{},
"us-west-2": endpoint{},
},
},
@@ -2272,6 +2447,12 @@ var awsPartition = partition{
"us-east-1": endpoint{},
},
},
+ "managedblockchain": service{
+
+ Endpoints: endpoints{
+ "us-east-1": endpoint{},
+ },
+ },
"marketplacecommerceanalytics": service{
Endpoints: endpoints{
@@ -2281,6 +2462,7 @@ var awsPartition = partition{
"mediaconnect": service{
Endpoints: endpoints{
+ "ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
"ap-south-1": endpoint{},
@@ -2398,7 +2580,8 @@ var awsPartition = partition{
"mgh": service{
Endpoints: endpoints{
- "us-west-2": endpoint{},
+ "eu-central-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"mobileanalytics": service{
@@ -2414,9 +2597,10 @@ var awsPartition = partition{
},
},
Endpoints: endpoints{
- "eu-west-1": endpoint{},
- "us-east-1": endpoint{},
- "us-west-2": endpoint{},
+ "ap-southeast-2": endpoint{},
+ "eu-west-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"monitoring": service{
@@ -2447,6 +2631,7 @@ var awsPartition = partition{
"mq": service{
Endpoints: endpoints{
+ "ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
"ap-south-1": endpoint{},
@@ -2454,6 +2639,7 @@ var awsPartition = partition{
"ap-southeast-2": endpoint{},
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
+ "eu-north-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
@@ -2481,10 +2667,12 @@ var awsPartition = partition{
Region: "us-west-2",
},
},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-1": endpoint{},
- "us-west-2": endpoint{},
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"mturk-requester": service{
@@ -2692,6 +2880,27 @@ var awsPartition = partition{
},
},
},
+ "outposts": service{
+
+ Endpoints: endpoints{
+ "ap-east-1": endpoint{},
+ "ap-northeast-1": endpoint{},
+ "ap-northeast-2": endpoint{},
+ "ap-southeast-1": endpoint{},
+ "ap-southeast-2": endpoint{},
+ "ca-central-1": endpoint{},
+ "eu-central-1": endpoint{},
+ "eu-north-1": endpoint{},
+ "eu-west-1": endpoint{},
+ "eu-west-2": endpoint{},
+ "eu-west-3": endpoint{},
+ "me-south-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
+ },
+ },
"pinpoint": service{
Defaults: endpoint{
CredentialScope: credentialScope{
@@ -2703,13 +2912,36 @@ var awsPartition = partition{
"ap-southeast-2": endpoint{},
"eu-central-1": endpoint{},
"eu-west-1": endpoint{},
- "us-east-1": endpoint{},
- "us-west-2": endpoint{},
+ "fips-us-east-1": endpoint{
+ Hostname: "pinpoint-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "pinpoint-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "us-east-1": endpoint{
+ Hostname: "pinpoint.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "us-west-2": endpoint{
+ Hostname: "pinpoint.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
},
},
"polly": service{
Endpoints: endpoints{
+ "ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
"ap-south-1": endpoint{},
@@ -2721,6 +2953,7 @@ var awsPartition = partition{
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
+ "me-south-1": endpoint{},
"sa-east-1": endpoint{},
"us-east-1": endpoint{},
"us-east-2": endpoint{},
@@ -2803,6 +3036,10 @@ var awsPartition = partition{
Endpoints: endpoints{
"ap-northeast-1": endpoint{},
+ "ap-northeast-2": endpoint{},
+ "ap-southeast-1": endpoint{},
+ "ap-southeast-2": endpoint{},
+ "eu-central-1": endpoint{},
"eu-west-1": endpoint{},
"us-east-1": endpoint{},
"us-east-2": endpoint{},
@@ -2812,6 +3049,7 @@ var awsPartition = partition{
"ram": service{
Endpoints: endpoints{
+ "ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
"ap-south-1": endpoint{},
@@ -2823,6 +3061,8 @@ var awsPartition = partition{
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
"us-east-1": endpoint{},
"us-east-2": endpoint{},
"us-west-1": endpoint{},
@@ -2977,6 +3217,7 @@ var awsPartition = partition{
Protocols: []string{"https"},
},
Endpoints: endpoints{
+ "ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
"ap-south-1": endpoint{},
@@ -2984,6 +3225,7 @@ var awsPartition = partition{
"ap-southeast-2": endpoint{},
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
+ "eu-north-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
@@ -3000,9 +3242,10 @@ var awsPartition = partition{
},
},
Endpoints: endpoints{
- "eu-west-1": endpoint{},
- "us-east-1": endpoint{},
- "us-west-2": endpoint{},
+ "ap-southeast-2": endpoint{},
+ "eu-west-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"runtime.sagemaker": service{
@@ -3053,7 +3296,7 @@ var awsPartition = partition{
},
},
"s3": service{
- PartitionEndpoint: "us-east-1",
+ PartitionEndpoint: "aws-global",
IsRegionalized: boxedTrue,
Defaults: endpoint{
Protocols: []string{"http", "https"},
@@ -3078,6 +3321,13 @@ var awsPartition = partition{
Hostname: "s3.ap-southeast-2.amazonaws.com",
SignatureVersions: []string{"s3", "s3v4"},
},
+ "aws-global": endpoint{
+ Hostname: "s3.amazonaws.com",
+ SignatureVersions: []string{"s3", "s3v4"},
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
@@ -3100,7 +3350,7 @@ var awsPartition = partition{
SignatureVersions: []string{"s3", "s3v4"},
},
"us-east-1": endpoint{
- Hostname: "s3.amazonaws.com",
+ Hostname: "s3.us-east-1.amazonaws.com",
SignatureVersions: []string{"s3", "s3v4"},
},
"us-east-2": endpoint{},
@@ -3278,6 +3528,16 @@ var awsPartition = partition{
},
},
},
+ "schemas": service{
+
+ Endpoints: endpoints{
+ "ap-northeast-1": endpoint{},
+ "eu-west-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-2": endpoint{},
+ },
+ },
"sdb": service{
Defaults: endpoint{
Protocols: []string{"http", "https"},
@@ -3499,6 +3759,10 @@ var awsPartition = partition{
Endpoints: endpoints{
"ap-northeast-1": endpoint{},
+ "ap-northeast-2": endpoint{},
+ "ap-southeast-1": endpoint{},
+ "ap-southeast-2": endpoint{},
+ "eu-central-1": endpoint{},
"eu-west-1": endpoint{},
"us-east-1": endpoint{},
"us-east-2": endpoint{},
@@ -3886,6 +4150,7 @@ var awsPartition = partition{
},
Endpoints: endpoints{
"ap-east-1": endpoint{},
+ "ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
"ap-south-1": endpoint{},
"ap-southeast-1": endpoint{},
@@ -3940,13 +4205,18 @@ var awsPartition = partition{
Protocols: []string{"https"},
},
Endpoints: endpoints{
+ "ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
"ap-south-1": endpoint{},
"ap-southeast-1": endpoint{},
+ "ap-southeast-2": endpoint{},
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
+ "eu-north-1": endpoint{},
"eu-west-1": endpoint{},
+ "eu-west-2": endpoint{},
+ "eu-west-3": endpoint{},
"us-east-1": endpoint{},
"us-east-1-fips": endpoint{
Hostname: "translate-fips.us-east-1.amazonaws.com",
@@ -3961,6 +4231,7 @@ var awsPartition = partition{
Region: "us-east-2",
},
},
+ "us-west-1": endpoint{},
"us-west-2": endpoint{},
"us-west-2-fips": endpoint{
Hostname: "translate-fips.us-west-2.amazonaws.com",
@@ -4122,17 +4393,25 @@ var awscnPartition = partition{
},
"application-autoscaling": service{
Defaults: endpoint{
- Hostname: "autoscaling.{region}.amazonaws.com.cn",
Protocols: []string{"http", "https"},
- CredentialScope: credentialScope{
- Service: "application-autoscaling",
- },
},
Endpoints: endpoints{
"cn-north-1": endpoint{},
"cn-northwest-1": endpoint{},
},
},
+ "appsync": service{
+
+ Endpoints: endpoints{
+ "cn-north-1": endpoint{},
+ },
+ },
+ "athena": service{
+
+ Endpoints: endpoints{
+ "cn-northwest-1": endpoint{},
+ },
+ },
"autoscaling": service{
Defaults: endpoint{
Protocols: []string{"http", "https"},
@@ -4142,6 +4421,13 @@ var awscnPartition = partition{
"cn-northwest-1": endpoint{},
},
},
+ "backup": service{
+
+ Endpoints: endpoints{
+ "cn-north-1": endpoint{},
+ "cn-northwest-1": endpoint{},
+ },
+ },
"batch": service{
Endpoints: endpoints{
@@ -4204,6 +4490,12 @@ var awscnPartition = partition{
"cn-northwest-1": endpoint{},
},
},
+ "dax": service{
+
+ Endpoints: endpoints{
+ "cn-northwest-1": endpoint{},
+ },
+ },
"directconnect": service{
Endpoints: endpoints{
@@ -4275,6 +4567,13 @@ var awscnPartition = partition{
"cn-northwest-1": endpoint{},
},
},
+ "elasticfilesystem": service{
+
+ Endpoints: endpoints{
+ "cn-north-1": endpoint{},
+ "cn-northwest-1": endpoint{},
+ },
+ },
"elasticloadbalancing": service{
Defaults: endpoint{
Protocols: []string{"https"},
@@ -4344,6 +4643,13 @@ var awscnPartition = partition{
"cn-north-1": endpoint{},
},
},
+ "health": service{
+
+ Endpoints: endpoints{
+ "cn-north-1": endpoint{},
+ "cn-northwest-1": endpoint{},
+ },
+ },
"iam": service{
PartitionEndpoint: "aws-cn-global",
IsRegionalized: boxedFalse,
@@ -4423,6 +4729,17 @@ var awscnPartition = partition{
"cn-northwest-1": endpoint{},
},
},
+ "neptune": service{
+
+ Endpoints: endpoints{
+ "cn-northwest-1": endpoint{
+ Hostname: "rds.cn-northwest-1.amazonaws.com.cn",
+ CredentialScope: credentialScope{
+ Region: "cn-northwest-1",
+ },
+ },
+ },
+ },
"polly": service{
Endpoints: endpoints{
@@ -4475,6 +4792,26 @@ var awscnPartition = partition{
},
},
},
+ "secretsmanager": service{
+
+ Endpoints: endpoints{
+ "cn-north-1": endpoint{},
+ "cn-northwest-1": endpoint{},
+ },
+ },
+ "serverlessrepo": service{
+ Defaults: endpoint{
+ Protocols: []string{"https"},
+ },
+ Endpoints: endpoints{
+ "cn-north-1": endpoint{
+ Protocols: []string{"https"},
+ },
+ "cn-northwest-1": endpoint{
+ Protocols: []string{"https"},
+ },
+ },
+ },
"sms": service{
Endpoints: endpoints{
@@ -4524,7 +4861,8 @@ var awscnPartition = partition{
"storagegateway": service{
Endpoints: endpoints{
- "cn-north-1": endpoint{},
+ "cn-north-1": endpoint{},
+ "cn-northwest-1": endpoint{},
},
},
"streams.dynamodb": service{
@@ -4591,6 +4929,19 @@ var awscnPartition = partition{
},
},
},
+ "workspaces": service{
+
+ Endpoints: endpoints{
+ "cn-northwest-1": endpoint{},
+ },
+ },
+ "xray": service{
+
+ Endpoints: endpoints{
+ "cn-north-1": endpoint{},
+ "cn-northwest-1": endpoint{},
+ },
+ },
},
}
@@ -4623,6 +4974,13 @@ var awsusgovPartition = partition{
},
},
Services: services{
+ "access-analyzer": service{
+
+ Endpoints: endpoints{
+ "us-gov-east-1": endpoint{},
+ "us-gov-west-1": endpoint{},
+ },
+ },
"acm": service{
Endpoints: endpoints{
@@ -4671,7 +5029,8 @@ var awsusgovPartition = partition{
},
"application-autoscaling": service{
Defaults: endpoint{
- Hostname: "autoscaling.{region}.amazonaws.com",
+ Hostname: "autoscaling.{region}.amazonaws.com",
+ Protocols: []string{"http", "https"},
CredentialScope: credentialScope{
Service: "application-autoscaling",
},
@@ -4714,6 +5073,22 @@ var awsusgovPartition = partition{
},
},
},
+ "autoscaling-plans": service{
+ Defaults: endpoint{
+ Protocols: []string{"http", "https"},
+ },
+ Endpoints: endpoints{
+ "us-gov-east-1": endpoint{},
+ "us-gov-west-1": endpoint{},
+ },
+ },
+ "batch": service{
+
+ Endpoints: endpoints{
+ "us-gov-east-1": endpoint{},
+ "us-gov-west-1": endpoint{},
+ },
+ },
"clouddirectory": service{
Endpoints: endpoints{
@@ -4792,6 +5167,12 @@ var awsusgovPartition = partition{
"us-gov-west-1": endpoint{},
},
},
+ "comprehendmedical": service{
+
+ Endpoints: endpoints{
+ "us-gov-west-1": endpoint{},
+ },
+ },
"config": service{
Endpoints: endpoints{
@@ -4808,6 +5189,7 @@ var awsusgovPartition = partition{
Region: "us-gov-west-1",
},
},
+ "us-gov-east-1": endpoint{},
"us-gov-west-1": endpoint{},
},
},
@@ -4899,6 +5281,7 @@ var awsusgovPartition = partition{
"elasticfilesystem": service{
Endpoints: endpoints{
+ "us-gov-east-1": endpoint{},
"us-gov-west-1": endpoint{},
},
},
@@ -5374,6 +5757,18 @@ var awsusgovPartition = partition{
"us-gov-west-1": endpoint{},
},
},
+ "support": service{
+ PartitionEndpoint: "aws-us-gov-global",
+
+ Endpoints: endpoints{
+ "aws-us-gov-global": endpoint{
+ Hostname: "support.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
+ },
+ },
"swf": service{
Endpoints: endpoints{
@@ -5393,6 +5788,7 @@ var awsusgovPartition = partition{
Protocols: []string{"https"},
},
Endpoints: endpoints{
+ "us-gov-east-1": endpoint{},
"us-gov-west-1": endpoint{},
},
},
@@ -5476,11 +5872,7 @@ var awsisoPartition = partition{
},
"application-autoscaling": service{
Defaults: endpoint{
- Hostname: "autoscaling.{region}.amazonaws.com",
Protocols: []string{"http", "https"},
- CredentialScope: credentialScope{
- Service: "application-autoscaling",
- },
},
Endpoints: endpoints{
"us-iso-east-1": endpoint{},
@@ -5808,11 +6200,7 @@ var awsisobPartition = partition{
Services: services{
"application-autoscaling": service{
Defaults: endpoint{
- Hostname: "autoscaling.{region}.amazonaws.com",
Protocols: []string{"http", "https"},
- CredentialScope: credentialScope{
- Service: "application-autoscaling",
- },
},
Endpoints: endpoints{
"us-isob-east-1": endpoint{},
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/endpoints/endpoints.go b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/endpoints.go
index fadff07d6..ca956e5f1 100644
--- a/vendor/github.com/aws/aws-sdk-go/aws/endpoints/endpoints.go
+++ b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/endpoints.go
@@ -50,12 +50,28 @@ type Options struct {
// STS Regional Endpoint flag helps with resolving the STS endpoint
STSRegionalEndpoint STSRegionalEndpoint
+
+ // S3 Regional Endpoint flag helps with resolving the S3 endpoint
+ S3UsEast1RegionalEndpoint S3UsEast1RegionalEndpoint
}
-// STSRegionalEndpoint is an enum type alias for int
-// It is used internally by the core sdk as STS Regional Endpoint flag value
+// STSRegionalEndpoint is an enum for the states of the STS Regional Endpoint
+// options.
type STSRegionalEndpoint int
+func (e STSRegionalEndpoint) String() string {
+ switch e {
+ case LegacySTSEndpoint:
+ return "legacy"
+ case RegionalSTSEndpoint:
+ return "regional"
+ case UnsetSTSEndpoint:
+ return ""
+ default:
+ return "unknown"
+ }
+}
+
const (
// UnsetSTSEndpoint represents that STS Regional Endpoint flag is not specified.
@@ -86,6 +102,55 @@ func GetSTSRegionalEndpoint(s string) (STSRegionalEndpoint, error) {
}
}
+// S3UsEast1RegionalEndpoint is an enum for the states of the S3 us-east-1
+// Regional Endpoint options.
+type S3UsEast1RegionalEndpoint int
+
+func (e S3UsEast1RegionalEndpoint) String() string {
+ switch e {
+ case LegacyS3UsEast1Endpoint:
+ return "legacy"
+ case RegionalS3UsEast1Endpoint:
+ return "regional"
+ case UnsetS3UsEast1Endpoint:
+ return ""
+ default:
+ return "unknown"
+ }
+}
+
+const (
+
+ // UnsetS3UsEast1Endpoint represents that S3 Regional Endpoint flag is not
+ // specified.
+ UnsetS3UsEast1Endpoint S3UsEast1RegionalEndpoint = iota
+
+ // LegacyS3UsEast1Endpoint represents when S3 Regional Endpoint flag is
+ // specified to use legacy endpoints.
+ LegacyS3UsEast1Endpoint
+
+ // RegionalS3UsEast1Endpoint represents when S3 Regional Endpoint flag is
+ // specified to use regional endpoints.
+ RegionalS3UsEast1Endpoint
+)
+
+// GetS3UsEast1RegionalEndpoint function returns the S3UsEast1RegionalEndpointFlag based
+// on the input string provided in env config or shared config by the user.
+//
+// `legacy`, `regional` are the only case-insensitive valid strings for
+// resolving the S3 regional Endpoint flag.
+func GetS3UsEast1RegionalEndpoint(s string) (S3UsEast1RegionalEndpoint, error) {
+ switch {
+ case strings.EqualFold(s, "legacy"):
+ return LegacyS3UsEast1Endpoint, nil
+ case strings.EqualFold(s, "regional"):
+ return RegionalS3UsEast1Endpoint, nil
+ default:
+ return UnsetS3UsEast1Endpoint,
+ fmt.Errorf("unable to resolve the value of S3UsEast1RegionalEndpoint for %v", s)
+ }
+}
+
// Set combines all of the option functions together.
func (o *Options) Set(optFns ...func(*Options)) {
for _, fn := range optFns {
@@ -252,7 +317,7 @@ func (p Partition) EndpointFor(service, region string, opts ...func(*Options)) (
// Regions returns a map of Regions indexed by their ID. This is useful for
// enumerating over the regions in a partition.
func (p Partition) Regions() map[string]Region {
- rs := map[string]Region{}
+ rs := make(map[string]Region, len(p.p.Regions))
for id, r := range p.p.Regions {
rs[id] = Region{
id: id,
@@ -267,7 +332,7 @@ func (p Partition) Regions() map[string]Region {
// Services returns a map of Service indexed by their ID. This is useful for
// enumerating over the services in a partition.
func (p Partition) Services() map[string]Service {
- ss := map[string]Service{}
+ ss := make(map[string]Service, len(p.p.Services))
for id := range p.p.Services {
ss[id] = Service{
id: id,
@@ -354,7 +419,7 @@ func (s Service) Regions() map[string]Region {
// A region is the AWS region the service exists in. Whereas a Endpoint is
// an URL that can be resolved to a instance of a service.
func (s Service) Endpoints() map[string]Endpoint {
- es := map[string]Endpoint{}
+ es := make(map[string]Endpoint, len(s.p.Services[s.id].Endpoints))
for id := range s.p.Services[s.id].Endpoints {
es[id] = Endpoint{
id: id,
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/endpoints/legacy_regions.go b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/legacy_regions.go
new file mode 100644
index 000000000..df75e899a
--- /dev/null
+++ b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/legacy_regions.go
@@ -0,0 +1,24 @@
+package endpoints
+
+var legacyGlobalRegions = map[string]map[string]struct{}{
+ "sts": {
+ "ap-northeast-1": {},
+ "ap-south-1": {},
+ "ap-southeast-1": {},
+ "ap-southeast-2": {},
+ "ca-central-1": {},
+ "eu-central-1": {},
+ "eu-north-1": {},
+ "eu-west-1": {},
+ "eu-west-2": {},
+ "eu-west-3": {},
+ "sa-east-1": {},
+ "us-east-1": {},
+ "us-east-2": {},
+ "us-west-1": {},
+ "us-west-2": {},
+ },
+ "s3": {
+ "us-east-1": {},
+ },
+}
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/endpoints/sts_legacy_regions.go b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/sts_legacy_regions.go
deleted file mode 100644
index 261396219..000000000
--- a/vendor/github.com/aws/aws-sdk-go/aws/endpoints/sts_legacy_regions.go
+++ /dev/null
@@ -1,19 +0,0 @@
-package endpoints
-
-var stsLegacyGlobalRegions = map[string]struct{}{
- "ap-northeast-1": {},
- "ap-south-1": {},
- "ap-southeast-1": {},
- "ap-southeast-2": {},
- "ca-central-1": {},
- "eu-central-1": {},
- "eu-north-1": {},
- "eu-west-1": {},
- "eu-west-2": {},
- "eu-west-3": {},
- "sa-east-1": {},
- "us-east-1": {},
- "us-east-2": {},
- "us-west-1": {},
- "us-west-2": {},
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/endpoints/v3model.go b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/v3model.go
index 7b09adff6..eb2ac83c9 100644
--- a/vendor/github.com/aws/aws-sdk-go/aws/endpoints/v3model.go
+++ b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/v3model.go
@@ -110,8 +110,9 @@ func (p partition) EndpointFor(service, region string, opts ...func(*Options)) (
region = s.PartitionEndpoint
}
- if service == "sts" && opt.STSRegionalEndpoint != RegionalSTSEndpoint {
- if _, ok := stsLegacyGlobalRegions[region]; ok {
+ if (service == "sts" && opt.STSRegionalEndpoint != RegionalSTSEndpoint) ||
+ (service == "s3" && opt.S3UsEast1RegionalEndpoint != RegionalS3UsEast1Endpoint) {
+ if _, ok := legacyGlobalRegions[service][region]; ok {
region = "aws-global"
}
}
@@ -240,11 +241,23 @@ func (e endpoint) resolve(service, partitionID, region, dnsSuffix string, defs [
merged.mergeIn(e)
e = merged
- hostname := e.Hostname
+ signingRegion := e.CredentialScope.Region
+ if len(signingRegion) == 0 {
+ signingRegion = region
+ }
+ signingName := e.CredentialScope.Service
+ var signingNameDerived bool
+ if len(signingName) == 0 {
+ signingName = service
+ signingNameDerived = true
+ }
+
+ hostname := e.Hostname
// Offset the hostname for dualstack if enabled
if opts.UseDualStack && e.HasDualStack == boxedTrue {
hostname = e.DualStackHostname
+ region = signingRegion
}
u := strings.Replace(hostname, "{service}", service, 1)
@@ -254,18 +267,6 @@ func (e endpoint) resolve(service, partitionID, region, dnsSuffix string, defs [
scheme := getEndpointScheme(e.Protocols, opts.DisableSSL)
u = fmt.Sprintf("%s://%s", scheme, u)
- signingRegion := e.CredentialScope.Region
- if len(signingRegion) == 0 {
- signingRegion = region
- }
-
- signingName := e.CredentialScope.Service
- var signingNameDerived bool
- if len(signingName) == 0 {
- signingName = service
- signingNameDerived = true
- }
-
return ResolvedEndpoint{
URL: u,
PartitionID: partitionID,
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/handlers.go b/vendor/github.com/aws/aws-sdk-go/aws/request/handlers.go
index 185b07318..e819ab6c0 100644
--- a/vendor/github.com/aws/aws-sdk-go/aws/request/handlers.go
+++ b/vendor/github.com/aws/aws-sdk-go/aws/request/handlers.go
@@ -10,6 +10,7 @@ import (
type Handlers struct {
Validate HandlerList
Build HandlerList
+ BuildStream HandlerList
Sign HandlerList
Send HandlerList
ValidateResponse HandlerList
@@ -28,6 +29,7 @@ func (h *Handlers) Copy() Handlers {
return Handlers{
Validate: h.Validate.copy(),
Build: h.Build.copy(),
+ BuildStream: h.BuildStream.copy(),
Sign: h.Sign.copy(),
Send: h.Send.copy(),
ValidateResponse: h.ValidateResponse.copy(),
@@ -46,6 +48,7 @@ func (h *Handlers) Copy() Handlers {
func (h *Handlers) Clear() {
h.Validate.Clear()
h.Build.Clear()
+ h.BuildStream.Clear()
h.Send.Clear()
h.Sign.Clear()
h.Unmarshal.Clear()
@@ -67,6 +70,9 @@ func (h *Handlers) IsEmpty() bool {
if h.Build.Len() != 0 {
return false
}
+ if h.BuildStream.Len() != 0 {
+ return false
+ }
if h.Send.Len() != 0 {
return false
}
@@ -320,3 +326,18 @@ func MakeAddToUserAgentFreeFormHandler(s string) func(*Request) {
AddToUserAgent(r, s)
}
}
+
+// WithSetRequestHeaders updates the operation request's HTTP header to contain
+// the header key value pairs provided. If the header key already exists in the
+// request's HTTP header set, the existing value(s) will be replaced.
+func WithSetRequestHeaders(h map[string]string) Option {
+ return withRequestHeader(h).SetRequestHeaders
+}
+
+type withRequestHeader map[string]string
+
+func (h withRequestHeader) SetRequestHeaders(r *Request) {
+ for k, v := range h {
+ r.HTTPRequest.Header[k] = []string{v}
+ }
+}
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.go
index 52178141d..d597c6ead 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
@@ -36,6 +36,10 @@ const (
// API request that was canceled. Requests given a aws.Context may
// return this error when canceled.
CanceledErrorCode = "RequestCanceled"
+
+ // ErrCodeRequestError is an error preventing the SDK from continuing to
+ // process the request.
+ ErrCodeRequestError = "RequestError"
)
// A Request is the service request to be made.
@@ -51,6 +55,7 @@ type Request struct {
HTTPRequest *http.Request
HTTPResponse *http.Response
Body io.ReadSeeker
+ streamingBody io.ReadCloser
BodyStart int64 // offset from beginning of Body that the request body starts
Params interface{}
Error error
@@ -130,8 +135,6 @@ func New(cfg aws.Config, clientInfo metadata.ClientInfo, handlers Handlers,
err = awserr.New("InvalidEndpointURL", "invalid endpoint uri", err)
}
- SanitizeHostForHeader(httpReq)
-
r := &Request{
Config: cfg,
ClientInfo: clientInfo,
@@ -295,6 +298,13 @@ func (r *Request) SetReaderBody(reader io.ReadSeeker) {
r.ResetBody()
}
+// SetStreamingBody set the reader to be used for the request that will stream
+// bytes to the server. Request's Body must not be set to any reader.
+func (r *Request) SetStreamingBody(reader io.ReadCloser) {
+ r.streamingBody = reader
+ r.SetReaderBody(aws.ReadSeekCloser(reader))
+}
+
// Presign returns the request's signed URL. Error will be returned
// if the signing fails. The expire parameter is only used for presigned Amazon
// S3 API requests. All other AWS services will use a fixed expiration
@@ -414,11 +424,17 @@ func (r *Request) Sign() error {
return r.Error
}
+ SanitizeHostForHeader(r.HTTPRequest)
+
r.Handlers.Sign.Run(r)
return r.Error
}
func (r *Request) getNextRequestBody() (body io.ReadCloser, err error) {
+ if r.streamingBody != nil {
+ return r.streamingBody, nil
+ }
+
if r.safeBody != nil {
r.safeBody.Close()
}
@@ -623,6 +639,10 @@ func getHost(r *http.Request) string {
return r.Host
}
+ if r.URL == nil {
+ return ""
+ }
+
return r.URL.Host
}
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/request_pagination.go b/vendor/github.com/aws/aws-sdk-go/aws/request/request_pagination.go
index f093fc542..64784e16f 100644
--- a/vendor/github.com/aws/aws-sdk-go/aws/request/request_pagination.go
+++ b/vendor/github.com/aws/aws-sdk-go/aws/request/request_pagination.go
@@ -17,11 +17,13 @@ import (
// does the pagination between API operations, and Paginator defines the
// configuration that will be used per page request.
//
-// cont := true
-// for p.Next() && cont {
+// for p.Next() {
// data := p.Page().(*s3.ListObjectsOutput)
// // process the page's data
+// // ...
+// // break out of loop to stop fetching additional pages
// }
+//
// return p.Err()
//
// See service client API operation Pages methods for examples how the SDK will
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.go
index 8015acc67..752ae47f8 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
@@ -75,7 +75,7 @@ func (d noOpRetryer) RetryRules(_ *Request) time.Duration {
// retryableCodes is a collection of service response codes which are retry-able
// without any further action.
var retryableCodes = map[string]struct{}{
- "RequestError": {},
+ ErrCodeRequestError: {},
"RequestTimeout": {},
ErrCodeResponseTimeout: {},
"RequestTimeoutException": {}, // Glacier's flavor of RequestTimeout
@@ -83,6 +83,7 @@ var retryableCodes = map[string]struct{}{
var throttleCodes = map[string]struct{}{
"ProvisionedThroughputExceededException": {},
+ "ThrottledException": {}, // SNS, XRay, ResourceGroupsTagging API
"Throttling": {},
"ThrottlingException": {},
"RequestLimitExceeded": {},
@@ -91,6 +92,7 @@ var throttleCodes = map[string]struct{}{
"TooManyRequestsException": {}, // Lambda functions
"PriorRequestNotComplete": {}, // Route53
"TransactionInProgressException": {},
+ "EC2ThrottledException": {}, // EC2
}
// credsExpiredCodes is a collection of error codes which signify the credentials
@@ -176,8 +178,8 @@ func shouldRetryError(origErr error) bool {
origErr := err.OrigErr()
var shouldRetry bool
if origErr != nil {
- shouldRetry := shouldRetryError(origErr)
- if err.Code() == "RequestError" && !shouldRetry {
+ shouldRetry = shouldRetryError(origErr)
+ if err.Code() == ErrCodeRequestError && !shouldRetry {
return false
}
}
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/session/credentials.go b/vendor/github.com/aws/aws-sdk-go/aws/session/credentials.go
index 7713ccfca..cc64e24f1 100644
--- a/vendor/github.com/aws/aws-sdk-go/aws/session/credentials.go
+++ b/vendor/github.com/aws/aws-sdk-go/aws/session/credentials.go
@@ -47,10 +47,10 @@ func resolveCredentials(cfg *aws.Config,
}
// WebIdentityEmptyRoleARNErr will occur if 'AWS_WEB_IDENTITY_TOKEN_FILE' was set but
-// 'AWS_IAM_ROLE_ARN' was not set.
+// 'AWS_ROLE_ARN' was not set.
var WebIdentityEmptyRoleARNErr = awserr.New(stscreds.ErrCodeWebIdentity, "role ARN is not set", nil)
-// WebIdentityEmptyTokenFilePathErr will occur if 'AWS_IAM_ROLE_ARN' was set but
+// WebIdentityEmptyTokenFilePathErr will occur if 'AWS_ROLE_ARN' was set but
// 'AWS_WEB_IDENTITY_TOKEN_FILE' was not set.
var WebIdentityEmptyTokenFilePathErr = awserr.New(stscreds.ErrCodeWebIdentity, "token file path is not set", nil)
diff --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.go
index 530cc3a9c..c1e0e9c95 100644
--- 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.go
@@ -4,6 +4,7 @@ import (
"fmt"
"os"
"strconv"
+ "strings"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
@@ -128,11 +129,25 @@ type envConfig struct {
// AWS_ROLE_SESSION_NAME=session_name
RoleSessionName string
- // Specifies the Regional Endpoint flag for the sdk to resolve the endpoint for a service
+ // Specifies the STS Regional Endpoint flag for the SDK to resolve the endpoint
+ // for a service.
//
- // AWS_STS_REGIONAL_ENDPOINTS =sts_regional_endpoint
+ // AWS_STS_REGIONAL_ENDPOINTS=regional
// This can take value as `regional` or `legacy`
STSRegionalEndpoint endpoints.STSRegionalEndpoint
+
+ // Specifies the S3 Regional Endpoint flag for the SDK to resolve the
+ // endpoint for a service.
+ //
+ // AWS_S3_US_EAST_1_REGIONAL_ENDPOINT=regional
+ // This can take value as `regional` or `legacy`
+ S3UsEast1RegionalEndpoint endpoints.S3UsEast1RegionalEndpoint
+
+ // Specifies if the S3 service should allow ARNs to direct the region
+ // the client's requests are sent to.
+ //
+ // AWS_S3_USE_ARN_REGION=true
+ S3UseARNRegion bool
}
var (
@@ -190,6 +205,12 @@ var (
stsRegionalEndpointKey = []string{
"AWS_STS_REGIONAL_ENDPOINTS",
}
+ s3UsEast1RegionalEndpoint = []string{
+ "AWS_S3_US_EAST_1_REGIONAL_ENDPOINT",
+ }
+ s3UseARNRegionEnvKey = []string{
+ "AWS_S3_USE_ARN_REGION",
+ }
)
// loadEnvConfig retrieves the SDK's environment configuration.
@@ -275,14 +296,39 @@ func envConfigLoad(enableSharedConfig bool) (envConfig, error) {
cfg.CustomCABundle = os.Getenv("AWS_CA_BUNDLE")
+ var err error
// STS Regional Endpoint variable
for _, k := range stsRegionalEndpointKey {
if v := os.Getenv(k); len(v) != 0 {
- STSRegionalEndpoint, err := endpoints.GetSTSRegionalEndpoint(v)
+ cfg.STSRegionalEndpoint, err = endpoints.GetSTSRegionalEndpoint(v)
if err != nil {
return cfg, fmt.Errorf("failed to load, %v from env config, %v", k, err)
}
- cfg.STSRegionalEndpoint = STSRegionalEndpoint
+ }
+ }
+
+ // S3 Regional Endpoint variable
+ for _, k := range s3UsEast1RegionalEndpoint {
+ if v := os.Getenv(k); len(v) != 0 {
+ cfg.S3UsEast1RegionalEndpoint, err = endpoints.GetS3UsEast1RegionalEndpoint(v)
+ if err != nil {
+ return cfg, fmt.Errorf("failed to load, %v from env config, %v", k, err)
+ }
+ }
+ }
+
+ var s3UseARNRegion string
+ setFromEnvVal(&s3UseARNRegion, s3UseARNRegionEnvKey)
+ if len(s3UseARNRegion) != 0 {
+ switch {
+ case strings.EqualFold(s3UseARNRegion, "false"):
+ cfg.S3UseARNRegion = false
+ case strings.EqualFold(s3UseARNRegion, "true"):
+ cfg.S3UseARNRegion = true
+ default:
+ return envConfig{}, fmt.Errorf(
+ "invalid value for environment variable, %s=%s, need true or false",
+ s3UseARNRegionEnvKey[0], s3UseARNRegion)
}
}
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.go
index 15fa64769..0ff499605 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
@@ -555,7 +555,20 @@ func mergeConfigSrcs(cfg, userCfg *aws.Config,
}
// Regional Endpoint flag for STS endpoint resolving
- mergeSTSRegionalEndpointConfig(cfg, envCfg, sharedCfg)
+ mergeSTSRegionalEndpointConfig(cfg, []endpoints.STSRegionalEndpoint{
+ userCfg.STSRegionalEndpoint,
+ envCfg.STSRegionalEndpoint,
+ sharedCfg.STSRegionalEndpoint,
+ endpoints.LegacySTSEndpoint,
+ })
+
+ // Regional Endpoint flag for S3 endpoint resolving
+ mergeS3UsEast1RegionalEndpointConfig(cfg, []endpoints.S3UsEast1RegionalEndpoint{
+ userCfg.S3UsEast1RegionalEndpoint,
+ envCfg.S3UsEast1RegionalEndpoint,
+ sharedCfg.S3UsEast1RegionalEndpoint,
+ endpoints.LegacyS3UsEast1Endpoint,
+ })
// Configure credentials if not already set by the user when creating the
// Session.
@@ -567,23 +580,33 @@ func mergeConfigSrcs(cfg, userCfg *aws.Config,
cfg.Credentials = creds
}
+ cfg.S3UseARNRegion = userCfg.S3UseARNRegion
+ if cfg.S3UseARNRegion == nil {
+ cfg.S3UseARNRegion = &envCfg.S3UseARNRegion
+ }
+ if cfg.S3UseARNRegion == nil {
+ cfg.S3UseARNRegion = &sharedCfg.S3UseARNRegion
+ }
+
return nil
}
-// mergeSTSRegionalEndpointConfig function merges the STSRegionalEndpoint into cfg from
-// envConfig and SharedConfig with envConfig being given precedence over SharedConfig
-func mergeSTSRegionalEndpointConfig(cfg *aws.Config, envCfg envConfig, sharedCfg sharedConfig) error {
-
- cfg.STSRegionalEndpoint = envCfg.STSRegionalEndpoint
-
- if cfg.STSRegionalEndpoint == endpoints.UnsetSTSEndpoint {
- cfg.STSRegionalEndpoint = sharedCfg.STSRegionalEndpoint
+func mergeSTSRegionalEndpointConfig(cfg *aws.Config, values []endpoints.STSRegionalEndpoint) {
+ for _, v := range values {
+ if v != endpoints.UnsetSTSEndpoint {
+ cfg.STSRegionalEndpoint = v
+ break
+ }
}
+}
- if cfg.STSRegionalEndpoint == endpoints.UnsetSTSEndpoint {
- cfg.STSRegionalEndpoint = endpoints.LegacySTSEndpoint
+func mergeS3UsEast1RegionalEndpointConfig(cfg *aws.Config, values []endpoints.S3UsEast1RegionalEndpoint) {
+ for _, v := range values {
+ if v != endpoints.UnsetS3UsEast1Endpoint {
+ cfg.S3UsEast1RegionalEndpoint = v
+ break
+ }
}
- return nil
}
func initHandlers(s *Session) {
@@ -619,15 +642,22 @@ func (s *Session) ClientConfig(service string, cfgs ...*aws.Config) client.Confi
region := aws.StringValue(s.Config.Region)
resolved, err := s.resolveEndpoint(service, region, s.Config)
- if err != nil && s.Config.Logger != nil {
- s.Config.Logger.Log(fmt.Sprintf(
- "ERROR: unable to resolve endpoint for service %q, region %q, err: %v",
- service, region, err))
+ if err != nil {
+ s.Handlers.Validate.PushBack(func(r *request.Request) {
+ if len(r.ClientInfo.Endpoint) != 0 {
+ // Error occurred while resolving endpoint, but the request
+ // being invoked has had an endpoint specified after the client
+ // was created.
+ return
+ }
+ r.Error = err
+ })
}
return client.Config{
Config: s.Config,
Handlers: s.Handlers,
+ PartitionID: resolved.PartitionID,
Endpoint: resolved.URL,
SigningRegion: resolved.SigningRegion,
SigningNameDerived: resolved.SigningNameDerived,
@@ -653,6 +683,11 @@ func (s *Session) resolveEndpoint(service, region string, cfg *aws.Config) (endp
// precedence.
opt.STSRegionalEndpoint = cfg.STSRegionalEndpoint
+ // Support for S3UsEast1RegionalEndpoint where the S3UsEast1RegionalEndpoint is
+ // provided in envConfig or sharedConfig with envConfig getting
+ // precedence.
+ opt.S3UsEast1RegionalEndpoint = cfg.S3UsEast1RegionalEndpoint
+
// Support the condition where the service is modeled but its
// endpoint metadata is not available.
opt.ResolveUnknownService = true
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.go
index 857466896..a8ed88076 100644
--- 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.go
@@ -44,10 +44,16 @@ const (
// Additional config fields for regional or legacy endpoints
stsRegionalEndpointSharedKey = `sts_regional_endpoints`
+ // Additional config fields for regional or legacy endpoints
+ s3UsEast1RegionalSharedKey = `s3_us_east_1_regional_endpoint`
+
// DefaultSharedConfigProfile is the default profile to be used when
// loading configuration from the config files if another profile name
// is not provided.
DefaultSharedConfigProfile = `default`
+
+ // S3 ARN Region Usage
+ s3UseARNRegionKey = "s3_use_arn_region"
)
// sharedConfig represents the configuration fields of the SDK config files.
@@ -86,17 +92,30 @@ type sharedConfig struct {
//
// endpoint_discovery_enabled = true
EnableEndpointDiscovery *bool
+
// CSM Options
CSMEnabled *bool
CSMHost string
CSMPort string
CSMClientID string
- // Specifies the Regional Endpoint flag for the sdk to resolve the endpoint for a service
+ // Specifies the Regional Endpoint flag for the SDK to resolve the endpoint for a service
//
- // sts_regional_endpoints = sts_regional_endpoint
+ // sts_regional_endpoints = regional
// This can take value as `LegacySTSEndpoint` or `RegionalSTSEndpoint`
STSRegionalEndpoint endpoints.STSRegionalEndpoint
+
+ // Specifies the Regional Endpoint flag for the SDK to resolve the endpoint for a service
+ //
+ // s3_us_east_1_regional_endpoint = regional
+ // This can take value as `LegacyS3UsEast1Endpoint` or `RegionalS3UsEast1Endpoint`
+ S3UsEast1RegionalEndpoint endpoints.S3UsEast1RegionalEndpoint
+
+ // Specifies if the S3 service should allow ARNs to direct the region
+ // the client's requests are sent to.
+ //
+ // s3_use_arn_region=true
+ S3UseARNRegion bool
}
type sharedConfigFile struct {
@@ -259,10 +278,19 @@ func (cfg *sharedConfig) setFromIniFile(profile string, file sharedConfigFile, e
sre, err := endpoints.GetSTSRegionalEndpoint(v)
if err != nil {
return fmt.Errorf("failed to load %s from shared config, %s, %v",
- stsRegionalEndpointKey, file.Filename, err)
+ stsRegionalEndpointSharedKey, file.Filename, err)
}
cfg.STSRegionalEndpoint = sre
}
+
+ if v := section.String(s3UsEast1RegionalSharedKey); len(v) != 0 {
+ sre, err := endpoints.GetS3UsEast1RegionalEndpoint(v)
+ if err != nil {
+ return fmt.Errorf("failed to load %s from shared config, %s, %v",
+ s3UsEast1RegionalSharedKey, file.Filename, err)
+ }
+ cfg.S3UsEast1RegionalEndpoint = sre
+ }
}
updateString(&cfg.CredentialProcess, section, credentialProcessKey)
@@ -288,6 +316,8 @@ func (cfg *sharedConfig) setFromIniFile(profile string, file sharedConfigFile, e
updateString(&cfg.CSMPort, section, csmPortKey)
updateString(&cfg.CSMClientID, section, csmClientIDKey)
+ updateBool(&cfg.S3UseARNRegion, section, s3UseARNRegionKey)
+
return nil
}
@@ -380,6 +410,15 @@ func updateString(dst *string, section ini.Section, key string) {
*dst = section.String(key)
}
+// updateBool will only update the dst with the value in the section key, key
+// is present in the section.
+func updateBool(dst *bool, section ini.Section, key string) {
+ if !section.Has(key) {
+ return
+ }
+ *dst = section.Bool(key)
+}
+
// updateBoolPtr will only update the dst with the value in the section key,
// key is present in the section.
func updateBoolPtr(dst **bool, section ini.Section, key string) {
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/header_rules.go b/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/header_rules.go
index 244c86da0..07ea799fb 100644
--- a/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/header_rules.go
+++ b/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/header_rules.go
@@ -1,8 +1,7 @@
package v4
import (
- "net/http"
- "strings"
+ "github.com/aws/aws-sdk-go/internal/strings"
)
// validator houses a set of rule needed for validation of a
@@ -61,7 +60,7 @@ type patterns []string
// been found
func (p patterns) IsValid(value string) bool {
for _, pattern := range p {
- if strings.HasPrefix(http.CanonicalHeaderKey(value), pattern) {
+ if strings.HasPrefixFold(value, pattern) {
return true
}
}
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/request_context_go1.5.go b/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/request_context_go1.5.go
new file mode 100644
index 000000000..f35fc860b
--- /dev/null
+++ b/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/request_context_go1.5.go
@@ -0,0 +1,13 @@
+// +build !go1.7
+
+package v4
+
+import (
+ "net/http"
+
+ "github.com/aws/aws-sdk-go/aws"
+)
+
+func requestContext(r *http.Request) aws.Context {
+ return aws.BackgroundContext()
+}
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/request_context_go1.7.go b/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/request_context_go1.7.go
new file mode 100644
index 000000000..fed5c859c
--- /dev/null
+++ b/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/request_context_go1.7.go
@@ -0,0 +1,13 @@
+// +build go1.7
+
+package v4
+
+import (
+ "net/http"
+
+ "github.com/aws/aws-sdk-go/aws"
+)
+
+func requestContext(r *http.Request) aws.Context {
+ return r.Context()
+}
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/stream.go b/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/stream.go
new file mode 100644
index 000000000..02cbd97e2
--- /dev/null
+++ b/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/stream.go
@@ -0,0 +1,63 @@
+package v4
+
+import (
+ "encoding/hex"
+ "strings"
+ "time"
+
+ "github.com/aws/aws-sdk-go/aws/credentials"
+)
+
+type credentialValueProvider interface {
+ Get() (credentials.Value, error)
+}
+
+// StreamSigner implements signing of event stream encoded payloads
+type StreamSigner struct {
+ region string
+ service string
+
+ credentials credentialValueProvider
+
+ prevSig []byte
+}
+
+// NewStreamSigner creates a SigV4 signer used to sign Event Stream encoded messages
+func NewStreamSigner(region, service string, seedSignature []byte, credentials *credentials.Credentials) *StreamSigner {
+ return &StreamSigner{
+ region: region,
+ service: service,
+ credentials: credentials,
+ prevSig: seedSignature,
+ }
+}
+
+// GetSignature takes an event stream encoded headers and payload and returns a signature
+func (s *StreamSigner) GetSignature(headers, payload []byte, date time.Time) ([]byte, error) {
+ credValue, err := s.credentials.Get()
+ if err != nil {
+ return nil, err
+ }
+
+ sigKey := deriveSigningKey(s.region, s.service, credValue.SecretAccessKey, date)
+
+ keyPath := buildSigningScope(s.region, s.service, date)
+
+ stringToSign := buildEventStreamStringToSign(headers, payload, s.prevSig, keyPath, date)
+
+ signature := hmacSHA256(sigKey, []byte(stringToSign))
+ s.prevSig = signature
+
+ return signature, nil
+}
+
+func buildEventStreamStringToSign(headers, payload, prevSig []byte, scope string, date time.Time) string {
+ return strings.Join([]string{
+ "AWS4-HMAC-SHA256-PAYLOAD",
+ formatTime(date),
+ scope,
+ hex.EncodeToString(prevSig),
+ hex.EncodeToString(hashSHA256(headers)),
+ hex.EncodeToString(hashSHA256(payload)),
+ }, "\n")
+}
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.go
index 8104793aa..d71f7b3f4 100644
--- 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.go
@@ -76,9 +76,14 @@ import (
)
const (
+ authorizationHeader = "Authorization"
+ authHeaderSignatureElem = "Signature="
+ signatureQueryKey = "X-Amz-Signature"
+
authHeaderPrefix = "AWS4-HMAC-SHA256"
timeFormat = "20060102T150405Z"
shortTimeFormat = "20060102"
+ awsV4Request = "aws4_request"
// emptyStringSHA256 is a SHA256 of an empty string
emptyStringSHA256 = `e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855`
@@ -87,9 +92,9 @@ const (
var ignoredHeaders = rules{
blacklist{
mapRule{
- "Authorization": struct{}{},
- "User-Agent": struct{}{},
- "X-Amzn-Trace-Id": struct{}{},
+ authorizationHeader: struct{}{},
+ "User-Agent": struct{}{},
+ "X-Amzn-Trace-Id": struct{}{},
},
},
}
@@ -229,11 +234,9 @@ type signingCtx struct {
DisableURIPathEscaping bool
- credValues credentials.Value
- isPresign bool
- formattedTime string
- formattedShortTime string
- unsignedPayload bool
+ credValues credentials.Value
+ isPresign bool
+ unsignedPayload bool
bodyDigest string
signedHeaders string
@@ -337,7 +340,7 @@ func (v4 Signer) signWithBody(r *http.Request, body io.ReadSeeker, service, regi
}
var err error
- ctx.credValues, err = v4.Credentials.Get()
+ ctx.credValues, err = v4.Credentials.GetWithContext(requestContext(r))
if err != nil {
return http.Header{}, err
}
@@ -532,39 +535,56 @@ func (ctx *signingCtx) build(disableHeaderHoisting bool) error {
ctx.buildSignature() // depends on string to sign
if ctx.isPresign {
- ctx.Request.URL.RawQuery += "&X-Amz-Signature=" + ctx.signature
+ ctx.Request.URL.RawQuery += "&" + signatureQueryKey + "=" + ctx.signature
} else {
parts := []string{
authHeaderPrefix + " Credential=" + ctx.credValues.AccessKeyID + "/" + ctx.credentialString,
"SignedHeaders=" + ctx.signedHeaders,
- "Signature=" + ctx.signature,
+ authHeaderSignatureElem + ctx.signature,
}
- ctx.Request.Header.Set("Authorization", strings.Join(parts, ", "))
+ ctx.Request.Header.Set(authorizationHeader, strings.Join(parts, ", "))
}
return nil
}
-func (ctx *signingCtx) buildTime() {
- ctx.formattedTime = ctx.Time.UTC().Format(timeFormat)
- ctx.formattedShortTime = ctx.Time.UTC().Format(shortTimeFormat)
+// GetSignedRequestSignature attempts to extract the signature of the request.
+// Returning an error if the request is unsigned, or unable to extract the
+// signature.
+func GetSignedRequestSignature(r *http.Request) ([]byte, error) {
+
+ if auth := r.Header.Get(authorizationHeader); len(auth) != 0 {
+ ps := strings.Split(auth, ", ")
+ for _, p := range ps {
+ if idx := strings.Index(p, authHeaderSignatureElem); idx >= 0 {
+ sig := p[len(authHeaderSignatureElem):]
+ if len(sig) == 0 {
+ return nil, fmt.Errorf("invalid request signature authorization header")
+ }
+ return hex.DecodeString(sig)
+ }
+ }
+ }
+
+ if sig := r.URL.Query().Get("X-Amz-Signature"); len(sig) != 0 {
+ return hex.DecodeString(sig)
+ }
+
+ return nil, fmt.Errorf("request not signed")
+}
+func (ctx *signingCtx) buildTime() {
if ctx.isPresign {
duration := int64(ctx.ExpireTime / time.Second)
- ctx.Query.Set("X-Amz-Date", ctx.formattedTime)
+ ctx.Query.Set("X-Amz-Date", formatTime(ctx.Time))
ctx.Query.Set("X-Amz-Expires", strconv.FormatInt(duration, 10))
} else {
- ctx.Request.Header.Set("X-Amz-Date", ctx.formattedTime)
+ ctx.Request.Header.Set("X-Amz-Date", formatTime(ctx.Time))
}
}
func (ctx *signingCtx) buildCredentialString() {
- ctx.credentialString = strings.Join([]string{
- ctx.formattedShortTime,
- ctx.Region,
- ctx.ServiceName,
- "aws4_request",
- }, "/")
+ ctx.credentialString = buildSigningScope(ctx.Region, ctx.ServiceName, ctx.Time)
if ctx.isPresign {
ctx.Query.Set("X-Amz-Credential", ctx.credValues.AccessKeyID+"/"+ctx.credentialString)
@@ -588,8 +608,7 @@ 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) {
+ if !r.IsValid(k) {
continue // ignored header
}
if ctx.SignedHeaderVals == nil {
@@ -653,19 +672,15 @@ func (ctx *signingCtx) buildCanonicalString() {
func (ctx *signingCtx) buildStringToSign() {
ctx.stringToSign = strings.Join([]string{
authHeaderPrefix,
- ctx.formattedTime,
+ formatTime(ctx.Time),
ctx.credentialString,
- hex.EncodeToString(makeSha256([]byte(ctx.canonicalString))),
+ hex.EncodeToString(hashSHA256([]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))
+ creds := deriveSigningKey(ctx.Region, ctx.ServiceName, ctx.credValues.SecretAccessKey, ctx.Time)
+ signature := hmacSHA256(creds, []byte(ctx.stringToSign))
ctx.signature = hex.EncodeToString(signature)
}
@@ -726,13 +741,13 @@ func (ctx *signingCtx) removePresign() {
ctx.Query.Del("X-Amz-SignedHeaders")
}
-func makeHmac(key []byte, data []byte) []byte {
+func hmacSHA256(key []byte, data []byte) []byte {
hash := hmac.New(sha256.New, key)
hash.Write(data)
return hash.Sum(nil)
}
-func makeSha256(data []byte) []byte {
+func hashSHA256(data []byte) []byte {
hash := sha256.New()
hash.Write(data)
return hash.Sum(nil)
@@ -804,3 +819,28 @@ func stripExcessSpaces(vals []string) {
vals[i] = string(buf[:m])
}
}
+
+func buildSigningScope(region, service string, dt time.Time) string {
+ return strings.Join([]string{
+ formatShortTime(dt),
+ region,
+ service,
+ awsV4Request,
+ }, "/")
+}
+
+func deriveSigningKey(region, service, secretKey string, dt time.Time) []byte {
+ kDate := hmacSHA256([]byte("AWS4"+secretKey), []byte(formatShortTime(dt)))
+ kRegion := hmacSHA256(kDate, []byte(region))
+ kService := hmacSHA256(kRegion, []byte(service))
+ signingKey := hmacSHA256(kService, []byte(awsV4Request))
+ return signingKey
+}
+
+func formatShortTime(dt time.Time) string {
+ return dt.UTC().Format(shortTimeFormat)
+}
+
+func formatTime(dt time.Time) string {
+ return dt.UTC().Format(timeFormat)
+}
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/types.go b/vendor/github.com/aws/aws-sdk-go/aws/types.go
index 455091540..d542ef01b 100644
--- a/vendor/github.com/aws/aws-sdk-go/aws/types.go
+++ b/vendor/github.com/aws/aws-sdk-go/aws/types.go
@@ -2,6 +2,7 @@ package aws
import (
"io"
+ "strings"
"sync"
"github.com/aws/aws-sdk-go/internal/sdkio"
@@ -205,3 +206,36 @@ func (b *WriteAtBuffer) Bytes() []byte {
defer b.m.Unlock()
return b.buf
}
+
+// MultiCloser is a utility to close multiple io.Closers within a single
+// statement.
+type MultiCloser []io.Closer
+
+// Close closes all of the io.Closers making up the MultiClosers. Any
+// errors that occur while closing will be returned in the order they
+// occur.
+func (m MultiCloser) Close() error {
+ var errs errors
+ for _, c := range m {
+ err := c.Close()
+ if err != nil {
+ errs = append(errs, err)
+ }
+ }
+ if len(errs) != 0 {
+ return errs
+ }
+
+ return nil
+}
+
+type errors []error
+
+func (es errors) Error() string {
+ var parts []string
+ for _, e := range es {
+ parts = append(parts, e.Error())
+ }
+
+ return strings.Join(parts, "\n")
+}
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/version.go b/vendor/github.com/aws/aws-sdk-go/aws/version.go
index 199dbfee5..2fa107e6c 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 aws
const SDKName = "aws-sdk-go"
// SDKVersion is the version of this SDK
-const SDKVersion = "1.25.31"
+const SDKVersion = "1.29.9"
diff --git a/vendor/github.com/aws/aws-sdk-go/internal/context/background_go1.5.go b/vendor/github.com/aws/aws-sdk-go/internal/context/background_go1.5.go
new file mode 100644
index 000000000..876dcb3fd
--- /dev/null
+++ b/vendor/github.com/aws/aws-sdk-go/internal/context/background_go1.5.go
@@ -0,0 +1,40 @@
+// +build !go1.7
+
+package context
+
+import "time"
+
+// An emptyCtx is a copy of the Go 1.7 context.emptyCtx type. This is copied to
+// provide a 1.6 and 1.5 safe version of context that is compatible with Go
+// 1.7's Context.
+//
+// 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 BackgroundCtx:
+ return "aws.BackgroundContext"
+ }
+ return "unknown empty Context"
+}
+
+// BackgroundCtx is the common base context.
+var BackgroundCtx = new(emptyCtx)
diff --git a/vendor/github.com/aws/aws-sdk-go/internal/strings/strings.go b/vendor/github.com/aws/aws-sdk-go/internal/strings/strings.go
new file mode 100644
index 000000000..d008ae27c
--- /dev/null
+++ b/vendor/github.com/aws/aws-sdk-go/internal/strings/strings.go
@@ -0,0 +1,11 @@
+package strings
+
+import (
+ "strings"
+)
+
+// HasPrefixFold tests whether the string s begins with prefix, interpreted as UTF-8 strings,
+// under Unicode case-folding.
+func HasPrefixFold(s, prefix string) bool {
+ return len(s) >= len(prefix) && strings.EqualFold(s[0:len(prefix)], prefix)
+}
diff --git a/vendor/github.com/aws/aws-sdk-go/internal/sync/singleflight/LICENSE b/vendor/github.com/aws/aws-sdk-go/internal/sync/singleflight/LICENSE
new file mode 100644
index 000000000..6a66aea5e
--- /dev/null
+++ b/vendor/github.com/aws/aws-sdk-go/internal/sync/singleflight/LICENSE
@@ -0,0 +1,27 @@
+Copyright (c) 2009 The Go Authors. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+ * Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above
+copyright notice, this list of conditions and the following disclaimer
+in the documentation and/or other materials provided with the
+distribution.
+ * Neither the name of Google Inc. nor the names of its
+contributors may be used to endorse or promote products derived from
+this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/vendor/github.com/aws/aws-sdk-go/internal/sync/singleflight/singleflight.go b/vendor/github.com/aws/aws-sdk-go/internal/sync/singleflight/singleflight.go
new file mode 100644
index 000000000..14ad0c589
--- /dev/null
+++ b/vendor/github.com/aws/aws-sdk-go/internal/sync/singleflight/singleflight.go
@@ -0,0 +1,120 @@
+// Copyright 2013 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 singleflight provides a duplicate function call suppression
+// mechanism.
+package singleflight
+
+import "sync"
+
+// call is an in-flight or completed singleflight.Do call
+type call struct {
+ wg sync.WaitGroup
+
+ // These fields are written once before the WaitGroup is done
+ // and are only read after the WaitGroup is done.
+ val interface{}
+ err error
+
+ // forgotten indicates whether Forget was called with this call's key
+ // while the call was still in flight.
+ forgotten bool
+
+ // These fields are read and written with the singleflight
+ // mutex held before the WaitGroup is done, and are read but
+ // not written after the WaitGroup is done.
+ dups int
+ chans []chan<- Result
+}
+
+// Group represents a class of work and forms a namespace in
+// which units of work can be executed with duplicate suppression.
+type Group struct {
+ mu sync.Mutex // protects m
+ m map[string]*call // lazily initialized
+}
+
+// Result holds the results of Do, so they can be passed
+// on a channel.
+type Result struct {
+ Val interface{}
+ Err error
+ Shared bool
+}
+
+// Do executes and returns the results of the given function, making
+// sure that only one execution is in-flight for a given key at a
+// time. If a duplicate comes in, the duplicate caller waits for the
+// original to complete and receives the same results.
+// The return value shared indicates whether v was given to multiple callers.
+func (g *Group) Do(key string, fn func() (interface{}, error)) (v interface{}, err error, shared bool) {
+ g.mu.Lock()
+ if g.m == nil {
+ g.m = make(map[string]*call)
+ }
+ if c, ok := g.m[key]; ok {
+ c.dups++
+ g.mu.Unlock()
+ c.wg.Wait()
+ return c.val, c.err, true
+ }
+ c := new(call)
+ c.wg.Add(1)
+ g.m[key] = c
+ g.mu.Unlock()
+
+ g.doCall(c, key, fn)
+ return c.val, c.err, c.dups > 0
+}
+
+// DoChan is like Do but returns a channel that will receive the
+// results when they are ready.
+func (g *Group) DoChan(key string, fn func() (interface{}, error)) <-chan Result {
+ ch := make(chan Result, 1)
+ g.mu.Lock()
+ if g.m == nil {
+ g.m = make(map[string]*call)
+ }
+ if c, ok := g.m[key]; ok {
+ c.dups++
+ c.chans = append(c.chans, ch)
+ g.mu.Unlock()
+ return ch
+ }
+ c := &call{chans: []chan<- Result{ch}}
+ c.wg.Add(1)
+ g.m[key] = c
+ g.mu.Unlock()
+
+ go g.doCall(c, key, fn)
+
+ return ch
+}
+
+// doCall handles the single call for a key.
+func (g *Group) doCall(c *call, key string, fn func() (interface{}, error)) {
+ c.val, c.err = fn()
+ c.wg.Done()
+
+ g.mu.Lock()
+ if !c.forgotten {
+ delete(g.m, key)
+ }
+ for _, ch := range c.chans {
+ ch <- Result{c.val, c.err, c.dups > 0}
+ }
+ g.mu.Unlock()
+}
+
+// Forget tells the singleflight to forget about a key. Future calls
+// to Do for this key will call the function rather than waiting for
+// an earlier call to complete.
+func (g *Group) Forget(key string) {
+ g.mu.Lock()
+ if c, ok := g.m[key]; ok {
+ c.forgotten = true
+ }
+ delete(g.m, key)
+ g.mu.Unlock()
+}
diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/debug.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/debug.go
index ecc7bf82f..151054971 100644
--- a/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/debug.go
+++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/debug.go
@@ -101,7 +101,7 @@ func (hs *decodedHeaders) UnmarshalJSON(b []byte) error {
}
headers.Set(h.Name, value)
}
- (*hs) = decodedHeaders(headers)
+ *hs = decodedHeaders(headers)
return nil
}
diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/decode.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/decode.go
index 4b972b2d6..474339391 100644
--- a/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/decode.go
+++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/decode.go
@@ -21,10 +21,24 @@ type Decoder struct {
// NewDecoder initializes and returns a Decoder for decoding event
// stream messages from the reader provided.
-func NewDecoder(r io.Reader) *Decoder {
- return &Decoder{
+func NewDecoder(r io.Reader, opts ...func(*Decoder)) *Decoder {
+ d := &Decoder{
r: r,
}
+
+ for _, opt := range opts {
+ opt(d)
+ }
+
+ return d
+}
+
+// DecodeWithLogger adds a logger to be used by the decoder when decoding
+// stream events.
+func DecodeWithLogger(logger aws.Logger) func(*Decoder) {
+ return func(d *Decoder) {
+ d.logger = logger
+ }
}
// Decode attempts to decode a single message from the event stream reader.
@@ -40,6 +54,15 @@ func (d *Decoder) Decode(payloadBuf []byte) (m Message, err error) {
}()
}
+ m, err = Decode(reader, payloadBuf)
+
+ return m, err
+}
+
+// Decode attempts to decode a single message from the event stream reader.
+// Will return the event stream message, or error if Decode fails to read
+// the message from the reader.
+func Decode(reader io.Reader, payloadBuf []byte) (m Message, err error) {
crc := crc32.New(crc32IEEETable)
hashReader := io.TeeReader(reader, crc)
@@ -72,12 +95,6 @@ func (d *Decoder) Decode(payloadBuf []byte) (m Message, err error) {
return m, nil
}
-// UseLogger specifies the Logger that that the decoder should use to log the
-// message decode to.
-func (d *Decoder) UseLogger(logger aws.Logger) {
- d.logger = logger
-}
-
func logMessageDecode(logger aws.Logger, msgBuf *bytes.Buffer, msg Message, decodeErr error) {
w := bytes.NewBuffer(nil)
defer func() { logger.Log(w.String()) }()
diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/encode.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/encode.go
index 150a60981..ffade3bc0 100644
--- a/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/encode.go
+++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/encode.go
@@ -3,61 +3,107 @@ package eventstream
import (
"bytes"
"encoding/binary"
+ "encoding/hex"
+ "encoding/json"
+ "fmt"
"hash"
"hash/crc32"
"io"
+
+ "github.com/aws/aws-sdk-go/aws"
)
// Encoder provides EventStream message encoding.
type Encoder struct {
- w io.Writer
+ w io.Writer
+ logger aws.Logger
headersBuf *bytes.Buffer
}
// NewEncoder initializes and returns an Encoder to encode Event Stream
// messages to an io.Writer.
-func NewEncoder(w io.Writer) *Encoder {
- return &Encoder{
+func NewEncoder(w io.Writer, opts ...func(*Encoder)) *Encoder {
+ e := &Encoder{
w: w,
headersBuf: bytes.NewBuffer(nil),
}
+
+ for _, opt := range opts {
+ opt(e)
+ }
+
+ return e
+}
+
+// EncodeWithLogger adds a logger to be used by the encode when decoding
+// stream events.
+func EncodeWithLogger(logger aws.Logger) func(*Encoder) {
+ return func(d *Encoder) {
+ d.logger = logger
+ }
}
// Encode encodes a single EventStream message to the io.Writer the Encoder
// was created with. An error is returned if writing the message fails.
-func (e *Encoder) Encode(msg Message) error {
+func (e *Encoder) Encode(msg Message) (err error) {
e.headersBuf.Reset()
- err := encodeHeaders(e.headersBuf, msg.Headers)
- if err != nil {
+ writer := e.w
+ if e.logger != nil {
+ encodeMsgBuf := bytes.NewBuffer(nil)
+ writer = io.MultiWriter(writer, encodeMsgBuf)
+ defer func() {
+ logMessageEncode(e.logger, encodeMsgBuf, msg, err)
+ }()
+ }
+
+ if err = EncodeHeaders(e.headersBuf, msg.Headers); err != nil {
return err
}
crc := crc32.New(crc32IEEETable)
- hashWriter := io.MultiWriter(e.w, crc)
+ hashWriter := io.MultiWriter(writer, crc)
headersLen := uint32(e.headersBuf.Len())
payloadLen := uint32(len(msg.Payload))
- if err := encodePrelude(hashWriter, crc, headersLen, payloadLen); err != nil {
+ if err = encodePrelude(hashWriter, crc, headersLen, payloadLen); err != nil {
return err
}
if headersLen > 0 {
- if _, err := io.Copy(hashWriter, e.headersBuf); err != nil {
+ if _, err = io.Copy(hashWriter, e.headersBuf); err != nil {
return err
}
}
if payloadLen > 0 {
- if _, err := hashWriter.Write(msg.Payload); err != nil {
+ if _, err = hashWriter.Write(msg.Payload); err != nil {
return err
}
}
msgCRC := crc.Sum32()
- return binary.Write(e.w, binary.BigEndian, msgCRC)
+ return binary.Write(writer, binary.BigEndian, msgCRC)
+}
+
+func logMessageEncode(logger aws.Logger, msgBuf *bytes.Buffer, msg Message, encodeErr error) {
+ w := bytes.NewBuffer(nil)
+ defer func() { logger.Log(w.String()) }()
+
+ fmt.Fprintf(w, "Message to encode:\n")
+ encoder := json.NewEncoder(w)
+ if err := encoder.Encode(msg); err != nil {
+ fmt.Fprintf(w, "Failed to get encoded message, %v\n", err)
+ }
+
+ if encodeErr != nil {
+ fmt.Fprintf(w, "Encode error: %v\n", encodeErr)
+ return
+ }
+
+ fmt.Fprintf(w, "Raw message:\n%s\n", hex.Dump(msgBuf.Bytes()))
}
func encodePrelude(w io.Writer, crc hash.Hash32, headersLen, payloadLen uint32) error {
@@ -86,7 +132,9 @@ func encodePrelude(w io.Writer, crc hash.Hash32, headersLen, payloadLen uint32)
return nil
}
-func encodeHeaders(w io.Writer, headers Headers) error {
+// EncodeHeaders writes the header values to the writer encoded in the event
+// stream format. Returns an error if a header fails to encode.
+func EncodeHeaders(w io.Writer, headers Headers) error {
for _, h := range headers {
hn := headerName{
Len: uint8(len(h.Name)),
diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/error.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/error.go
index 5ea5a988b..34c2e89d5 100644
--- a/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/error.go
+++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/error.go
@@ -1,6 +1,9 @@
package eventstreamapi
-import "fmt"
+import (
+ "fmt"
+ "sync"
+)
type messageError struct {
code string
@@ -22,3 +25,53 @@ func (e messageError) Error() string {
func (e messageError) OrigErr() error {
return nil
}
+
+// OnceError wraps the behavior of recording an error
+// once and signal on a channel when this has occurred.
+// Signaling is done by closing of the channel.
+//
+// Type is safe for concurrent usage.
+type OnceError struct {
+ mu sync.RWMutex
+ err error
+ ch chan struct{}
+}
+
+// NewOnceError return a new OnceError
+func NewOnceError() *OnceError {
+ return &OnceError{
+ ch: make(chan struct{}, 1),
+ }
+}
+
+// Err acquires a read-lock and returns an
+// error if one has been set.
+func (e *OnceError) Err() error {
+ e.mu.RLock()
+ err := e.err
+ e.mu.RUnlock()
+
+ return err
+}
+
+// SetError acquires a write-lock and will set
+// the underlying error value if one has not been set.
+func (e *OnceError) SetError(err error) {
+ if err == nil {
+ return
+ }
+
+ e.mu.Lock()
+ if e.err == nil {
+ e.err = err
+ close(e.ch)
+ }
+ e.mu.Unlock()
+}
+
+// ErrorSet returns a channel that will be used to signal
+// that an error has been set. This channel will be closed
+// when the error value has been set for OnceError.
+func (e *OnceError) ErrorSet() <-chan struct{} {
+ return e.ch
+}
diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/api.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/reader.go
similarity index 77%
rename from vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/api.go
rename to vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/reader.go
index 97937c8e5..bb8ea5da1 100644
--- a/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/reader.go
@@ -2,9 +2,7 @@ package eventstreamapi
import (
"fmt"
- "io"
- "github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/eventstream"
)
@@ -15,27 +13,8 @@ type Unmarshaler interface {
UnmarshalEvent(protocol.PayloadUnmarshaler, eventstream.Message) error
}
-// EventStream headers with specific meaning to async API functionality.
-const (
- MessageTypeHeader = `:message-type` // Identifies type of message.
- EventMessageType = `event`
- ErrorMessageType = `error`
- ExceptionMessageType = `exception`
-
- // Message Events
- EventTypeHeader = `:event-type` // Identifies message event type e.g. "Stats".
-
- // Message Error
- ErrorCodeHeader = `:error-code`
- ErrorMessageHeader = `:error-message`
-
- // Message Exception
- ExceptionTypeHeader = `:exception-type`
-)
-
// EventReader provides reading from the EventStream of an reader.
type EventReader struct {
- reader io.ReadCloser
decoder *eventstream.Decoder
unmarshalerForEventType func(string) (Unmarshaler, error)
@@ -47,27 +26,18 @@ type EventReader struct {
// NewEventReader returns a EventReader built from the reader and unmarshaler
// provided. Use ReadStream method to start reading from the EventStream.
func NewEventReader(
- reader io.ReadCloser,
+ decoder *eventstream.Decoder,
payloadUnmarshaler protocol.PayloadUnmarshaler,
unmarshalerForEventType func(string) (Unmarshaler, error),
) *EventReader {
return &EventReader{
- reader: reader,
- decoder: eventstream.NewDecoder(reader),
+ decoder: decoder,
payloadUnmarshaler: payloadUnmarshaler,
unmarshalerForEventType: unmarshalerForEventType,
payloadBuf: make([]byte, 10*1024),
}
}
-// UseLogger instructs the EventReader to use the logger and log level
-// specified.
-func (r *EventReader) UseLogger(logger aws.Logger, logLevel aws.LogLevelType) {
- if logger != nil && logLevel.Matches(aws.LogDebugWithEventStreamBody) {
- r.decoder.UseLogger(logger)
- }
-}
-
// ReadEvent attempts to read a message from the EventStream and return the
// unmarshaled event value that the message is for.
//
@@ -95,8 +65,7 @@ func (r *EventReader) ReadEvent() (event interface{}, err error) {
case EventMessageType:
return r.unmarshalEventMessage(msg)
case ExceptionMessageType:
- err = r.unmarshalEventException(msg)
- return nil, err
+ return nil, r.unmarshalEventException(msg)
case ErrorMessageType:
return nil, r.unmarshalErrorMessage(msg)
default:
@@ -174,11 +143,6 @@ func (r *EventReader) unmarshalErrorMessage(msg eventstream.Message) (err error)
return msgErr
}
-// Close closes the EventReader's EventStream reader.
-func (r *EventReader) Close() error {
- return r.reader.Close()
-}
-
// GetHeaderString returns the value of the header as a string. If the header
// is not set or the value is not a string an error will be returned.
func GetHeaderString(msg eventstream.Message, headerName string) (string, error) {
diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/shared.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/shared.go
new file mode 100644
index 000000000..e46b8acc2
--- /dev/null
+++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/shared.go
@@ -0,0 +1,23 @@
+package eventstreamapi
+
+// EventStream headers with specific meaning to async API functionality.
+const (
+ ChunkSignatureHeader = `:chunk-signature` // chunk signature for message
+ DateHeader = `:date` // Date header for signature
+
+ // Message header and values
+ MessageTypeHeader = `:message-type` // Identifies type of message.
+ EventMessageType = `event`
+ ErrorMessageType = `error`
+ ExceptionMessageType = `exception`
+
+ // Message Events
+ EventTypeHeader = `:event-type` // Identifies message event type e.g. "Stats".
+
+ // Message Error
+ ErrorCodeHeader = `:error-code`
+ ErrorMessageHeader = `:error-message`
+
+ // Message Exception
+ ExceptionTypeHeader = `:exception-type`
+)
diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/signer.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/signer.go
new file mode 100644
index 000000000..3a7ba5cd5
--- /dev/null
+++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/signer.go
@@ -0,0 +1,123 @@
+package eventstreamapi
+
+import (
+ "bytes"
+ "strings"
+ "time"
+
+ "github.com/aws/aws-sdk-go/private/protocol/eventstream"
+)
+
+var timeNow = time.Now
+
+// StreamSigner defines an interface for the implementation of signing of event stream payloads
+type StreamSigner interface {
+ GetSignature(headers, payload []byte, date time.Time) ([]byte, error)
+}
+
+// SignEncoder envelopes event stream messages
+// into an event stream message payload with included
+// signature headers using the provided signer and encoder.
+type SignEncoder struct {
+ signer StreamSigner
+ encoder Encoder
+ bufEncoder *BufferEncoder
+
+ closeErr error
+ closed bool
+}
+
+// NewSignEncoder returns a new SignEncoder using the provided stream signer and
+// event stream encoder.
+func NewSignEncoder(signer StreamSigner, encoder Encoder) *SignEncoder {
+ // TODO: Need to pass down logging
+
+ return &SignEncoder{
+ signer: signer,
+ encoder: encoder,
+ bufEncoder: NewBufferEncoder(),
+ }
+}
+
+// Close encodes a final event stream signing envelope with an empty event stream
+// payload. This final end-frame is used to mark the conclusion of the stream.
+func (s *SignEncoder) Close() error {
+ if s.closed {
+ return s.closeErr
+ }
+
+ if err := s.encode([]byte{}); err != nil {
+ if strings.Contains(err.Error(), "on closed pipe") {
+ return nil
+ }
+
+ s.closeErr = err
+ s.closed = true
+ return s.closeErr
+ }
+
+ return nil
+}
+
+// Encode takes the provided message and add envelopes the message
+// with the required signature.
+func (s *SignEncoder) Encode(msg eventstream.Message) error {
+ payload, err := s.bufEncoder.Encode(msg)
+ if err != nil {
+ return err
+ }
+
+ return s.encode(payload)
+}
+
+func (s SignEncoder) encode(payload []byte) error {
+ date := timeNow()
+
+ var msg eventstream.Message
+ msg.Headers.Set(DateHeader, eventstream.TimestampValue(date))
+ msg.Payload = payload
+
+ var headers bytes.Buffer
+ if err := eventstream.EncodeHeaders(&headers, msg.Headers); err != nil {
+ return err
+ }
+
+ sig, err := s.signer.GetSignature(headers.Bytes(), msg.Payload, date)
+ if err != nil {
+ return err
+ }
+
+ msg.Headers.Set(ChunkSignatureHeader, eventstream.BytesValue(sig))
+
+ return s.encoder.Encode(msg)
+}
+
+// BufferEncoder is a utility that provides a buffered
+// event stream encoder
+type BufferEncoder struct {
+ encoder Encoder
+ buffer *bytes.Buffer
+}
+
+// NewBufferEncoder returns a new BufferEncoder initialized
+// with a 1024 byte buffer.
+func NewBufferEncoder() *BufferEncoder {
+ buf := bytes.NewBuffer(make([]byte, 1024))
+ return &BufferEncoder{
+ encoder: eventstream.NewEncoder(buf),
+ buffer: buf,
+ }
+}
+
+// Encode returns the encoded message as a byte slice.
+// The returned byte slice will be modified on the next encode call
+// and should not be held onto.
+func (e *BufferEncoder) Encode(msg eventstream.Message) ([]byte, error) {
+ e.buffer.Reset()
+
+ if err := e.encoder.Encode(msg); err != nil {
+ return nil, err
+ }
+
+ return e.buffer.Bytes(), nil
+}
diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/stream_writer.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/stream_writer.go
new file mode 100644
index 000000000..433bb1630
--- /dev/null
+++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/stream_writer.go
@@ -0,0 +1,129 @@
+package eventstreamapi
+
+import (
+ "fmt"
+ "io"
+ "sync"
+
+ "github.com/aws/aws-sdk-go/aws"
+)
+
+// StreamWriter provides concurrent safe writing to an event stream.
+type StreamWriter struct {
+ eventWriter *EventWriter
+ stream chan eventWriteAsyncReport
+
+ done chan struct{}
+ closeOnce sync.Once
+ err *OnceError
+
+ streamCloser io.Closer
+}
+
+// NewStreamWriter returns a StreamWriter for the event writer, and stream
+// closer provided.
+func NewStreamWriter(eventWriter *EventWriter, streamCloser io.Closer) *StreamWriter {
+ w := &StreamWriter{
+ eventWriter: eventWriter,
+ streamCloser: streamCloser,
+ stream: make(chan eventWriteAsyncReport),
+ done: make(chan struct{}),
+ err: NewOnceError(),
+ }
+ go w.writeStream()
+
+ return w
+}
+
+// Close terminates the writers ability to write new events to the stream. Any
+// future call to Send will fail with an error.
+func (w *StreamWriter) Close() error {
+ w.closeOnce.Do(w.safeClose)
+ return w.Err()
+}
+
+func (w *StreamWriter) safeClose() {
+ close(w.done)
+}
+
+// ErrorSet returns a channel which will be closed
+// if an error occurs.
+func (w *StreamWriter) ErrorSet() <-chan struct{} {
+ return w.err.ErrorSet()
+}
+
+// Err returns any error that occurred while attempting to write an event to the
+// stream.
+func (w *StreamWriter) Err() error {
+ return w.err.Err()
+}
+
+// Send writes a single event to the stream returning an error if the write
+// failed.
+//
+// Send may be called concurrently. Events will be written to the stream
+// safely.
+func (w *StreamWriter) Send(ctx aws.Context, event Marshaler) error {
+ if err := w.Err(); err != nil {
+ return err
+ }
+
+ resultCh := make(chan error)
+ wrapped := eventWriteAsyncReport{
+ Event: event,
+ Result: resultCh,
+ }
+
+ select {
+ case w.stream <- wrapped:
+ case <-ctx.Done():
+ return ctx.Err()
+ case <-w.done:
+ return fmt.Errorf("stream closed, unable to send event")
+ }
+
+ select {
+ case err := <-resultCh:
+ return err
+ case <-ctx.Done():
+ return ctx.Err()
+ case <-w.done:
+ return fmt.Errorf("stream closed, unable to send event")
+ }
+}
+
+func (w *StreamWriter) writeStream() {
+ defer w.Close()
+
+ for {
+ select {
+ case wrapper := <-w.stream:
+ err := w.eventWriter.WriteEvent(wrapper.Event)
+ wrapper.ReportResult(w.done, err)
+ if err != nil {
+ w.err.SetError(err)
+ return
+ }
+
+ case <-w.done:
+ if err := w.streamCloser.Close(); err != nil {
+ w.err.SetError(err)
+ }
+ return
+ }
+ }
+}
+
+type eventWriteAsyncReport struct {
+ Event Marshaler
+ Result chan<- error
+}
+
+func (e eventWriteAsyncReport) ReportResult(cancel <-chan struct{}, err error) bool {
+ select {
+ case e.Result <- err:
+ return true
+ case <-cancel:
+ return false
+ }
+}
diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/writer.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/writer.go
new file mode 100644
index 000000000..10a3823df
--- /dev/null
+++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/writer.go
@@ -0,0 +1,109 @@
+package eventstreamapi
+
+import (
+ "github.com/aws/aws-sdk-go/private/protocol"
+ "github.com/aws/aws-sdk-go/private/protocol/eventstream"
+)
+
+// Marshaler provides a marshaling interface for event types to event stream
+// messages.
+type Marshaler interface {
+ MarshalEvent(protocol.PayloadMarshaler) (eventstream.Message, error)
+}
+
+// Encoder is an stream encoder that will encode an event stream message for
+// the transport.
+type Encoder interface {
+ Encode(eventstream.Message) error
+}
+
+// EventWriter provides a wrapper around the underlying event stream encoder
+// for an io.WriteCloser.
+type EventWriter struct {
+ encoder Encoder
+ payloadMarshaler protocol.PayloadMarshaler
+ eventTypeFor func(Marshaler) (string, error)
+}
+
+// NewEventWriter returns a new event stream writer, that will write to the
+// writer provided. Use the WriteEvent method to write an event to the stream.
+func NewEventWriter(encoder Encoder, pm protocol.PayloadMarshaler, eventTypeFor func(Marshaler) (string, error),
+) *EventWriter {
+ return &EventWriter{
+ encoder: encoder,
+ payloadMarshaler: pm,
+ eventTypeFor: eventTypeFor,
+ }
+}
+
+// WriteEvent writes an event to the stream. Returns an error if the event
+// fails to marshal into a message, or writing to the underlying writer fails.
+func (w *EventWriter) WriteEvent(event Marshaler) error {
+ msg, err := w.marshal(event)
+ if err != nil {
+ return err
+ }
+
+ return w.encoder.Encode(msg)
+}
+
+func (w *EventWriter) marshal(event Marshaler) (eventstream.Message, error) {
+ eventType, err := w.eventTypeFor(event)
+ if err != nil {
+ return eventstream.Message{}, err
+ }
+
+ msg, err := event.MarshalEvent(w.payloadMarshaler)
+ if err != nil {
+ return eventstream.Message{}, err
+ }
+
+ msg.Headers.Set(EventTypeHeader, eventstream.StringValue(eventType))
+ return msg, nil
+}
+
+//type EventEncoder struct {
+// encoder Encoder
+// ppayloadMarshaler protocol.PayloadMarshaler
+// eventTypeFor func(Marshaler) (string, error)
+//}
+//
+//func (e EventEncoder) Encode(event Marshaler) error {
+// msg, err := e.marshal(event)
+// if err != nil {
+// return err
+// }
+//
+// return w.encoder.Encode(msg)
+//}
+//
+//func (e EventEncoder) marshal(event Marshaler) (eventstream.Message, error) {
+// eventType, err := w.eventTypeFor(event)
+// if err != nil {
+// return eventstream.Message{}, err
+// }
+//
+// msg, err := event.MarshalEvent(w.payloadMarshaler)
+// if err != nil {
+// return eventstream.Message{}, err
+// }
+//
+// msg.Headers.Set(EventTypeHeader, eventstream.StringValue(eventType))
+// return msg, nil
+//}
+//
+//func (w *EventWriter) marshal(event Marshaler) (eventstream.Message, error) {
+// eventType, err := w.eventTypeFor(event)
+// if err != nil {
+// return eventstream.Message{}, err
+// }
+//
+// msg, err := event.MarshalEvent(w.payloadMarshaler)
+// if err != nil {
+// return eventstream.Message{}, err
+// }
+//
+// msg.Headers.Set(EventTypeHeader, eventstream.StringValue(eventType))
+// return msg, nil
+//}
+//
diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/header_value.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/header_value.go
index e3fc0766a..9f509d8f6 100644
--- a/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/header_value.go
+++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/header_value.go
@@ -461,6 +461,11 @@ func (v *TimestampValue) decode(r io.Reader) error {
return nil
}
+// MarshalJSON implements the json.Marshaler interface
+func (v TimestampValue) MarshalJSON() ([]byte, error) {
+ return []byte(v.String()), nil
+}
+
func timeFromEpochMilli(t int64) time.Time {
secs := t / 1e3
msec := t % 1e3
diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/message.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/message.go
index 2dc012a66..25c9783cd 100644
--- a/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/message.go
+++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/message.go
@@ -27,7 +27,7 @@ func (m *Message) rawMessage() (rawMessage, error) {
if len(m.Headers) > 0 {
var headers bytes.Buffer
- if err := encodeHeaders(&headers, m.Headers); err != nil {
+ if err := EncodeHeaders(&headers, m.Headers); err != nil {
return rawMessage{}, err
}
raw.Headers = headers.Bytes()
diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/unmarshal.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/unmarshal.go
index ea0da79a5..5e9499699 100644
--- a/vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/unmarshal.go
+++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/unmarshal.go
@@ -7,6 +7,7 @@ import (
"fmt"
"io"
"reflect"
+ "strings"
"time"
"github.com/aws/aws-sdk-go/aws"
@@ -45,10 +46,31 @@ func UnmarshalJSON(v interface{}, stream io.Reader) error {
return err
}
- return unmarshalAny(reflect.ValueOf(v), out, "")
+ return unmarshaler{}.unmarshalAny(reflect.ValueOf(v), out, "")
}
-func unmarshalAny(value reflect.Value, data interface{}, tag reflect.StructTag) error {
+// UnmarshalJSONCaseInsensitive reads a stream and unmarshals the result into the
+// object v. Ignores casing for structure members.
+func UnmarshalJSONCaseInsensitive(v interface{}, stream io.Reader) error {
+ var out interface{}
+
+ err := json.NewDecoder(stream).Decode(&out)
+ if err == io.EOF {
+ return nil
+ } else if err != nil {
+ return err
+ }
+
+ return unmarshaler{
+ caseInsensitive: true,
+ }.unmarshalAny(reflect.ValueOf(v), out, "")
+}
+
+type unmarshaler struct {
+ caseInsensitive bool
+}
+
+func (u unmarshaler) unmarshalAny(value reflect.Value, data interface{}, tag reflect.StructTag) error {
vtype := value.Type()
if vtype.Kind() == reflect.Ptr {
vtype = vtype.Elem() // check kind of actual element type
@@ -80,17 +102,17 @@ func unmarshalAny(value reflect.Value, data interface{}, tag reflect.StructTag)
if field, ok := vtype.FieldByName("_"); ok {
tag = field.Tag
}
- return unmarshalStruct(value, data, tag)
+ return u.unmarshalStruct(value, data, tag)
case "list":
- return unmarshalList(value, data, tag)
+ return u.unmarshalList(value, data, tag)
case "map":
- return unmarshalMap(value, data, tag)
+ return u.unmarshalMap(value, data, tag)
default:
- return unmarshalScalar(value, data, tag)
+ return u.unmarshalScalar(value, data, tag)
}
}
-func unmarshalStruct(value reflect.Value, data interface{}, tag reflect.StructTag) error {
+func (u unmarshaler) unmarshalStruct(value reflect.Value, data interface{}, tag reflect.StructTag) error {
if data == nil {
return nil
}
@@ -114,7 +136,7 @@ func unmarshalStruct(value reflect.Value, data interface{}, tag reflect.StructTa
// unwrap any payloads
if payload := tag.Get("payload"); payload != "" {
field, _ := t.FieldByName(payload)
- return unmarshalAny(value.FieldByName(payload), data, field.Tag)
+ return u.unmarshalAny(value.FieldByName(payload), data, field.Tag)
}
for i := 0; i < t.NumField(); i++ {
@@ -128,9 +150,19 @@ func unmarshalStruct(value reflect.Value, data interface{}, tag reflect.StructTa
if locName := field.Tag.Get("locationName"); locName != "" {
name = locName
}
+ if u.caseInsensitive {
+ if _, ok := mapData[name]; !ok {
+ // Fallback to uncased name search if the exact name didn't match.
+ for kn, v := range mapData {
+ if strings.EqualFold(kn, name) {
+ mapData[name] = v
+ }
+ }
+ }
+ }
member := value.FieldByIndex(field.Index)
- err := unmarshalAny(member, mapData[name], field.Tag)
+ err := u.unmarshalAny(member, mapData[name], field.Tag)
if err != nil {
return err
}
@@ -138,7 +170,7 @@ func unmarshalStruct(value reflect.Value, data interface{}, tag reflect.StructTa
return nil
}
-func unmarshalList(value reflect.Value, data interface{}, tag reflect.StructTag) error {
+func (u unmarshaler) unmarshalList(value reflect.Value, data interface{}, tag reflect.StructTag) error {
if data == nil {
return nil
}
@@ -153,7 +185,7 @@ func unmarshalList(value reflect.Value, data interface{}, tag reflect.StructTag)
}
for i, c := range listData {
- err := unmarshalAny(value.Index(i), c, "")
+ err := u.unmarshalAny(value.Index(i), c, "")
if err != nil {
return err
}
@@ -162,7 +194,7 @@ func unmarshalList(value reflect.Value, data interface{}, tag reflect.StructTag)
return nil
}
-func unmarshalMap(value reflect.Value, data interface{}, tag reflect.StructTag) error {
+func (u unmarshaler) unmarshalMap(value reflect.Value, data interface{}, tag reflect.StructTag) error {
if data == nil {
return nil
}
@@ -179,14 +211,14 @@ func unmarshalMap(value reflect.Value, data interface{}, tag reflect.StructTag)
kvalue := reflect.ValueOf(k)
vvalue := reflect.New(value.Type().Elem()).Elem()
- unmarshalAny(vvalue, v, "")
+ u.unmarshalAny(vvalue, v, "")
value.SetMapIndex(kvalue, vvalue)
}
return nil
}
-func unmarshalScalar(value reflect.Value, data interface{}, tag reflect.StructTag) error {
+func (u unmarshaler) unmarshalScalar(value reflect.Value, data interface{}, tag reflect.StructTag) error {
switch d := data.(type) {
case nil:
diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/payload.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/payload.go
index e21614a12..0ea0647a5 100644
--- a/vendor/github.com/aws/aws-sdk-go/private/protocol/payload.go
+++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/payload.go
@@ -64,7 +64,7 @@ func (h HandlerPayloadMarshal) MarshalPayload(w io.Writer, v interface{}) error
metadata.ClientInfo{},
request.Handlers{},
nil,
- &request.Operation{HTTPMethod: "GET"},
+ &request.Operation{HTTPMethod: "PUT"},
v,
nil,
)
diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/protocol.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/protocol.go
new file mode 100644
index 000000000..9d521dcb9
--- /dev/null
+++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/protocol.go
@@ -0,0 +1,49 @@
+package protocol
+
+import (
+ "fmt"
+ "strings"
+
+ "github.com/aws/aws-sdk-go/aws/awserr"
+ "github.com/aws/aws-sdk-go/aws/request"
+)
+
+// RequireHTTPMinProtocol request handler is used to enforce that
+// the target endpoint supports the given major and minor HTTP protocol version.
+type RequireHTTPMinProtocol struct {
+ Major, Minor int
+}
+
+// Handler will mark the request.Request with an error if the
+// target endpoint did not connect with the required HTTP protocol
+// major and minor version.
+func (p RequireHTTPMinProtocol) Handler(r *request.Request) {
+ if r.Error != nil || r.HTTPResponse == nil {
+ return
+ }
+
+ if !strings.HasPrefix(r.HTTPResponse.Proto, "HTTP") {
+ r.Error = newMinHTTPProtoError(p.Major, p.Minor, r)
+ }
+
+ if r.HTTPResponse.ProtoMajor < p.Major || r.HTTPResponse.ProtoMinor < p.Minor {
+ r.Error = newMinHTTPProtoError(p.Major, p.Minor, r)
+ }
+}
+
+// ErrCodeMinimumHTTPProtocolError error code is returned when the target endpoint
+// did not match the required HTTP major and minor protocol version.
+const ErrCodeMinimumHTTPProtocolError = "MinimumHTTPProtocolError"
+
+func newMinHTTPProtoError(major, minor int, r *request.Request) error {
+ return awserr.NewRequestFailure(
+ awserr.New("MinimumHTTPProtocolError",
+ fmt.Sprintf(
+ "operation requires minimum HTTP protocol of HTTP/%d.%d, but was %s",
+ major, minor, r.HTTPResponse.Proto,
+ ),
+ nil,
+ ),
+ r.HTTPResponse.StatusCode, r.RequestID,
+ )
+}
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.go
index 0cb99eb57..d40346a77 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 serialization of AWS query requests, and responses.
package query
-//go:generate go run -tags codegen ../../../models/protocol_tests/generate.go ../../../models/protocol_tests/input/query.json build_test.go
+//go:generate go run -tags codegen ../../../private/model/cli/gen-protocol-tests ../../../models/protocol_tests/input/query.json build_test.go
import (
"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.go
index f69c1efc9..9231e95d1 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 -tags codegen ../../../models/protocol_tests/generate.go ../../../models/protocol_tests/output/query.json unmarshal_test.go
+//go:generate go run -tags codegen ../../../private/model/cli/gen-protocol-tests ../../../models/protocol_tests/output/query.json unmarshal_test.go
import (
"encoding/xml"
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.go
index 74e361e07..92f8b4d9a 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
@@ -15,6 +15,7 @@ import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/request"
+ awsStrings "github.com/aws/aws-sdk-go/internal/strings"
"github.com/aws/aws-sdk-go/private/protocol"
)
@@ -28,7 +29,9 @@ var UnmarshalMetaHandler = request.NamedHandler{Name: "awssdk.rest.UnmarshalMeta
func Unmarshal(r *request.Request) {
if r.DataFilled() {
v := reflect.Indirect(reflect.ValueOf(r.Data))
- unmarshalBody(r, v)
+ if err := unmarshalBody(r, v); err != nil {
+ r.Error = err
+ }
}
}
@@ -40,12 +43,21 @@ func UnmarshalMeta(r *request.Request) {
r.RequestID = r.HTTPResponse.Header.Get("X-Amz-Request-Id")
}
if r.DataFilled() {
- v := reflect.Indirect(reflect.ValueOf(r.Data))
- unmarshalLocationElements(r, v)
+ if err := UnmarshalResponse(r.HTTPResponse, r.Data, aws.BoolValue(r.Config.LowerCaseHeaderMaps)); err != nil {
+ r.Error = err
+ }
}
}
-func unmarshalBody(r *request.Request, v reflect.Value) {
+// UnmarshalResponse attempts to unmarshal the REST response headers to
+// the data type passed in. The type must be a pointer. An error is returned
+// with any error unmarshaling the response into the target datatype.
+func UnmarshalResponse(resp *http.Response, data interface{}, lowerCaseHeaderMaps bool) error {
+ v := reflect.Indirect(reflect.ValueOf(data))
+ return unmarshalLocationElements(resp, v, lowerCaseHeaderMaps)
+}
+
+func unmarshalBody(r *request.Request, v reflect.Value) error {
if field, ok := v.Type().FieldByName("_"); ok {
if payloadName := field.Tag.Get("payload"); payloadName != "" {
pfield, _ := v.Type().FieldByName(payloadName)
@@ -57,35 +69,38 @@ func unmarshalBody(r *request.Request, v reflect.Value) {
defer r.HTTPResponse.Body.Close()
b, err := ioutil.ReadAll(r.HTTPResponse.Body)
if err != nil {
- r.Error = awserr.New(request.ErrCodeSerialization, "failed to decode REST response", err)
- } else {
- payload.Set(reflect.ValueOf(b))
+ return awserr.New(request.ErrCodeSerialization, "failed to decode REST response", err)
}
+
+ 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(request.ErrCodeSerialization, "failed to decode REST response", err)
- } else {
- str := string(b)
- payload.Set(reflect.ValueOf(&str))
+ return awserr.New(request.ErrCodeSerialization, "failed to decode REST response", err)
}
+
+ str := string(b)
+ payload.Set(reflect.ValueOf(&str))
+
default:
switch payload.Type().String() {
case "io.ReadCloser":
payload.Set(reflect.ValueOf(r.HTTPResponse.Body))
+
case "io.ReadSeeker":
b, err := ioutil.ReadAll(r.HTTPResponse.Body)
if err != nil {
- r.Error = awserr.New(request.ErrCodeSerialization,
+ return awserr.New(request.ErrCodeSerialization,
"failed to read response body", err)
- return
}
payload.Set(reflect.ValueOf(ioutil.NopCloser(bytes.NewReader(b))))
+
default:
io.Copy(ioutil.Discard, r.HTTPResponse.Body)
- defer r.HTTPResponse.Body.Close()
- r.Error = awserr.New(request.ErrCodeSerialization,
+ r.HTTPResponse.Body.Close()
+ return awserr.New(request.ErrCodeSerialization,
"failed to decode REST response",
fmt.Errorf("unknown payload type %s", payload.Type()))
}
@@ -94,9 +109,11 @@ func unmarshalBody(r *request.Request, v reflect.Value) {
}
}
}
+
+ return nil
}
-func unmarshalLocationElements(r *request.Request, v reflect.Value) {
+func unmarshalLocationElements(resp *http.Response, v reflect.Value, lowerCaseHeaderMaps bool) error {
for i := 0; i < v.NumField(); i++ {
m, field := v.Field(i), v.Type().Field(i)
if n := field.Name; n[0:1] == strings.ToLower(n[0:1]) {
@@ -111,26 +128,25 @@ func unmarshalLocationElements(r *request.Request, v reflect.Value) {
switch field.Tag.Get("location") {
case "statusCode":
- unmarshalStatusCode(m, r.HTTPResponse.StatusCode)
+ unmarshalStatusCode(m, resp.StatusCode)
+
case "header":
- err := unmarshalHeader(m, r.HTTPResponse.Header.Get(name), field.Tag)
+ err := unmarshalHeader(m, resp.Header.Get(name), field.Tag)
if err != nil {
- r.Error = awserr.New(request.ErrCodeSerialization, "failed to decode REST response", err)
- break
+ return awserr.New(request.ErrCodeSerialization, "failed to decode REST response", err)
}
+
case "headers":
prefix := field.Tag.Get("locationName")
- err := unmarshalHeaderMap(m, r.HTTPResponse.Header, prefix)
+ err := unmarshalHeaderMap(m, resp.Header, prefix, lowerCaseHeaderMaps)
if err != nil {
- r.Error = awserr.New(request.ErrCodeSerialization, "failed to decode REST response", err)
- break
+ awserr.New(request.ErrCodeSerialization, "failed to decode REST response", err)
}
}
}
- if r.Error != nil {
- return
- }
}
+
+ return nil
}
func unmarshalStatusCode(v reflect.Value, statusCode int) {
@@ -145,7 +161,7 @@ func unmarshalStatusCode(v reflect.Value, statusCode int) {
}
}
-func unmarshalHeaderMap(r reflect.Value, headers http.Header, prefix string) error {
+func unmarshalHeaderMap(r reflect.Value, headers http.Header, prefix string, normalize bool) error {
if len(headers) == 0 {
return nil
}
@@ -153,8 +169,12 @@ func unmarshalHeaderMap(r reflect.Value, headers http.Header, prefix string) err
case map[string]*string: // we only support string map value types
out := map[string]*string{}
for k, v := range headers {
- k = http.CanonicalHeaderKey(k)
- if strings.HasPrefix(strings.ToLower(k), strings.ToLower(prefix)) {
+ if awsStrings.HasPrefixFold(k, prefix) {
+ if normalize == true {
+ k = strings.ToLower(k)
+ } else {
+ k = http.CanonicalHeaderKey(k)
+ }
out[k[len(prefix):]] = &v[0]
}
}
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.go
index 07a6187ea..b1ae36487 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
@@ -2,8 +2,8 @@
// requests and responses.
package restxml
-//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.go
+//go:generate go run -tags codegen ../../../private/model/cli/gen-protocol-tests ../../../models/protocol_tests/input/rest-xml.json build_test.go
+//go:generate go run -tags codegen ../../../private/model/cli/gen-protocol-tests ../../../models/protocol_tests/output/rest-xml.json unmarshal_test.go
import (
"bytes"
diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/unmarshal.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/unmarshal.go
index da1a68111..f614ef898 100644
--- a/vendor/github.com/aws/aws-sdk-go/private/protocol/unmarshal.go
+++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/unmarshal.go
@@ -19,3 +19,9 @@ func UnmarshalDiscardBody(r *request.Request) {
io.Copy(ioutil.Discard, r.HTTPResponse.Body)
r.HTTPResponse.Body.Close()
}
+
+// ResponseMetadata provides the SDK response metadata attributes.
+type ResponseMetadata struct {
+ StatusCode int
+ RequestID string
+}
diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/unmarshal_error.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/unmarshal_error.go
new file mode 100644
index 000000000..cc857f136
--- /dev/null
+++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/unmarshal_error.go
@@ -0,0 +1,65 @@
+package protocol
+
+import (
+ "net/http"
+
+ "github.com/aws/aws-sdk-go/aws/awserr"
+ "github.com/aws/aws-sdk-go/aws/request"
+)
+
+// UnmarshalErrorHandler provides unmarshaling errors API response errors for
+// both typed and untyped errors.
+type UnmarshalErrorHandler struct {
+ unmarshaler ErrorUnmarshaler
+}
+
+// ErrorUnmarshaler is an abstract interface for concrete implementations to
+// unmarshal protocol specific response errors.
+type ErrorUnmarshaler interface {
+ UnmarshalError(*http.Response, ResponseMetadata) (error, error)
+}
+
+// NewUnmarshalErrorHandler returns an UnmarshalErrorHandler
+// initialized for the set of exception names to the error unmarshalers
+func NewUnmarshalErrorHandler(unmarshaler ErrorUnmarshaler) *UnmarshalErrorHandler {
+ return &UnmarshalErrorHandler{
+ unmarshaler: unmarshaler,
+ }
+}
+
+// UnmarshalErrorHandlerName is the name of the named handler.
+const UnmarshalErrorHandlerName = "awssdk.protocol.UnmarshalError"
+
+// NamedHandler returns a NamedHandler for the unmarshaler using the set of
+// errors the unmarshaler was initialized for.
+func (u *UnmarshalErrorHandler) NamedHandler() request.NamedHandler {
+ return request.NamedHandler{
+ Name: UnmarshalErrorHandlerName,
+ Fn: u.UnmarshalError,
+ }
+}
+
+// UnmarshalError will attempt to unmarshal the API response's error message
+// into either a generic SDK error type, or a typed error corresponding to the
+// errors exception name.
+func (u *UnmarshalErrorHandler) UnmarshalError(r *request.Request) {
+ defer r.HTTPResponse.Body.Close()
+
+ respMeta := ResponseMetadata{
+ StatusCode: r.HTTPResponse.StatusCode,
+ RequestID: r.RequestID,
+ }
+
+ v, err := u.unmarshaler.UnmarshalError(r.HTTPResponse, respMeta)
+ if err != nil {
+ r.Error = awserr.NewRequestFailure(
+ awserr.New(request.ErrCodeSerialization,
+ "failed to unmarshal response error", err),
+ respMeta.StatusCode,
+ respMeta.RequestID,
+ )
+ return
+ }
+
+ r.Error = v
+}
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.go
index 04a928640..52e87308f 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
@@ -7,7 +7,6 @@ import (
"fmt"
"io"
"sync"
- "sync/atomic"
"time"
"github.com/aws/aws-sdk-go/aws"
@@ -20,6 +19,7 @@ import (
"github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi"
"github.com/aws/aws-sdk-go/private/protocol/rest"
"github.com/aws/aws-sdk-go/private/protocol/restxml"
+ "github.com/aws/aws-sdk-go/service/s3/internal/arn"
)
const opAbortMultipartUpload = "AbortMultipartUpload"
@@ -66,11 +66,31 @@ func (c *S3) AbortMultipartUploadRequest(input *AbortMultipartUploadInput) (req
// AbortMultipartUpload API operation for Amazon Simple Storage Service.
//
-// Aborts a multipart upload.
+// This operation aborts a multipart upload. After a multipart upload is aborted,
+// no additional parts can be uploaded using that upload ID. The storage consumed
+// by any previously uploaded parts will be freed. However, if any part uploads
+// are currently in progress, those part uploads might or might not succeed.
+// As a result, it might be necessary to abort a given multipart upload multiple
+// times in order to completely free all storage consumed by all parts.
//
// 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.
+// the part storage, you should call the ListParts operation and ensure that
+// the parts list is empty.
+//
+// For information about permissions required to use the multipart upload API,
+// see Multipart Upload API and Permissions (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html).
+//
+// The following operations are related to AbortMultipartUpload:
+//
+// * CreateMultipartUpload
+//
+// * UploadPart
+//
+// * CompleteMultipartUpload
+//
+// * ListParts
+//
+// * ListMultipartUploads
//
// 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
@@ -151,6 +171,64 @@ func (c *S3) CompleteMultipartUploadRequest(input *CompleteMultipartUploadInput)
//
// Completes a multipart upload by assembling previously uploaded parts.
//
+// You first initiate the multipart upload and then upload all parts using the
+// UploadPart operation. After successfully uploading all relevant parts of
+// an upload, you call this operation to complete the upload. Upon receiving
+// this request, Amazon S3 concatenates all the parts in ascending order by
+// part number to create a new object. In the Complete Multipart Upload request,
+// you must provide the parts list. You must ensure that the parts list is complete.
+// This operation concatenates the parts that you provide in the list. For each
+// part in the list, you must provide the part number and the ETag value, returned
+// after that part was uploaded.
+//
+// Processing of a Complete Multipart Upload request could take several minutes
+// to complete. After Amazon S3 begins processing the request, it sends an HTTP
+// response header that specifies a 200 OK response. While processing is in
+// progress, Amazon S3 periodically sends white space characters to keep the
+// connection from timing out. Because a request could fail after the initial
+// 200 OK response has been sent, it is important that you check the response
+// body to determine whether the request succeeded.
+//
+// Note that if CompleteMultipartUpload fails, applications should be prepared
+// to retry the failed requests. For more information, see Amazon S3 Error Best
+// Practices (https://docs.aws.amazon.com/AmazonS3/latest/dev/ErrorBestPractices.html).
+//
+// For more information about multipart uploads, see Uploading Objects Using
+// Multipart Upload (https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html).
+//
+// For information about permissions required to use the multipart upload API,
+// see Multipart Upload API and Permissions (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html).
+//
+// GetBucketLifecycle has the following special errors:
+//
+// * Error code: EntityTooSmall Description: Your proposed upload is smaller
+// than the minimum allowed object size. Each part must be at least 5 MB
+// in size, except the last part. 400 Bad Request
+//
+// * Error code: InvalidPart Description: One or more of the specified parts
+// could not be found. The part might not have been uploaded, or the specified
+// entity tag might not have matched the part's entity tag. 400 Bad Request
+//
+// * Error code: InvalidPartOrder Description: The list of parts was not
+// in ascending order. The parts list must be specified in order by part
+// number. 400 Bad Request
+//
+// * Error code: NoSuchUpload Description: The specified multipart upload
+// does not exist. The upload ID might be invalid, or the multipart upload
+// might have been aborted or completed. 404 Not Found
+//
+// The following operations are related to DeleteBucketMetricsConfiguration:
+//
+// * CreateMultipartUpload
+//
+// * UploadPart
+//
+// * AbortMultipartUpload
+//
+// * ListParts
+//
+// * ListMultipartUploads
+//
// 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.
@@ -225,6 +303,194 @@ func (c *S3) CopyObjectRequest(input *CopyObjectInput) (req *request.Request, ou
//
// Creates a copy of an object that is already stored in Amazon S3.
//
+// You can store individual objects of up to 5 TB in Amazon S3. You create a
+// copy of your object up to 5 GB in size in a single atomic operation using
+// this API. However, for copying an object greater than 5 GB, you must use
+// the multipart upload Upload Part - Copy API. For more information, see Copy
+// Object Using the REST Multipart Upload API (https://docs.aws.amazon.com/AmazonS3/latest/dev/CopyingObjctsUsingRESTMPUapi.html).
+//
+// When copying an object, you can preserve all metadata (default) or specify
+// new metadata. However, the ACL is not preserved and is set to private for
+// the user making the request. To override the default ACL setting, specify
+// a new ACL when generating a copy request. For more information, see Using
+// ACLs (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3_ACLs_UsingACLs.html).
+//
+// Amazon S3 transfer acceleration does not support cross-region copies. If
+// you request a cross-region copy using a transfer acceleration endpoint, you
+// get a 400 Bad Request error. For more information about transfer acceleration,
+// see Transfer Acceleration (https://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html).
+//
+// All copy requests must be authenticated. Additionally, you must have read
+// access to the source object and write access to the destination bucket. For
+// more information, see REST Authentication (https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html).
+// Both the Region that you want to copy the object from and the Region that
+// you want to copy the object to must be enabled for your account.
+//
+// To only copy an object under certain conditions, such as whether the Etag
+// matches or whether the object was modified before or after a specified date,
+// use the request parameters x-amz-copy-source-if-match, x-amz-copy-source-if-none-match,
+// x-amz-copy-source-if-unmodified-since, or x-amz-copy-source-if-modified-since.
+//
+// All headers with the x-amz- prefix, including x-amz-copy-source, must be
+// signed.
+//
+// You can use this operation to change the storage class of an object that
+// is already stored in Amazon S3 using the StorageClass parameter. For more
+// information, see Storage Classes (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html).
+//
+// The source object that you are copying can be encrypted or unencrypted. If
+// the source object is encrypted, it can be encrypted by server-side encryption
+// using AWS managed encryption keys or by using a customer-provided encryption
+// key. When copying an object, you can request that Amazon S3 encrypt the target
+// object by using either the AWS managed encryption keys or by using your own
+// encryption key. You can do this regardless of the form of server-side encryption
+// that was used to encrypt the source, or even if the source object was not
+// encrypted. For more information about server-side encryption, see Using Server-Side
+// Encryption (https://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html).
+//
+// A copy request might return an error when Amazon S3 receives the copy request
+// or while Amazon S3 is copying the files. If the error occurs before the copy
+// operation starts, you receive a standard Amazon S3 error. If the error occurs
+// during the copy operation, the error response is embedded in the 200 OK response.
+// This means that a 200 OK response can contain either a success or an error.
+// Design your application to parse the contents of the response and handle
+// it appropriately.
+//
+// If the copy is successful, you receive a response with information about
+// the copied object.
+//
+// If the request is an HTTP 1.1 request, the response is chunk encoded. If
+// it were not, it would not contain the content-length, and you would need
+// to read the entire body.
+//
+// Consider the following when using request headers:
+//
+// * Consideration 1 – If both the x-amz-copy-source-if-match and x-amz-copy-source-if-unmodified-since
+// headers are present in the request and evaluate as follows, Amazon S3
+// returns 200 OK and copies the data: x-amz-copy-source-if-match condition
+// evaluates to true x-amz-copy-source-if-unmodified-since condition evaluates
+// to false
+//
+// * Consideration 2 – If both of the x-amz-copy-source-if-none-match and
+// x-amz-copy-source-if-modified-since headers are present in the request
+// and evaluate as follows, Amazon S3 returns the 412 Precondition Failed
+// response code: x-amz-copy-source-if-none-match condition evaluates to
+// false x-amz-copy-source-if-modified-since condition evaluates to true
+//
+// The copy request charge is based on the storage class and Region you specify
+// for the destination object. For pricing information, see Amazon S3 Pricing
+// (https://aws.amazon.com/s3/pricing/).
+//
+// Following are other considerations when using CopyObject:
+//
+// Versioning
+//
+// By default, x-amz-copy-source identifies the current version of an object
+// to copy. (If the current version is a delete marker, Amazon S3 behaves as
+// if the object was deleted.) To copy a different version, use the versionId
+// subresource.
+//
+// If you enable versioning on the target bucket, Amazon S3 generates a unique
+// version ID for the object being copied. This version ID is different from
+// the version ID of the source object. Amazon S3 returns the version ID of
+// the copied object in the x-amz-version-id response header in the response.
+//
+// If you do not enable versioning or suspend it on the target bucket, the version
+// ID that Amazon S3 generates is always null.
+//
+// If the source object's storage class is GLACIER, you must restore a copy
+// of this object before you can use it as a source object for the copy operation.
+// For more information, see .
+//
+// Access Permissions
+//
+// When copying an object, you can optionally specify the accounts or groups
+// that should be granted specific permissions on the new object. There are
+// two ways to grant the permissions using the request headers:
+//
+// * Specify a canned ACL with the x-amz-acl request header. For more information,
+// see Canned ACL (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL).
+//
+// * Specify access permissions explicitly with the x-amz-grant-read, x-amz-grant-read-acp,
+// x-amz-grant-write-acp, and x-amz-grant-full-control headers. These parameters
+// map to the set of permissions that Amazon S3 supports in an ACL. For more
+// information, see Access Control List (ACL) Overview (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html).
+//
+// You can use either a canned ACL or specify access permissions explicitly.
+// You cannot do both.
+//
+// Server-Side- Encryption-Specific Request Headers
+//
+// To encrypt the target object, you must provide the appropriate encryption-related
+// request headers. The one you use depends on whether you want to use AWS managed
+// encryption keys or provide your own encryption key.
+//
+// * To encrypt the target object using server-side encryption with an AWS
+// managed encryption key, provide the following request headers, as appropriate.
+// x-amz-server-side​-encryption x-amz-server-side-encryption-aws-kms-key-id
+// x-amz-server-side-encryption-context If you specify x-amz-server-side-encryption:aws:kms,
+// but don't provide x-amz-server-side-encryption-aws-kms-key-id, Amazon
+// S3 uses the AWS managed CMK in AWS KMS to protect the data. If you want
+// to use a customer managed AWS KMS CMK, you must provide the x-amz-server-side-encryption-aws-kms-key-id
+// of the symmetric customer managed CMK. Amazon S3 only supports symmetric
+// CMKs and not asymmetric CMKs. For more information, see Using Symmetric
+// and Asymmetric Keys (https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html)
+// in the AWS Key Management Service Developer Guide. All GET and PUT requests
+// for an object protected by AWS KMS fail if you don't make them with SSL
+// or by using SigV4. For more information about server-side encryption with
+// CMKs stored in AWS KMS (SSE-KMS), see Protecting Data Using Server-Side
+// Encryption with CMKs stored in KMS (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html).
+//
+// * To encrypt the target object using server-side encryption with an encryption
+// key that you provide, use the following headers. x-amz-server-side​-encryption​-customer-algorithm
+// x-amz-server-side​-encryption​-customer-key x-amz-server-side​-encryption​-customer-key-MD5
+//
+// * If the source object is encrypted using server-side encryption with
+// customer-provided encryption keys, you must use the following headers.
+// x-amz-copy-source​-server-side​-encryption​-customer-algorithm x-amz-copy-source​-server-side​-encryption​-customer-key
+// x-amz-copy-source-​server-side​-encryption​-customer-key-MD5 For
+// more information about server-side encryption with CMKs stored in AWS
+// KMS (SSE-KMS), see Protecting Data Using Server-Side Encryption with CMKs
+// stored in Amazon KMS (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html).
+//
+// Access-Control-List (ACL)-Specific Request Headers
+//
+// You also can use the following access control–related headers with this
+// operation. By default, all objects are private. Only the owner has full access
+// control. When adding a new object, you can grant permissions to individual
+// AWS accounts or to predefined groups defined by Amazon S3. These permissions
+// are then added to the access control list (ACL) on the object. For more information,
+// see Using ACLs (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3_ACLs_UsingACLs.html).
+// With this operation, you can grant access permissions using one of the following
+// two methods:
+//
+// * Specify a canned ACL (x-amz-acl) — Amazon S3 supports a set of predefined
+// ACLs, known as canned ACLs. Each canned ACL has a predefined set of grantees
+// and permissions. For more information, see Canned ACL (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL).
+//
+// * Specify access permissions explicitly — To explicitly grant access
+// permissions to specific AWS accounts or groups, use the following headers.
+// Each header maps to specific permissions that Amazon S3 supports in an
+// ACL. For more information, see Access Control List (ACL) Overview (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html).
+// In the header, you specify a list of grantees who get the specific permission.
+// To grant permissions explicitly, use: x-amz-grant-read x-amz-grant-write
+// x-amz-grant-read-acp x-amz-grant-write-acp x-amz-grant-full-control You
+// specify each grantee as a type=value pair, where the type is one of the
+// following: emailAddress – if the value specified is the email address
+// of an AWS account id – if the value specified is the canonical user
+// ID of an AWS account uri – if you are granting permissions to a predefined
+// group For example, the following x-amz-grant-read header grants the AWS
+// accounts identified by email addresses permissions to read object data
+// and its metadata: x-amz-grant-read: emailAddress="[email protected]", emailAddress="[email protected]"
+//
+// The following operations are related to CopyObject:
+//
+// * PutObject
+//
+// * GetObject
+//
+// For more information, see Copying Objects (https://docs.aws.amazon.com/AmazonS3/latest/dev/CopyingObjectsExamples.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.
@@ -235,7 +501,7 @@ func (c *S3) CopyObjectRequest(input *CopyObjectInput) (req *request.Request, ou
// Returned Error Codes:
// * ErrCodeObjectNotInActiveTierError "ObjectNotInActiveTierError"
// The source object of the COPY operation is not in the active tier and is
-// only stored in Amazon Glacier.
+// only stored in Amazon S3 Glacier.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CopyObject
func (c *S3) CopyObject(input *CopyObjectInput) (*CopyObjectOutput, error) {
@@ -303,7 +569,60 @@ func (c *S3) CreateBucketRequest(input *CreateBucketInput) (req *request.Request
// CreateBucket API operation for Amazon Simple Storage Service.
//
-// Creates a new bucket.
+// Creates a new bucket. To create a bucket, you must register with Amazon S3
+// and have a valid AWS Access Key ID to authenticate requests. Anonymous requests
+// are never allowed to create buckets. By creating the bucket, you become the
+// bucket owner.
+//
+// Not every string is an acceptable bucket name. For information on bucket
+// naming restrictions, see Working with Amazon S3 Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingBucket.html).
+//
+// By default, the bucket is created in the US East (N. Virginia) Region. You
+// can optionally specify a Region in the request body. You might choose a Region
+// to optimize latency, minimize costs, or address regulatory requirements.
+// For example, if you reside in Europe, you will probably find it advantageous
+// to create buckets in the EU (Ireland) Region. For more information, see How
+// to Select a Region for Your Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingBucket.html#access-bucket-intro).
+//
+// If you send your create bucket request to the s3.amazonaws.com endpoint,
+// the request goes to the us-east-1 Region. Accordingly, the signature calculations
+// in Signature Version 4 must use us-east-1 as the Region, even if the location
+// constraint in the request specifies another Region where the bucket is to
+// be created. If you create a bucket in a Region other than US East (N. Virginia),
+// your application must be able to handle 307 redirect. For more information,
+// see Virtual Hosting of Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html).
+//
+// When creating a bucket using this operation, you can optionally specify the
+// accounts or groups that should be granted specific permissions on the bucket.
+// There are two ways to grant the appropriate permissions using the request
+// headers.
+//
+// * Specify a canned ACL using the x-amz-acl request header. Amazon S3 supports
+// a set of predefined ACLs, known as canned ACLs. Each canned ACL has a
+// predefined set of grantees and permissions. For more information, see
+// Canned ACL (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL).
+//
+// * Specify access permissions explicitly using the x-amz-grant-read, x-amz-grant-write,
+// x-amz-grant-read-acp, x-amz-grant-write-acp, and x-amz-grant-full-control
+// headers. These headers map to the set of permissions Amazon S3 supports
+// in an ACL. For more information, see Access Control List (ACL) Overview
+// (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html). You
+// specify each grantee as a type=value pair, where the type is one of the
+// following: emailAddress – if the value specified is the email address
+// of an AWS account id – if the value specified is the canonical user
+// ID of an AWS account uri – if you are granting permissions to a predefined
+// group For example, the following x-amz-grant-read header grants the AWS
+// accounts identified by email addresses permissions to read object data
+// and its metadata: x-amz-grant-read: emailAddress="[email protected]", emailAddress="[email protected]"
+//
+// You can use either a canned ACL or specify access permissions explicitly.
+// You cannot do both.
+//
+// The following operations are related to CreateBucket:
+//
+// * PutObject
+//
+// * DeleteBucket
//
// 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
@@ -318,6 +637,11 @@ func (c *S3) CreateBucketRequest(input *CreateBucketInput) (req *request.Request
// by all users of the system. Please select a different name and try again.
//
// * ErrCodeBucketAlreadyOwnedByYou "BucketAlreadyOwnedByYou"
+// The bucket you tried to create already exists, and you own it. Amazon S3
+// returns this error in all AWS Regions except in the North Virginia Region.
+// For legacy compatibility, if you re-create an existing bucket that you already
+// own in the North Virginia Region, Amazon S3 returns 200 OK and resets the
+// bucket access control lists (ACLs).
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CreateBucket
func (c *S3) CreateBucket(input *CreateBucketInput) (*CreateBucketOutput, error) {
@@ -385,13 +709,147 @@ func (c *S3) CreateMultipartUploadRequest(input *CreateMultipartUploadInput) (re
// CreateMultipartUpload API operation for Amazon Simple Storage Service.
//
-// Initiates a multipart upload and returns an upload ID.
+// This operation initiates a multipart upload and returns an upload ID. This
+// upload ID is used to associate all of the parts in the specific multipart
+// upload. You specify this upload ID in each of your subsequent upload part
+// requests (see UploadPart). You also include this upload ID in the final request
+// to either complete or abort the multipart upload request.
//
-// Note: After you initiate multipart upload and upload one or more parts, you
-// must either complete or abort multipart upload in order to stop getting charged
-// 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.
+// For more information about multipart uploads, see Multipart Upload Overview
+// (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html).
+//
+// If you have configured a lifecycle rule to abort incomplete multipart uploads,
+// the upload must complete within the number of days specified in the bucket
+// lifecycle configuration. Otherwise, the incomplete multipart upload becomes
+// eligible for an abort operation and Amazon S3 aborts the multipart upload.
+// For more information, see Aborting Incomplete Multipart Uploads Using a Bucket
+// Lifecycle Policy (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config).
+//
+// For information about the permissions required to use the multipart upload
+// API, see Multipart Upload API and Permissions (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html).
+//
+// For request signing, multipart upload is just a series of regular requests.
+// You initiate a multipart upload, send one or more requests to upload parts,
+// and then complete the multipart upload process. You sign each request individually.
+// There is nothing special about signing multipart upload requests. For more
+// information about signing, see Authenticating Requests (AWS Signature Version
+// 4) (https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html).
+//
+// After you initiate a multipart upload and upload one or more parts, to stop
+// being charged for storing the uploaded parts, you must either complete or
+// abort the multipart upload. Amazon S3 frees up the space used to store the
+// parts and stop charging you for storing them only after you either complete
+// or abort a multipart upload.
+//
+// You can optionally request server-side encryption. For server-side encryption,
+// Amazon S3 encrypts your data as it writes it to disks in its data centers
+// and decrypts it when you access it. You can provide your own encryption key,
+// or use AWS Key Management Service (AWS KMS) customer master keys (CMKs) or
+// Amazon S3-managed encryption keys. If you choose to provide your own encryption
+// key, the request headers you provide in UploadPart) and UploadPartCopy) requests
+// must match the headers you used in the request to initiate the upload by
+// using CreateMultipartUpload.
+//
+// To perform a multipart upload with encryption using an AWS KMS CMK, the requester
+// must have permission to the kms:Encrypt, kms:Decrypt, kms:ReEncrypt*, kms:GenerateDataKey*,
+// and kms:DescribeKey actions on the key. These permissions are required because
+// Amazon S3 must decrypt and read data from the encrypted file parts before
+// it completes the multipart upload.
+//
+// If your AWS Identity and Access Management (IAM) user or role is in the same
+// AWS account as the AWS KMS CMK, then you must have these permissions on the
+// key policy. If your IAM user or role belongs to a different account than
+// the key, then you must have the permissions on both the key policy and your
+// IAM user or role.
+//
+// For more information, see Protecting Data Using Server-Side Encryption (https://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html).
+//
+// Access Permissions
+//
+// When copying an object, you can optionally specify the accounts or groups
+// that should be granted specific permissions on the new object. There are
+// two ways to grant the permissions using the request headers:
+//
+// * Specify a canned ACL with the x-amz-acl request header. For more information,
+// see Canned ACL (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL).
+//
+// * Specify access permissions explicitly with the x-amz-grant-read, x-amz-grant-read-acp,
+// x-amz-grant-write-acp, and x-amz-grant-full-control headers. These parameters
+// map to the set of permissions that Amazon S3 supports in an ACL. For more
+// information, see Access Control List (ACL) Overview (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html).
+//
+// You can use either a canned ACL or specify access permissions explicitly.
+// You cannot do both.
+//
+// Server-Side- Encryption-Specific Request Headers
+//
+// You can optionally tell Amazon S3 to encrypt data at rest using server-side
+// encryption. Server-side encryption is for data encryption at rest. Amazon
+// S3 encrypts your data as it writes it to disks in its data centers and decrypts
+// it when you access it. The option you use depends on whether you want to
+// use AWS managed encryption keys or provide your own encryption key.
+//
+// * Use encryption keys managed by Amazon S3 or customer master keys (CMKs)
+// stored in AWS Key Management Service (AWS KMS) – If you want AWS to
+// manage the keys used to encrypt data, specify the following headers in
+// the request. x-amz-server-side​-encryption x-amz-server-side-encryption-aws-kms-key-id
+// x-amz-server-side-encryption-context If you specify x-amz-server-side-encryption:aws:kms,
+// but don't provide x-amz-server-side-encryption-aws-kms-key-id, Amazon
+// S3 uses the AWS managed CMK in AWS KMS to protect the data. All GET and
+// PUT requests for an object protected by AWS KMS fail if you don't make
+// them with SSL or by using SigV4. For more information about server-side
+// encryption with CMKs stored in AWS KMS (SSE-KMS), see Protecting Data
+// Using Server-Side Encryption with CMKs stored in AWS KMS (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html).
+//
+// * Use customer-provided encryption keys – If you want to manage your
+// own encryption keys, provide all the following headers in the request.
+// x-amz-server-side​-encryption​-customer-algorithm x-amz-server-side​-encryption​-customer-key
+// x-amz-server-side​-encryption​-customer-key-MD5 For more information
+// about server-side encryption with CMKs stored in AWS KMS (SSE-KMS), see
+// Protecting Data Using Server-Side Encryption with CMKs stored in AWS KMS
+// (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html).
+//
+// Access-Control-List (ACL)-Specific Request Headers
+//
+// You also can use the following access control–related headers with this
+// operation. By default, all objects are private. Only the owner has full access
+// control. When adding a new object, you can grant permissions to individual
+// AWS accounts or to predefined groups defined by Amazon S3. These permissions
+// are then added to the access control list (ACL) on the object. For more information,
+// see Using ACLs (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3_ACLs_UsingACLs.html).
+// With this operation, you can grant access permissions using one of the following
+// two methods:
+//
+// * Specify a canned ACL (x-amz-acl) — Amazon S3 supports a set of predefined
+// ACLs, known as canned ACLs. Each canned ACL has a predefined set of grantees
+// and permissions. For more information, see Canned ACL (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL).
+//
+// * Specify access permissions explicitly — To explicitly grant access
+// permissions to specific AWS accounts or groups, use the following headers.
+// Each header maps to specific permissions that Amazon S3 supports in an
+// ACL. For more information, see Access Control List (ACL) Overview (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html).
+// In the header, you specify a list of grantees who get the specific permission.
+// To grant permissions explicitly, use: x-amz-grant-read x-amz-grant-write
+// x-amz-grant-read-acp x-amz-grant-write-acp x-amz-grant-full-control You
+// specify each grantee as a type=value pair, where the type is one of the
+// following: emailAddress – if the value specified is the email address
+// of an AWS account id – if the value specified is the canonical user
+// ID of an AWS account uri – if you are granting permissions to a predefined
+// group For example, the following x-amz-grant-read header grants the AWS
+// accounts identified by email addresses permissions to read object data
+// and its metadata: x-amz-grant-read: emailAddress="[email protected]", emailAddress="[email protected]"
+//
+// The following operations are related to CreateMultipartUpload:
+//
+// * UploadPart
+//
+// * CompleteMultipartUpload
+//
+// * AbortMultipartUpload
+//
+// * ListParts
+//
+// * ListMultipartUploads
//
// 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
@@ -466,8 +924,14 @@ func (c *S3) DeleteBucketRequest(input *DeleteBucketInput) (req *request.Request
// 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.
+// 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.
+//
+// Related Resources
+//
+// *
+//
+// *
//
// 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
@@ -547,7 +1011,20 @@ func (c *S3) DeleteBucketAnalyticsConfigurationRequest(input *DeleteBucketAnalyt
//
// To use this operation, you must have permissions to perform the s3:PutAnalyticsConfiguration
// action. The bucket owner has this permission by default. The bucket owner
-// can grant this permission to others.
+// can grant this permission to others. For more information about permissions,
+// see Permissions Related to Bucket Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev//using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources)
+// and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html).
+//
+// For information about the Amazon S3 analytics feature, see Amazon S3 Analytics
+// – Storage Class Analysis (https://docs.aws.amazon.com/AmazonS3/latest/dev/analytics-storage-class.html).
+//
+// The following operations are related to DeleteBucketAnalyticsConfiguration:
+//
+// *
+//
+// *
+//
+// *
//
// 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
@@ -622,7 +1099,20 @@ func (c *S3) DeleteBucketCorsRequest(input *DeleteBucketCorsInput) (req *request
// DeleteBucketCors API operation for Amazon Simple Storage Service.
//
-// Deletes the CORS configuration information set for the bucket.
+// Deletes the cors configuration information set for the bucket.
+//
+// To use this operation, you must have permission to perform the s3:PutBucketCORS
+// action. The bucket owner has this permission by default and can grant this
+// permission to others.
+//
+// For information about cors, see Enabling Cross-Origin Resource Sharing (https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html)
+// in the Amazon Simple Storage Service Developer Guide.
+//
+// Related Resources:
+//
+// *
+//
+// * RESTOPTIONSobject
//
// 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
@@ -697,7 +1187,23 @@ func (c *S3) DeleteBucketEncryptionRequest(input *DeleteBucketEncryptionInput) (
// DeleteBucketEncryption API operation for Amazon Simple Storage Service.
//
-// Deletes the server-side encryption configuration from the bucket.
+// This implementation of the DELETE operation removes default encryption from
+// the bucket. For information about the Amazon S3 default encryption feature,
+// see Amazon S3 Default Bucket Encryption (https://docs.aws.amazon.com/AmazonS3/latest/dev//bucket-encryption.html)
+// in the Amazon Simple Storage Service Developer Guide.
+//
+// To use this operation, you must have permissions to perform the s3:PutEncryptionConfiguration
+// action. The bucket owner has this permission by default. The bucket owner
+// can grant this permission to others. For more information about permissions,
+// see Permissions Related to Bucket Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev//using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources)
+// and Managing Access Permissions to your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/dev//s3-access-control.html)
+// in the Amazon Simple Storage Service Developer Guide.
+//
+// Related Resources
+//
+// * PutBucketEncryption
+//
+// * GetBucketEncryption
//
// 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
@@ -775,6 +1281,23 @@ func (c *S3) DeleteBucketInventoryConfigurationRequest(input *DeleteBucketInvent
// Deletes an inventory configuration (identified by the inventory ID) from
// the bucket.
//
+// To use this operation, you must have permissions to perform the s3:PutInventoryConfiguration
+// action. The bucket owner has this permission by default. The bucket owner
+// can grant this permission to others. For more information about permissions,
+// see Permissions Related to Bucket Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources)
+// and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html).
+//
+// For information about the Amazon S3 inventory feature, see Amazon S3 Inventory
+// (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-inventory.html).
+//
+// Operations related to DeleteBucketInventoryConfiguration include:
+//
+// * GetBucketInventoryConfiguration
+//
+// * PutBucketInventoryConfiguration
+//
+// * ListBucketInventoryConfigurations
+//
// 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.
@@ -848,7 +1371,27 @@ func (c *S3) DeleteBucketLifecycleRequest(input *DeleteBucketLifecycleInput) (re
// DeleteBucketLifecycle API operation for Amazon Simple Storage Service.
//
-// Deletes the lifecycle configuration from the bucket.
+// Deletes the lifecycle configuration from the specified bucket. Amazon S3
+// removes all the lifecycle configuration rules in the lifecycle subresource
+// associated with the bucket. Your objects never expire, and Amazon S3 no longer
+// automatically deletes any objects on the basis of rules contained in the
+// deleted lifecycle configuration.
+//
+// To use this operation, you must have permission to perform the s3:PutLifecycleConfiguration
+// action. By default, the bucket owner has this permission and the bucket owner
+// can grant this permission to others.
+//
+// There is usually some time lag before lifecycle configuration deletion is
+// fully propagated to all the Amazon S3 systems.
+//
+// For more information about the object expiration, see Elements to Describe
+// Lifecycle Actions (https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#intro-lifecycle-rules-actions).
+//
+// Related actions include:
+//
+// * PutBucketLifecycleConfiguration
+//
+// * GetBucketLifecycleConfiguration
//
// 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
@@ -923,8 +1466,28 @@ func (c *S3) DeleteBucketMetricsConfigurationRequest(input *DeleteBucketMetricsC
// DeleteBucketMetricsConfiguration API operation for Amazon Simple Storage Service.
//
-// Deletes a metrics configuration (specified by the metrics configuration ID)
-// from the bucket.
+// Deletes a metrics configuration for the Amazon CloudWatch request metrics
+// (specified by the metrics configuration ID) from the bucket. Note that this
+// doesn't include the daily storage metrics.
+//
+// To use this operation, you must have permissions to perform the s3:PutMetricsConfiguration
+// action. The bucket owner has this permission by default. The bucket owner
+// can grant this permission to others. For more information about permissions,
+// see Permissions Related to Bucket Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources)
+// and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html).
+//
+// For information about CloudWatch request metrics for Amazon S3, see Monitoring
+// Metrics with Amazon CloudWatch (https://docs.aws.amazon.com/AmazonS3/latest/dev/cloudwatch-monitoring.html).
+//
+// The following operations are related to DeleteBucketMetricsConfiguration:
+//
+// * GetBucketMetricsConfiguration
+//
+// * PutBucketMetricsConfiguration
+//
+// * ListBucketMetricsConfigurations
+//
+// * Monitoring Metrics with Amazon CloudWatch (https://docs.aws.amazon.com/AmazonS3/latest/dev/cloudwatch-monitoring.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
@@ -999,7 +1562,29 @@ func (c *S3) DeleteBucketPolicyRequest(input *DeleteBucketPolicyInput) (req *req
// DeleteBucketPolicy API operation for Amazon Simple Storage Service.
//
-// Deletes the policy from the bucket.
+// This implementation of the DELETE operation uses the policy subresource to
+// delete the policy of a specified bucket. If you are using an identity other
+// than the root user of the AWS account that owns the bucket, the calling identity
+// must have the DeleteBucketPolicy permissions on the specified bucket and
+// belong to the bucket owner's account to use this operation.
+//
+// If you don't have DeleteBucketPolicy permissions, Amazon S3 returns a 403
+// Access Denied error. If you have the correct permissions, but you're not
+// using an identity that belongs to the bucket owner's account, Amazon S3 returns
+// a 405 Method Not Allowed error.
+//
+// As a security precaution, the root user of the AWS account that owns a bucket
+// can always use this operation, even if the policy explicitly denies the root
+// user the ability to perform this action.
+//
+// For more information about bucket policies, see Using Bucket Policies and
+// UserPolicies (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html).
+//
+// The following operations are related to DeleteBucketPolicy
+//
+// * CreateBucket
+//
+// * DeleteObject
//
// 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
@@ -1074,10 +1659,26 @@ func (c *S3) DeleteBucketReplicationRequest(input *DeleteBucketReplicationInput)
// DeleteBucketReplication API operation for Amazon Simple Storage Service.
//
-// Deletes the replication configuration from the bucket. For information about
-// replication configuration, see Cross-Region Replication (CRR) (https://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html)
+// Deletes the replication configuration from the bucket.
+//
+// To use this operation, you must have permissions to perform the s3:PutReplicationConfiguration
+// action. The bucket owner has these permissions by default and can grant it
+// to others. For more information about permissions, see Permissions Related
+// to Bucket Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources)
+// and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html).
+//
+// It can take a while for the deletion of a replication configuration to fully
+// propagate.
+//
+// For information about replication configuration, see Replication (https://docs.aws.amazon.com/AmazonS3/latest/dev/replication.html)
// in the Amazon S3 Developer Guide.
//
+// The following operations are related to DeleteBucketReplication:
+//
+// * PutBucketReplication
+//
+// * GetBucketReplication
+//
// 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.
@@ -1153,6 +1754,16 @@ func (c *S3) DeleteBucketTaggingRequest(input *DeleteBucketTaggingInput) (req *r
//
// Deletes the tags from the bucket.
//
+// To use this operation, you must have permission to perform the s3:PutBucketTagging
+// action. By default, the bucket owner has this permission and can grant this
+// permission to others.
+//
+// The following operations are related to DeleteBucketTagging:
+//
+// * GetBucketTagging
+//
+// * PutBucketTagging
+//
// 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.
@@ -1226,7 +1837,26 @@ func (c *S3) DeleteBucketWebsiteRequest(input *DeleteBucketWebsiteInput) (req *r
// DeleteBucketWebsite API operation for Amazon Simple Storage Service.
//
-// This operation removes the website configuration from the bucket.
+// This operation removes the website configuration for a bucket. Amazon S3
+// returns a 200 OK response upon successfully deleting a website configuration
+// on the specified bucket. You will get a 200 OK response if the website configuration
+// you are trying to delete does not exist on the bucket. Amazon S3 returns
+// a 404 response if the bucket specified in the request does not exist.
+//
+// This DELETE operation requires the S3:DeleteBucketWebsite permission. By
+// default, only the bucket owner can delete the website configuration attached
+// to a bucket. However, bucket owners can grant other users permission to delete
+// the website configuration by writing a bucket policy granting them the S3:DeleteBucketWebsite
+// permission.
+//
+// For more information about hosting websites, see Hosting Websites on Amazon
+// S3 (https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html).
+//
+// The following operations are related to DeleteBucketWebsite:
+//
+// * GetBucketWebsite
+//
+// * PutBucketWebsite
//
// 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
@@ -1304,6 +1934,29 @@ func (c *S3) DeleteObjectRequest(input *DeleteObjectInput) (req *request.Request
// marker, which becomes the latest version of the object. If there isn't a
// null version, Amazon S3 does not remove any objects.
//
+// To remove a specific version, you must be the bucket owner and you must use
+// the version Id subresource. Using this subresource permanently deletes the
+// version. If the object deleted is a delete marker, Amazon S3 sets the response
+// header, x-amz-delete-marker, to true.
+//
+// If the object you want to delete is in a bucket where the bucket versioning
+// configuration is MFA Delete enabled, you must include the x-amz-mfa request
+// header in the DELETE versionId request. Requests that include x-amz-mfa must
+// use HTTPS.
+//
+// For more information about MFA Delete, see Using MFA Delete (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMFADelete.html).
+// To see sample requests that use versioning, see Sample Request (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectDELETE.html#ExampleVersionObjectDelete).
+//
+// You can delete objects by explicitly calling the DELETE Object API or configure
+// its lifecycle (PutBucketLifecycle) to enable Amazon S3 to remove them for
+// you. If you want to block users or accounts from removing or deleting objects
+// from your bucket, you must deny them the s3:DeleteObject, s3:DeleteObjectVersion,
+// and s3:PutLifeCycleConfiguration actions.
+//
+// The following operation is related to DeleteObject:
+//
+// * PutObject
+//
// 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.
@@ -1376,7 +2029,21 @@ func (c *S3) DeleteObjectTaggingRequest(input *DeleteObjectTaggingInput) (req *r
// DeleteObjectTagging API operation for Amazon Simple Storage Service.
//
-// Removes the tag-set from an existing object.
+// Removes the entire tag set from the specified object. For more information
+// about managing object tags, see Object Tagging (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-tagging.html).
+//
+// To use this operation, you must have permission to perform the s3:DeleteObjectTagging
+// action.
+//
+// To delete tags of a specific object version, add the versionId query parameter
+// in the request. You will need permission for the s3:DeleteObjectVersionTagging
+// action.
+//
+// The following operations are related to DeleteBucketMetricsConfiguration:
+//
+// * PutObjectTagging
+//
+// * GetObjectTagging
//
// 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
@@ -1451,7 +2118,47 @@ func (c *S3) DeleteObjectsRequest(input *DeleteObjectsInput) (req *request.Reque
// 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.
+// a single HTTP request. If you know the object keys that you want to delete,
+// then this operation provides a suitable alternative to sending individual
+// delete requests, reducing per-request overhead.
+//
+// The request contains a list of up to 1000 keys that you want to delete. In
+// the XML, you provide the object key names, and optionally, version IDs if
+// you want to delete a specific version of the object from a versioning-enabled
+// bucket. For each key, Amazon S3 performs a delete operation and returns the
+// result of that delete, success, or failure, in the response. Note that if
+// the object specified in the request is not found, Amazon S3 returns the result
+// as deleted.
+//
+// The operation supports two modes for the response: verbose and quiet. By
+// default, the operation uses verbose mode in which the response includes the
+// result of deletion of each key in your request. In quiet mode the response
+// includes only keys where the delete operation encountered an error. For a
+// successful deletion, the operation does not return any information about
+// the delete in the response body.
+//
+// When performing this operation on an MFA Delete enabled bucket, that attempts
+// to delete any versioned objects, you must include an MFA token. If you do
+// not provide one, the entire request will fail, even if there are non-versioned
+// objects you are trying to delete. If you provide an invalid token, whether
+// there are versioned keys in the request or not, the entire Multi-Object Delete
+// request will fail. For information about MFA Delete, see MFA Delete (https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html#MultiFactorAuthenticationDelete).
+//
+// Finally, the Content-MD5 header is required for all Multi-Object Delete requests.
+// Amazon S3 uses the header value to ensure that your request body has not
+// been altered in transit.
+//
+// The following operations are related to DeleteObjects:
+//
+// * CreateMultipartUpload
+//
+// * UploadPart
+//
+// * CompleteMultipartUpload
+//
+// * ListParts
+//
+// * AbortMultipartUpload
//
// 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
@@ -1526,7 +2233,21 @@ func (c *S3) DeletePublicAccessBlockRequest(input *DeletePublicAccessBlockInput)
// DeletePublicAccessBlock API operation for Amazon Simple Storage Service.
//
-// Removes the PublicAccessBlock configuration from an Amazon S3 bucket.
+// Removes the PublicAccessBlock configuration for an Amazon S3 bucket. To use
+// this operation, you must have the s3:PutBucketPublicAccessBlock permission.
+// For more information about permissions, see Permissions Related to Bucket
+// Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources)
+// and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html).
+//
+// The following operations are related to DeleteBucketMetricsConfiguration:
+//
+// * Using Amazon S3 Block Public Access (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html)
+//
+// * GetPublicAccessBlock
+//
+// * PutPublicAccessBlock
+//
+// * GetBucketPolicyStatus
//
// 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
@@ -1600,7 +2321,32 @@ func (c *S3) GetBucketAccelerateConfigurationRequest(input *GetBucketAccelerateC
// GetBucketAccelerateConfiguration API operation for Amazon Simple Storage Service.
//
-// Returns the accelerate configuration of a bucket.
+// This implementation of the GET operation uses the accelerate subresource
+// to return the Transfer Acceleration state of a bucket, which is either Enabled
+// or Suspended. Amazon S3 Transfer Acceleration is a bucket-level feature that
+// enables you to perform faster data transfers to and from Amazon S3.
+//
+// To use this operation, you must have permission to perform the s3:GetAccelerateConfiguration
+// action. The bucket owner has this permission by default. The bucket owner
+// can grant this permission to others. For more information about permissions,
+// see Permissions Related to Bucket Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev//using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources)
+// and Managing Access Permissions to your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/dev//s3-access-control.html)
+// in the Amazon Simple Storage Service Developer Guide.
+//
+// You set the Transfer Acceleration state of an existing bucket to Enabled
+// or Suspended by using the PutBucketAccelerateConfiguration operation.
+//
+// A GET accelerate request does not return a state value for a bucket that
+// has no transfer acceleration state. A bucket has no Transfer Acceleration
+// state if a state has never been set on the bucket.
+//
+// For more information about transfer acceleration, see Transfer Acceleration
+// (https://docs.aws.amazon.com/AmazonS3/latest/dev//transfer-acceleration.html)
+// in the Amazon Simple Storage Service Developer Guide.
+//
+// Related Resources
+//
+// * PutBucketAccelerateConfiguration
//
// 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
@@ -1674,7 +2420,15 @@ func (c *S3) GetBucketAclRequest(input *GetBucketAclInput) (req *request.Request
// GetBucketAcl API operation for Amazon Simple Storage Service.
//
-// Gets the access control policy for the bucket.
+// This implementation of the GET operation uses the acl subresource to return
+// the access control list (ACL) of a bucket. To use GET to return the ACL of
+// the bucket, you must have READ_ACP access to the bucket. If READ_ACP permission
+// is granted to the anonymous user, you can return the ACL of the bucket without
+// using an authorization header.
+//
+// Related Resources
+//
+// *
//
// 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
@@ -1748,8 +2502,27 @@ func (c *S3) GetBucketAnalyticsConfigurationRequest(input *GetBucketAnalyticsCon
// GetBucketAnalyticsConfiguration API operation for Amazon Simple Storage Service.
//
-// Gets an analytics configuration for the bucket (specified by the analytics
-// configuration ID).
+// This implementation of the GET operation returns an analytics configuration
+// (identified by the analytics configuration ID) from the bucket.
+//
+// To use this operation, you must have permissions to perform the s3:GetAnalyticsConfiguration
+// action. The bucket owner has this permission by default. The bucket owner
+// can grant this permission to others. For more information about permissions,
+// see Permissions Related to Bucket Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources)
+// and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html)
+// in the Amazon Simple Storage Service Developer Guide.
+//
+// For information about Amazon S3 analytics feature, see Amazon S3 Analytics
+// – Storage Class Analysis (https://docs.aws.amazon.com/AmazonS3/latest/dev/analytics-storage-class.html)
+// in the Amazon Simple Storage Service Developer Guide.
+//
+// Related Resources
+//
+// *
+//
+// *
+//
+// *
//
// 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
@@ -1823,7 +2596,20 @@ func (c *S3) GetBucketCorsRequest(input *GetBucketCorsInput) (req *request.Reque
// GetBucketCors API operation for Amazon Simple Storage Service.
//
-// Returns the CORS configuration for the bucket.
+// Returns the cors configuration information set for the bucket.
+//
+// To use this operation, you must have permission to perform the s3:GetBucketCORS
+// action. By default, the bucket owner has this permission and can grant it
+// to others.
+//
+// For more information about cors, see Enabling Cross-Origin Resource Sharing
+// (https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html).
+//
+// The following operations are related to GetBucketCors:
+//
+// * PutBucketCors
+//
+// * DeleteBucketCors
//
// 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
@@ -1897,7 +2683,21 @@ func (c *S3) GetBucketEncryptionRequest(input *GetBucketEncryptionInput) (req *r
// GetBucketEncryption API operation for Amazon Simple Storage Service.
//
-// Returns the server-side encryption configuration of a bucket.
+// Returns the default encryption configuration for an Amazon S3 bucket. For
+// information about the Amazon S3 default encryption feature, see Amazon S3
+// Default Bucket Encryption (https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html).
+//
+// To use this operation, you must have permission to perform the s3:GetEncryptionConfiguration
+// action. The bucket owner has this permission by default. The bucket owner
+// can grant this permission to others. For more information about permissions,
+// see Permissions Related to Bucket Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources)
+// and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html).
+//
+// The following operations are related to GetBucketEncryption:
+//
+// * PutBucketEncryption
+//
+// * DeleteBucketEncryption
//
// 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
@@ -1971,8 +2771,25 @@ func (c *S3) GetBucketInventoryConfigurationRequest(input *GetBucketInventoryCon
// GetBucketInventoryConfiguration API operation for Amazon Simple Storage Service.
//
-// Returns an inventory configuration (identified by the inventory ID) from
-// the bucket.
+// Returns an inventory configuration (identified by the inventory configuration
+// ID) from the bucket.
+//
+// To use this operation, you must have permissions to perform the s3:GetInventoryConfiguration
+// action. The bucket owner has this permission by default and can grant this
+// permission to others. For more information about permissions, see Permissions
+// Related to Bucket Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources)
+// and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html).
+//
+// For information about the Amazon S3 inventory feature, see Amazon S3 Inventory
+// (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-inventory.html).
+//
+// The following operations are related to GetBucketInventoryConfiguration:
+//
+// * DeleteBucketInventoryConfiguration
+//
+// * ListBucketInventoryConfigurations
+//
+// * PutBucketInventoryConfiguration
//
// 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
@@ -2051,7 +2868,34 @@ func (c *S3) GetBucketLifecycleRequest(input *GetBucketLifecycleInput) (req *req
// GetBucketLifecycle API operation for Amazon Simple Storage Service.
//
-// No longer used, see the GetBucketLifecycleConfiguration operation.
+//
+// For an updated version of this API, see GetBucketLifecycleConfiguration.
+// If you configured a bucket lifecycle using the filter element, you should
+// see the updated version of this topic. This topic is provided for backward
+// compatibility.
+//
+// Returns the lifecycle configuration information set on the bucket. For information
+// about lifecycle configuration, see Object Lifecycle Management (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html).
+//
+// To use this operation, you must have permission to perform the s3:GetLifecycleConfiguration
+// action. The bucket owner has this permission by default. The bucket owner
+// can grant this permission to others. For more information about permissions,
+// see Permissions Related to Bucket Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources)
+// and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html).
+//
+// GetBucketLifecycle has the following special error:
+//
+// * Error code: NoSuchLifecycleConfiguration Description: The lifecycle
+// configuration does not exist. HTTP Status Code: 404 Not Found SOAP Fault
+// Code Prefix: Client
+//
+// The following operations are related to GetBucketLifecycle:
+//
+// * GetBucketLifecycleConfiguration
+//
+// * PutBucketLifecycle
+//
+// * DeleteBucketLifecycle
//
// 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
@@ -2129,7 +2973,37 @@ func (c *S3) GetBucketLifecycleConfigurationRequest(input *GetBucketLifecycleCon
// GetBucketLifecycleConfiguration API operation for Amazon Simple Storage Service.
//
-// Returns the lifecycle configuration information set on the bucket.
+//
+// Bucket lifecycle configuration now supports specifying a lifecycle rule using
+// an object key name prefix, one or more object tags, or a combination of both.
+// Accordingly, this section describes the latest API. The response describes
+// the new filter element that you can use to specify a filter to select a subset
+// of objects to which the rule applies. If you are still using previous version
+// of the lifecycle configuration, it works. For the earlier API description,
+// see GetBucketLifecycle.
+//
+// Returns the lifecycle configuration information set on the bucket. For information
+// about lifecycle configuration, see Object Lifecycle Management (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html).
+//
+// To use this operation, you must have permission to perform the s3:GetLifecycleConfiguration
+// action. The bucket owner has this permission, by default. The bucket owner
+// can grant this permission to others. For more information about permissions,
+// see Permissions Related to Bucket Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources)
+// and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html).
+//
+// GetBucketLifecycleConfiguration has the following special error:
+//
+// * Error code: NoSuchLifecycleConfiguration Description: The lifecycle
+// configuration does not exist. HTTP Status Code: 404 Not Found SOAP Fault
+// Code Prefix: Client
+//
+// The following operations are related to DeleteBucketMetricsConfiguration:
+//
+// * GetBucketLifecycle
+//
+// * PutBucketLifecycle
+//
+// * DeleteBucketLifecycle
//
// 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
@@ -2203,7 +3077,17 @@ func (c *S3) GetBucketLocationRequest(input *GetBucketLocationInput) (req *reque
// GetBucketLocation API operation for Amazon Simple Storage Service.
//
-// Returns the region the bucket resides in.
+// Returns the Region the bucket resides in. You set the bucket's Region using
+// the LocationConstraint request parameter in a CreateBucket request. For more
+// information, see CreateBucket.
+//
+// To use this implementation of the operation, you must be the bucket owner.
+//
+// The following operations are related to GetBucketLocation:
+//
+// * GetObject
+//
+// * CreateBucket
//
// 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
@@ -2280,6 +3164,12 @@ func (c *S3) GetBucketLoggingRequest(input *GetBucketLoggingInput) (req *request
// 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.
//
+// The following operations are related to GetBucketLogging:
+//
+// * CreateBucket
+//
+// * PutBucketLogging
+//
// 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.
@@ -2353,7 +3243,26 @@ func (c *S3) GetBucketMetricsConfigurationRequest(input *GetBucketMetricsConfigu
// GetBucketMetricsConfiguration API operation for Amazon Simple Storage Service.
//
// Gets a metrics configuration (specified by the metrics configuration ID)
-// from the bucket.
+// from the bucket. Note that this doesn't include the daily storage metrics.
+//
+// To use this operation, you must have permissions to perform the s3:GetMetricsConfiguration
+// action. The bucket owner has this permission by default. The bucket owner
+// can grant this permission to others. For more information about permissions,
+// see Permissions Related to Bucket Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources)
+// and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html).
+//
+// For information about CloudWatch request metrics for Amazon S3, see Monitoring
+// Metrics with Amazon CloudWatch (https://docs.aws.amazon.com/AmazonS3/latest/dev/cloudwatch-monitoring.html).
+//
+// The following operations are related to GetBucketMetricsConfiguration:
+//
+// * PutBucketMetricsConfiguration
+//
+// * DeleteBucketMetricsConfiguration
+//
+// * ListBucketMetricsConfigurations
+//
+// * Monitoring Metrics with Amazon CloudWatch (https://docs.aws.amazon.com/AmazonS3/latest/dev/cloudwatch-monitoring.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
@@ -2432,7 +3341,7 @@ func (c *S3) GetBucketNotificationRequest(input *GetBucketNotificationConfigurat
// GetBucketNotification API operation for Amazon Simple Storage Service.
//
-// No longer used, see the GetBucketNotificationConfiguration operation.
+// No longer used, see GetBucketNotificationConfiguration.
//
// 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
@@ -2512,6 +3421,22 @@ func (c *S3) GetBucketNotificationConfigurationRequest(input *GetBucketNotificat
//
// Returns the notification configuration of a bucket.
//
+// If notifications are not enabled on the bucket, the operation returns an
+// empty NotificationConfiguration element.
+//
+// By default, you must be the bucket owner to read the notification configuration
+// of a bucket. However, the bucket owner can use a bucket policy to grant permission
+// to other users to read this configuration with the s3:GetBucketNotification
+// permission.
+//
+// For more information about setting and reading the notification configuration
+// on a bucket, see Setting Up Notification of Bucket Events (https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html).
+// For more information about bucket policies, see Using Bucket Policies (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html).
+//
+// The following operation is related to GetBucketNotification:
+//
+// * PutBucketNotification
+//
// 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.
@@ -2584,7 +3509,26 @@ func (c *S3) GetBucketPolicyRequest(input *GetBucketPolicyInput) (req *request.R
// GetBucketPolicy API operation for Amazon Simple Storage Service.
//
-// Returns the policy of a specified bucket.
+// Returns the policy of a specified bucket. If you are using an identity other
+// than the root user of the AWS account that owns the bucket, the calling identity
+// must have the GetBucketPolicy permissions on the specified bucket and belong
+// to the bucket owner's account in order to use this operation.
+//
+// If you don't have GetBucketPolicy permissions, Amazon S3 returns a 403 Access
+// Denied error. If you have the correct permissions, but you're not using an
+// identity that belongs to the bucket owner's account, Amazon S3 returns a
+// 405 Method Not Allowed error.
+//
+// As a security precaution, the root user of the AWS account that owns a bucket
+// can always use this operation, even if the policy explicitly denies the root
+// user the ability to perform this action.
+//
+// For more information about bucket policies, see Using Bucket Policies and
+// User Policies (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html).
+//
+// The following operation is related to GetBucketPolicy:
+//
+// * GetObject
//
// 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
@@ -2659,7 +3603,22 @@ func (c *S3) GetBucketPolicyStatusRequest(input *GetBucketPolicyStatusInput) (re
// GetBucketPolicyStatus API operation for Amazon Simple Storage Service.
//
// Retrieves the policy status for an Amazon S3 bucket, indicating whether the
-// bucket is public.
+// bucket is public. In order to use this operation, you must have the s3:GetBucketPolicyStatus
+// permission. For more information about Amazon S3 permissions, see Specifying
+// Permissions in a Policy (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html).
+//
+// For more information about when Amazon S3 considers a bucket public, see
+// The Meaning of "Public" (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status).
+//
+// The following operations are related to GetBucketPolicyStatus:
+//
+// * Using Amazon S3 Block Public Access (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html)
+//
+// * GetPublicAccessBlock
+//
+// * PutPublicAccessBlock
+//
+// * DeletePublicAccessBlock
//
// 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
@@ -2739,6 +3698,25 @@ func (c *S3) GetBucketReplicationRequest(input *GetBucketReplicationInput) (req
// to all Amazon S3 systems. Therefore, a get request soon after put or delete
// can return a wrong result.
//
+// For information about replication configuration, see Replication (https://docs.aws.amazon.com/AmazonS3/latest/dev/replication.html)
+// in the Amazon Simple Storage Service Developer Guide.
+//
+// This operation requires permissions for the s3:GetReplicationConfiguration
+// action. For more information about permissions, see Using Bucket Policies
+// and User Policies (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html).
+//
+// If you include the Filter element in a replication configuration, you must
+// also include the DeleteMarkerReplication and Priority elements. The response
+// also returns those elements.
+//
+// For information about GetBucketReplication errors, see ReplicationErrorCodeList
+//
+// The following operations are related to GetBucketReplication:
+//
+// * PutBucketReplication
+//
+// * DeleteBucketReplication
+//
// 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.
@@ -2811,7 +3789,13 @@ func (c *S3) GetBucketRequestPaymentRequest(input *GetBucketRequestPaymentInput)
// GetBucketRequestPayment API operation for Amazon Simple Storage Service.
//
-// Returns the request payment configuration of a bucket.
+// Returns the request payment configuration of a bucket. To use this version
+// of the operation, you must be the bucket owner. For more information, see
+// Requester Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html).
+//
+// The following operations are related to GetBucketRequestPayment:
+//
+// * ListObjects
//
// 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
@@ -2887,6 +3871,21 @@ func (c *S3) GetBucketTaggingRequest(input *GetBucketTaggingInput) (req *request
//
// Returns the tag set associated with the bucket.
//
+// To use this operation, you must have permission to perform the s3:GetBucketTagging
+// action. By default, the bucket owner has this permission and can grant this
+// permission to others.
+//
+// GetBucketTagging has the following special error:
+//
+// * Error code: NoSuchTagSetError Description: There is no tag set associated
+// with the bucket.
+//
+// The following operations are related to GetBucketTagging:
+//
+// * PutBucketTagging
+//
+// * DeleteBucketTagging
+//
// 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.
@@ -2961,6 +3960,20 @@ func (c *S3) GetBucketVersioningRequest(input *GetBucketVersioningInput) (req *r
//
// Returns the versioning state of a bucket.
//
+// To retrieve the versioning state of a bucket, you must be the bucket owner.
+//
+// This implementation also returns the MFA Delete status of the versioning
+// state. If the MFA Delete status is enabled, the bucket owner must use an
+// authentication device to change the versioning state of the bucket.
+//
+// The following operations are related to GetBucketVersioning:
+//
+// * GetObject
+//
+// * PutObject
+//
+// * DeleteObject
+//
// 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.
@@ -3033,7 +4046,21 @@ func (c *S3) GetBucketWebsiteRequest(input *GetBucketWebsiteInput) (req *request
// GetBucketWebsite API operation for Amazon Simple Storage Service.
//
-// Returns the website configuration for a bucket.
+// Returns the website configuration for a bucket. To host website on Amazon
+// S3, you can configure a bucket as website by adding a website configuration.
+// For more information about hosting websites, see Hosting Websites on Amazon
+// S3 (https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html).
+//
+// This GET operation requires the S3:GetBucketWebsite permission. By default,
+// only the bucket owner can read the bucket website configuration. However,
+// bucket owners can allow other users to read the website configuration by
+// writing a bucket policy granting them the S3:GetBucketWebsite permission.
+//
+// The following operations are related to DeleteBucketWebsite:
+//
+// * DeleteBucketWebsite
+//
+// * PutBucketWebsite
//
// 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
@@ -3107,33 +4134,156 @@ func (c *S3) GetObjectRequest(input *GetObjectInput) (req *request.Request, outp
// GetObject API operation for Amazon Simple Storage Service.
//
-// Retrieves objects from Amazon S3.
+// Retrieves objects from Amazon S3. To use GET, you must have READ access to
+// the object. If you grant READ access to the anonymous user, you can return
+// the object without using an authorization header.
//
-// 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.
+// An Amazon S3 bucket has no directory hierarchy such as you would find in
+// a typical computer file system. You can, however, create a logical hierarchy
+// by using object key names that imply a folder structure. For example, instead
+// of naming an object sample.jpg, you can name it photos/2006/February/sample.jpg.
//
-// See the AWS API reference guide for Amazon Simple Storage Service's
-// API operation GetObject for usage and error information.
+// To get an object from such a logical hierarchy, specify the full key name
+// for the object in the GET operation. For a virtual hosted-style request example,
+// if you have the object photos/2006/February/sample.jpg, specify the resource
+// as /photos/2006/February/sample.jpg. For a path-style request example, if
+// you have the object photos/2006/February/sample.jpg in the bucket named examplebucket,
+// specify the resource as /examplebucket/photos/2006/February/sample.jpg. For
+// more information about request types, see HTTP Host Header Bucket Specification
+// (https://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html#VirtualHostingSpecifyBucket).
//
-// Returned Error Codes:
-// * ErrCodeNoSuchKey "NoSuchKey"
-// The specified key does not exist.
+// To distribute large files to many people, you can save bandwidth costs by
+// using BitTorrent. For more information, see Amazon S3 Torrent (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3Torrent.html).
+// For more information about returning the ACL of an object, see GetObjectAcl.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObject
-func (c *S3) GetObject(input *GetObjectInput) (*GetObjectOutput, error) {
- req, out := c.GetObjectRequest(input)
- return out, req.Send()
-}
-
-// GetObjectWithContext is the same as GetObject with the addition of
-// the ability to pass a context and additional request options.
+// If the object you are retrieving is stored in the GLACIER or DEEP_ARCHIVE
+// storage classes, before you can retrieve the object you must first restore
+// a copy using . Otherwise, this operation returns an InvalidObjectStateError
+// error. For information about restoring archived objects, see Restoring Archived
+// Objects (https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html).
//
-// See GetObject for details on how to use this API operation.
+// Encryption request headers, like x-amz-server-side-encryption, should not
+// be sent for GET requests if your object uses server-side encryption with
+// CMKs stored in AWS KMS (SSE-KMS) or server-side encryption with Amazon S3–managed
+// encryption keys (SSE-S3). If your object does use these types of keys, you’ll
+// get an HTTP 400 BadRequest error.
//
-// The context must be non-nil and will be used for request cancellation. If
-// the context is nil a panic will occur. In the future the SDK may create
-// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// If you encrypt an object by using server-side encryption with customer-provided
+// encryption keys (SSE-C) when you store the object in Amazon S3, then when
+// you GET the object, you must use the following headers:
+//
+// * x-amz-server-side​-encryption​-customer-algorithm
+//
+// * x-amz-server-side​-encryption​-customer-key
+//
+// * x-amz-server-side​-encryption​-customer-key-MD5
+//
+// For more information about SSE-C, see Server-Side Encryption (Using Customer-Provided
+// Encryption Keys) (https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html).
+//
+// Assuming you have permission to read object tags (permission for the s3:GetObjectVersionTagging
+// action), the response also returns the x-amz-tagging-count header that provides
+// the count of number of tags associated with the object. You can use GetObjectTagging
+// to retrieve the tag set associated with an object.
+//
+// Permissions
+//
+// You need the s3:GetObject permission for this operation. For more information,
+// see Specifying Permissions in a Policy (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html).
+// If the object you request does not exist, the error Amazon S3 returns depends
+// on whether you also have the s3:ListBucket permission.
+//
+// * If you have the s3:ListBucket permission on the bucket, Amazon S3 will
+// return an HTTP status code 404 ("no such key") error.
+//
+// * If you don’t have the s3:ListBucket permission, Amazon S3 will return
+// an HTTP status code 403 ("access denied") error.
+//
+// Versioning
+//
+// By default, the GET operation returns the current version of an object. To
+// return a different version, use the versionId subresource.
+//
+// If the current version of the object is a delete marker, Amazon S3 behaves
+// as if the object was deleted and includes x-amz-delete-marker: true in the
+// response.
+//
+// For more information about versioning, see PutBucketVersioning.
+//
+// Overriding Response Header Values
+//
+// There are times when you want to override certain response header values
+// in a GET response. For example, you might override the Content-Disposition
+// response header value in your GET request.
+//
+// You can override values for a set of response headers using the following
+// query parameters. These response header values are sent only on a successful
+// request, that is, when status code 200 OK is returned. The set of headers
+// you can override using these parameters is a subset of the headers that Amazon
+// S3 accepts when you create an object. The response headers that you can override
+// for the GET response are Content-Type, Content-Language, Expires, Cache-Control,
+// Content-Disposition, and Content-Encoding. To override these header values
+// in the GET response, you use the following request parameters.
+//
+// You must sign the request, either using an Authorization header or a presigned
+// URL, when using these parameters. They cannot be used with an unsigned (anonymous)
+// request.
+//
+// * response-content-type
+//
+// * response-content-language
+//
+// * response-expires
+//
+// * response-cache-control
+//
+// * response-content-disposition
+//
+// * response-content-encoding
+//
+// Additional Considerations about Request Headers
+//
+// If both of the If-Match and If-Unmodified-Since headers are present in the
+// request as follows: If-Match condition evaluates to true, and; If-Unmodified-Since
+// condition evaluates to false; then, S3 returns 200 OK and the data requested.
+//
+// If both of the If-None-Match and If-Modified-Since headers are present in
+// the request as follows:If-None-Match condition evaluates to false, and; If-Modified-Since
+// condition evaluates to true; then, S3 returns 304 Not Modified response code.
+//
+// For more information about conditional requests, see RFC 7232 (https://tools.ietf.org/html/rfc7232).
+//
+// The following operations are related to GetObject:
+//
+// * ListBuckets
+//
+// * GetObjectAcl
+//
+// 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:
+// * ErrCodeNoSuchKey "NoSuchKey"
+// The specified key does not exist.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObject
+func (c *S3) GetObject(input *GetObjectInput) (*GetObjectOutput, error) {
+ req, out := c.GetObjectRequest(input)
+ return out, req.Send()
+}
+
+// GetObjectWithContext is the same as GetObject with the addition of
+// the ability to pass a context and additional request options.
+//
+// See GetObject for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *S3) GetObjectWithContext(ctx aws.Context, input *GetObjectInput, opts ...request.Option) (*GetObjectOutput, error) {
req, out := c.GetObjectRequest(input)
@@ -3186,7 +4336,21 @@ func (c *S3) GetObjectAclRequest(input *GetObjectAclInput) (req *request.Request
// GetObjectAcl API operation for Amazon Simple Storage Service.
//
-// Returns the access control list (ACL) of an object.
+// Returns the access control list (ACL) of an object. To use this operation,
+// you must have READ_ACP access to the object.
+//
+// Versioning
+//
+// By default, GET returns ACL information about the current version of an object.
+// To return ACL information about a different version, use the versionId subresource.
+//
+// The following operations are related to GetObjectAcl:
+//
+// * GetObject
+//
+// * DeleteObject
+//
+// * PutObject
//
// 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
@@ -3265,7 +4429,8 @@ func (c *S3) GetObjectLegalHoldRequest(input *GetObjectLegalHoldInput) (req *req
// GetObjectLegalHold API operation for Amazon Simple Storage Service.
//
-// Gets an object's current Legal Hold status.
+// Gets an object's current Legal Hold status. For more information, see Locking
+// Objects (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.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
@@ -3339,9 +4504,10 @@ func (c *S3) GetObjectLockConfigurationRequest(input *GetObjectLockConfiguration
// GetObjectLockConfiguration API operation for Amazon Simple Storage Service.
//
-// Gets the object lock configuration for a bucket. The rule specified in the
-// object lock configuration will be applied by default to every new object
-// placed in the specified bucket.
+// Gets the Object Lock configuration for a bucket. The rule specified in the
+// Object Lock configuration will be applied by default to every new object
+// placed in the specified bucket. For more information, see Locking Objects
+// (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.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
@@ -3415,7 +4581,8 @@ func (c *S3) GetObjectRetentionRequest(input *GetObjectRetentionInput) (req *req
// GetObjectRetention API operation for Amazon Simple Storage Service.
//
-// Retrieves an object's retention settings.
+// Retrieves an object's retention settings. For more information, see Locking
+// Objects (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.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
@@ -3489,7 +4656,25 @@ func (c *S3) GetObjectTaggingRequest(input *GetObjectTaggingInput) (req *request
// GetObjectTagging API operation for Amazon Simple Storage Service.
//
-// Returns the tag-set of an object.
+// Returns the tag-set of an object. You send the GET request against the tagging
+// subresource associated with the object.
+//
+// To use this operation, you must have permission to perform the s3:GetObjectTagging
+// action. By default, the GET operation returns information about current version
+// of an object. For a versioned bucket, you can have multiple versions of an
+// object in your bucket. To retrieve tags of any other version, use the versionId
+// query parameter. You also need permission for the s3:GetObjectVersionTagging
+// action.
+//
+// By default, the bucket owner has this permission and can grant this permission
+// to others.
+//
+// For information about the Amazon S3 object tagging feature, see Object Tagging
+// (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-tagging.html).
+//
+// The following operation is related to GetObjectTagging:
+//
+// * PutObjectTagging
//
// 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
@@ -3563,7 +4748,19 @@ func (c *S3) GetObjectTorrentRequest(input *GetObjectTorrentInput) (req *request
// GetObjectTorrent API operation for Amazon Simple Storage Service.
//
-// Return torrent files from a bucket.
+// Return torrent files from a bucket. BitTorrent can save you bandwidth when
+// you're distributing large files. For more information about BitTorrent, see
+// Amazon S3 Torrent (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3Torrent.html).
+//
+// You can get torrent only for objects that are less than 5 GB in size and
+// that are not encrypted using server-side encryption with customer-provided
+// encryption key.
+//
+// To use GET, you must have READ access to the object.
+//
+// The following operation is related to GetObjectTorrent:
+//
+// * GetObject
//
// 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
@@ -3637,7 +4834,30 @@ func (c *S3) GetPublicAccessBlockRequest(input *GetPublicAccessBlockInput) (req
// GetPublicAccessBlock API operation for Amazon Simple Storage Service.
//
-// Retrieves the PublicAccessBlock configuration for an Amazon S3 bucket.
+// Retrieves the PublicAccessBlock configuration for an Amazon S3 bucket. To
+// use this operation, you must have the s3:GetBucketPublicAccessBlock permission.
+// For more information about Amazon S3 permissions, see Specifying Permissions
+// in a Policy (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html).
+//
+// When Amazon S3 evaluates the PublicAccessBlock configuration for a bucket
+// or an object, it checks the PublicAccessBlock configuration for both the
+// bucket (or the bucket that contains the object) and the bucket owner's account.
+// If the PublicAccessBlock settings are different between the bucket and the
+// account, Amazon S3 uses the most restrictive combination of the bucket-level
+// and account-level settings.
+//
+// For more information about when Amazon S3 considers a bucket or an object
+// public, see The Meaning of "Public" (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status).
+//
+// The following operations are related to GetPublicAccessBlock:
+//
+// * Using Amazon S3 Block Public Access (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html)
+//
+// * PutPublicAccessBlock
+//
+// * GetPublicAccessBlock
+//
+// * DeletePublicAccessBlock
//
// 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
@@ -3713,7 +4933,15 @@ func (c *S3) HeadBucketRequest(input *HeadBucketInput) (req *request.Request, ou
// 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.
+// to access it. The operation returns a 200 OK if the bucket exists and you
+// have permission to access it. Otherwise, the operation might return responses
+// such as 404 Not Found and 403 Forbidden.
+//
+// To use this operation, you must have permissions to perform the s3:ListBucket
+// action. The bucket owner has this permission by default and can grant this
+// permission to others. For more information about permissions, see Permissions
+// Related to Bucket Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources)
+// and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.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
@@ -3796,6 +5024,63 @@ func (c *S3) HeadObjectRequest(input *HeadObjectInput) (req *request.Request, ou
// 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.
//
+// A HEAD request has the same options as a GET operation on an object. The
+// response is identical to the GET response except that there is no response
+// body.
+//
+// If you encrypt an object by using server-side encryption with customer-provided
+// encryption keys (SSE-C) when you store the object in Amazon S3, then when
+// you retrieve the metadata from the object, you must use the following headers:
+//
+// * x-amz-server-side​-encryption​-customer-algorithm
+//
+// * x-amz-server-side​-encryption​-customer-key
+//
+// * x-amz-server-side​-encryption​-customer-key-MD5
+//
+// For more information about SSE-C, see Server-Side Encryption (Using Customer-Provided
+// Encryption Keys) (https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html).
+//
+// Encryption request headers, like x-amz-server-side-encryption, should not
+// be sent for GET requests if your object uses server-side encryption with
+// CMKs stored in AWS KMS (SSE-KMS) or server-side encryption with Amazon S3–managed
+// encryption keys (SSE-S3). If your object does use these types of keys, you’ll
+// get an HTTP 400 BadRequest error.
+//
+// Request headers are limited to 8 KB in size. For more information, see Common
+// Request Headers (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTCommonRequestHeaders.html).
+//
+// Consider the following when using request headers:
+//
+// * Consideration 1 – If both of the If-Match and If-Unmodified-Since
+// headers are present in the request as follows: If-Match condition evaluates
+// to true, and; If-Unmodified-Since condition evaluates to false; Then Amazon
+// S3 returns 200 OK and the data requested.
+//
+// * Consideration 2 – If both of the If-None-Match and If-Modified-Since
+// headers are present in the request as follows: If-None-Match condition
+// evaluates to false, and; If-Modified-Since condition evaluates to true;
+// Then Amazon S3 returns the 304 Not Modified response code.
+//
+// For more information about conditional requests, see RFC 7232 (https://tools.ietf.org/html/rfc7232).
+//
+// Permissions
+//
+// You need the s3:GetObject permission for this operation. For more information,
+// see Specifying Permissions in a Policy (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html).
+// If the object you request does not exist, the error Amazon S3 returns depends
+// on whether you also have the s3:ListBucket permission.
+//
+// * If you have the s3:ListBucket permission on the bucket, Amazon S3 returns
+// an HTTP status code 404 ("no such key") error.
+//
+// * If you don’t have the s3:ListBucket permission, Amazon S3 returns
+// an HTTP status code 403 ("access denied") error.
+//
+// The following operation is related to HeadObject:
+//
+// * GetObject
+//
// See http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#RESTErrorResponses
// for more information on returned errors.
//
@@ -3871,7 +5156,33 @@ func (c *S3) ListBucketAnalyticsConfigurationsRequest(input *ListBucketAnalytics
// ListBucketAnalyticsConfigurations API operation for Amazon Simple Storage Service.
//
-// Lists the analytics configurations for the bucket.
+// Lists the analytics configurations for the bucket. You can have up to 1,000
+// analytics configurations per bucket.
+//
+// This operation supports list pagination and does not return more than 100
+// configurations at a time. You should always check the IsTruncated element
+// in the response. If there are no more configurations to list, IsTruncated
+// is set to false. If there are more configurations to list, IsTruncated is
+// set to true, and there will be a value in NextContinuationToken. You use
+// the NextContinuationToken value to continue the pagination of the list by
+// passing the value in continuation-token in the request to GET the next page.
+//
+// To use this operation, you must have permissions to perform the s3:GetAnalyticsConfiguration
+// action. The bucket owner has this permission by default. The bucket owner
+// can grant this permission to others. For more information about permissions,
+// see Permissions Related to Bucket Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources)
+// and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html).
+//
+// For information about Amazon S3 analytics feature, see Amazon S3 Analytics
+// – Storage Class Analysis (https://docs.aws.amazon.com/AmazonS3/latest/dev/analytics-storage-class.html).
+//
+// The following operations are related to ListBucketAnalyticsConfigurations:
+//
+// * GetBucketAnalyticsConfiguration
+//
+// * DeleteBucketAnalyticsConfiguration
+//
+// * PutBucketAnalyticsConfiguration
//
// 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
@@ -3945,7 +5256,33 @@ func (c *S3) ListBucketInventoryConfigurationsRequest(input *ListBucketInventory
// ListBucketInventoryConfigurations API operation for Amazon Simple Storage Service.
//
-// Returns a list of inventory configurations for the bucket.
+// Returns a list of inventory configurations for the bucket. You can have up
+// to 1,000 analytics configurations per bucket.
+//
+// This operation supports list pagination and does not return more than 100
+// configurations at a time. Always check the IsTruncated element in the response.
+// If there are no more configurations to list, IsTruncated is set to false.
+// If there are more configurations to list, IsTruncated is set to true, and
+// there is a value in NextContinuationToken. You use the NextContinuationToken
+// value to continue the pagination of the list by passing the value in continuation-token
+// in the request to GET the next page.
+//
+// To use this operation, you must have permissions to perform the s3:GetInventoryConfiguration
+// action. The bucket owner has this permission by default. The bucket owner
+// can grant this permission to others. For more information about permissions,
+// see Permissions Related to Bucket Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources)
+// and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html).
+//
+// For information about the Amazon S3 inventory feature, see Amazon S3 Inventory
+// (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-inventory.html)
+//
+// The following operations are related to ListBucketInventoryConfigurations:
+//
+// * GetBucketInventoryConfiguration
+//
+// * DeleteBucketInventoryConfiguration
+//
+// * PutBucketInventoryConfiguration
//
// 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
@@ -4019,7 +5356,34 @@ func (c *S3) ListBucketMetricsConfigurationsRequest(input *ListBucketMetricsConf
// ListBucketMetricsConfigurations API operation for Amazon Simple Storage Service.
//
-// Lists the metrics configurations for the bucket.
+// Lists the metrics configurations for the bucket. The metrics configurations
+// are only for the request metrics of the bucket and do not provide information
+// on daily storage metrics. You can have up to 1,000 configurations per bucket.
+//
+// This operation supports list pagination and does not return more than 100
+// configurations at a time. Always check the IsTruncated element in the response.
+// If there are no more configurations to list, IsTruncated is set to false.
+// If there are more configurations to list, IsTruncated is set to true, and
+// there is a value in NextContinuationToken. You use the NextContinuationToken
+// value to continue the pagination of the list by passing the value in continuation-token
+// in the request to GET the next page.
+//
+// To use this operation, you must have permissions to perform the s3:GetMetricsConfiguration
+// action. The bucket owner has this permission by default. The bucket owner
+// can grant this permission to others. For more information about permissions,
+// see Permissions Related to Bucket Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources)
+// and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html).
+//
+// For more information about metrics configurations and CloudWatch request
+// metrics, see Monitoring Metrics with Amazon CloudWatch (https://docs.aws.amazon.com/AmazonS3/latest/dev/cloudwatch-monitoring.html).
+//
+// The following operations are related to ListBucketMetricsConfigurations:
+//
+// * PutBucketMetricsConfiguration
+//
+// * GetBucketMetricsConfiguration
+//
+// * DeleteBucketMetricsConfiguration
//
// 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
@@ -4173,7 +5537,40 @@ func (c *S3) ListMultipartUploadsRequest(input *ListMultipartUploadsInput) (req
// ListMultipartUploads API operation for Amazon Simple Storage Service.
//
-// This operation lists in-progress multipart uploads.
+// This operation lists in-progress multipart uploads. An in-progress multipart
+// upload is a multipart upload that has been initiated using the Initiate Multipart
+// Upload request, but has not yet been completed or aborted.
+//
+// This operation returns at most 1,000 multipart uploads in the response. 1,000
+// multipart uploads is the maximum number of uploads a response can include,
+// which is also the default value. You can further limit the number of uploads
+// in a response by specifying the max-uploads parameter in the response. If
+// additional multipart uploads satisfy the list criteria, the response will
+// contain an IsTruncated element with the value true. To list the additional
+// multipart uploads, use the key-marker and upload-id-marker request parameters.
+//
+// In the response, the uploads are sorted by key. If your application has initiated
+// more than one multipart upload using the same object key, then uploads in
+// the response are first sorted by key. Additionally, uploads are sorted in
+// ascending order within each key by the upload initiation time.
+//
+// For more information on multipart uploads, see Uploading Objects Using Multipart
+// Upload (https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html).
+//
+// For information on permissions required to use the multipart upload API,
+// see Multipart Upload API and Permissions (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html).
+//
+// The following operations are related to ListMultipartUploads:
+//
+// * CreateMultipartUpload
+//
+// * UploadPart
+//
+// * CompleteMultipartUpload
+//
+// * ListParts
+//
+// * AbortMultipartUpload
//
// 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
@@ -4246,10 +5643,12 @@ func (c *S3) ListMultipartUploadsPagesWithContext(ctx aws.Context, input *ListMu
},
}
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListMultipartUploadsOutput), !p.HasNextPage())
+ for p.Next() {
+ if !fn(p.Page().(*ListMultipartUploadsOutput), !p.HasNextPage()) {
+ break
+ }
}
+
return p.Err()
}
@@ -4303,7 +5702,24 @@ func (c *S3) ListObjectVersionsRequest(input *ListObjectVersionsInput) (req *req
// ListObjectVersions API operation for Amazon Simple Storage Service.
//
-// Returns metadata about all of the versions of objects in a bucket.
+// Returns metadata about all of the versions of objects in a bucket. You can
+// also use request parameters as selection criteria to return metadata about
+// a subset of all the object versions.
+//
+// A 200 OK response can contain valid or invalid XML. Make sure to design your
+// application to parse the contents of the response and handle it appropriately.
+//
+// To use this operation, you must have READ access to the bucket.
+//
+// The following operations are related to ListObjectVersions:
+//
+// * ListObjectsV2
+//
+// * GetObject
+//
+// * PutObject
+//
+// * DeleteObject
//
// 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
@@ -4376,10 +5792,12 @@ func (c *S3) ListObjectVersionsPagesWithContext(ctx aws.Context, input *ListObje
},
}
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListObjectVersionsOutput), !p.HasNextPage())
+ for p.Next() {
+ if !fn(p.Page().(*ListObjectVersionsOutput), !p.HasNextPage()) {
+ break
+ }
}
+
return p.Err()
}
@@ -4433,9 +5851,27 @@ func (c *S3) ListObjectsRequest(input *ListObjectsInput) (req *request.Request,
// ListObjects API operation for Amazon Simple Storage Service.
//
-// Returns some or all (up to 1000) of the objects in a bucket. You can use
+// Returns some or all (up to 1,000) 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.
+// in a bucket. A 200 OK response can contain valid or invalid XML. Be sure
+// to design your application to parse the contents of the response and handle
+// it appropriately.
+//
+// This API has been revised. We recommend that you use the newer version, ListObjectsV2,
+// when developing applications. For backward compatibility, Amazon S3 continues
+// to support ListObjects.
+//
+// The following operations are related to ListObjects:
+//
+// * ListObjectsV2
+//
+// * GetObject
+//
+// * PutObject
+//
+// * CreateBucket
+//
+// * ListBuckets
//
// 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
@@ -4513,10 +5949,12 @@ func (c *S3) ListObjectsPagesWithContext(ctx aws.Context, input *ListObjectsInpu
},
}
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListObjectsOutput), !p.HasNextPage())
+ for p.Next() {
+ if !fn(p.Page().(*ListObjectsOutput), !p.HasNextPage()) {
+ break
+ }
}
+
return p.Err()
}
@@ -4570,10 +6008,34 @@ func (c *S3) ListObjectsV2Request(input *ListObjectsV2Input) (req *request.Reque
// ListObjectsV2 API operation for Amazon Simple Storage Service.
//
-// Returns some or all (up to 1000) of the objects in a bucket. You can use
+// Returns some or all (up to 1,000) 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.
+// in a bucket. A 200 OK response can contain valid or invalid XML. Make sure
+// to design your application to parse the contents of the response and handle
+// it appropriately.
+//
+// To use this operation, you must have READ access to the bucket.
+//
+// To use this operation in an AWS Identity and Access Management (IAM) policy,
+// you must have permissions to perform the s3:ListBucket action. The bucket
+// owner has this permission by default and can grant this permission to others.
+// For more information about permissions, see Permissions Related to Bucket
+// Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources)
+// and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html).
+//
+// This section describes the latest revision of the API. We recommend that
+// you use this revised API for application development. For backward compatibility,
+// Amazon S3 continues to support the prior version of this API, ListObjects.
+//
+// To get a list of your buckets, see ListBuckets.
+//
+// The following operations are related to ListObjectsV2:
+//
+// * GetObject
+//
+// * PutObject
+//
+// * CreateBucket
//
// 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
@@ -4651,10 +6113,12 @@ func (c *S3) ListObjectsV2PagesWithContext(ctx aws.Context, input *ListObjectsV2
},
}
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListObjectsV2Output), !p.HasNextPage())
+ for p.Next() {
+ if !fn(p.Page().(*ListObjectsV2Output), !p.HasNextPage()) {
+ break
+ }
}
+
return p.Err()
}
@@ -4709,6 +6173,33 @@ func (c *S3) ListPartsRequest(input *ListPartsInput) (req *request.Request, outp
// ListParts API operation for Amazon Simple Storage Service.
//
// Lists the parts that have been uploaded for a specific multipart upload.
+// This operation must include the upload ID, which you obtain by sending the
+// initiate multipart upload request (see CreateMultipartUpload). This request
+// returns a maximum of 1,000 uploaded parts. The default number of parts returned
+// is 1,000 parts. You can restrict the number of parts returned by specifying
+// the max-parts request parameter. If your multipart upload consists of more
+// than 1,000 parts, the response returns an IsTruncated field with the value
+// of true, and a NextPartNumberMarker element. In subsequent ListParts requests
+// you can include the part-number-marker query string parameter and set its
+// value to the NextPartNumberMarker field value from the previous response.
+//
+// For more information on multipart uploads, see Uploading Objects Using Multipart
+// Upload (https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html).
+//
+// For information on permissions required to use the multipart upload API,
+// see Multipart Upload API and Permissions (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html).
+//
+// The following operations are related to ListParts:
+//
+// * CreateMultipartUpload
+//
+// * UploadPart
+//
+// * CompleteMultipartUpload
+//
+// * AbortMultipartUpload
+//
+// * ListMultipartUploads
//
// 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
@@ -4781,10 +6272,12 @@ func (c *S3) ListPartsPagesWithContext(ctx aws.Context, input *ListPartsInput, f
},
}
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListPartsOutput), !p.HasNextPage())
+ for p.Next() {
+ if !fn(p.Page().(*ListPartsOutput), !p.HasNextPage()) {
+ break
+ }
}
+
return p.Err()
}
@@ -4833,7 +6326,41 @@ func (c *S3) PutBucketAccelerateConfigurationRequest(input *PutBucketAccelerateC
// PutBucketAccelerateConfiguration API operation for Amazon Simple Storage Service.
//
-// Sets the accelerate configuration of an existing bucket.
+// Sets the accelerate configuration of an existing bucket. Amazon S3 Transfer
+// Acceleration is a bucket-level feature that enables you to perform faster
+// data transfers to Amazon S3.
+//
+// To use this operation, you must have permission to perform the s3:PutAccelerateConfiguration
+// action. The bucket owner has this permission by default. The bucket owner
+// can grant this permission to others. For more information about permissions,
+// see Permissions Related to Bucket Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources)
+// and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html).
+//
+// The Transfer Acceleration state of a bucket can be set to one of the following
+// two values:
+//
+// * Enabled – Enables accelerated data transfers to the bucket.
+//
+// * Suspended – Disables accelerated data transfers to the bucket.
+//
+// The GetBucketAccelerateConfiguration operation returns the transfer acceleration
+// state of a bucket.
+//
+// After setting the Transfer Acceleration state of a bucket to Enabled, it
+// might take up to thirty minutes before the data transfer rates to the bucket
+// increase.
+//
+// The name of the bucket used for Transfer Acceleration must be DNS-compliant
+// and must not contain periods (".").
+//
+// For more information about transfer acceleration, see Transfer Acceleration
+// (https://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html).
+//
+// The following operations are related to PutBucketAccelerateConfiguration:
+//
+// * GetBucketAccelerateConfiguration
+//
+// * CreateBucket
//
// 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
@@ -4908,7 +6435,80 @@ func (c *S3) PutBucketAclRequest(input *PutBucketAclInput) (req *request.Request
// PutBucketAcl API operation for Amazon Simple Storage Service.
//
-// Sets the permissions on a bucket using access control lists (ACL).
+// Sets the permissions on an existing bucket using access control lists (ACL).
+// For more information, see Using ACLs (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3_ACLs_UsingACLs.html).
+// To set the ACL of a bucket, you must have WRITE_ACP permission.
+//
+// You can use one of the following two ways to set a bucket's permissions:
+//
+// * Specify the ACL in the request body
+//
+// * Specify permissions using request headers
+//
+// You cannot specify access permission using both the body and the request
+// headers.
+//
+// Depending on your application needs, you may choose to set the ACL on a bucket
+// using either the request body or the headers. For example, if you have an
+// existing application that updates a bucket ACL using the request body, then
+// you can continue to use that approach.
+//
+// Access Permissions
+//
+// You can set access permissions using one of the following methods:
+//
+// * Specify a canned ACL with the x-amz-acl request header. Amazon S3 supports
+// a set of predefined ACLs, known as canned ACLs. Each canned ACL has a
+// predefined set of grantees and permissions. Specify the canned ACL name
+// as the value of x-amz-acl. If you use this header, you cannot use other
+// access control-specific headers in your request. For more information,
+// see Canned ACL (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL).
+//
+// * Specify access permissions explicitly with the x-amz-grant-read, x-amz-grant-read-acp,
+// x-amz-grant-write-acp, and x-amz-grant-full-control headers. When using
+// these headers, you specify explicit access permissions and grantees (AWS
+// accounts or Amazon S3 groups) who will receive the permission. If you
+// use these ACL-specific headers, you cannot use the x-amz-acl header to
+// set a canned ACL. These parameters map to the set of permissions that
+// Amazon S3 supports in an ACL. For more information, see Access Control
+// List (ACL) Overview (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html).
+// You specify each grantee as a type=value pair, where the type is one of
+// the following: emailAddress – if the value specified is the email address
+// of an AWS account id – if the value specified is the canonical user
+// ID of an AWS account uri – if you are granting permissions to a predefined
+// group For example, the following x-amz-grant-write header grants create,
+// overwrite, and delete objects permission to LogDelivery group predefined
+// by Amazon S3 and two AWS accounts identified by their email addresses.
+// x-amz-grant-write: uri="http://acs.amazonaws.com/groups/s3/LogDelivery",
+// emailAddress="[email protected]", emailAddress="[email protected]"
+//
+// You can use either a canned ACL or specify access permissions explicitly.
+// You cannot do both.
+//
+// Grantee Values
+//
+// You can specify the person (grantee) to whom you're assigning access rights
+// (using request elements) in the following ways:
+//
+// * By Email address: <Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+// xsi:type="AmazonCustomerByEmail"><EmailAddress><>[email protected]<></EmailAddress>lt;/Grantee>
+// The grantee is resolved to the CanonicalUser and, in a response to a GET
+// Object acl request, appears as the CanonicalUser.
+//
+// * By the person's ID: <Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+// xsi:type="CanonicalUser"><ID><>ID<></ID><DisplayName><>GranteesEmail<></DisplayName>
+// </Grantee> DisplayName is optional and ignored in the request
+//
+// * By URI: <Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+// xsi:type="Group"><URI><>http://acs.amazonaws.com/groups/global/AuthenticatedUsers<></URI></Grantee>
+//
+// Related Resources
+//
+// * CreateBucket
+//
+// * DeleteBucket
+//
+// * GetObjectAcl
//
// 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
@@ -4984,7 +6584,50 @@ func (c *S3) PutBucketAnalyticsConfigurationRequest(input *PutBucketAnalyticsCon
// PutBucketAnalyticsConfiguration API operation for Amazon Simple Storage Service.
//
// Sets an analytics configuration for the bucket (specified by the analytics
-// configuration ID).
+// configuration ID). You can have up to 1,000 analytics configurations per
+// bucket.
+//
+// You can choose to have storage class analysis export analysis reports sent
+// to a comma-separated values (CSV) flat file. See the DataExport request element.
+// Reports are updated daily and are based on the object filters that you configure.
+// When selecting data export, you specify a destination bucket and an optional
+// destination prefix where the file is written. You can export the data to
+// a destination bucket in a different account. However, the destination bucket
+// must be in the same Region as the bucket that you are making the PUT analytics
+// configuration to. For more information, see Amazon S3 Analytics – Storage
+// Class Analysis (https://docs.aws.amazon.com/AmazonS3/latest/dev/analytics-storage-class.html).
+//
+// You must create a bucket policy on the destination bucket where the exported
+// file is written to grant permissions to Amazon S3 to write objects to the
+// bucket. For an example policy, see Granting Permissions for Amazon S3 Inventory
+// and Storage Class Analysis (https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html#example-bucket-policies-use-case-9).
+//
+// To use this operation, you must have permissions to perform the s3:PutAnalyticsConfiguration
+// action. The bucket owner has this permission by default. The bucket owner
+// can grant this permission to others. For more information about permissions,
+// see Permissions Related to Bucket Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources)
+// and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html).
+//
+// Special Errors
+//
+// * HTTP Error: HTTP 400 Bad Request Code: InvalidArgument Cause: Invalid
+// argument.
+//
+// * HTTP Error: HTTP 400 Bad Request Code: TooManyConfigurations Cause:
+// You are attempting to create a new configuration but have already reached
+// the 1,000-configuration limit.
+//
+// * HTTP Error: HTTP 403 Forbidden Code: AccessDenied Cause: You are not
+// the owner of the specified bucket, or you do not have the s3:PutAnalyticsConfiguration
+// bucket permission to set the configuration on the bucket.
+//
+// Related Resources
+//
+// *
+//
+// *
+//
+// *
//
// 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
@@ -5059,7 +6702,49 @@ func (c *S3) PutBucketCorsRequest(input *PutBucketCorsInput) (req *request.Reque
// PutBucketCors API operation for Amazon Simple Storage Service.
//
-// Sets the CORS configuration for a bucket.
+// Sets the cors configuration for your bucket. If the configuration exists,
+// Amazon S3 replaces it.
+//
+// To use this operation, you must be allowed to perform the s3:PutBucketCORS
+// action. By default, the bucket owner has this permission and can grant it
+// to others.
+//
+// You set this configuration on a bucket so that the bucket can service cross-origin
+// requests. For example, you might want to enable a request whose origin is
+// http://www.example.com to access your Amazon S3 bucket at my.example.bucket.com
+// by using the browser's XMLHttpRequest capability.
+//
+// To enable cross-origin resource sharing (CORS) on a bucket, you add the cors
+// subresource to the bucket. The cors subresource is an XML document in which
+// you configure rules that identify origins and the HTTP methods that can be
+// executed on your bucket. The document is limited to 64 KB in size.
+//
+// When Amazon S3 receives a cross-origin request (or a pre-flight OPTIONS request)
+// against a bucket, it evaluates the cors configuration on the bucket and uses
+// the first CORSRule rule that matches the incoming browser request to enable
+// a cross-origin request. For a rule to match, the following conditions must
+// be met:
+//
+// * The request's Origin header must match AllowedOrigin elements.
+//
+// * The request method (for example, GET, PUT, HEAD, and so on) or the Access-Control-Request-Method
+// header in case of a pre-flight OPTIONS request must be one of the AllowedMethod
+// elements.
+//
+// * Every header specified in the Access-Control-Request-Headers request
+// header of a pre-flight request must match an AllowedHeader element.
+//
+// For more information about CORS, go to Enabling Cross-Origin Resource Sharing
+// (https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) in the Amazon
+// Simple Storage Service Developer Guide.
+//
+// Related Resources
+//
+// * GetBucketCors
+//
+// * DeleteBucketCors
+//
+// * RESTOPTIONSobject
//
// 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
@@ -5134,8 +6819,28 @@ func (c *S3) PutBucketEncryptionRequest(input *PutBucketEncryptionInput) (req *r
// PutBucketEncryption API operation for Amazon Simple Storage Service.
//
-// Creates a new server-side encryption configuration (or replaces an existing
-// one, if present).
+// This implementation of the PUT operation uses the encryption subresource
+// to set the default encryption state of an existing bucket.
+//
+// This implementation of the PUT operation sets default encryption for a bucket
+// using server-side encryption with Amazon S3-managed keys SSE-S3 or AWS KMS
+// customer master keys (CMKs) (SSE-KMS).
+//
+// This operation requires AWS Signature Version 4. For more information, see
+// Authenticating Requests (AWS Signature Version 4) (sig-v4-authenticating-requests.html).
+//
+// To use this operation, you must have permissions to perform the s3:PutEncryptionConfiguration
+// action. The bucket owner has this permission by default. The bucket owner
+// can grant this permission to others. For more information about permissions,
+// see Permissions Related to Bucket Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources)
+// and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html)
+// in the Amazon Simple Storage Service Developer Guide.
+//
+// Related Resources
+//
+// * GetBucketEncryption
+//
+// * DeleteBucketEncryption
//
// 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
@@ -5210,8 +6915,54 @@ func (c *S3) PutBucketInventoryConfigurationRequest(input *PutBucketInventoryCon
// PutBucketInventoryConfiguration API operation for Amazon Simple Storage Service.
//
-// Adds an inventory configuration (identified by the inventory ID) from the
-// bucket.
+// This implementation of the PUT operation adds an inventory configuration
+// (identified by the inventory ID) to the bucket. You can have up to 1,000
+// inventory configurations per bucket.
+//
+// Amazon S3 inventory generates inventories of the objects in the bucket on
+// a daily or weekly basis, and the results are published to a flat file. The
+// bucket that is inventoried is called the source bucket, and the bucket where
+// the inventory flat file is stored is called the destination bucket. The destination
+// bucket must be in the same AWS Region as the source bucket.
+//
+// When you configure an inventory for a source bucket, you specify the destination
+// bucket where you want the inventory to be stored, and whether to generate
+// the inventory daily or weekly. You can also configure what object metadata
+// to include and whether to inventory all object versions or only current versions.
+// For more information, see Amazon S3 Inventory (https://docs.aws.amazon.com/AmazonS3/latest/dev//storage-inventory.html)
+// in the Amazon Simple Storage Service Developer Guide.
+//
+// You must create a bucket policy on the destination bucket to grant permissions
+// to Amazon S3 to write objects to the bucket in the defined location. For
+// an example policy, see Granting Permissions for Amazon S3 Inventory and Storage
+// Class Analysis. (https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html#example-bucket-policies-use-case-9)
+//
+// To use this operation, you must have permissions to perform the s3:PutInventoryConfiguration
+// action. The bucket owner has this permission by default and can grant this
+// permission to others. For more information about permissions, see Permissions
+// Related to Bucket Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev//using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources)
+// and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/dev//s3-access-control.html)
+// in the Amazon Simple Storage Service Developer Guide.
+//
+// Special Errors
+//
+// * HTTP 400 Bad Request Error Code: InvalidArgument Cause: Invalid Argument
+//
+// * HTTP 400 Bad Request Error Code: TooManyConfigurations Cause: You are
+// attempting to create a new configuration but have already reached the
+// 1,000-configuration limit.
+//
+// * HTTP 403 Forbidden Error Code: AccessDenied Cause: You are not the owner
+// of the specified bucket, or you do not have the s3:PutInventoryConfiguration
+// bucket permission to set the configuration on the bucket
+//
+// Related Resources
+//
+// * GetBucketInventoryConfiguration
+//
+// * DeleteBucketInventoryConfiguration
+//
+// * ListBucketInventoryConfigurations
//
// 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
@@ -5291,13 +7042,61 @@ func (c *S3) PutBucketLifecycleRequest(input *PutBucketLifecycleInput) (req *req
// PutBucketLifecycle API operation for Amazon Simple Storage Service.
//
-// No longer used, 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.
+// For an updated version of this API, see PutBucketLifecycleConfiguration.
+// This version has been deprecated. Existing lifecycle configurations will
+// work. For new lifecycle configurations, use the updated API.
//
-// See the AWS API reference guide for Amazon Simple Storage Service's
+// Creates a new lifecycle configuration for the bucket or replaces an existing
+// lifecycle configuration. For information about lifecycle configuration, see
+// Object Lifecycle Management (https://docs.aws.amazon.com/AmazonS3/latest/dev//object-lifecycle-mgmt.html)
+// in the Amazon Simple Storage Service Developer Guide.
+//
+// By default, all Amazon S3 resources, including buckets, objects, and related
+// subresources (for example, lifecycle configuration and website configuration)
+// are private. Only the resource owner, the AWS account that created the resource,
+// can access it. The resource owner can optionally grant access permissions
+// to others by writing an access policy. For this operation, users must get
+// the s3:PutLifecycleConfiguration permission.
+//
+// You can also explicitly deny permissions. Explicit denial also supersedes
+// any other permissions. If you want to prevent users or accounts from removing
+// or deleting objects from your bucket, you must deny them permissions for
+// the following actions:
+//
+// * s3:DeleteObject
+//
+// * s3:DeleteObjectVersion
+//
+// * s3:PutLifecycleConfiguration
+//
+// For more information about permissions, see Managing Access Permissions to
+// your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/dev//s3-access-control.html)
+// in the Amazon Simple Storage Service Developer Guide.
+//
+// For more examples of transitioning objects to storage classes such as STANDARD_IA
+// or ONEZONE_IA, see Examples of Lifecycle Configuration (https://docs.aws.amazon.com/AmazonS3/latest/dev//intro-lifecycle-rules.html#lifecycle-configuration-examples).
+//
+// Related Resources
+//
+// * GetBucketLifecycle(Deprecated)
+//
+// * GetBucketLifecycleConfiguration
+//
+// *
+//
+// * By default, a resource owner—in this case, a bucket owner, which is
+// the AWS account that created the bucket—can perform any of the operations.
+// A resource owner can also grant others permission to perform the operation.
+// For more information, see the following topics in the Amazon Simple Storage
+// Service Developer Guide: Specifying Permissions in a Policy (https://docs.aws.amazon.com/AmazonS3/latest/dev//using-with-s3-actions.html)
+// Managing Access Permissions to your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/dev//s3-access-control.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 PutBucketLifecycle for usage and error information.
// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLifecycle
//
@@ -5370,8 +7169,69 @@ func (c *S3) PutBucketLifecycleConfigurationRequest(input *PutBucketLifecycleCon
// PutBucketLifecycleConfiguration API operation for Amazon Simple Storage Service.
//
-// Sets lifecycle configuration for your bucket. If a lifecycle configuration
-// exists, it replaces it.
+// Creates a new lifecycle configuration for the bucket or replaces an existing
+// lifecycle configuration. For information about lifecycle configuration, see
+// Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html).
+//
+// Bucket lifecycle configuration now supports specifying a lifecycle rule using
+// an object key name prefix, one or more object tags, or a combination of both.
+// Accordingly, this section describes the latest API. The previous version
+// of the API supported filtering based only on an object key name prefix, which
+// is supported for backward compatibility. For the related API description,
+// see PutBucketLifecycle.
+//
+// Rules
+//
+// You specify the lifecycle configuration in your request body. The lifecycle
+// configuration is specified as XML consisting of one or more rules. Each rule
+// consists of the following:
+//
+// * Filter identifying a subset of objects to which the rule applies. The
+// filter can be based on a key name prefix, object tags, or a combination
+// of both.
+//
+// * Status whether the rule is in effect.
+//
+// * One or more lifecycle transition and expiration actions that you want
+// Amazon S3 to perform on the objects identified by the filter. If the state
+// of your bucket is versioning-enabled or versioning-suspended, you can
+// have many versions of the same object (one current version and zero or
+// more noncurrent versions). Amazon S3 provides predefined actions that
+// you can specify for current and noncurrent object versions.
+//
+// For more information, see Object Lifecycle Management (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html)
+// and Lifecycle Configuration Elements (https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html).
+//
+// Permissions
+//
+// By default, all Amazon S3 resources are private, including buckets, objects,
+// and related subresources (for example, lifecycle configuration and website
+// configuration). Only the resource owner (that is, the AWS account that created
+// it) can access the resource. The resource owner can optionally grant access
+// permissions to others by writing an access policy. For this operation, a
+// user must get the s3:PutLifecycleConfiguration permission.
+//
+// You can also explicitly deny permissions. Explicit deny also supersedes any
+// other permissions. If you want to block users or accounts from removing or
+// deleting objects from your bucket, you must deny them permissions for the
+// following actions:
+//
+// * s3:DeleteObject
+//
+// * s3:DeleteObjectVersion
+//
+// * s3:PutLifecycleConfiguration
+//
+// For more information about permissions, see Managing Access Permissions to
+// Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html).
+//
+// The following are related to PutBucketLifecycleConfiguration:
+//
+// * Examples of Lifecycle Configuration (https://docs.aws.amazon.com/AmazonS3/latest/dev/lifecycle-configuration-examples.html)
+//
+// * GetBucketLifecycleConfiguration
+//
+// * DeleteBucketLifecycle
//
// 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
@@ -5447,9 +7307,52 @@ func (c *S3) PutBucketLoggingRequest(input *PutBucketLoggingInput) (req *request
// 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
+// can view and modify the logging parameters. All logs are saved to buckets
+// in the same AWS Region as the source bucket. To set the logging status of
// a bucket, you must be the bucket owner.
//
+// The bucket owner is automatically granted FULL_CONTROL to all logs. You use
+// the Grantee request element to grant access to other people. The Permissions
+// request element specifies the kind of access the grantee has to the logs.
+//
+// Grantee Values
+//
+// You can specify the person (grantee) to whom you're assigning access rights
+// (using request elements) in the following ways:
+//
+// * By the person's ID: <Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+// xsi:type="CanonicalUser"><ID><>ID<></ID><DisplayName><>GranteesEmail<></DisplayName>
+// </Grantee> DisplayName is optional and ignored in the request.
+//
+// * By Email address: <Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+// xsi:type="AmazonCustomerByEmail"><EmailAddress><>[email protected]<></EmailAddress></Grantee>
+// The grantee is resolved to the CanonicalUser and, in a response to a GET
+// Object acl request, appears as the CanonicalUser.
+//
+// * By URI: <Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+// xsi:type="Group"><URI><>http://acs.amazonaws.com/groups/global/AuthenticatedUsers<></URI></Grantee>
+//
+// To enable logging, you use LoggingEnabled and its children request elements.
+// To disable logging, you use an empty BucketLoggingStatus request element:
+//
+// <BucketLoggingStatus xmlns="http://doc.s3.amazonaws.com/2006-03-01" />
+//
+// For more information about server access logging, see Server Access Logging
+// (https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerLogs.html).
+//
+// For more information about creating a bucket, see CreateBucket. For more
+// information about returning the logging status of a bucket, see GetBucketLogging.
+//
+// The following operations are related to PutBucketLogging:
+//
+// * PutObject
+//
+// * DeleteBucket
+//
+// * CreateBucket
+//
+// * GetBucketLogging
+//
// 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.
@@ -5524,7 +7427,33 @@ func (c *S3) PutBucketMetricsConfigurationRequest(input *PutBucketMetricsConfigu
// PutBucketMetricsConfiguration API operation for Amazon Simple Storage Service.
//
// Sets a metrics configuration (specified by the metrics configuration ID)
-// for the bucket.
+// for the bucket. You can have up to 1,000 metrics configurations per bucket.
+// If you're updating an existing metrics configuration, note that this is a
+// full replacement of the existing metrics configuration. If you don't include
+// the elements you want to keep, they are erased.
+//
+// To use this operation, you must have permissions to perform the s3:PutMetricsConfiguration
+// action. The bucket owner has this permission by default. The bucket owner
+// can grant this permission to others. For more information about permissions,
+// see Permissions Related to Bucket Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources)
+// and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html).
+//
+// For information about CloudWatch request metrics for Amazon S3, see Monitoring
+// Metrics with Amazon CloudWatch (https://docs.aws.amazon.com/AmazonS3/latest/dev/cloudwatch-monitoring.html).
+//
+// The following operations are related to PutBucketMetricsConfiguration:
+//
+// * DeleteBucketMetricsConfiguration
+//
+// * PutBucketMetricsConfiguration
+//
+// * ListBucketMetricsConfigurations
+//
+// GetBucketLifecycle has the following special error:
+//
+// * Error code: TooManyConfigurations Description: You are attempting to
+// create a new configuration but have already reached the 1,000-configuration
+// limit. HTTP Status Code: HTTP 400 Bad 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
@@ -5683,7 +7612,55 @@ func (c *S3) PutBucketNotificationConfigurationRequest(input *PutBucketNotificat
// PutBucketNotificationConfiguration API operation for Amazon Simple Storage Service.
//
-// Enables notifications of specified events for a bucket.
+// Enables notifications of specified events for a bucket. For more information
+// about event notifications, see Configuring Event Notifications (https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html).
+//
+// Using this API, you can replace an existing notification configuration. The
+// configuration is an XML file that defines the event types that you want Amazon
+// S3 to publish and the destination where you want Amazon S3 to publish an
+// event notification when it detects an event of the specified type.
+//
+// By default, your bucket has no event notifications configured. That is, the
+// notification configuration will be an empty NotificationConfiguration.
+//
+// <NotificationConfiguration>
+//
+// </NotificationConfiguration>
+//
+// This operation replaces the existing notification configuration with the
+// configuration you include in the request body.
+//
+// After Amazon S3 receives this request, it first verifies that any Amazon
+// Simple Notification Service (Amazon SNS) or Amazon Simple Queue Service (Amazon
+// SQS) destination exists, and that the bucket owner has permission to publish
+// to it by sending a test notification. In the case of AWS Lambda destinations,
+// Amazon S3 verifies that the Lambda function permissions grant Amazon S3 permission
+// to invoke the function from the Amazon S3 bucket. For more information, see
+// Configuring Notifications for Amazon S3 Events (https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html).
+//
+// You can disable notifications by adding the empty NotificationConfiguration
+// element.
+//
+// By default, only the bucket owner can configure notifications on a bucket.
+// However, bucket owners can use a bucket policy to grant permission to other
+// users to set this configuration with s3:PutBucketNotification permission.
+//
+// The PUT notification is an atomic operation. For example, suppose your notification
+// configuration includes SNS topic, SQS queue, and Lambda function configurations.
+// When you send a PUT request with this configuration, Amazon S3 sends test
+// messages to your SNS topic. If the message fails, the entire PUT operation
+// will fail, and Amazon S3 will not add the configuration to your bucket.
+//
+// Responses
+//
+// If the configuration in the request body includes only one TopicConfiguration
+// specifying only the s3:ReducedRedundancyLostObject event type, the response
+// will also include the x-amz-sns-test-message-id header containing the message
+// ID of the test notification sent to the topic.
+//
+// The following operation is related to PutBucketNotificationConfiguration:
+//
+// * GetBucketNotificationConfiguration
//
// 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
@@ -5758,7 +7735,28 @@ func (c *S3) PutBucketPolicyRequest(input *PutBucketPolicyInput) (req *request.R
// PutBucketPolicy API operation for Amazon Simple Storage Service.
//
-// Applies an Amazon S3 bucket policy to an Amazon S3 bucket.
+// Applies an Amazon S3 bucket policy to an Amazon S3 bucket. If you are using
+// an identity other than the root user of the AWS account that owns the bucket,
+// the calling identity must have the PutBucketPolicy permissions on the specified
+// bucket and belong to the bucket owner's account in order to use this operation.
+//
+// If you don't have PutBucketPolicy permissions, Amazon S3 returns a 403 Access
+// Denied error. If you have the correct permissions, but you're not using an
+// identity that belongs to the bucket owner's account, Amazon S3 returns a
+// 405 Method Not Allowed error.
+//
+// As a security precaution, the root user of the AWS account that owns a bucket
+// can always use this operation, even if the policy explicitly denies the root
+// user the ability to perform this action.
+//
+// For more information about bucket policies, see Using Bucket Policies and
+// User Policies (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html).
+//
+// The following operations are related to PutBucketPolicy:
+//
+// * CreateBucket
+//
+// * DeleteBucket
//
// 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
@@ -5834,9 +7832,56 @@ func (c *S3) PutBucketReplicationRequest(input *PutBucketReplicationInput) (req
// PutBucketReplication API operation for Amazon Simple Storage Service.
//
// Creates a replication configuration or replaces an existing one. For more
-// information, see Cross-Region Replication (CRR) (https://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html)
+// information, see Replication (https://docs.aws.amazon.com/AmazonS3/latest/dev/replication.html)
// in the Amazon S3 Developer Guide.
//
+// To perform this operation, the user or role performing the operation must
+// have the iam:PassRole (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html)
+// permission.
+//
+// Specify the replication configuration in the request body. In the replication
+// configuration, you provide the name of the destination bucket where you want
+// Amazon S3 to replicate objects, the IAM role that Amazon S3 can assume to
+// replicate objects on your behalf, and other relevant information.
+//
+// A replication configuration must include at least one rule, and can contain
+// a maximum of 1,000. Each rule identifies a subset of objects to replicate
+// by filtering the objects in the source bucket. To choose additional subsets
+// of objects to replicate, add a rule for each subset. All rules must specify
+// the same destination bucket.
+//
+// To specify a subset of the objects in the source bucket to apply a replication
+// rule to, add the Filter element as a child of the Rule element. You can filter
+// objects based on an object key prefix, one or more object tags, or both.
+// When you add the Filter element in the configuration, you must also add the
+// following elements: DeleteMarkerReplication, Status, and Priority.
+//
+// For information about enabling versioning on a bucket, see Using Versioning
+// (https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html).
+//
+// By default, a resource owner, in this case the AWS account that created the
+// bucket, can perform this operation. The resource owner can also grant others
+// permissions to perform the operation. For more information about permissions,
+// see Specifying Permissions in a Policy (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html)
+// and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html).
+//
+// Handling Replication of Encrypted Objects
+//
+// By default, Amazon S3 doesn't replicate objects that are stored at rest using
+// server-side encryption with CMKs stored in AWS KMS. To replicate AWS KMS-encrypted
+// objects, add the following: SourceSelectionCriteria, SseKmsEncryptedObjects,
+// Status, EncryptionConfiguration, and ReplicaKmsKeyID. For information about
+// replication configuration, see Replicating Objects Created with SSE Using
+// CMKs stored in AWS KMS (https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-config-for-kms-objects.html).
+//
+// For information on PutBucketReplication errors, see ReplicationErrorCodeList
+//
+// The following operations are related to PutBucketReplication:
+//
+// * GetBucketReplication
+//
+// * DeleteBucketReplication
+//
// 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.
@@ -5913,8 +7958,14 @@ func (c *S3) PutBucketRequestPaymentRequest(input *PutBucketRequestPaymentInput)
// 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
+// will be charged for the download. For more information, see Requester Pays
+// Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html).
+//
+// The following operations are related to PutBucketRequestPayment:
+//
+// * CreateBucket
+//
+// * GetBucketRequestPayment
//
// 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
@@ -5991,6 +8042,47 @@ func (c *S3) PutBucketTaggingRequest(input *PutBucketTaggingInput) (req *request
//
// Sets the tags for a bucket.
//
+// Use tags to organize your AWS bill to reflect your own cost structure. To
+// do this, sign up to get your AWS account bill with tag key values included.
+// Then, to see the cost of combined resources, organize your billing information
+// according to resources with the same tag key values. For example, you can
+// tag several resources with a specific application name, and then organize
+// your billing information to see the total cost of that application across
+// several services. For more information, see Cost Allocation and Tagging (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html).
+//
+// Within a bucket, if you add a tag that has the same key as an existing tag,
+// the new value overwrites the old value. For more information, see Using Cost
+// Allocation in Amazon S3 Bucket Tags (https://docs.aws.amazon.com/AmazonS3/latest/dev/CostAllocTagging.html).
+//
+// To use this operation, you must have permissions to perform the s3:PutBucketTagging
+// action. The bucket owner has this permission by default and can grant this
+// permission to others. For more information about permissions, see Permissions
+// Related to Bucket Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources)
+// and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html).
+//
+// PutBucketTagging has the following special errors:
+//
+// * Error code: InvalidTagError Description: The tag provided was not a
+// valid tag. This error can occur if the tag did not pass input validation.
+// For information about tag restrictions, see User-Defined Tag Restrictions
+// (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2//allocation-tag-restrictions.html)
+// and AWS-Generated Cost Allocation Tag Restrictions (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2//aws-tag-restrictions.html).
+//
+// * Error code: MalformedXMLError Description: The XML provided does not
+// match the schema.
+//
+// * Error code: OperationAbortedError Description: A conflicting conditional
+// operation is currently in progress against this resource. Please try again.
+//
+// * Error code: InternalError Description: The service was unable to apply
+// the provided tag to the bucket.
+//
+// The following operations are related to PutBucketTagging:
+//
+// * GetBucketTagging
+//
+// * DeleteBucketTagging
+//
// 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.
@@ -6067,6 +8159,38 @@ func (c *S3) PutBucketVersioningRequest(input *PutBucketVersioningInput) (req *r
// Sets the versioning state of an existing bucket. To set the versioning state,
// you must be the bucket owner.
//
+// You can set the versioning state with one of the following values:
+//
+// Enabled—Enables versioning for the objects in the bucket. All objects added
+// to the bucket receive a unique version ID.
+//
+// Suspended—Disables versioning for the objects in the bucket. All objects
+// added to the bucket receive the version ID null.
+//
+// If the versioning state has never been set on a bucket, it has no versioning
+// state; a GetBucketVersioning request does not return a versioning state value.
+//
+// If the bucket owner enables MFA Delete in the bucket versioning configuration,
+// the bucket owner must include the x-amz-mfa request header and the Status
+// and the MfaDelete request elements in a request to set the versioning state
+// of the bucket.
+//
+// If you have an object expiration lifecycle policy in your non-versioned bucket
+// and you want to maintain the same permanent delete behavior when you enable
+// versioning, you must add a noncurrent expiration policy. The noncurrent expiration
+// lifecycle policy will manage the deletes of the noncurrent object versions
+// in the version-enabled bucket. (A version-enabled bucket maintains one current
+// and zero or more noncurrent object versions.) For more information, see Lifecycle
+// and Versioning (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html#lifecycle-and-other-bucket-config).
+//
+// Related Resources
+//
+// * CreateBucket
+//
+// * DeleteBucket
+//
+// * GetBucketVersioning
+//
// 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.
@@ -6140,7 +8264,67 @@ func (c *S3) PutBucketWebsiteRequest(input *PutBucketWebsiteInput) (req *request
// PutBucketWebsite API operation for Amazon Simple Storage Service.
//
-// Set the website configuration for a bucket.
+// Sets the configuration of the website that is specified in the website subresource.
+// To configure a bucket as a website, you can add this subresource on the bucket
+// with website configuration information such as the file name of the index
+// document and any redirect rules. For more information, see Hosting Websites
+// on Amazon S3 (https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html).
+//
+// This PUT operation requires the S3:PutBucketWebsite permission. By default,
+// only the bucket owner can configure the website attached to a bucket; however,
+// bucket owners can allow other users to set the website configuration by writing
+// a bucket policy that grants them the S3:PutBucketWebsite permission.
+//
+// To redirect all website requests sent to the bucket's website endpoint, you
+// add a website configuration with the following elements. Because all requests
+// are sent to another website, you don't need to provide index document name
+// for the bucket.
+//
+// * WebsiteConfiguration
+//
+// * RedirectAllRequestsTo
+//
+// * HostName
+//
+// * Protocol
+//
+// If you want granular control over redirects, you can use the following elements
+// to add routing rules that describe conditions for redirecting requests and
+// information about the redirect destination. In this case, the website configuration
+// must provide an index document for the bucket, because some requests might
+// not be redirected.
+//
+// * WebsiteConfiguration
+//
+// * IndexDocument
+//
+// * Suffix
+//
+// * ErrorDocument
+//
+// * Key
+//
+// * RoutingRules
+//
+// * RoutingRule
+//
+// * Condition
+//
+// * HttpErrorCodeReturnedEquals
+//
+// * KeyPrefixEquals
+//
+// * Redirect
+//
+// * Protocol
+//
+// * HostName
+//
+// * ReplaceKeyPrefixWith
+//
+// * ReplaceKeyWith
+//
+// * HttpRedirectCode
//
// 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
@@ -6214,7 +8398,179 @@ func (c *S3) PutObjectRequest(input *PutObjectInput) (req *request.Request, outp
// PutObject API operation for Amazon Simple Storage Service.
//
-// Adds an object to a bucket.
+// Adds an object to a bucket. You must have WRITE permissions on a bucket to
+// add an object to it.
+//
+// Amazon S3 never adds partial objects; if you receive a success response,
+// Amazon S3 added the entire object to the bucket.
+//
+// Amazon S3 is a distributed system. If it receives multiple write requests
+// for the same object simultaneously, it overwrites all but the last object
+// written. Amazon S3 does not provide object locking; if you need this, make
+// sure to build it into your application layer or use versioning instead.
+//
+// To ensure that data is not corrupted traversing the network, use the Content-MD5
+// header. When you use this header, Amazon S3 checks the object against the
+// provided MD5 value and, if they do not match, returns an error. Additionally,
+// you can calculate the MD5 while putting an object to Amazon S3 and compare
+// the returned ETag to the calculated MD5 value.
+//
+// To configure your application to send the request headers before sending
+// the request body, use the 100-continue HTTP status code. For PUT operations,
+// this helps you avoid sending the message body if the message is rejected
+// based on the headers (for example, because authentication fails or a redirect
+// occurs). For more information on the 100-continue HTTP status code, see Section
+// 8.2.3 of http://www.ietf.org/rfc/rfc2616.txt (http://www.ietf.org/rfc/rfc2616.txt).
+//
+// You can optionally request server-side encryption. With server-side encryption,
+// Amazon S3 encrypts your data as it writes it to disks in its data centers
+// and decrypts the data when you access it. You have the option to provide
+// your own encryption key or use AWS managed encryption keys. For more information,
+// see Using Server-Side Encryption (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html).
+//
+// Access Permissions
+//
+// You can optionally specify the accounts or groups that should be granted
+// specific permissions on the new object. There are two ways to grant the permissions
+// using the request headers:
+//
+// * Specify a canned ACL with the x-amz-acl request header. For more information,
+// see Canned ACL (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL).
+//
+// * Specify access permissions explicitly with the x-amz-grant-read, x-amz-grant-read-acp,
+// x-amz-grant-write-acp, and x-amz-grant-full-control headers. These parameters
+// map to the set of permissions that Amazon S3 supports in an ACL. For more
+// information, see Access Control List (ACL) Overview (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html).
+//
+// You can use either a canned ACL or specify access permissions explicitly.
+// You cannot do both.
+//
+// Server-Side- Encryption-Specific Request Headers
+//
+// You can optionally tell Amazon S3 to encrypt data at rest using server-side
+// encryption. Server-side encryption is for data encryption at rest. Amazon
+// S3 encrypts your data as it writes it to disks in its data centers and decrypts
+// it when you access it. The option you use depends on whether you want to
+// use AWS managed encryption keys or provide your own encryption key.
+//
+// * Use encryption keys managed by Amazon S3 or customer master keys (CMKs)
+// stored in AWS Key Management Service (AWS KMS) – If you want AWS to
+// manage the keys used to encrypt data, specify the following headers in
+// the request. x-amz-server-side​-encryption x-amz-server-side-encryption-aws-kms-key-id
+// x-amz-server-side-encryption-context If you specify x-amz-server-side-encryption:aws:kms,
+// but don't provide x-amz-server-side-encryption-aws-kms-key-id, Amazon
+// S3 uses the AWS managed CMK in AWS KMS to protect the data. If you want
+// to use a customer managed AWS KMS CMK, you must provide the x-amz-server-side-encryption-aws-kms-key-id
+// of the symmetric customer managed CMK. Amazon S3 only supports symmetric
+// CMKs and not asymmetric CMKs. For more information, see Using Symmetric
+// and Asymmetric Keys (https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html)
+// in the AWS Key Management Service Developer Guide. All GET and PUT requests
+// for an object protected by AWS KMS fail if you don't make them with SSL
+// or by using SigV4. For more information about server-side encryption with
+// CMKs stored in AWS KMS (SSE-KMS), see Protecting Data Using Server-Side
+// Encryption with CMKs stored in AWS (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html).
+//
+// * Use customer-provided encryption keys – If you want to manage your
+// own encryption keys, provide all the following headers in the request.
+// x-amz-server-side​-encryption​-customer-algorithm x-amz-server-side​-encryption​-customer-key
+// x-amz-server-side​-encryption​-customer-key-MD5 For more information
+// about server-side encryption with CMKs stored in KMS (SSE-KMS), see Protecting
+// Data Using Server-Side Encryption with CMKs stored in AWS (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html).
+//
+// Access-Control-List (ACL)-Specific Request Headers
+//
+// You also can use the following access control–related headers with this
+// operation. By default, all objects are private. Only the owner has full access
+// control. When adding a new object, you can grant permissions to individual
+// AWS accounts or to predefined groups defined by Amazon S3. These permissions
+// are then added to the Access Control List (ACL) on the object. For more information,
+// see Using ACLs (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3_ACLs_UsingACLs.html).
+// With this operation, you can grant access permissions using one of the following
+// two methods:
+//
+// * Specify a canned ACL (x-amz-acl) — Amazon S3 supports a set of predefined
+// ACLs, known as canned ACLs. Each canned ACL has a predefined set of grantees
+// and permissions. For more information, see Canned ACL (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL).
+//
+// * Specify access permissions explicitly — To explicitly grant access
+// permissions to specific AWS accounts or groups, use the following headers.
+// Each header maps to specific permissions that Amazon S3 supports in an
+// ACL. For more information, see Access Control List (ACL) Overview (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html).
+// In the header, you specify a list of grantees who get the specific permission.
+// To grant permissions explicitly use: x-amz-grant-read x-amz-grant-write
+// x-amz-grant-read-acp x-amz-grant-write-acp x-amz-grant-full-control You
+// specify each grantee as a type=value pair, where the type is one of the
+// following: emailAddress – if the value specified is the email address
+// of an AWS account Using email addresses to specify a grantee is only supported
+// in the following AWS Regions: US East (N. Virginia) US West (N. California)
+// US West (Oregon) Asia Pacific (Singapore) Asia Pacific (Sydney) Asia Pacific
+// (Tokyo) EU (Ireland) South America (São Paulo) For a list of all the
+// Amazon S3 supported Regions and endpoints, see Regions and Endpoints (https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region)
+// in the AWS General Reference id – if the value specified is the canonical
+// user ID of an AWS account uri – if you are granting permissions to a
+// predefined group For example, the following x-amz-grant-read header grants
+// the AWS accounts identified by email addresses permissions to read object
+// data and its metadata: x-amz-grant-read: emailAddress="[email protected]",
+// emailAddress="[email protected]"
+//
+// Server-Side- Encryption-Specific Request Headers
+//
+// You can optionally tell Amazon S3 to encrypt data at rest using server-side
+// encryption. Server-side encryption is for data encryption at rest. Amazon
+// S3 encrypts your data as it writes it to disks in its data centers and decrypts
+// it when you access it. The option you use depends on whether you want to
+// use AWS-managed encryption keys or provide your own encryption key.
+//
+// * Use encryption keys managed by Amazon S3 or customer master keys (CMKs)
+// stored in AWS Key Management Service (AWS KMS) – If you want AWS to
+// manage the keys used to encrypt data, specify the following headers in
+// the request. x-amz-server-side​-encryption x-amz-server-side-encryption-aws-kms-key-id
+// x-amz-server-side-encryption-context If you specify x-amz-server-side-encryption:aws:kms,
+// but don't provide x-amz-server-side-encryption-aws-kms-key-id, Amazon
+// S3 uses the AWS managed CMK in AWS KMS to protect the data. If you want
+// to use a customer managed AWS KMS CMK, you must provide the x-amz-server-side-encryption-aws-kms-key-id
+// of the symmetric customer managed CMK. Amazon S3 only supports symmetric
+// CMKs and not asymmetric CMKs. For more information, see Using Symmetric
+// and Asymmetric Keys (https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html)
+// in the AWS Key Management Service Developer Guide. All GET and PUT requests
+// for an object protected by AWS KMS fail if you don't make them with SSL
+// or by using SigV4. For more information about server-side encryption with
+// CMKs stored in AWS KMS (SSE-KMS), see Protecting Data Using Server-Side
+// Encryption with CMKs stored in AWS KMS (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html).
+//
+// * Use customer-provided encryption keys – If you want to manage your
+// own encryption keys, provide all the following headers in the request.
+// If you use this feature, the ETag value that Amazon S3 returns in the
+// response is not the MD5 of the object. x-amz-server-side​-encryption​-customer-algorithm
+// x-amz-server-side​-encryption​-customer-key x-amz-server-side​-encryption​-customer-key-MD5
+// For more information about server-side encryption with CMKs stored in
+// AWS KMS (SSE-KMS), see Protecting Data Using Server-Side Encryption with
+// CMKs stored in AWS KMS (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html).
+//
+// Storage Class Options
+//
+// By default, Amazon S3 uses the Standard storage class to store newly created
+// objects. The Standard storage class provides high durability and high availability.
+// You can specify other storage classes depending on the performance needs.
+// For more information, see Storage Classes (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html)
+// in the Amazon Simple Storage Service Developer Guide.
+//
+// Versioning
+//
+// If you enable versioning for a bucket, Amazon S3 automatically generates
+// a unique version ID for the object being stored. Amazon S3 returns this ID
+// in the response using the x-amz-version-id response header. If versioning
+// is suspended, Amazon S3 always uses null as the version ID for the object
+// stored. For more information about returning the versioning state of a bucket,
+// see GetBucketVersioning. If you enable versioning for a bucket, when Amazon
+// S3 receives multiple write requests for the same object simultaneously, it
+// stores all of the objects.
+//
+// Related Resources
+//
+// * CopyObject
+//
+// * DeleteObject
//
// 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
@@ -6288,8 +8644,73 @@ func (c *S3) PutObjectAclRequest(input *PutObjectAclInput) (req *request.Request
// 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
+// Uses the acl subresource to set the access control list (ACL) permissions
+// for an object that already exists in a bucket. You must have WRITE_ACP permission
+// to set the ACL of an object.
+//
+// Depending on your application needs, you can choose to set the ACL on an
+// object using either the request body or the headers. For example, if you
+// have an existing application that updates a bucket ACL using the request
+// body, you can continue to use that approach.
+//
+// Access Permissions
+//
+// You can set access permissions using one of the following methods:
+//
+// * Specify a canned ACL with the x-amz-acl request header. Amazon S3 supports
+// a set of predefined ACLs, known as canned ACLs. Each canned ACL has a
+// predefined set of grantees and permissions. Specify the canned ACL name
+// as the value of x-amz-acl. If you use this header, you cannot use other
+// access control-specific headers in your request. For more information,
+// see Canned ACL (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL).
+//
+// * Specify access permissions explicitly with the x-amz-grant-read, x-amz-grant-read-acp,
+// x-amz-grant-write-acp, and x-amz-grant-full-control headers. When using
+// these headers, you specify explicit access permissions and grantees (AWS
+// accounts or Amazon S3 groups) who will receive the permission. If you
+// use these ACL-specific headers, you cannot use x-amz-acl header to set
+// a canned ACL. These parameters map to the set of permissions that Amazon
+// S3 supports in an ACL. For more information, see Access Control List (ACL)
+// Overview (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html).
+// You specify each grantee as a type=value pair, where the type is one of
+// the following: emailAddress – if the value specified is the email address
+// of an AWS account id – if the value specified is the canonical user
+// ID of an AWS account uri – if you are granting permissions to a predefined
+// group For example, the following x-amz-grant-read header grants list objects
+// permission to the two AWS accounts identified by their email addresses.
+// x-amz-grant-read: emailAddress="[email protected]", emailAddress="[email protected]"
+//
+// You can use either a canned ACL or specify access permissions explicitly.
+// You cannot do both.
+//
+// Grantee Values
+//
+// You can specify the person (grantee) to whom you're assigning access rights
+// (using request elements) in the following ways:
+//
+// * By Email address: <Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+// xsi:type="AmazonCustomerByEmail"><EmailAddress><>[email protected]<></EmailAddress>lt;/Grantee>
+// The grantee is resolved to the CanonicalUser and, in a response to a GET
+// Object acl request, appears as the CanonicalUser.
+//
+// * By the person's ID: <Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+// xsi:type="CanonicalUser"><ID><>ID<></ID><DisplayName><>GranteesEmail<></DisplayName>
+// </Grantee> DisplayName is optional and ignored in the request.
+//
+// * By URI: <Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+// xsi:type="Group"><URI><>http://acs.amazonaws.com/groups/global/AuthenticatedUsers<></URI></Grantee>
+//
+// Versioning
+//
+// The ACL of an object is set at the object version level. By default, PUT
+// sets the ACL of the current version of an object. To set the ACL of a different
+// version, use the versionId subresource.
+//
+// Related Resources
+//
+// * CopyObject
+//
+// * GetObject
//
// 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
@@ -6370,6 +8791,10 @@ func (c *S3) PutObjectLegalHoldRequest(input *PutObjectLegalHoldInput) (req *req
//
// Applies a Legal Hold configuration to the specified object.
//
+// Related Resources
+//
+// * Locking Objects (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.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.
@@ -6442,10 +8867,17 @@ func (c *S3) PutObjectLockConfigurationRequest(input *PutObjectLockConfiguration
// PutObjectLockConfiguration API operation for Amazon Simple Storage Service.
//
-// Places an object lock configuration on the specified bucket. The rule specified
-// in the object lock configuration will be applied by default to every new
+// Places an Object Lock configuration on the specified bucket. The rule specified
+// in the Object Lock configuration will be applied by default to every new
// object placed in the specified bucket.
//
+// DefaultRetention requires either Days or Years. You can't specify both at
+// the same time.
+//
+// Related Resources
+//
+// * Locking Objects (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.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.
@@ -6520,6 +8952,10 @@ func (c *S3) PutObjectRetentionRequest(input *PutObjectRetentionInput) (req *req
//
// Places an Object Retention configuration on an object.
//
+// Related Resources
+//
+// * Locking Objects (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.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.
@@ -6594,6 +9030,43 @@ func (c *S3) PutObjectTaggingRequest(input *PutObjectTaggingInput) (req *request
//
// Sets the supplied tag-set to an object that already exists in a bucket
//
+// A tag is a key-value pair. You can associate tags with an object by sending
+// a PUT request against the tagging subresource that is associated with the
+// object. You can retrieve tags by sending a GET request. For more information,
+// see GetObjectTagging.
+//
+// For tagging-related restrictions related to characters and encodings, see
+// Tag Restrictions (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/allocation-tag-restrictions.html).
+// Note that Amazon S3 limits the maximum number of tags to 10 tags per object.
+//
+// To use this operation, you must have permission to perform the s3:PutObjectTagging
+// action. By default, the bucket owner has this permission and can grant this
+// permission to others.
+//
+// To put tags of any other version, use the versionId query parameter. You
+// also need permission for the s3:PutObjectVersionTagging action.
+//
+// For information about the Amazon S3 object tagging feature, see Object Tagging
+// (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-tagging.html).
+//
+// Special Errors
+//
+// * Code: InvalidTagError Cause: The tag provided was not a valid tag. This
+// error can occur if the tag did not pass input validation. For more information,
+// see Object Tagging (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-tagging.html).
+//
+// * Code: MalformedXMLError Cause: The XML provided does not match the schema.
+//
+// * Code: OperationAbortedError Cause: A conflicting conditional operation
+// is currently in progress against this resource. Please try again.
+//
+// * Code: InternalError Cause: The service was unable to apply the provided
+// tag to the object.
+//
+// Related Resources
+//
+// * GetObjectTagging
+//
// 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.
@@ -6668,7 +9141,29 @@ func (c *S3) PutPublicAccessBlockRequest(input *PutPublicAccessBlockInput) (req
// PutPublicAccessBlock API operation for Amazon Simple Storage Service.
//
// Creates or modifies the PublicAccessBlock configuration for an Amazon S3
-// bucket.
+// bucket. To use this operation, you must have the s3:PutBucketPublicAccessBlock
+// permission. For more information about Amazon S3 permissions, see Specifying
+// Permissions in a Policy (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html).
+//
+// When Amazon S3 evaluates the PublicAccessBlock configuration for a bucket
+// or an object, it checks the PublicAccessBlock configuration for both the
+// bucket (or the bucket that contains the object) and the bucket owner's account.
+// If the PublicAccessBlock configurations are different between the bucket
+// and the account, Amazon S3 uses the most restrictive combination of the bucket-level
+// and account-level settings.
+//
+// For more information about when Amazon S3 considers a bucket or an object
+// public, see The Meaning of "Public" (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status).
+//
+// Related Resources
+//
+// * GetPublicAccessBlock
+//
+// * DeletePublicAccessBlock
+//
+// * GetBucketPolicyStatus
+//
+// * Using Amazon S3 Block Public Access (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.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
@@ -6744,6 +9239,190 @@ func (c *S3) RestoreObjectRequest(input *RestoreObjectInput) (req *request.Reque
//
// Restores an archived copy of an object back into Amazon S3
//
+// This operation performs the following types of requests:
+//
+// * select - Perform a select query on an archived object
+//
+// * restore an archive - Restore an archived object
+//
+// To use this operation, you must have permissions to perform the s3:RestoreObject
+// and s3:GetObject actions. The bucket owner has this permission by default
+// and can grant this permission to others. For more information about permissions,
+// see Permissions Related to Bucket Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources)
+// and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html)
+// in the Amazon Simple Storage Service Developer Guide.
+//
+// Querying Archives with Select Requests
+//
+// You use a select type of request to perform SQL queries on archived objects.
+// The archived objects that are being queried by the select request must be
+// formatted as uncompressed comma-separated values (CSV) files. You can run
+// queries and custom analytics on your archived data without having to restore
+// your data to a hotter Amazon S3 tier. For an overview about select requests,
+// see Querying Archived Objects (https://docs.aws.amazon.com/AmazonS3/latest/dev/querying-glacier-archives.html)
+// in the Amazon Simple Storage Service Developer Guide.
+//
+// When making a select request, do the following:
+//
+// * Define an output location for the select query's output. This must be
+// an Amazon S3 bucket in the same AWS Region as the bucket that contains
+// the archive object that is being queried. The AWS account that initiates
+// the job must have permissions to write to the S3 bucket. You can specify
+// the storage class and encryption for the output objects stored in the
+// bucket. For more information about output, see Querying Archived Objects
+// (https://docs.aws.amazon.com/AmazonS3/latest/dev/querying-glacier-archives.html)
+// in the Amazon Simple Storage Service Developer Guide. For more information
+// about the S3 structure in the request body, see the following: PutObject
+// Managing Access with ACLs (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3_ACLs_UsingACLs.html)
+// in the Amazon Simple Storage Service Developer Guide Protecting Data Using
+// Server-Side Encryption (https://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html)
+// in the Amazon Simple Storage Service Developer Guide
+//
+// * Define the SQL expression for the SELECT type of restoration for your
+// query in the request body's SelectParameters structure. You can use expressions
+// like the following examples. The following expression returns all records
+// from the specified object. SELECT * FROM Object Assuming that you are
+// not using any headers for data stored in the object, you can specify columns
+// with positional headers. SELECT s._1, s._2 FROM Object s WHERE s._3 >
+// 100 If you have headers and you set the fileHeaderInfo in the CSV structure
+// in the request body to USE, you can specify headers in the query. (If
+// you set the fileHeaderInfo field to IGNORE, the first row is skipped for
+// the query.) You cannot mix ordinal positions with header column names.
+// SELECT s.Id, s.FirstName, s.SSN FROM S3Object s
+//
+// For more information about using SQL with Glacier Select restore, see SQL
+// Reference for Amazon S3 Select and Glacier Select (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-glacier-select-sql-reference.html)
+// in the Amazon Simple Storage Service Developer Guide.
+//
+// When making a select request, you can also do the following:
+//
+// * To expedite your queries, specify the Expedited tier. For more information
+// about tiers, see "Restoring Archives," later in this topic.
+//
+// * Specify details about the data serialization format of both the input
+// object that is being queried and the serialization of the CSV-encoded
+// query results.
+//
+// The following are additional important facts about the select feature:
+//
+// * The output results are new Amazon S3 objects. Unlike archive retrievals,
+// they are stored until explicitly deleted-manually or through a lifecycle
+// policy.
+//
+// * You can issue more than one select request on the same Amazon S3 object.
+// Amazon S3 doesn't deduplicate requests, so avoid issuing duplicate requests.
+//
+// * Amazon S3 accepts a select request even if the object has already been
+// restored. A select request doesn’t return error response 409.
+//
+// Restoring Archives
+//
+// Objects in the GLACIER and DEEP_ARCHIVE storage classes are archived. To
+// access an archived object, you must first initiate a restore request. This
+// restores a temporary copy of the archived object. In a restore request, you
+// specify the number of days that you want the restored copy to exist. After
+// the specified period, Amazon S3 deletes the temporary copy but the object
+// remains archived in the GLACIER or DEEP_ARCHIVE storage class that object
+// was restored from.
+//
+// To restore a specific object version, you can provide a version ID. If you
+// don't provide a version ID, Amazon S3 restores the current version.
+//
+// The time it takes restore jobs to finish depends on which storage class the
+// object is being restored from and which data access tier you specify.
+//
+// When restoring an archived object (or using a select request), you can specify
+// one of the following data access tier options in the Tier element of the
+// request body:
+//
+// * Expedited - Expedited retrievals allow you to quickly access your data
+// stored in the GLACIER storage class when occasional urgent requests for
+// a subset of archives are required. For all but the largest archived objects
+// (250 MB+), data accessed using Expedited retrievals are typically made
+// available within 1–5 minutes. Provisioned capacity ensures that retrieval
+// capacity for Expedited retrievals is available when you need it. Expedited
+// retrievals and provisioned capacity are not available for the DEEP_ARCHIVE
+// storage class.
+//
+// * Standard - Standard retrievals allow you to access any of your archived
+// objects within several hours. This is the default option for the GLACIER
+// and DEEP_ARCHIVE retrieval requests that do not specify the retrieval
+// option. Standard retrievals typically complete within 3-5 hours from the
+// GLACIER storage class and typically complete within 12 hours from the
+// DEEP_ARCHIVE storage class.
+//
+// * Bulk - Bulk retrievals are Amazon S3 Glacier’s lowest-cost retrieval
+// option, enabling you to retrieve large amounts, even petabytes, of data
+// inexpensively in a day. Bulk retrievals typically complete within 5-12
+// hours from the GLACIER storage class and typically complete within 48
+// hours from the DEEP_ARCHIVE storage class.
+//
+// For more information about archive retrieval options and provisioned capacity
+// for Expedited data access, see Restoring Archived Objects (https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html)
+// in the Amazon Simple Storage Service Developer Guide.
+//
+// You can use Amazon S3 restore speed upgrade to change the restore speed to
+// a faster speed while it is in progress. You upgrade the speed of an in-progress
+// restoration by issuing another restore request to the same object, setting
+// a new Tier request element. When issuing a request to upgrade the restore
+// tier, you must choose a tier that is faster than the tier that the in-progress
+// restore is using. You must not change any other parameters, such as the Days
+// request element. For more information, see Upgrading the Speed of an In-Progress
+// Restore (https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html#restoring-objects-upgrade-tier.title.html)
+// in the Amazon Simple Storage Service Developer Guide.
+//
+// To get the status of object restoration, you can send a HEAD request. Operations
+// return the x-amz-restore header, which provides information about the restoration
+// status, in the response. You can use Amazon S3 event notifications to notify
+// you when a restore is initiated or completed. For more information, see Configuring
+// Amazon S3 Event Notifications (https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html)
+// in the Amazon Simple Storage Service Developer Guide.
+//
+// After restoring an archived object, you can update the restoration period
+// by reissuing the request with a new period. Amazon S3 updates the restoration
+// period relative to the current time and charges only for the request-there
+// are no data transfer charges. You cannot update the restoration period when
+// Amazon S3 is actively processing your current restore request for the object.
+//
+// If your bucket has a lifecycle configuration with a rule that includes an
+// expiration action, the object expiration overrides the life span that you
+// specify in a restore request. For example, if you restore an object copy
+// for 10 days, but the object is scheduled to expire in 3 days, Amazon S3 deletes
+// the object in 3 days. For more information about lifecycle configuration,
+// see PutBucketLifecycleConfiguration and Object Lifecycle Management (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html)
+// in Amazon Simple Storage Service Developer Guide.
+//
+// Responses
+//
+// A successful operation returns either the 200 OK or 202 Accepted status code.
+//
+// * If the object copy is not previously restored, then Amazon S3 returns
+// 202 Accepted in the response.
+//
+// * If the object copy is previously restored, Amazon S3 returns 200 OK
+// in the response.
+//
+// Special Errors
+//
+// * Code: RestoreAlreadyInProgress Cause: Object restore is already in progress.
+// (This error does not apply to SELECT type requests.) HTTP Status Code:
+// 409 Conflict SOAP Fault Code Prefix: Client
+//
+// * Code: GlacierExpeditedRetrievalNotAvailable Cause: Glacier expedited
+// retrievals are currently not available. Try again later. (Returned if
+// there is insufficient capacity to process the Expedited request. This
+// error applies only to Expedited retrievals and not to Standard or Bulk
+// retrievals.) HTTP Status Code: 503 SOAP Fault Code Prefix: N/A
+//
+// Related Resources
+//
+// * PutBucketLifecycleConfiguration
+//
+// * GetBucketNotificationConfiguration
+//
+// * SQL Reference for Amazon S3 Select and Glacier Select (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-glacier-select-sql-reference.html)
+// in the Amazon Simple Storage Service Developer 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.
@@ -6753,7 +9432,7 @@ func (c *S3) RestoreObjectRequest(input *RestoreObjectInput) (req *request.Reque
//
// Returned Error Codes:
// * ErrCodeObjectAlreadyInActiveTierError "ObjectAlreadyInActiveTierError"
-// This operation is not allowed against this storage tier
+// This operation is not allowed against this storage tier.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/RestoreObject
func (c *S3) RestoreObject(input *RestoreObjectInput) (*RestoreObjectOutput, error) {
@@ -6816,20 +9495,104 @@ func (c *S3) SelectObjectContentRequest(input *SelectObjectContentInput) (req *r
output = &SelectObjectContentOutput{}
req = c.newRequest(op, input, output)
+
+ es := newSelectObjectContentEventStream()
+ req.Handlers.Unmarshal.PushBack(es.setStreamCloser)
+ output.EventStream = es
+
req.Handlers.Send.Swap(client.LogHTTPResponseHandler.Name, client.LogHTTPResponseHeaderHandler)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, rest.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBack(output.runEventStreamLoop)
+ req.Handlers.Unmarshal.PushBack(es.runOutputStream)
+ req.Handlers.Unmarshal.PushBack(es.runOnStreamPartClose)
return
}
// SelectObjectContent API operation for Amazon Simple Storage Service.
//
// This operation filters the contents of an Amazon S3 object based on a simple
-// Structured Query Language (SQL) statement. In the request, along with the
-// SQL expression, you must also specify a data serialization format (JSON or
-// CSV) of the object. Amazon S3 uses this to parse object data into records,
-// and returns only records that match the specified SQL expression. You must
-// also specify the data serialization format for the response.
+// structured query language (SQL) statement. In the request, along with the
+// SQL expression, you must also specify a data serialization format (JSON,
+// CSV, or Apache Parquet) of the object. Amazon S3 uses this format to parse
+// object data into records, and returns only records that match the specified
+// SQL expression. You must also specify the data serialization format for the
+// response.
+//
+// For more information about Amazon S3 Select, see Selecting Content from Objects
+// (https://docs.aws.amazon.com/AmazonS3/latest/dev/selecting-content-from-objects.html)
+// in the Amazon Simple Storage Service Developer Guide.
+//
+// For more information about using SQL with Amazon S3 Select, see SQL Reference
+// for Amazon S3 Select and Glacier Select (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-glacier-select-sql-reference.html)
+// in the Amazon Simple Storage Service Developer Guide.
+//
+// Permissions
+//
+// You must have s3:GetObject permission for this operation. Amazon S3 Select
+// does not support anonymous access. For more information about permissions,
+// see Specifying Permissions in a Policy (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html)
+// in the Amazon Simple Storage Service Developer Guide.
+//
+// Object Data Formats
+//
+// You can use Amazon S3 Select to query objects that have the following format
+// properties:
+//
+// * CSV, JSON, and Parquet - Objects must be in CSV, JSON, or Parquet format.
+//
+// * UTF-8 - UTF-8 is the only encoding type Amazon S3 Select supports.
+//
+// * GZIP or BZIP2 - CSV and JSON files can be compressed using GZIP or BZIP2.
+// GZIP and BZIP2 are the only compression formats that Amazon S3 Select
+// supports for CSV and JSON files. Amazon S3 Select supports columnar compression
+// for Parquet using GZIP or Snappy. Amazon S3 Select does not support whole-object
+// compression for Parquet objects.
+//
+// * Server-side encryption - Amazon S3 Select supports querying objects
+// that are protected with server-side encryption. For objects that are encrypted
+// with customer-provided encryption keys (SSE-C), you must use HTTPS, and
+// you must use the headers that are documented in the GetObject. For more
+// information about SSE-C, see Server-Side Encryption (Using Customer-Provided
+// Encryption Keys) (https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html)
+// in the Amazon Simple Storage Service Developer Guide. For objects that
+// are encrypted with Amazon S3 managed encryption keys (SSE-S3) and customer
+// master keys (CMKs) stored in AWS Key Management Service (SSE-KMS), server-side
+// encryption is handled transparently, so you don't need to specify anything.
+// For more information about server-side encryption, including SSE-S3 and
+// SSE-KMS, see Protecting Data Using Server-Side Encryption (https://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html)
+// in the Amazon Simple Storage Service Developer Guide.
+//
+// Working with the Response Body
+//
+// Given the response size is unknown, Amazon S3 Select streams the response
+// as a series of messages and includes a Transfer-Encoding header with chunked
+// as its value in the response. For more information, see RESTSelectObjectAppendix .
+//
+// GetObject Support
+//
+// The SelectObjectContent operation does not support the following GetObject
+// functionality. For more information, see GetObject.
+//
+// * Range: While you can specify a scan range for a Amazon S3 Select request,
+// see SelectObjectContentRequest$ScanRange in the request parameters below,
+// you cannot specify the range of bytes of an object to return.
+//
+// * GLACIER, DEEP_ARCHIVE and REDUCED_REDUNDANCY storage classes: You cannot
+// specify the GLACIER, DEEP_ARCHIVE, or REDUCED_REDUNDANCY storage classes.
+// For more information, about storage classes see Storage Classes (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#storage-class-intro)
+// in the Amazon Simple Storage Service Developer Guide.
+//
+// Special Errors
+//
+// For a list of special errors for this operation and for general information
+// about Amazon S3 errors and a list of error codes, see ErrorResponses
+//
+// Related Resources
+//
+// * GetObject
+//
+// * GetBucketLifecycleConfiguration
+//
+// * PutBucketLifecycleConfiguration
//
// 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
@@ -6859,6 +9622,147 @@ func (c *S3) SelectObjectContentWithContext(ctx aws.Context, input *SelectObject
return out, req.Send()
}
+// SelectObjectContentEventStream provides the event stream handling for the SelectObjectContent.
+type SelectObjectContentEventStream struct {
+
+ // Reader is the EventStream reader for the SelectObjectContentEventStream
+ // events. This value is automatically set by the SDK when the API call is made
+ // Use this member when unit testing your code with the SDK to mock out the
+ // EventStream Reader.
+ //
+ // Must not be nil.
+ Reader SelectObjectContentEventStreamReader
+
+ outputReader io.ReadCloser
+
+ // StreamCloser is the io.Closer for the EventStream connection. For HTTP
+ // EventStream this is the response Body. The stream will be closed when
+ // the Close method of the EventStream is called.
+ StreamCloser io.Closer
+
+ done chan struct{}
+ closeOnce sync.Once
+ err *eventstreamapi.OnceError
+}
+
+func newSelectObjectContentEventStream() *SelectObjectContentEventStream {
+ return &SelectObjectContentEventStream{
+ done: make(chan struct{}),
+ err: eventstreamapi.NewOnceError(),
+ }
+}
+
+func (es *SelectObjectContentEventStream) setStreamCloser(r *request.Request) {
+ es.StreamCloser = r.HTTPResponse.Body
+}
+
+func (es *SelectObjectContentEventStream) runOnStreamPartClose(r *request.Request) {
+ if es.done == nil {
+ return
+ }
+ go es.waitStreamPartClose()
+
+}
+
+func (es *SelectObjectContentEventStream) waitStreamPartClose() {
+ var outputErrCh <-chan struct{}
+ if v, ok := es.Reader.(interface{ ErrorSet() <-chan struct{} }); ok {
+ outputErrCh = v.ErrorSet()
+ }
+ var outputClosedCh <-chan struct{}
+ if v, ok := es.Reader.(interface{ Closed() <-chan struct{} }); ok {
+ outputClosedCh = v.Closed()
+ }
+
+ select {
+ case <-es.done:
+ case <-outputErrCh:
+ es.err.SetError(es.Reader.Err())
+ es.Close()
+ case <-outputClosedCh:
+ if err := es.Reader.Err(); err != nil {
+ es.err.SetError(es.Reader.Err())
+ }
+ es.Close()
+ }
+}
+
+// Events returns a channel to read events from.
+//
+// These events are:
+//
+// * ContinuationEvent
+// * EndEvent
+// * ProgressEvent
+// * RecordsEvent
+// * StatsEvent
+func (es *SelectObjectContentEventStream) Events() <-chan SelectObjectContentEventStreamEvent {
+ return es.Reader.Events()
+}
+
+func (es *SelectObjectContentEventStream) runOutputStream(r *request.Request) {
+ var opts []func(*eventstream.Decoder)
+ if r.Config.Logger != nil && r.Config.LogLevel.Matches(aws.LogDebugWithEventStreamBody) {
+ opts = append(opts, eventstream.DecodeWithLogger(r.Config.Logger))
+ }
+
+ unmarshalerForEvent := unmarshalerForSelectObjectContentEventStreamEvent{
+ metadata: protocol.ResponseMetadata{
+ StatusCode: r.HTTPResponse.StatusCode,
+ RequestID: r.RequestID,
+ },
+ }.UnmarshalerForEventName
+
+ decoder := eventstream.NewDecoder(r.HTTPResponse.Body, opts...)
+ eventReader := eventstreamapi.NewEventReader(decoder,
+ protocol.HandlerPayloadUnmarshal{
+ Unmarshalers: r.Handlers.UnmarshalStream,
+ },
+ unmarshalerForEvent,
+ )
+
+ es.outputReader = r.HTTPResponse.Body
+ es.Reader = newReadSelectObjectContentEventStream(eventReader)
+}
+
+// Close closes the stream. This will also cause the stream to be closed.
+// Close must be called when done using the stream API. Not calling Close
+// may result in resource leaks.
+//
+// You can use the closing of the Reader's Events channel to terminate your
+// application's read from the API's stream.
+//
+func (es *SelectObjectContentEventStream) Close() (err error) {
+ es.closeOnce.Do(es.safeClose)
+ return es.Err()
+}
+
+func (es *SelectObjectContentEventStream) safeClose() {
+ if es.done != nil {
+ close(es.done)
+ }
+
+ es.Reader.Close()
+ if es.outputReader != nil {
+ es.outputReader.Close()
+ }
+
+ es.StreamCloser.Close()
+}
+
+// Err returns any error that occurred while reading or writing EventStream
+// Events from the service API's response. Returns nil if there were no errors.
+func (es *SelectObjectContentEventStream) Err() error {
+ if err := es.err.Err(); err != nil {
+ return err
+ }
+ if err := es.Reader.Err(); err != nil {
+ return err
+ }
+
+ return nil
+}
+
const opUploadPart = "UploadPart"
// UploadPartRequest generates a "aws/request.Request" representing the
@@ -6905,12 +9809,87 @@ func (c *S3) UploadPartRequest(input *UploadPartInput) (req *request.Request, ou
//
// Uploads a part in a multipart upload.
//
+// In this operation, you provide part data in your request. However, you have
+// an option to specify your existing Amazon S3 object as a data source for
+// the part you are uploading. To upload a part from an existing object, you
+// use the UploadPartCopy operation.
+//
+// You must initiate a multipart upload (see CreateMultipartUpload) before you
+// can upload any part. In response to your initiate request, Amazon S3 returns
+// an upload ID, a unique identifier, that you must include in your upload part
+// request.
+//
+// Part numbers can be any number from 1 to 10,000, inclusive. A part number
+// uniquely identifies a part and also defines its position within the object
+// being created. If you upload a new part using the same part number that was
+// used with a previous part, the previously uploaded part is overwritten. Each
+// part must be at least 5 MB in size, except the last part. There is no size
+// limit on the last part of your multipart upload.
+//
+// To ensure that data is not corrupted when traversing the network, specify
+// the Content-MD5 header in the upload part request. Amazon S3 checks the part
+// data against the provided MD5 value. If they do not match, Amazon S3 returns
+// an error.
+//
// Note: After you initiate multipart upload and upload one or more parts, you
// must either complete or abort multipart upload in order to stop getting charged
// 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.
//
+// For more information on multipart uploads, go to Multipart Upload Overview
+// (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html) in the
+// Amazon Simple Storage Service Developer Guide .
+//
+// For information on the permissions required to use the multipart upload API,
+// go to Multipart Upload API and Permissions (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html)
+// in the Amazon Simple Storage Service Developer Guide.
+//
+// You can optionally request server-side encryption where Amazon S3 encrypts
+// your data as it writes it to disks in its data centers and decrypts it for
+// you when you access it. You have the option of providing your own encryption
+// key, or you can use the AWS managed encryption keys. If you choose to provide
+// your own encryption key, the request headers you provide in the request must
+// match the headers you used in the request to initiate the upload by using
+// CreateMultipartUpload. For more information, go to Using Server-Side Encryption
+// (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html)
+// in the Amazon Simple Storage Service Developer Guide.
+//
+// Server-side encryption is supported by the S3 Multipart Upload actions. Unless
+// you are using a customer-provided encryption key, you don't need to specify
+// the encryption parameters in each UploadPart request. Instead, you only need
+// to specify the server-side encryption parameters in the initial Initiate
+// Multipart request. For more information, see CreateMultipartUpload.
+//
+// If you requested server-side encryption using a customer-provided encryption
+// key in your initiate multipart upload request, you must provide identical
+// encryption information in each part upload using the following headers.
+//
+// * x-amz-server-side​-encryption​-customer-algorithm
+//
+// * x-amz-server-side​-encryption​-customer-key
+//
+// * x-amz-server-side​-encryption​-customer-key-MD5
+//
+// Special Errors
+//
+// * Code: NoSuchUpload Cause: The specified multipart upload does not exist.
+// The upload ID might be invalid, or the multipart upload might have been
+// aborted or completed. HTTP Status Code: 404 Not Found SOAP Fault Code
+// Prefix: Client
+//
+// Related Resources
+//
+// * CreateMultipartUpload
+//
+// * CompleteMultipartUpload
+//
+// * AbortMultipartUpload
+//
+// * ListParts
+//
+// * ListMultipartUploads
+//
// 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.
@@ -6983,7 +9962,94 @@ func (c *S3) UploadPartCopyRequest(input *UploadPartCopyInput) (req *request.Req
// UploadPartCopy API operation for Amazon Simple Storage Service.
//
-// Uploads a part by copying data from an existing object as data source.
+// Uploads a part by copying data from an existing object as data source. You
+// specify the data source by adding the request header x-amz-copy-source in
+// your request and a byte range by adding the request header x-amz-copy-source-range
+// in your request.
+//
+// The minimum allowable part size for a multipart upload is 5 MB. For more
+// information about multipart upload limits, go to Quick Facts (https://docs.aws.amazon.com/AmazonS3/latest/dev/qfacts.html)
+// in the Amazon Simple Storage Service Developer Guide.
+//
+// Instead of using an existing object as part data, you might use the UploadPart
+// operation and provide data in your request.
+//
+// You must initiate a multipart upload before you can upload any part. In response
+// to your initiate request. Amazon S3 returns a unique identifier, the upload
+// ID, that you must include in your upload part request.
+//
+// For more information about using the UploadPartCopy operation, see the following:
+//
+// * For conceptual information about multipart uploads, see Uploading Objects
+// Using Multipart Upload (https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html)
+// in the Amazon Simple Storage Service Developer Guide.
+//
+// * For information about permissions required to use the multipart upload
+// API, see Multipart Upload API and Permissions (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html)
+// in the Amazon Simple Storage Service Developer Guide.
+//
+// * For information about copying objects using a single atomic operation
+// vs. the multipart upload, see Operations on Objects (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectOperations.html)
+// in the Amazon Simple Storage Service Developer Guide.
+//
+// * For information about using server-side encryption with customer-provided
+// encryption keys with the UploadPartCopy operation, see CopyObject and
+// UploadPart.
+//
+// Note the following additional considerations about the request headers x-amz-copy-source-if-match,
+// x-amz-copy-source-if-none-match, x-amz-copy-source-if-unmodified-since, and
+// x-amz-copy-source-if-modified-since:
+//
+// * Consideration 1 - If both of the x-amz-copy-source-if-match and x-amz-copy-source-if-unmodified-since
+// headers are present in the request as follows: x-amz-copy-source-if-match
+// condition evaluates to true, and; x-amz-copy-source-if-unmodified-since
+// condition evaluates to false; Amazon S3 returns 200 OK and copies the
+// data.
+//
+// * Consideration 2 - If both of the x-amz-copy-source-if-none-match and
+// x-amz-copy-source-if-modified-since headers are present in the request
+// as follows: x-amz-copy-source-if-none-match condition evaluates to false,
+// and; x-amz-copy-source-if-modified-since condition evaluates to true;
+// Amazon S3 returns 412 Precondition Failed response code.
+//
+// Versioning
+//
+// If your bucket has versioning enabled, you could have multiple versions of
+// the same object. By default, x-amz-copy-source identifies the current version
+// of the object to copy. If the current version is a delete marker and you
+// don't specify a versionId in the x-amz-copy-source, Amazon S3 returns a 404
+// error, because the object does not exist. If you specify versionId in the
+// x-amz-copy-source and the versionId is a delete marker, Amazon S3 returns
+// an HTTP 400 error, because you are not allowed to specify a delete marker
+// as a version for the x-amz-copy-source.
+//
+// You can optionally specify a specific version of the source object to copy
+// by adding the versionId subresource as shown in the following example:
+//
+// x-amz-copy-source: /bucket/object?versionId=version id
+//
+// Special Errors
+//
+// * Code: NoSuchUpload Cause: The specified multipart upload does not exist.
+// The upload ID might be invalid, or the multipart upload might have been
+// aborted or completed. HTTP Status Code: 404 Not Found
+//
+// * Code: InvalidRequest Cause: The specified copy source is not supported
+// as a byte-range copy source. HTTP Status Code: 400 Bad Request
+//
+// Related Resources
+//
+// * CreateMultipartUpload
+//
+// * UploadPart
+//
+// * CompleteMultipartUpload
+//
+// * AbortMultipartUpload
+//
+// * ListParts
+//
+// * ListMultipartUploads
//
// 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
@@ -7045,7 +10111,14 @@ func (s *AbortIncompleteMultipartUpload) SetDaysAfterInitiation(v int64) *AbortI
type AbortMultipartUploadInput struct {
_ struct{} `locationName:"AbortMultipartUploadRequest" type:"structure"`
- // Name of the bucket to which the multipart upload was initiated.
+ // The bucket name to which the upload was taking place.
+ //
+ // When using this API with an access point, you must direct requests to the
+ // access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com.
+ // When using this operation using an access point through the AWS SDKs, you
+ // provide the access point ARN in place of the bucket name. For more information
+ // about access point ARNs, see Using Access Points (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html)
+ // in the Amazon Simple Storage Service Developer Guide.
//
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
@@ -7055,10 +10128,11 @@ type AbortMultipartUploadInput struct {
// Key is a required field
Key *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
- // request. Bucket owners need not specify this parameter in their requests.
- // Documentation on downloading objects from requester pays buckets can be found
- // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
+ // Confirms that the requester knows that they will be charged for the request.
+ // Bucket owners need not specify this parameter in their requests. For information
+ // about downloading objects from requester pays buckets, see Downloading Objects
+ // in Requestor Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html)
+ // in the Amazon S3 Developer Guide.
RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
// Upload ID that identifies the multipart upload.
@@ -7133,6 +10207,20 @@ func (s *AbortMultipartUploadInput) SetUploadId(v string) *AbortMultipartUploadI
return s
}
+func (s *AbortMultipartUploadInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *AbortMultipartUploadInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type AbortMultipartUploadOutput struct {
_ struct{} `type:"structure"`
@@ -7335,9 +10423,6 @@ func (s *AnalyticsAndOperator) SetTags(v []*Tag) *AnalyticsAndOperator {
// Specifies the configuration and any analyses for the analytics filter of
// an Amazon S3 bucket.
-//
-// For more information, see GET Bucket analytics (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETAnalyticsConfig.html)
-// in the Amazon Simple Storage Service API Reference.
type AnalyticsConfiguration struct {
_ struct{} `type:"structure"`
@@ -7456,6 +10541,9 @@ func (s *AnalyticsExportDestination) SetS3BucketDestination(v *AnalyticsS3Bucket
return s
}
+// The filter used to describe a set of objects for analyses. A filter must
+// have exactly one prefix, one tag, or one conjunction (AnalyticsAndOperator).
+// If no filter is provided, all objects will be considered in any analysis.
type AnalyticsFilter struct {
_ struct{} `type:"structure"`
@@ -7518,6 +10606,7 @@ func (s *AnalyticsFilter) SetTag(v *Tag) *AnalyticsFilter {
return s
}
+// Contains information about where to publish the analytics results.
type AnalyticsS3BucketDestination struct {
_ struct{} `type:"structure"`
@@ -7596,6 +10685,8 @@ func (s *AnalyticsS3BucketDestination) SetPrefix(v string) *AnalyticsS3BucketDes
return s
}
+// In terms of implementation, a Bucket is a resource. An Amazon S3 bucket name
+// is globally unique, and the namespace is shared by all AWS accounts.
type Bucket struct {
_ struct{} `type:"structure"`
@@ -7679,6 +10770,7 @@ func (s *BucketLifecycleConfiguration) SetRules(v []*LifecycleRule) *BucketLifec
return s
}
+// Container for logging status information.
type BucketLoggingStatus struct {
_ struct{} `type:"structure"`
@@ -7727,7 +10819,8 @@ func (s *BucketLoggingStatus) SetLoggingEnabled(v *LoggingEnabled) *BucketLoggin
type CORSConfiguration struct {
_ struct{} `type:"structure"`
- // A set of allowed origins and methods.
+ // A set of origins and methods (cross-origin access that you want to allow).
+ // You can add up to 100 rules to the configuration.
//
// CORSRules is a required field
CORSRules []*CORSRule `locationName:"CORSRule" type:"list" flattened:"true" required:"true"`
@@ -7859,7 +10952,8 @@ func (s *CORSRule) SetMaxAgeSeconds(v int64) *CORSRule {
return s
}
-// Describes how a CSV-formatted input object is formatted.
+// Describes how an uncompressed comma-separated values (CSV)-formatted input
+// object is formatted.
type CSVInput struct {
_ struct{} `type:"structure"`
@@ -7868,24 +10962,45 @@ type CSVInput struct {
// to TRUE may lower performance.
AllowQuotedRecordDelimiter *bool `type:"boolean"`
- // The single character used to indicate a row should be ignored when present
- // at the start of a row.
+ // A single character used to indicate that a row should be ignored when the
+ // character is present at the start of that row. You can specify any character
+ // to indicate a comment line.
Comments *string `type:"string"`
- // The value used to separate individual fields in a record.
+ // A single character used to separate individual fields in a record. You can
+ // specify an arbitrary delimiter.
FieldDelimiter *string `type:"string"`
- // Describes the first line of input. Valid values: None, Ignore, Use.
+ // Describes the first line of input. Valid values are:
+ //
+ // * NONE: First line is not a header.
+ //
+ // * IGNORE: First line is a header, but you can't use the header values
+ // to indicate the column in an expression. You can use column position (such
+ // as _1, _2, …) to indicate the column (SELECT s._1 FROM OBJECT s).
+ //
+ // * Use: First line is a header, and you can use the header value to identify
+ // a column in an expression (SELECT "name" FROM OBJECT).
FileHeaderInfo *string `type:"string" enum:"FileHeaderInfo"`
- // Value used for escaping where the field delimiter is part of the value.
+ // A single character used for escaping when the field delimiter is part of
+ // the value. For example, if the value is a, b, Amazon S3 wraps this field
+ // value in quotation marks, as follows: " a , b ".
+ //
+ // Type: String
+ //
+ // Default: "
+ //
+ // Ancestors: CSV
QuoteCharacter *string `type:"string"`
- // The single character used for escaping the quote character inside an already
- // escaped value.
+ // A single character used for escaping the quotation mark character inside
+ // an already escaped value. For example, the value """ a , b """ is parsed
+ // as " a , b ".
QuoteEscapeCharacter *string `type:"string"`
- // The value used to separate individual records.
+ // A single character used to separate individual records in the input. Instead
+ // of the default value, you can specify an arbitrary delimiter.
RecordDelimiter *string `type:"string"`
}
@@ -7941,24 +11056,33 @@ func (s *CSVInput) SetRecordDelimiter(v string) *CSVInput {
return s
}
-// Describes how CSV-formatted results are formatted.
+// Describes how uncompressed comma-separated values (CSV)-formatted results
+// are formatted.
type CSVOutput struct {
_ struct{} `type:"structure"`
- // The value used to separate individual fields in a record.
+ // The value used to separate individual fields in a record. You can specify
+ // an arbitrary delimiter.
FieldDelimiter *string `type:"string"`
- // The value used for escaping where the field delimiter is part of the value.
+ // A single character used for escaping when the field delimiter is part of
+ // the value. For example, if the value is a, b, Amazon S3 wraps this field
+ // value in quotation marks, as follows: " a , b ".
QuoteCharacter *string `type:"string"`
- // Th single character used for escaping the quote character inside an already
+ // The single character used for escaping the quote character inside an already
// escaped value.
QuoteEscapeCharacter *string `type:"string"`
- // Indicates whether or not all output fields should be quoted.
+ // Indicates whether to use quotation marks around output fields.
+ //
+ // * ALWAYS: Always use quotation marks for output fields.
+ //
+ // * ASNEEDED: Use quotation marks for output fields when needed.
QuoteFields *string `type:"string" enum:"QuoteFields"`
- // The value used to separate individual records.
+ // A single character used to separate individual records in the output. Instead
+ // of the default value, you can specify an arbitrary delimiter.
RecordDelimiter *string `type:"string"`
}
@@ -8002,9 +11126,12 @@ func (s *CSVOutput) SetRecordDelimiter(v string) *CSVOutput {
return s
}
+// Container for specifying the AWS Lambda notification configuration.
type CloudFunctionConfiguration struct {
_ struct{} `type:"structure"`
+ // Lambda cloud function ARN that Amazon S3 can invoke when it detects events
+ // of the specified type.
CloudFunction *string `type:"string"`
// The bucket event for which to send notifications.
@@ -8012,12 +11139,14 @@ type CloudFunctionConfiguration struct {
// Deprecated: Event has been deprecated
Event *string `deprecated:"true" type:"string" enum:"Event"`
+ // Bucket events for which to send notifications.
Events []*string `locationName:"Event" type:"list" flattened:"true"`
// An optional unique identifier for configurations in a notification configuration.
// If you don't provide one, Amazon S3 will assign an ID.
Id *string `type:"string"`
+ // The role supporting the invocation of the Lambda function
InvocationRole *string `type:"string"`
}
@@ -8061,9 +11190,15 @@ func (s *CloudFunctionConfiguration) SetInvocationRole(v string) *CloudFunctionC
return s
}
+// Container for all (if there are any) keys between Prefix and the next occurrence
+// of the string specified by a delimiter. CommonPrefixes lists keys that act
+// like subdirectories in the directory specified by Prefix. For example, if
+// the prefix is notes/ and the delimiter is a slash (/) as in notes/summer/july,
+// the common prefix is notes/summer/.
type CommonPrefix struct {
_ struct{} `type:"structure"`
+ // Container for the specified common prefix.
Prefix *string `type:"string"`
}
@@ -8086,20 +11221,28 @@ func (s *CommonPrefix) SetPrefix(v string) *CommonPrefix {
type CompleteMultipartUploadInput struct {
_ struct{} `locationName:"CompleteMultipartUploadRequest" type:"structure" payload:"MultipartUpload"`
+ // Name of the bucket to which the multipart upload was initiated.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
+ // Object key for which the multipart upload was initiated.
+ //
// Key is a required field
Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
+ // The container for the multipart upload request information.
MultipartUpload *CompletedMultipartUpload `locationName:"CompleteMultipartUpload" type:"structure" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"`
- // Confirms that the requester knows that she or he will be charged for the
- // request. Bucket owners need not specify this parameter in their requests.
- // Documentation on downloading objects from requester pays buckets can be found
- // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
+ // Confirms that the requester knows that they will be charged for the request.
+ // Bucket owners need not specify this parameter in their requests. For information
+ // about downloading objects from requester pays buckets, see Downloading Objects
+ // in Requestor Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html)
+ // in the Amazon S3 Developer Guide.
RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
+ // ID for the initiated multipart upload.
+ //
// UploadId is a required field
UploadId *string `location:"querystring" locationName:"uploadId" type:"string" required:"true"`
}
@@ -8176,35 +11319,61 @@ func (s *CompleteMultipartUploadInput) SetUploadId(v string) *CompleteMultipartU
return s
}
+func (s *CompleteMultipartUploadInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *CompleteMultipartUploadInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type CompleteMultipartUploadOutput struct {
_ struct{} `type:"structure"`
+ // The name of the bucket that contains the newly created object.
Bucket *string `type:"string"`
- // Entity tag of the object.
+ // Entity tag that identifies the newly created object's data. Objects with
+ // different object data will have different entity tags. The entity tag is
+ // an opaque string. The entity tag may or may not be an MD5 digest of the object
+ // data. If the entity tag is not an MD5 digest of the object data, it will
+ // contain one or more nonhexadecimal characters and/or will consist of less
+ // than 32 or more than 32 hexadecimal digits.
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.
Expiration *string `location:"header" locationName:"x-amz-expiration" type:"string"`
+ // The object key of the newly created object.
Key *string `min:"1" type:"string"`
+ // The URI that identifies the newly created object.
Location *string `type:"string"`
// If present, indicates that the requester was successfully charged for the
// request.
RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"`
- // If present, specifies the ID of the AWS Key Management Service (KMS) master
- // encryption key that was used for the object.
+ // If present, specifies the ID of the AWS Key Management Service (AWS KMS)
+ // symmetric customer managed customer master key (CMK) that was used for the
+ // object.
SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"`
- // The Server-side encryption algorithm used when storing this object in S3
- // (e.g., AES256, aws:kms).
+ // If you specified server-side encryption either with an Amazon S3-managed
+ // encryption key or an AWS KMS customer master key (CMK) in your initiate multipart
+ // upload request, the response includes this header. It confirms the encryption
+ // algorithm that Amazon S3 used to encrypt the object.
ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"`
- // Version of the object.
+ // Version ID of the newly created object, in case the bucket has versioning
+ // turned on.
VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"`
}
@@ -8279,9 +11448,11 @@ func (s *CompleteMultipartUploadOutput) SetVersionId(v string) *CompleteMultipar
return s
}
+// The container for the completed multipart upload details.
type CompletedMultipartUpload struct {
_ struct{} `type:"structure"`
+ // Array of CompletedPart data types.
Parts []*CompletedPart `locationName:"Part" type:"list" flattened:"true"`
}
@@ -8301,6 +11472,7 @@ func (s *CompletedMultipartUpload) SetParts(v []*CompletedPart) *CompletedMultip
return s
}
+// Details of the parts that were uploaded.
type CompletedPart struct {
_ struct{} `type:"structure"`
@@ -8334,7 +11506,10 @@ func (s *CompletedPart) SetPartNumber(v int64) *CompletedPart {
return s
}
-// Specifies a condition that must be met for a redirect to apply.
+// A container for describing a condition that must be met for the specified
+// redirect to apply. For example, 1. If request is for pages in the /docs folder,
+// redirect to the /documents folder. 2. If request results in HTTP error 4xx,
+// redirect request to another host where you might process the error.
type Condition struct {
_ struct{} `type:"structure"`
@@ -8403,12 +11578,19 @@ func (s *ContinuationEvent) UnmarshalEvent(
return nil
}
+func (s *ContinuationEvent) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error) {
+ msg.Headers.Set(eventstreamapi.MessageTypeHeader, eventstream.StringValue(eventstreamapi.EventMessageType))
+ return msg, err
+}
+
type CopyObjectInput struct {
_ struct{} `locationName:"CopyObjectRequest" type:"structure"`
// The canned ACL to apply to the object.
ACL *string `location:"header" locationName:"x-amz-acl" type:"string" enum:"ObjectCannedACL"`
+ // The name of the destination bucket.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
@@ -8448,7 +11630,8 @@ type CopyObjectInput struct {
// Copies the object if it hasn't been modified since the specified time.
CopySourceIfUnmodifiedSince *time.Time `location:"header" locationName:"x-amz-copy-source-if-unmodified-since" type:"timestamp"`
- // Specifies the algorithm to use when decrypting the source object (e.g., AES256).
+ // Specifies the algorithm to use when decrypting the source object (for example,
+ // AES256).
CopySourceSSECustomerAlgorithm *string `location:"header" locationName:"x-amz-copy-source-server-side-encryption-customer-algorithm" type:"string"`
// Specifies the customer-provided encryption key for Amazon S3 to use to decrypt
@@ -8457,8 +11640,8 @@ type CopyObjectInput struct {
CopySourceSSECustomerKey *string `marshal-as:"blob" location:"header" locationName:"x-amz-copy-source-server-side-encryption-customer-key" type:"string" sensitive:"true"`
// Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321.
- // Amazon S3 uses this header for a message integrity check to ensure the encryption
- // key was transmitted without error.
+ // Amazon S3 uses this header for a message integrity check to ensure that the
+ // encryption key was transmitted without error.
CopySourceSSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-copy-source-server-side-encryption-customer-key-MD5" type:"string"`
// The date and time at which the object is no longer cacheable.
@@ -8476,6 +11659,8 @@ 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"`
+ // The key of the destination object.
+ //
// Key is a required field
Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
@@ -8489,31 +11674,33 @@ type CopyObjectInput struct {
// Specifies whether you want to apply a Legal Hold to the copied object.
ObjectLockLegalHoldStatus *string `location:"header" locationName:"x-amz-object-lock-legal-hold" type:"string" enum:"ObjectLockLegalHoldStatus"`
- // The object lock mode that you want to apply to the copied object.
+ // The Object Lock mode that you want to apply to the copied object.
ObjectLockMode *string `location:"header" locationName:"x-amz-object-lock-mode" type:"string" enum:"ObjectLockMode"`
- // The date and time when you want the copied object's object lock to expire.
+ // The date and time when you want the copied object's Object Lock to expire.
ObjectLockRetainUntilDate *time.Time `location:"header" locationName:"x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"iso8601"`
- // Confirms that the requester knows that she or he will be charged for the
- // request. Bucket owners need not specify this parameter in their requests.
- // Documentation on downloading objects from requester pays buckets can be found
- // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
+ // Confirms that the requester knows that they will be charged for the request.
+ // Bucket owners need not specify this parameter in their requests. For information
+ // about downloading objects from requester pays buckets, see Downloading Objects
+ // in Requestor Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html)
+ // in the Amazon S3 Developer Guide.
RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
- // Specifies the algorithm to use to when encrypting the object (e.g., AES256).
+ // Specifies the algorithm to use to when encrypting the object (for example,
+ // AES256).
SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
// Specifies the customer-provided encryption key for Amazon S3 to use in encrypting
// data. This value is used to store the object and then it is discarded; Amazon
- // does not store the encryption key. The key must be appropriate for use with
- // the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm
+ // S3 does not store the encryption key. The key must be appropriate for use
+ // with the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm
// header.
SSECustomerKey *string `marshal-as:"blob" location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string" sensitive:"true"`
// Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321.
- // Amazon S3 uses this header for a message integrity check to ensure the encryption
- // key was transmitted without error.
+ // Amazon S3 uses this header for a message integrity check to ensure that the
+ // encryption key was transmitted without error.
SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
// Specifies the AWS KMS Encryption Context to use for object encryption. The
@@ -8523,12 +11710,14 @@ type CopyObjectInput struct {
// Specifies the AWS KMS key ID to use for object encryption. All GET and PUT
// 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
+ // or using SigV4. For information about configuring using any of the officially
+ // supported AWS SDKs and AWS CLI, see Specifying the Signature Version in Request
+ // Authentication (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version)
+ // in the Amazon S3 Developer Guide.
SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"`
- // The Server-side encryption algorithm used when storing this object in S3
- // (e.g., AES256, aws:kms).
+ // The server-side encryption algorithm used when storing this object in Amazon
+ // S3 (for example, AES256, aws:kms).
ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"`
// The type of storage to use for the object. Defaults to 'STANDARD'.
@@ -8536,7 +11725,7 @@ type CopyObjectInput struct {
// The tag-set for the object destination object this value must be used in
// conjunction with the TaggingDirective. The tag-set must be encoded as URL
- // Query parameters
+ // Query parameters.
Tagging *string `location:"header" locationName:"x-amz-tagging" type:"string"`
// Specifies whether the object tag-set are copied from the source object or
@@ -8827,11 +12016,27 @@ func (s *CopyObjectInput) SetWebsiteRedirectLocation(v string) *CopyObjectInput
return s
}
+func (s *CopyObjectInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *CopyObjectInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type CopyObjectOutput struct {
_ struct{} `type:"structure" payload:"CopyObjectResult"`
+ // Container for all response elements.
CopyObjectResult *CopyObjectResult `type:"structure"`
+ // Version of the copied object in the destination bucket.
CopySourceVersionId *string `location:"header" locationName:"x-amz-copy-source-version-id" type:"string"`
// If the object expiration is configured, the response includes this header.
@@ -8847,7 +12052,7 @@ type CopyObjectOutput struct {
SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
// If server-side encryption with a customer-provided encryption key was requested,
- // the response will include this header to provide round trip message integrity
+ // the response will include this header to provide round-trip message integrity
// verification of the customer-provided encryption key.
SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
@@ -8856,12 +12061,13 @@ type CopyObjectOutput struct {
// the encryption context key-value pairs.
SSEKMSEncryptionContext *string `location:"header" locationName:"x-amz-server-side-encryption-context" type:"string" sensitive:"true"`
- // If present, specifies the ID of the AWS Key Management Service (KMS) master
- // encryption key that was used for the object.
+ // If present, specifies the ID of the AWS Key Management Service (AWS KMS)
+ // symmetric customer managed customer master key (CMK) that was used for the
+ // object.
SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"`
- // The Server-side encryption algorithm used when storing this object in S3
- // (e.g., AES256, aws:kms).
+ // The server-side encryption algorithm used when storing this object in Amazon
+ // S3 (for example, AES256, aws:kms).
ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"`
// Version ID of the newly created copy.
@@ -8938,11 +12144,16 @@ func (s *CopyObjectOutput) SetVersionId(v string) *CopyObjectOutput {
return s
}
+// Container for all response elements.
type CopyObjectResult struct {
_ struct{} `type:"structure"`
+ // Returns the ETag of the new object. The ETag reflects only changes to the
+ // contents of an object, not its metadata. The source and destination ETag
+ // is identical for a successfully copied object.
ETag *string `type:"string"`
+ // Returns the date that the object was last modified.
LastModified *time.Time `type:"timestamp"`
}
@@ -8968,6 +12179,7 @@ func (s *CopyObjectResult) SetLastModified(v time.Time) *CopyObjectResult {
return s
}
+// Container for all response elements.
type CopyPartResult struct {
_ struct{} `type:"structure"`
@@ -9000,11 +12212,12 @@ func (s *CopyPartResult) SetLastModified(v time.Time) *CopyPartResult {
return s
}
+// The configuration information for the bucket.
type CreateBucketConfiguration struct {
_ struct{} `type:"structure"`
- // Specifies the region where the bucket will be created. If you don't specify
- // a region, the bucket is created in US East (N. Virginia) Region (us-east-1).
+ // Specifies the Region where the bucket will be created. If you don't specify
+ // a Region, the bucket is created in the US East (N. Virginia) Region (us-east-1).
LocationConstraint *string `type:"string" enum:"BucketLocationConstraint"`
}
@@ -9030,9 +12243,12 @@ type CreateBucketInput struct {
// The canned ACL to apply to the bucket.
ACL *string `location:"header" locationName:"x-amz-acl" type:"string" enum:"BucketCannedACL"`
+ // The name of the bucket to create.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
+ // The configuration information for the bucket.
CreateBucketConfiguration *CreateBucketConfiguration `locationName:"CreateBucketConfiguration" type:"structure" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"`
// Allows grantee the read, write, read ACP, and write ACP permissions on the
@@ -9051,8 +12267,7 @@ type CreateBucketInput struct {
// Allows grantee to write the ACL for the applicable bucket.
GrantWriteACP *string `location:"header" locationName:"x-amz-grant-write-acp" type:"string"`
- // Specifies whether you want Amazon S3 object lock to be enabled for the new
- // bucket.
+ // Specifies whether you want S3 Object Lock to be enabled for the new bucket.
ObjectLockEnabledForBucket *bool `location:"header" locationName:"x-amz-bucket-object-lock-enabled" type:"boolean"`
}
@@ -9146,6 +12361,9 @@ func (s *CreateBucketInput) SetObjectLockEnabledForBucket(v bool) *CreateBucketI
type CreateBucketOutput struct {
_ struct{} `type:"structure"`
+ // Specifies the Region where the bucket will be created. If you are creating
+ // a bucket on the US East (N. Virginia) Region (us-east-1), you do not need
+ // to specify the location.
Location *string `location:"header" locationName:"Location" type:"string"`
}
@@ -9171,6 +12389,8 @@ type CreateMultipartUploadInput struct {
// The canned ACL to apply to the object.
ACL *string `location:"header" locationName:"x-amz-acl" type:"string" enum:"ObjectCannedACL"`
+ // The name of the bucket to which to initiate the upload
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
@@ -9206,6 +12426,8 @@ 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"`
+ // Object key for which the multipart upload is to be initiated.
+ //
// Key is a required field
Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
@@ -9215,52 +12437,56 @@ type CreateMultipartUploadInput struct {
// Specifies whether you want to apply a Legal Hold to the uploaded object.
ObjectLockLegalHoldStatus *string `location:"header" locationName:"x-amz-object-lock-legal-hold" type:"string" enum:"ObjectLockLegalHoldStatus"`
- // Specifies the object lock mode that you want to apply to the uploaded object.
+ // Specifies the Object Lock mode that you want to apply to the uploaded object.
ObjectLockMode *string `location:"header" locationName:"x-amz-object-lock-mode" type:"string" enum:"ObjectLockMode"`
- // Specifies the date and time when you want the object lock to expire.
+ // Specifies the date and time when you want the Object Lock to expire.
ObjectLockRetainUntilDate *time.Time `location:"header" locationName:"x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"iso8601"`
- // Confirms that the requester knows that she or he will be charged for the
- // request. Bucket owners need not specify this parameter in their requests.
- // Documentation on downloading objects from requester pays buckets can be found
- // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
+ // Confirms that the requester knows that they will be charged for the request.
+ // Bucket owners need not specify this parameter in their requests. For information
+ // about downloading objects from requester pays buckets, see Downloading Objects
+ // in Requestor Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html)
+ // in the Amazon S3 Developer Guide.
RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
- // Specifies the algorithm to use to when encrypting the object (e.g., AES256).
+ // Specifies the algorithm to use to when encrypting the object (for example,
+ // AES256).
SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
// Specifies the customer-provided encryption key for Amazon S3 to use in encrypting
// data. This value is used to store the object and then it is discarded; Amazon
- // does not store the encryption key. The key must be appropriate for use with
- // the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm
+ // S3 does not store the encryption key. The key must be appropriate for use
+ // with the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm
// header.
SSECustomerKey *string `marshal-as:"blob" location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string" sensitive:"true"`
// Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321.
- // Amazon S3 uses this header for a message integrity check to ensure the encryption
- // key was transmitted without error.
+ // Amazon S3 uses this header for a message integrity check to ensure that the
+ // encryption key was transmitted without error.
SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
// Specifies the AWS KMS Encryption Context to use for object encryption. The
// value of this header is a base64-encoded UTF-8 string holding JSON with the
// encryption context key-value pairs.
SSEKMSEncryptionContext *string `location:"header" locationName:"x-amz-server-side-encryption-context" type:"string" sensitive:"true"`
-
- // Specifies the AWS KMS key ID to use for object encryption. All GET and PUT
- // 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
+
+ // Specifies the ID of the symmetric customer managed AWS KMS CMK to use for
+ // object encryption. All GET and PUT requests for an object protected by AWS
+ // KMS will fail if not made via SSL or using SigV4. For information about configuring
+ // using any of the officially supported AWS SDKs and AWS CLI, see Specifying
+ // the Signature Version in Request Authentication (https://docs.aws.amazon.com/http:/docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version)
+ // in the Amazon S3 Developer Guide.
SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"`
- // The Server-side encryption algorithm used when storing this object in S3
- // (e.g., AES256, aws:kms).
+ // The server-side encryption algorithm used when storing this object in Amazon
+ // S3 (for example, AES256, aws:kms).
ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"`
// The type of storage to use for the object. Defaults to 'STANDARD'.
StorageClass *string `location:"header" locationName:"x-amz-storage-class" type:"string" enum:"StorageClass"`
- // The tag-set for the object. The tag-set must be encoded as URL Query parameters
+ // The tag-set for the object. The tag-set must be encoded as URL Query parameters.
Tagging *string `location:"header" locationName:"x-amz-tagging" type:"string"`
// If the bucket is configured as a website, redirects requests for this object
@@ -9477,17 +12703,47 @@ func (s *CreateMultipartUploadInput) SetWebsiteRedirectLocation(v string) *Creat
return s
}
+func (s *CreateMultipartUploadInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *CreateMultipartUploadInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type CreateMultipartUploadOutput struct {
_ struct{} `type:"structure"`
- // Date when multipart upload will become eligible for abort operation by lifecycle.
+ // If the bucket has a lifecycle rule configured with an action to abort incomplete
+ // multipart uploads and the prefix in the lifecycle rule matches the object
+ // name in the request, the response includes this header. The header indicates
+ // when the initiated multipart upload becomes eligible for an abort operation.
+ // For more information, see Aborting Incomplete Multipart Uploads Using a Bucket
+ // Lifecycle Policy (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config).
+ //
+ // The response also includes the x-amz-abort-rule-id header that provides the
+ // ID of the lifecycle configuration rule that defines this action.
AbortDate *time.Time `location:"header" locationName:"x-amz-abort-date" type:"timestamp"`
- // Id of the lifecycle rule that makes a multipart upload eligible for abort
- // operation.
+ // This header is returned along with the x-amz-abort-date header. It identifies
+ // the applicable lifecycle configuration rule that defines the action to abort
+ // incomplete multipart uploads.
AbortRuleId *string `location:"header" locationName:"x-amz-abort-rule-id" type:"string"`
// Name of the bucket to which the multipart upload was initiated.
+ //
+ // When using this API with an access point, you must direct requests to the
+ // access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com.
+ // When using this operation using an access point through the AWS SDKs, you
+ // provide the access point ARN in place of the bucket name. For more information
+ // about access point ARNs, see Using Access Points (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html)
+ // in the Amazon Simple Storage Service Developer Guide.
Bucket *string `locationName:"Bucket" type:"string"`
// Object key for which the multipart upload was initiated.
@@ -9503,7 +12759,7 @@ type CreateMultipartUploadOutput struct {
SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
// If server-side encryption with a customer-provided encryption key was requested,
- // the response will include this header to provide round trip message integrity
+ // the response will include this header to provide round-trip message integrity
// verification of the customer-provided encryption key.
SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
@@ -9512,12 +12768,13 @@ type CreateMultipartUploadOutput struct {
// the encryption context key-value pairs.
SSEKMSEncryptionContext *string `location:"header" locationName:"x-amz-server-side-encryption-context" type:"string" sensitive:"true"`
- // If present, specifies the ID of the AWS Key Management Service (KMS) master
- // encryption key that was used for the object.
+ // If present, specifies the ID of the AWS Key Management Service (AWS KMS)
+ // symmetric customer managed customer master key (CMK) that was used for the
+ // object.
SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"`
- // The Server-side encryption algorithm used when storing this object in S3
- // (e.g., AES256, aws:kms).
+ // The server-side encryption algorithm used when storing this object in Amazon
+ // S3 (for example, AES256, aws:kms).
ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"`
// ID for the initiated multipart upload.
@@ -9607,7 +12864,7 @@ func (s *CreateMultipartUploadOutput) SetUploadId(v string) *CreateMultipartUplo
return s
}
-// The container element for specifying the default object lock retention settings
+// The container element for specifying the default Object Lock retention settings
// for new objects placed in the specified bucket.
type DefaultRetention struct {
_ struct{} `type:"structure"`
@@ -9615,7 +12872,7 @@ type DefaultRetention struct {
// The number of days that you want to specify for the default retention period.
Days *int64 `type:"integer"`
- // The default object lock retention mode you want to apply to new objects placed
+ // The default Object Lock retention mode you want to apply to new objects placed
// in the specified bucket.
Mode *string `type:"string" enum:"ObjectLockRetentionMode"`
@@ -9651,9 +12908,12 @@ func (s *DefaultRetention) SetYears(v int64) *DefaultRetention {
return s
}
+// Container for the objects to delete.
type Delete struct {
_ struct{} `type:"structure"`
+ // The objects to delete.
+ //
// Objects is a required field
Objects []*ObjectIdentifier `locationName:"Object" type:"list" flattened:"true" required:"true"`
@@ -9769,6 +13029,20 @@ func (s *DeleteBucketAnalyticsConfigurationInput) SetId(v string) *DeleteBucketA
return s
}
+func (s *DeleteBucketAnalyticsConfigurationInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *DeleteBucketAnalyticsConfigurationInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type DeleteBucketAnalyticsConfigurationOutput struct {
_ struct{} `type:"structure"`
}
@@ -9786,6 +13060,8 @@ func (s DeleteBucketAnalyticsConfigurationOutput) GoString() string {
type DeleteBucketCorsInput struct {
_ struct{} `locationName:"DeleteBucketCorsRequest" type:"structure"`
+ // Specifies the bucket whose cors configuration is being deleted.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
}
@@ -9829,6 +13105,20 @@ func (s *DeleteBucketCorsInput) getBucket() (v string) {
return *s.Bucket
}
+func (s *DeleteBucketCorsInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *DeleteBucketCorsInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type DeleteBucketCorsOutput struct {
_ struct{} `type:"structure"`
}
@@ -9892,6 +13182,20 @@ func (s *DeleteBucketEncryptionInput) getBucket() (v string) {
return *s.Bucket
}
+func (s *DeleteBucketEncryptionInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *DeleteBucketEncryptionInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type DeleteBucketEncryptionOutput struct {
_ struct{} `type:"structure"`
}
@@ -9909,6 +13213,8 @@ func (s DeleteBucketEncryptionOutput) GoString() string {
type DeleteBucketInput struct {
_ struct{} `locationName:"DeleteBucketRequest" type:"structure"`
+ // Specifies the bucket being deleted.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
}
@@ -9952,6 +13258,20 @@ func (s *DeleteBucketInput) getBucket() (v string) {
return *s.Bucket
}
+func (s *DeleteBucketInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *DeleteBucketInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type DeleteBucketInventoryConfigurationInput struct {
_ struct{} `locationName:"DeleteBucketInventoryConfigurationRequest" type:"structure"`
@@ -10014,6 +13334,20 @@ func (s *DeleteBucketInventoryConfigurationInput) SetId(v string) *DeleteBucketI
return s
}
+func (s *DeleteBucketInventoryConfigurationInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *DeleteBucketInventoryConfigurationInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type DeleteBucketInventoryConfigurationOutput struct {
_ struct{} `type:"structure"`
}
@@ -10031,6 +13365,8 @@ func (s DeleteBucketInventoryConfigurationOutput) GoString() string {
type DeleteBucketLifecycleInput struct {
_ struct{} `locationName:"DeleteBucketLifecycleRequest" type:"structure"`
+ // The bucket name of the lifecycle to delete.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
}
@@ -10074,6 +13410,20 @@ func (s *DeleteBucketLifecycleInput) getBucket() (v string) {
return *s.Bucket
}
+func (s *DeleteBucketLifecycleInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *DeleteBucketLifecycleInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type DeleteBucketLifecycleOutput struct {
_ struct{} `type:"structure"`
}
@@ -10150,6 +13500,20 @@ func (s *DeleteBucketMetricsConfigurationInput) SetId(v string) *DeleteBucketMet
return s
}
+func (s *DeleteBucketMetricsConfigurationInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *DeleteBucketMetricsConfigurationInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type DeleteBucketMetricsConfigurationOutput struct {
_ struct{} `type:"structure"`
}
@@ -10181,6 +13545,8 @@ func (s DeleteBucketOutput) GoString() string {
type DeleteBucketPolicyInput struct {
_ struct{} `locationName:"DeleteBucketPolicyRequest" type:"structure"`
+ // The bucket name.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
}
@@ -10224,6 +13590,20 @@ func (s *DeleteBucketPolicyInput) getBucket() (v string) {
return *s.Bucket
}
+func (s *DeleteBucketPolicyInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *DeleteBucketPolicyInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type DeleteBucketPolicyOutput struct {
_ struct{} `type:"structure"`
}
@@ -10243,9 +13623,6 @@ type DeleteBucketReplicationInput struct {
// The bucket name.
//
- // It can take a while to propagate the deletion of a replication configuration
- // to all Amazon S3 systems.
- //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
}
@@ -10289,6 +13666,20 @@ func (s *DeleteBucketReplicationInput) getBucket() (v string) {
return *s.Bucket
}
+func (s *DeleteBucketReplicationInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *DeleteBucketReplicationInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type DeleteBucketReplicationOutput struct {
_ struct{} `type:"structure"`
}
@@ -10306,6 +13697,8 @@ func (s DeleteBucketReplicationOutput) GoString() string {
type DeleteBucketTaggingInput struct {
_ struct{} `locationName:"DeleteBucketTaggingRequest" type:"structure"`
+ // The bucket that has the tag set to be removed.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
}
@@ -10349,6 +13742,20 @@ func (s *DeleteBucketTaggingInput) getBucket() (v string) {
return *s.Bucket
}
+func (s *DeleteBucketTaggingInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *DeleteBucketTaggingInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type DeleteBucketTaggingOutput struct {
_ struct{} `type:"structure"`
}
@@ -10366,6 +13773,8 @@ func (s DeleteBucketTaggingOutput) GoString() string {
type DeleteBucketWebsiteInput struct {
_ struct{} `locationName:"DeleteBucketWebsiteRequest" type:"structure"`
+ // The bucket name for which you want to remove the website configuration.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
}
@@ -10409,6 +13818,20 @@ func (s *DeleteBucketWebsiteInput) getBucket() (v string) {
return *s.Bucket
}
+func (s *DeleteBucketWebsiteInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *DeleteBucketWebsiteInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type DeleteBucketWebsiteOutput struct {
_ struct{} `type:"structure"`
}
@@ -10423,6 +13846,7 @@ func (s DeleteBucketWebsiteOutput) GoString() string {
return s.String()
}
+// Information about the delete marker.
type DeleteMarkerEntry struct {
_ struct{} `type:"structure"`
@@ -10436,6 +13860,7 @@ type DeleteMarkerEntry struct {
// Date and time the object was last modified.
LastModified *time.Time `type:"timestamp"`
+ // The account that created the delete marker.>
Owner *Owner `type:"structure"`
// Version ID of an object.
@@ -10482,11 +13907,21 @@ func (s *DeleteMarkerEntry) SetVersionId(v string) *DeleteMarkerEntry {
return s
}
-// Specifies whether Amazon S3 should replicate delete makers.
+// Specifies whether Amazon S3 replicates the delete markers. If you specify
+// a Filter, you must specify this element. However, in the latest version of
+// replication configuration (when Filter is specified), Amazon S3 doesn't replicate
+// delete markers. Therefore, the DeleteMarkerReplication element can contain
+// only <Status>Disabled</Status>. For an example configuration, see Basic Rule
+// Configuration (https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-add-config.html#replication-config-min-rule-config).
+//
+// If you don't specify the Filter element, Amazon S3 assumes that the replication
+// configuration is the earlier version, V1. In the earlier version, Amazon
+// S3 handled replication of delete markers differently. For more information,
+// see Backward Compatibility (https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-add-config.html#replication-backward-compat-considerations).
type DeleteMarkerReplication struct {
_ struct{} `type:"structure"`
- // The status of the delete marker replication.
+ // Indicates whether to replicate delete markers.
//
// In the current implementation, Amazon S3 doesn't replicate the delete markers.
// The status must be Disabled.
@@ -10512,24 +13947,38 @@ func (s *DeleteMarkerReplication) SetStatus(v string) *DeleteMarkerReplication {
type DeleteObjectInput struct {
_ struct{} `locationName:"DeleteObjectRequest" type:"structure"`
+ // The bucket name of the bucket containing the object.
+ //
+ // When using this API with an access point, you must direct requests to the
+ // access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com.
+ // When using this operation using an access point through the AWS SDKs, you
+ // provide the access point ARN in place of the bucket name. For more information
+ // about access point ARNs, see Using Access Points (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html)
+ // in the Amazon Simple Storage Service Developer Guide.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
- // Indicates whether Amazon S3 object lock should bypass governance-mode restrictions
+ // Indicates whether S3 Object Lock should bypass Governance-mode restrictions
// to process this operation.
BypassGovernanceRetention *bool `location:"header" locationName:"x-amz-bypass-governance-retention" type:"boolean"`
+ // Key name of the object to delete.
+ //
// Key is a required field
Key *string `location:"uri" locationName:"Key" min:"1" 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.
+ // and the value that is displayed on your authentication device. Required to
+ // permanently delete a versioned object if versioning is configured with MFA
+ // delete enabled.
MFA *string `location:"header" locationName:"x-amz-mfa" type:"string"`
- // Confirms that the requester knows that she or he will be charged for the
- // request. Bucket owners need not specify this parameter in their requests.
- // Documentation on downloading objects from requester pays buckets can be found
- // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
+ // Confirms that the requester knows that they will be charged for the request.
+ // Bucket owners need not specify this parameter in their requests. For information
+ // about downloading objects from requester pays buckets, see Downloading Objects
+ // in Requestor Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html)
+ // in the Amazon S3 Developer Guide.
RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
// VersionId used to reference a specific version of the object.
@@ -10611,6 +14060,20 @@ func (s *DeleteObjectInput) SetVersionId(v string) *DeleteObjectInput {
return s
}
+func (s *DeleteObjectInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *DeleteObjectInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type DeleteObjectOutput struct {
_ struct{} `type:"structure"`
@@ -10658,9 +14121,20 @@ func (s *DeleteObjectOutput) SetVersionId(v string) *DeleteObjectOutput {
type DeleteObjectTaggingInput struct {
_ struct{} `locationName:"DeleteObjectTaggingRequest" type:"structure"`
+ // The bucket name containing the objects from which to remove the tags.
+ //
+ // When using this API with an access point, you must direct requests to the
+ // access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com.
+ // When using this operation using an access point through the AWS SDKs, you
+ // provide the access point ARN in place of the bucket name. For more information
+ // about access point ARNs, see Using Access Points (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html)
+ // in the Amazon Simple Storage Service Developer Guide.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
+ // Name of the tag.
+ //
// Key is a required field
Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
@@ -10725,6 +14199,20 @@ func (s *DeleteObjectTaggingInput) SetVersionId(v string) *DeleteObjectTaggingIn
return s
}
+func (s *DeleteObjectTaggingInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *DeleteObjectTaggingInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type DeleteObjectTaggingOutput struct {
_ struct{} `type:"structure"`
@@ -10751,25 +14239,39 @@ func (s *DeleteObjectTaggingOutput) SetVersionId(v string) *DeleteObjectTaggingO
type DeleteObjectsInput struct {
_ struct{} `locationName:"DeleteObjectsRequest" type:"structure" payload:"Delete"`
+ // The bucket name containing the objects to delete.
+ //
+ // When using this API with an access point, you must direct requests to the
+ // access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com.
+ // When using this operation using an access point through the AWS SDKs, you
+ // provide the access point ARN in place of the bucket name. For more information
+ // about access point ARNs, see Using Access Points (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html)
+ // in the Amazon Simple Storage Service Developer Guide.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
// Specifies whether you want to delete this object even if it has a Governance-type
- // object lock in place. You must have sufficient permissions to perform this
+ // Object Lock in place. You must have sufficient permissions to perform this
// operation.
BypassGovernanceRetention *bool `location:"header" locationName:"x-amz-bypass-governance-retention" type:"boolean"`
+ // Container for the request.
+ //
// Delete is a required field
Delete *Delete `locationName:"Delete" type:"structure" required:"true" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"`
// The concatenation of the authentication device's serial number, a space,
- // and the value that is displayed on your authentication device.
+ // and the value that is displayed on your authentication device. Required to
+ // permanently delete a versioned object if versioning is configured with MFA
+ // delete enabled.
MFA *string `location:"header" locationName:"x-amz-mfa" type:"string"`
- // Confirms that the requester knows that she or he will be charged for the
- // request. Bucket owners need not specify this parameter in their requests.
- // Documentation on downloading objects from requester pays buckets can be found
- // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
+ // Confirms that the requester knows that they will be charged for the request.
+ // Bucket owners need not specify this parameter in their requests. For information
+ // about downloading objects from requester pays buckets, see Downloading Objects
+ // in Requestor Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html)
+ // in the Amazon S3 Developer Guide.
RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
}
@@ -10844,11 +14346,29 @@ func (s *DeleteObjectsInput) SetRequestPayer(v string) *DeleteObjectsInput {
return s
}
+func (s *DeleteObjectsInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *DeleteObjectsInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type DeleteObjectsOutput struct {
_ struct{} `type:"structure"`
+ // Container element for a successful delete. It identifies the object that
+ // was successfully deleted.
Deleted []*DeletedObject `type:"list" flattened:"true"`
+ // Container for a failed delete operation that describes the object that Amazon
+ // S3 attempted to delete and the error it encountered.
Errors []*Error `locationName:"Error" type:"list" flattened:"true"`
// If present, indicates that the requester was successfully charged for the
@@ -10932,6 +14452,20 @@ func (s *DeletePublicAccessBlockInput) getBucket() (v string) {
return *s.Bucket
}
+func (s *DeletePublicAccessBlockInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *DeletePublicAccessBlockInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type DeletePublicAccessBlockOutput struct {
_ struct{} `type:"structure"`
}
@@ -10946,15 +14480,24 @@ func (s DeletePublicAccessBlockOutput) GoString() string {
return s.String()
}
+// Information about the deleted object.
type DeletedObject struct {
_ struct{} `type:"structure"`
+ // Specifies whether the versioned object that was permanently deleted was (true)
+ // or was not (false) a delete marker. In a simple DELETE, this header indicates
+ // whether (true) or not (false) a delete marker was created.
DeleteMarker *bool `type:"boolean"`
+ // The version ID of the delete marker created as a result of the DELETE operation.
+ // If you delete a specific object version, the value returned by this header
+ // is the version ID of the object version deleted.
DeleteMarkerVersionId *string `type:"string"`
+ // The name of the deleted object.
Key *string `min:"1" type:"string"`
+ // The version ID of the deleted object.
VersionId *string `type:"string"`
}
@@ -10993,7 +14536,7 @@ func (s *DeletedObject) SetVersionId(v string) *DeletedObject {
}
// Specifies information about where to publish analysis or configuration results
-// for an Amazon S3 bucket.
+// for an Amazon S3 bucket and S3 Replication Time Control (S3 RTC).
type Destination struct {
_ struct{} `type:"structure"`
@@ -11008,17 +14551,12 @@ type Destination struct {
// direct Amazon S3 to change replica ownership to the AWS account that owns
// the destination bucket by specifying the AccessControlTranslation property,
// this is the account ID of the destination bucket owner. For more information,
- // see Cross-Region Replication Additional Configuration: Change Replica Owner
- // (https://docs.aws.amazon.com/AmazonS3/latest/dev/crr-change-owner.html) in
- // the Amazon Simple Storage Service Developer Guide.
+ // see Replication Additional Configuration: Changing the Replica Owner (https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-change-owner.html)
+ // in the Amazon Simple Storage Service Developer Guide.
Account *string `type:"string"`
// The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to
- // store replicas of the object identified by the rule.
- //
- // A replication configuration can replicate objects to only one destination
- // bucket. If there are multiple rules in your replication configuration, all
- // rules must specify the same destination bucket.
+ // store the results.
//
// Bucket is a required field
Bucket *string `type:"string" required:"true"`
@@ -11027,6 +14565,16 @@ type Destination struct {
// is specified, you must specify this element.
EncryptionConfiguration *EncryptionConfiguration `type:"structure"`
+ // A container specifying replication metrics-related settings enabling metrics
+ // and Amazon S3 events for S3 Replication Time Control (S3 RTC). Must be specified
+ // together with a ReplicationTime block.
+ Metrics *Metrics `type:"structure"`
+
+ // A container specifying S3 Replication Time Control (S3 RTC), including whether
+ // S3 RTC is enabled and the time when all objects and operations on objects
+ // must be replicated. Must be specified together with a Metrics block.
+ ReplicationTime *ReplicationTime `type:"structure"`
+
// The storage class to use when replicating objects, such as standard or reduced
// redundancy. By default, Amazon S3 uses the storage class of the source object
// to create the object replica.
@@ -11058,6 +14606,16 @@ func (s *Destination) Validate() error {
invalidParams.AddNested("AccessControlTranslation", err.(request.ErrInvalidParams))
}
}
+ if s.Metrics != nil {
+ if err := s.Metrics.Validate(); err != nil {
+ invalidParams.AddNested("Metrics", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.ReplicationTime != nil {
+ if err := s.ReplicationTime.Validate(); err != nil {
+ invalidParams.AddNested("ReplicationTime", err.(request.ErrInvalidParams))
+ }
+ }
if invalidParams.Len() > 0 {
return invalidParams
@@ -11096,19 +14654,30 @@ func (s *Destination) SetEncryptionConfiguration(v *EncryptionConfiguration) *De
return s
}
+// SetMetrics sets the Metrics field's value.
+func (s *Destination) SetMetrics(v *Metrics) *Destination {
+ s.Metrics = v
+ return s
+}
+
+// SetReplicationTime sets the ReplicationTime field's value.
+func (s *Destination) SetReplicationTime(v *ReplicationTime) *Destination {
+ s.ReplicationTime = v
+ return s
+}
+
// SetStorageClass sets the StorageClass field's value.
func (s *Destination) SetStorageClass(v string) *Destination {
s.StorageClass = &v
return s
}
-// Describes the server-side encryption that will be applied to the restore
-// results.
+// Contains the type of server-side encryption used.
type Encryption struct {
_ struct{} `type:"structure"`
// The server-side encryption algorithm used when storing job results in Amazon
- // S3 (e.g., AES256, aws:kms).
+ // S3 (for example, AES256, aws:kms).
//
// EncryptionType is a required field
EncryptionType *string `type:"string" required:"true" enum:"ServerSideEncryption"`
@@ -11117,8 +14686,11 @@ type Encryption struct {
// the encryption context for the restore results.
KMSContext *string `type:"string"`
- // If the encryption type is aws:kms, this optional value specifies the AWS
- // KMS key ID to use for encryption of job results.
+ // If the encryption type is aws:kms, this optional value specifies the ID of
+ // the symmetric customer managed AWS KMS CMK to use for encryption of job results.
+ // Amazon S3 only supports symmetric CMKs. For more information, see Using Symmetric
+ // and Asymmetric Keys (https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html)
+ // in the AWS Key Management Service Developer Guide.
KMSKeyId *string `type:"string" sensitive:"true"`
}
@@ -11168,8 +14740,12 @@ func (s *Encryption) SetKMSKeyId(v string) *Encryption {
type EncryptionConfiguration struct {
_ struct{} `type:"structure"`
- // Specifies the AWS KMS Key ID (Key ARN or Alias ARN) for the destination bucket.
- // Amazon S3 uses this key to encrypt replica objects.
+ // Specifies the ID (Key ARN or Alias ARN) of the customer managed customer
+ // master key (CMK) stored in AWS Key Management Service (KMS) for the destination
+ // bucket. Amazon S3 uses this key to encrypt replica objects. Amazon S3 only
+ // supports symmetric customer managed CMKs. For more information, see Using
+ // Symmetric and Asymmetric Keys (https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html)
+ // in the AWS Key Management Service Developer Guide.
ReplicaKmsKeyID *string `type:"string"`
}
@@ -11189,6 +14765,9 @@ func (s *EncryptionConfiguration) SetReplicaKmsKeyID(v string) *EncryptionConfig
return s
}
+// A message that indicates the request is complete and no more messages will
+// be sent. You should not assume that the request is complete until the client
+// receives an EndEvent.
type EndEvent struct {
_ struct{} `locationName:"EndEvent" type:"structure"`
}
@@ -11215,15 +14794,380 @@ func (s *EndEvent) UnmarshalEvent(
return nil
}
+func (s *EndEvent) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error) {
+ msg.Headers.Set(eventstreamapi.MessageTypeHeader, eventstream.StringValue(eventstreamapi.EventMessageType))
+ return msg, err
+}
+
+// Container for all error elements.
type Error struct {
_ struct{} `type:"structure"`
+ // The error code is a string that uniquely identifies an error condition. It
+ // is meant to be read and understood by programs that detect and handle errors
+ // by type.
+ //
+ // Amazon S3 error codes
+ //
+ // * Code: AccessDenied Description: Access Denied HTTP Status Code: 403
+ // Forbidden SOAP Fault Code Prefix: Client
+ //
+ // * Code: AccountProblem Description: There is a problem with your AWS account
+ // that prevents the operation from completing successfully. Contact AWS
+ // Support for further assistance. HTTP Status Code: 403 Forbidden SOAP Fault
+ // Code Prefix: Client
+ //
+ // * Code: AllAccessDisabled Description: All access to this Amazon S3 resource
+ // has been disabled. Contact AWS Support for further assistance. HTTP Status
+ // Code: 403 Forbidden SOAP Fault Code Prefix: Client
+ //
+ // * Code: AmbiguousGrantByEmailAddress Description: The email address you
+ // provided is associated with more than one account. HTTP Status Code: 400
+ // Bad Request SOAP Fault Code Prefix: Client
+ //
+ // * Code: AuthorizationHeaderMalformed Description: The authorization header
+ // you provided is invalid. HTTP Status Code: 400 Bad Request HTTP Status
+ // Code: N/A
+ //
+ // * Code: BadDigest Description: The Content-MD5 you specified did not match
+ // what we received. HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix:
+ // Client
+ //
+ // * Code: BucketAlreadyExists Description: 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. HTTP Status Code: 409 Conflict
+ // SOAP Fault Code Prefix: Client
+ //
+ // * Code: BucketAlreadyOwnedByYou Description: The bucket you tried to create
+ // already exists, and you own it. Amazon S3 returns this error in all AWS
+ // Regions except in the North Virginia Region. For legacy compatibility,
+ // if you re-create an existing bucket that you already own in the North
+ // Virginia Region, Amazon S3 returns 200 OK and resets the bucket access
+ // control lists (ACLs). Code: 409 Conflict (in all Regions except the North
+ // Virginia Region) SOAP Fault Code Prefix: Client
+ //
+ // * Code: BucketNotEmpty Description: The bucket you tried to delete is
+ // not empty. HTTP Status Code: 409 Conflict SOAP Fault Code Prefix: Client
+ //
+ // * Code: CredentialsNotSupported Description: This request does not support
+ // credentials. HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix:
+ // Client
+ //
+ // * Code: CrossLocationLoggingProhibited Description: Cross-location logging
+ // not allowed. Buckets in one geographic location cannot log information
+ // to a bucket in another location. HTTP Status Code: 403 Forbidden SOAP
+ // Fault Code Prefix: Client
+ //
+ // * Code: EntityTooSmall Description: Your proposed upload is smaller than
+ // the minimum allowed object size. HTTP Status Code: 400 Bad Request SOAP
+ // Fault Code Prefix: Client
+ //
+ // * Code: EntityTooLarge Description: Your proposed upload exceeds the maximum
+ // allowed object size. HTTP Status Code: 400 Bad Request SOAP Fault Code
+ // Prefix: Client
+ //
+ // * Code: ExpiredToken Description: The provided token has expired. HTTP
+ // Status Code: 400 Bad Request SOAP Fault Code Prefix: Client
+ //
+ // * Code: IllegalVersioningConfigurationException Description: Indicates
+ // that the versioning configuration specified in the request is invalid.
+ // HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix: Client
+ //
+ // * Code: IncompleteBody Description: You did not provide the number of
+ // bytes specified by the Content-Length HTTP header HTTP Status Code: 400
+ // Bad Request SOAP Fault Code Prefix: Client
+ //
+ // * Code: IncorrectNumberOfFilesInPostRequest Description: POST requires
+ // exactly one file upload per request. HTTP Status Code: 400 Bad Request
+ // SOAP Fault Code Prefix: Client
+ //
+ // * Code: InlineDataTooLarge Description: Inline data exceeds the maximum
+ // allowed size. HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix:
+ // Client
+ //
+ // * Code: InternalError Description: We encountered an internal error. Please
+ // try again. HTTP Status Code: 500 Internal Server Error SOAP Fault Code
+ // Prefix: Server
+ //
+ // * Code: InvalidAccessKeyId Description: The AWS access key ID you provided
+ // does not exist in our records. HTTP Status Code: 403 Forbidden SOAP Fault
+ // Code Prefix: Client
+ //
+ // * Code: InvalidAddressingHeader Description: You must specify the Anonymous
+ // role. HTTP Status Code: N/A SOAP Fault Code Prefix: Client
+ //
+ // * Code: InvalidArgument Description: Invalid Argument HTTP Status Code:
+ // 400 Bad Request SOAP Fault Code Prefix: Client
+ //
+ // * Code: InvalidBucketName Description: The specified bucket is not valid.
+ // HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix: Client
+ //
+ // * Code: InvalidBucketState Description: The request is not valid with
+ // the current state of the bucket. HTTP Status Code: 409 Conflict SOAP Fault
+ // Code Prefix: Client
+ //
+ // * Code: InvalidDigest Description: The Content-MD5 you specified is not
+ // valid. HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix: Client
+ //
+ // * Code: InvalidEncryptionAlgorithmError Description: The encryption request
+ // you specified is not valid. The valid value is AES256. HTTP Status Code:
+ // 400 Bad Request SOAP Fault Code Prefix: Client
+ //
+ // * Code: InvalidLocationConstraint Description: The specified location
+ // constraint is not valid. For more information about Regions, see How to
+ // Select a Region for Your Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingBucket.html#access-bucket-intro).
+ // HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix: Client
+ //
+ // * Code: InvalidObjectState Description: The operation is not valid for
+ // the current state of the object. HTTP Status Code: 403 Forbidden SOAP
+ // Fault Code Prefix: Client
+ //
+ // * Code: InvalidPart Description: One or more of the specified parts could
+ // not be found. The part might not have been uploaded, or the specified
+ // entity tag might not have matched the part's entity tag. HTTP Status Code:
+ // 400 Bad Request SOAP Fault Code Prefix: Client
+ //
+ // * Code: InvalidPartOrder Description: The list of parts was not in ascending
+ // order. Parts list must be specified in order by part number. HTTP Status
+ // Code: 400 Bad Request SOAP Fault Code Prefix: Client
+ //
+ // * Code: InvalidPayer Description: All access to this object has been disabled.
+ // Please contact AWS Support for further assistance. HTTP Status Code: 403
+ // Forbidden SOAP Fault Code Prefix: Client
+ //
+ // * Code: InvalidPolicyDocument Description: The content of the form does
+ // not meet the conditions specified in the policy document. HTTP Status
+ // Code: 400 Bad Request SOAP Fault Code Prefix: Client
+ //
+ // * Code: InvalidRange Description: The requested range cannot be satisfied.
+ // HTTP Status Code: 416 Requested Range Not Satisfiable SOAP Fault Code
+ // Prefix: Client
+ //
+ // * Code: InvalidRequest Description: Please use AWS4-HMAC-SHA256. HTTP
+ // Status Code: 400 Bad Request Code: N/A
+ //
+ // * Code: InvalidRequest Description: SOAP requests must be made over an
+ // HTTPS connection. HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix:
+ // Client
+ //
+ // * Code: InvalidRequest Description: Amazon S3 Transfer Acceleration is
+ // not supported for buckets with non-DNS compliant names. HTTP Status Code:
+ // 400 Bad Request Code: N/A
+ //
+ // * Code: InvalidRequest Description: Amazon S3 Transfer Acceleration is
+ // not supported for buckets with periods (.) in their names. HTTP Status
+ // Code: 400 Bad Request Code: N/A
+ //
+ // * Code: InvalidRequest Description: Amazon S3 Transfer Accelerate endpoint
+ // only supports virtual style requests. HTTP Status Code: 400 Bad Request
+ // Code: N/A
+ //
+ // * Code: InvalidRequest Description: Amazon S3 Transfer Accelerate is not
+ // configured on this bucket. HTTP Status Code: 400 Bad Request Code: N/A
+ //
+ // * Code: InvalidRequest Description: Amazon S3 Transfer Accelerate is disabled
+ // on this bucket. HTTP Status Code: 400 Bad Request Code: N/A
+ //
+ // * Code: InvalidRequest Description: Amazon S3 Transfer Acceleration is
+ // not supported on this bucket. Contact AWS Support for more information.
+ // HTTP Status Code: 400 Bad Request Code: N/A
+ //
+ // * Code: InvalidRequest Description: Amazon S3 Transfer Acceleration cannot
+ // be enabled on this bucket. Contact AWS Support for more information. HTTP
+ // Status Code: 400 Bad Request Code: N/A
+ //
+ // * Code: InvalidSecurity Description: The provided security credentials
+ // are not valid. HTTP Status Code: 403 Forbidden SOAP Fault Code Prefix:
+ // Client
+ //
+ // * Code: InvalidSOAPRequest Description: The SOAP request body is invalid.
+ // HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix: Client
+ //
+ // * Code: InvalidStorageClass Description: The storage class you specified
+ // is not valid. HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix:
+ // Client
+ //
+ // * Code: InvalidTargetBucketForLogging Description: The target bucket for
+ // logging does not exist, is not owned by you, or does not have the appropriate
+ // grants for the log-delivery group. HTTP Status Code: 400 Bad Request SOAP
+ // Fault Code Prefix: Client
+ //
+ // * Code: InvalidToken Description: The provided token is malformed or otherwise
+ // invalid. HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix: Client
+ //
+ // * Code: InvalidURI Description: Couldn't parse the specified URI. HTTP
+ // Status Code: 400 Bad Request SOAP Fault Code Prefix: Client
+ //
+ // * Code: KeyTooLongError Description: Your key is too long. HTTP Status
+ // Code: 400 Bad Request SOAP Fault Code Prefix: Client
+ //
+ // * Code: MalformedACLError Description: The XML you provided was not well-formed
+ // or did not validate against our published schema. HTTP Status Code: 400
+ // Bad Request SOAP Fault Code Prefix: Client
+ //
+ // * Code: MalformedPOSTRequest Description: The body of your POST request
+ // is not well-formed multipart/form-data. HTTP Status Code: 400 Bad Request
+ // SOAP Fault Code Prefix: Client
+ //
+ // * Code: MalformedXML Description: This happens when the user sends malformed
+ // XML (XML that doesn't conform to the published XSD) for the configuration.
+ // The error message is, "The XML you provided was not well-formed or did
+ // not validate against our published schema." HTTP Status Code: 400 Bad
+ // Request SOAP Fault Code Prefix: Client
+ //
+ // * Code: MaxMessageLengthExceeded Description: Your request was too big.
+ // HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix: Client
+ //
+ // * Code: MaxPostPreDataLengthExceededError Description: Your POST request
+ // fields preceding the upload file were too large. HTTP Status Code: 400
+ // Bad Request SOAP Fault Code Prefix: Client
+ //
+ // * Code: MetadataTooLarge Description: Your metadata headers exceed the
+ // maximum allowed metadata size. HTTP Status Code: 400 Bad Request SOAP
+ // Fault Code Prefix: Client
+ //
+ // * Code: MethodNotAllowed Description: The specified method is not allowed
+ // against this resource. HTTP Status Code: 405 Method Not Allowed SOAP Fault
+ // Code Prefix: Client
+ //
+ // * Code: MissingAttachment Description: A SOAP attachment was expected,
+ // but none were found. HTTP Status Code: N/A SOAP Fault Code Prefix: Client
+ //
+ // * Code: MissingContentLength Description: You must provide the Content-Length
+ // HTTP header. HTTP Status Code: 411 Length Required SOAP Fault Code Prefix:
+ // Client
+ //
+ // * Code: MissingRequestBodyError Description: This happens when the user
+ // sends an empty XML document as a request. The error message is, "Request
+ // body is empty." HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix:
+ // Client
+ //
+ // * Code: MissingSecurityElement Description: The SOAP 1.1 request is missing
+ // a security element. HTTP Status Code: 400 Bad Request SOAP Fault Code
+ // Prefix: Client
+ //
+ // * Code: MissingSecurityHeader Description: Your request is missing a required
+ // header. HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix: Client
+ //
+ // * Code: NoLoggingStatusForKey Description: There is no such thing as a
+ // logging status subresource for a key. HTTP Status Code: 400 Bad Request
+ // SOAP Fault Code Prefix: Client
+ //
+ // * Code: NoSuchBucket Description: The specified bucket does not exist.
+ // HTTP Status Code: 404 Not Found SOAP Fault Code Prefix: Client
+ //
+ // * Code: NoSuchBucketPolicy Description: The specified bucket does not
+ // have a bucket policy. HTTP Status Code: 404 Not Found SOAP Fault Code
+ // Prefix: Client
+ //
+ // * Code: NoSuchKey Description: The specified key does not exist. HTTP
+ // Status Code: 404 Not Found SOAP Fault Code Prefix: Client
+ //
+ // * Code: NoSuchLifecycleConfiguration Description: The lifecycle configuration
+ // does not exist. HTTP Status Code: 404 Not Found SOAP Fault Code Prefix:
+ // Client
+ //
+ // * Code: NoSuchUpload Description: The specified multipart upload does
+ // not exist. The upload ID might be invalid, or the multipart upload might
+ // have been aborted or completed. HTTP Status Code: 404 Not Found SOAP Fault
+ // Code Prefix: Client
+ //
+ // * Code: NoSuchVersion Description: Indicates that the version ID specified
+ // in the request does not match an existing version. HTTP Status Code: 404
+ // Not Found SOAP Fault Code Prefix: Client
+ //
+ // * Code: NotImplemented Description: A header you provided implies functionality
+ // that is not implemented. HTTP Status Code: 501 Not Implemented SOAP Fault
+ // Code Prefix: Server
+ //
+ // * Code: NotSignedUp Description: Your account is not signed up for the
+ // Amazon S3 service. You must sign up before you can use Amazon S3. You
+ // can sign up at the following URL: https://aws.amazon.com/s3 HTTP Status
+ // Code: 403 Forbidden SOAP Fault Code Prefix: Client
+ //
+ // * Code: OperationAborted Description: A conflicting conditional operation
+ // is currently in progress against this resource. Try again. HTTP Status
+ // Code: 409 Conflict SOAP Fault Code Prefix: Client
+ //
+ // * Code: PermanentRedirect Description: The bucket you are attempting to
+ // access must be addressed using the specified endpoint. Send all future
+ // requests to this endpoint. HTTP Status Code: 301 Moved Permanently SOAP
+ // Fault Code Prefix: Client
+ //
+ // * Code: PreconditionFailed Description: At least one of the preconditions
+ // you specified did not hold. HTTP Status Code: 412 Precondition Failed
+ // SOAP Fault Code Prefix: Client
+ //
+ // * Code: Redirect Description: Temporary redirect. HTTP Status Code: 307
+ // Moved Temporarily SOAP Fault Code Prefix: Client
+ //
+ // * Code: RestoreAlreadyInProgress Description: Object restore is already
+ // in progress. HTTP Status Code: 409 Conflict SOAP Fault Code Prefix: Client
+ //
+ // * Code: RequestIsNotMultiPartContent Description: Bucket POST must be
+ // of the enclosure-type multipart/form-data. HTTP Status Code: 400 Bad Request
+ // SOAP Fault Code Prefix: Client
+ //
+ // * Code: RequestTimeout Description: Your socket connection to the server
+ // was not read from or written to within the timeout period. HTTP Status
+ // Code: 400 Bad Request SOAP Fault Code Prefix: Client
+ //
+ // * Code: RequestTimeTooSkewed Description: The difference between the request
+ // time and the server's time is too large. HTTP Status Code: 403 Forbidden
+ // SOAP Fault Code Prefix: Client
+ //
+ // * Code: RequestTorrentOfBucketError Description: Requesting the torrent
+ // file of a bucket is not permitted. HTTP Status Code: 400 Bad Request SOAP
+ // Fault Code Prefix: Client
+ //
+ // * Code: SignatureDoesNotMatch Description: The request signature we calculated
+ // does not match the signature you provided. Check your AWS secret access
+ // key and signing method. For more information, see REST Authentication
+ // (https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html)
+ // and SOAP Authentication (https://docs.aws.amazon.com/AmazonS3/latest/dev/SOAPAuthentication.html)
+ // for details. HTTP Status Code: 403 Forbidden SOAP Fault Code Prefix: Client
+ //
+ // * Code: ServiceUnavailable Description: Reduce your request rate. HTTP
+ // Status Code: 503 Service Unavailable SOAP Fault Code Prefix: Server
+ //
+ // * Code: SlowDown Description: Reduce your request rate. HTTP Status Code:
+ // 503 Slow Down SOAP Fault Code Prefix: Server
+ //
+ // * Code: TemporaryRedirect Description: You are being redirected to the
+ // bucket while DNS updates. HTTP Status Code: 307 Moved Temporarily SOAP
+ // Fault Code Prefix: Client
+ //
+ // * Code: TokenRefreshRequired Description: The provided token must be refreshed.
+ // HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix: Client
+ //
+ // * Code: TooManyBuckets Description: You have attempted to create more
+ // buckets than allowed. HTTP Status Code: 400 Bad Request SOAP Fault Code
+ // Prefix: Client
+ //
+ // * Code: UnexpectedContent Description: This request does not support content.
+ // HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix: Client
+ //
+ // * Code: UnresolvableGrantByEmailAddress Description: The email address
+ // you provided does not match any account on record. HTTP Status Code: 400
+ // Bad Request SOAP Fault Code Prefix: Client
+ //
+ // * Code: UserKeyMustBeSpecified Description: The bucket POST must contain
+ // the specified field name. If it is specified, check the order of the fields.
+ // HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix: Client
Code *string `type:"string"`
+ // The error key.
Key *string `min:"1" type:"string"`
+ // The error message contains a generic description of the error condition in
+ // English. It is intended for a human audience. Simple programs display the
+ // message directly to the end user if they encounter an error condition they
+ // don't know how or don't care to handle. Sophisticated programs with more
+ // exhaustive error handling and proper internationalization are more likely
+ // to ignore the error message.
Message *string `type:"string"`
+ // The version ID of the error.
VersionId *string `type:"string"`
}
@@ -11261,6 +15205,7 @@ func (s *Error) SetVersionId(v string) *Error {
return s
}
+// The error information.
type ErrorDocument struct {
_ struct{} `type:"structure"`
@@ -11302,6 +15247,45 @@ func (s *ErrorDocument) SetKey(v string) *ErrorDocument {
return s
}
+// Optional configuration to replicate existing source bucket objects. For more
+// information, see Replicating Existing Objects (https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-what-is-isnot-replicated.html#existing-object-replication)
+// in the Amazon S3 Developer Guide.
+type ExistingObjectReplication struct {
+ _ struct{} `type:"structure"`
+
+ // Status is a required field
+ Status *string `type:"string" required:"true" enum:"ExistingObjectReplicationStatus"`
+}
+
+// String returns the string representation
+func (s ExistingObjectReplication) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ExistingObjectReplication) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ExistingObjectReplication) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ExistingObjectReplication"}
+ if s.Status == nil {
+ invalidParams.Add(request.NewErrParamRequired("Status"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetStatus sets the Status field's value.
+func (s *ExistingObjectReplication) SetStatus(v string) *ExistingObjectReplication {
+ s.Status = &v
+ return s
+}
+
// Specifies the Amazon S3 object key name to filter on and whether to filter
// on the suffix or prefix of the key name.
type FilterRule struct {
@@ -11388,6 +15372,20 @@ func (s *GetBucketAccelerateConfigurationInput) getBucket() (v string) {
return *s.Bucket
}
+func (s *GetBucketAccelerateConfigurationInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *GetBucketAccelerateConfigurationInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type GetBucketAccelerateConfigurationOutput struct {
_ struct{} `type:"structure"`
@@ -11414,6 +15412,8 @@ func (s *GetBucketAccelerateConfigurationOutput) SetStatus(v string) *GetBucketA
type GetBucketAclInput struct {
_ struct{} `locationName:"GetBucketAclRequest" type:"structure"`
+ // Specifies the S3 bucket whose ACL is being requested.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
}
@@ -11457,12 +15457,27 @@ func (s *GetBucketAclInput) getBucket() (v string) {
return *s.Bucket
}
+func (s *GetBucketAclInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *GetBucketAclInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type GetBucketAclOutput struct {
_ struct{} `type:"structure"`
// A list of grants.
Grants []*Grant `locationName:"AccessControlList" locationNameList:"Grant" type:"list"`
+ // Container for the bucket owner's display name and ID.
Owner *Owner `type:"structure"`
}
@@ -11550,6 +15565,20 @@ func (s *GetBucketAnalyticsConfigurationInput) SetId(v string) *GetBucketAnalyti
return s
}
+func (s *GetBucketAnalyticsConfigurationInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *GetBucketAnalyticsConfigurationInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type GetBucketAnalyticsConfigurationOutput struct {
_ struct{} `type:"structure" payload:"AnalyticsConfiguration"`
@@ -11576,6 +15605,8 @@ func (s *GetBucketAnalyticsConfigurationOutput) SetAnalyticsConfiguration(v *Ana
type GetBucketCorsInput struct {
_ struct{} `locationName:"GetBucketCorsRequest" type:"structure"`
+ // The bucket name for which to get the cors configuration.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
}
@@ -11619,9 +15650,25 @@ func (s *GetBucketCorsInput) getBucket() (v string) {
return *s.Bucket
}
+func (s *GetBucketCorsInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *GetBucketCorsInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type GetBucketCorsOutput struct {
_ struct{} `type:"structure"`
+ // A set of origins and methods (cross-origin access that you want to allow).
+ // You can add up to 100 rules to the configuration.
CORSRules []*CORSRule `locationName:"CORSRule" type:"list" flattened:"true"`
}
@@ -11690,6 +15737,20 @@ func (s *GetBucketEncryptionInput) getBucket() (v string) {
return *s.Bucket
}
+func (s *GetBucketEncryptionInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *GetBucketEncryptionInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type GetBucketEncryptionOutput struct {
_ struct{} `type:"structure" payload:"ServerSideEncryptionConfiguration"`
@@ -11775,6 +15836,20 @@ func (s *GetBucketInventoryConfigurationInput) SetId(v string) *GetBucketInvento
return s
}
+func (s *GetBucketInventoryConfigurationInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *GetBucketInventoryConfigurationInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type GetBucketInventoryConfigurationOutput struct {
_ struct{} `type:"structure" payload:"InventoryConfiguration"`
@@ -11801,6 +15876,8 @@ func (s *GetBucketInventoryConfigurationOutput) SetInventoryConfiguration(v *Inv
type GetBucketLifecycleConfigurationInput struct {
_ struct{} `locationName:"GetBucketLifecycleConfigurationRequest" type:"structure"`
+ // The name of the bucket for which to get the lifecycle information.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
}
@@ -11844,9 +15921,24 @@ func (s *GetBucketLifecycleConfigurationInput) getBucket() (v string) {
return *s.Bucket
}
+func (s *GetBucketLifecycleConfigurationInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *GetBucketLifecycleConfigurationInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type GetBucketLifecycleConfigurationOutput struct {
_ struct{} `type:"structure"`
+ // Container for a lifecycle rule.
Rules []*LifecycleRule `locationName:"Rule" type:"list" flattened:"true"`
}
@@ -11869,6 +15961,8 @@ func (s *GetBucketLifecycleConfigurationOutput) SetRules(v []*LifecycleRule) *Ge
type GetBucketLifecycleInput struct {
_ struct{} `locationName:"GetBucketLifecycleRequest" type:"structure"`
+ // The name of the bucket for which to get the lifecycle information.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
}
@@ -11912,9 +16006,24 @@ func (s *GetBucketLifecycleInput) getBucket() (v string) {
return *s.Bucket
}
+func (s *GetBucketLifecycleInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *GetBucketLifecycleInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type GetBucketLifecycleOutput struct {
_ struct{} `type:"structure"`
+ // Container for a lifecycle rule.
Rules []*Rule `locationName:"Rule" type:"list" flattened:"true"`
}
@@ -11937,6 +16046,8 @@ func (s *GetBucketLifecycleOutput) SetRules(v []*Rule) *GetBucketLifecycleOutput
type GetBucketLocationInput struct {
_ struct{} `locationName:"GetBucketLocationRequest" type:"structure"`
+ // The name of the bucket for which to get the location.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
}
@@ -11980,9 +16091,25 @@ func (s *GetBucketLocationInput) getBucket() (v string) {
return *s.Bucket
}
+func (s *GetBucketLocationInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *GetBucketLocationInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type GetBucketLocationOutput struct {
_ struct{} `type:"structure"`
+ // Specifies the Region where the bucket resides. For a list of all the Amazon
+ // S3 supported location constraints by Region, see Regions and Endpoints (https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region).
LocationConstraint *string `type:"string" enum:"BucketLocationConstraint"`
}
@@ -12005,6 +16132,8 @@ func (s *GetBucketLocationOutput) SetLocationConstraint(v string) *GetBucketLoca
type GetBucketLoggingInput struct {
_ struct{} `locationName:"GetBucketLoggingRequest" type:"structure"`
+ // The bucket name for which to get the logging information.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
}
@@ -12048,6 +16177,20 @@ func (s *GetBucketLoggingInput) getBucket() (v string) {
return *s.Bucket
}
+func (s *GetBucketLoggingInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *GetBucketLoggingInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type GetBucketLoggingOutput struct {
_ struct{} `type:"structure"`
@@ -12136,6 +16279,20 @@ func (s *GetBucketMetricsConfigurationInput) SetId(v string) *GetBucketMetricsCo
return s
}
+func (s *GetBucketMetricsConfigurationInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *GetBucketMetricsConfigurationInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type GetBucketMetricsConfigurationOutput struct {
_ struct{} `type:"structure" payload:"MetricsConfiguration"`
@@ -12162,7 +16319,7 @@ func (s *GetBucketMetricsConfigurationOutput) SetMetricsConfiguration(v *Metrics
type GetBucketNotificationConfigurationRequest struct {
_ struct{} `locationName:"GetBucketNotificationConfigurationRequest" type:"structure"`
- // Name of the bucket to get the notification configuration for.
+ // Name of the bucket for which to get the notification configuration
//
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
@@ -12207,9 +16364,25 @@ func (s *GetBucketNotificationConfigurationRequest) getBucket() (v string) {
return *s.Bucket
}
+func (s *GetBucketNotificationConfigurationRequest) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *GetBucketNotificationConfigurationRequest) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type GetBucketPolicyInput struct {
_ struct{} `locationName:"GetBucketPolicyRequest" type:"structure"`
+ // The bucket name for which to get the bucket policy.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
}
@@ -12253,6 +16426,20 @@ func (s *GetBucketPolicyInput) getBucket() (v string) {
return *s.Bucket
}
+func (s *GetBucketPolicyInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *GetBucketPolicyInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type GetBucketPolicyOutput struct {
_ struct{} `type:"structure" payload:"Policy"`
@@ -12324,6 +16511,20 @@ func (s *GetBucketPolicyStatusInput) getBucket() (v string) {
return *s.Bucket
}
+func (s *GetBucketPolicyStatusInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *GetBucketPolicyStatusInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type GetBucketPolicyStatusOutput struct {
_ struct{} `type:"structure" payload:"PolicyStatus"`
@@ -12350,6 +16551,8 @@ func (s *GetBucketPolicyStatusOutput) SetPolicyStatus(v *PolicyStatus) *GetBucke
type GetBucketReplicationInput struct {
_ struct{} `locationName:"GetBucketReplicationRequest" type:"structure"`
+ // The bucket name for which to get the replication information.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
}
@@ -12393,6 +16596,20 @@ func (s *GetBucketReplicationInput) getBucket() (v string) {
return *s.Bucket
}
+func (s *GetBucketReplicationInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *GetBucketReplicationInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type GetBucketReplicationOutput struct {
_ struct{} `type:"structure" payload:"ReplicationConfiguration"`
@@ -12420,6 +16637,8 @@ func (s *GetBucketReplicationOutput) SetReplicationConfiguration(v *ReplicationC
type GetBucketRequestPaymentInput struct {
_ struct{} `locationName:"GetBucketRequestPaymentRequest" type:"structure"`
+ // The name of the bucket for which to get the payment request configuration
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
}
@@ -12463,6 +16682,20 @@ func (s *GetBucketRequestPaymentInput) getBucket() (v string) {
return *s.Bucket
}
+func (s *GetBucketRequestPaymentInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *GetBucketRequestPaymentInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type GetBucketRequestPaymentOutput struct {
_ struct{} `type:"structure"`
@@ -12489,6 +16722,8 @@ func (s *GetBucketRequestPaymentOutput) SetPayer(v string) *GetBucketRequestPaym
type GetBucketTaggingInput struct {
_ struct{} `locationName:"GetBucketTaggingRequest" type:"structure"`
+ // The name of the bucket for which to get the tagging information.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
}
@@ -12532,9 +16767,25 @@ func (s *GetBucketTaggingInput) getBucket() (v string) {
return *s.Bucket
}
+func (s *GetBucketTaggingInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *GetBucketTaggingInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type GetBucketTaggingOutput struct {
_ struct{} `type:"structure"`
+ // Contains the tag set.
+ //
// TagSet is a required field
TagSet []*Tag `locationNameList:"Tag" type:"list" required:"true"`
}
@@ -12558,6 +16809,8 @@ func (s *GetBucketTaggingOutput) SetTagSet(v []*Tag) *GetBucketTaggingOutput {
type GetBucketVersioningInput struct {
_ struct{} `locationName:"GetBucketVersioningRequest" type:"structure"`
+ // The name of the bucket for which to get the versioning information.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
}
@@ -12601,6 +16854,20 @@ func (s *GetBucketVersioningInput) getBucket() (v string) {
return *s.Bucket
}
+func (s *GetBucketVersioningInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *GetBucketVersioningInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type GetBucketVersioningOutput struct {
_ struct{} `type:"structure"`
@@ -12638,6 +16905,8 @@ func (s *GetBucketVersioningOutput) SetStatus(v string) *GetBucketVersioningOutp
type GetBucketWebsiteInput struct {
_ struct{} `locationName:"GetBucketWebsiteRequest" type:"structure"`
+ // The bucket name for which to get the website configuration.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
}
@@ -12681,17 +16950,34 @@ func (s *GetBucketWebsiteInput) getBucket() (v string) {
return *s.Bucket
}
+func (s *GetBucketWebsiteInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *GetBucketWebsiteInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type GetBucketWebsiteOutput struct {
_ struct{} `type:"structure"`
+ // The name of the error document for the website.
ErrorDocument *ErrorDocument `type:"structure"`
+ // The name of the index document for the website.
IndexDocument *IndexDocument `type:"structure"`
// Specifies the redirect behavior of all requests to a website endpoint of
// an Amazon S3 bucket.
RedirectAllRequestsTo *RedirectAllRequestsTo `type:"structure"`
+ // Rules that define when a redirect is applied and the redirect behavior.
RoutingRules []*RoutingRule `locationNameList:"RoutingRule" type:"list"`
}
@@ -12732,16 +17018,28 @@ func (s *GetBucketWebsiteOutput) SetRoutingRules(v []*RoutingRule) *GetBucketWeb
type GetObjectAclInput struct {
_ struct{} `locationName:"GetObjectAclRequest" type:"structure"`
+ // The bucket name that contains the object for which to get the ACL information.
+ //
+ // When using this API with an access point, you must direct requests to the
+ // access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com.
+ // When using this operation using an access point through the AWS SDKs, you
+ // provide the access point ARN in place of the bucket name. For more information
+ // about access point ARNs, see Using Access Points (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html)
+ // in the Amazon Simple Storage Service Developer Guide.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
+ // The key of the object for which to get the ACL information.
+ //
// Key is a required field
Key *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
- // request. Bucket owners need not specify this parameter in their requests.
- // Documentation on downloading objects from requester pays buckets can be found
- // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
+ // Confirms that the requester knows that they will be charged for the request.
+ // Bucket owners need not specify this parameter in their requests. For information
+ // about downloading objects from requester pays buckets, see Downloading Objects
+ // in Requestor Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html)
+ // in the Amazon S3 Developer Guide.
RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
// VersionId used to reference a specific version of the object.
@@ -12811,12 +17109,27 @@ func (s *GetObjectAclInput) SetVersionId(v string) *GetObjectAclInput {
return s
}
+func (s *GetObjectAclInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *GetObjectAclInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type GetObjectAclOutput struct {
_ struct{} `type:"structure"`
// A list of grants.
Grants []*Grant `locationName:"AccessControlList" locationNameList:"Grant" type:"list"`
+ // Container for the bucket owner's display name and ID.
Owner *Owner `type:"structure"`
// If present, indicates that the requester was successfully charged for the
@@ -12855,6 +17168,15 @@ func (s *GetObjectAclOutput) SetRequestCharged(v string) *GetObjectAclOutput {
type GetObjectInput struct {
_ struct{} `locationName:"GetObjectRequest" type:"structure"`
+ // The bucket name containing the object.
+ //
+ // When using this API with an access point, you must direct requests to the
+ // access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com.
+ // When using this operation using an access point through the AWS SDKs, you
+ // provide the access point ARN in place of the bucket name. For more information
+ // about access point ARNs, see Using Access Points (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html)
+ // in the Amazon Simple Storage Service Developer Guide.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
@@ -12874,6 +17196,8 @@ type GetObjectInput struct {
// otherwise return a 412 (precondition failed).
IfUnmodifiedSince *time.Time `location:"header" locationName:"If-Unmodified-Since" type:"timestamp"`
+ // Key of the object to get.
+ //
// Key is a required field
Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
@@ -12883,13 +17207,14 @@ type GetObjectInput struct {
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.
+ // the HTTP Range header, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.
Range *string `location:"header" locationName:"Range" type:"string"`
- // Confirms that the requester knows that she or he will be charged for the
- // request. Bucket owners need not specify this parameter in their requests.
- // Documentation on downloading objects from requester pays buckets can be found
- // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
+ // Confirms that the requester knows that they will be charged for the request.
+ // Bucket owners need not specify this parameter in their requests. For information
+ // about downloading objects from requester pays buckets, see Downloading Objects
+ // in Requestor Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html)
+ // in the Amazon S3 Developer Guide.
RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
// Sets the Cache-Control header of the response.
@@ -12910,19 +17235,20 @@ type GetObjectInput struct {
// Sets the Expires header of the response.
ResponseExpires *time.Time `location:"querystring" locationName:"response-expires" type:"timestamp"`
- // Specifies the algorithm to use to when encrypting the object (e.g., AES256).
+ // Specifies the algorithm to use to when encrypting the object (for example,
+ // AES256).
SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
// Specifies the customer-provided encryption key for Amazon S3 to use in encrypting
// data. This value is used to store the object and then it is discarded; Amazon
- // does not store the encryption key. The key must be appropriate for use with
- // the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm
+ // S3 does not store the encryption key. The key must be appropriate for use
+ // with the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm
// header.
SSECustomerKey *string `marshal-as:"blob" location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string" sensitive:"true"`
// Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321.
- // Amazon S3 uses this header for a message integrity check to ensure the encryption
- // key was transmitted without error.
+ // Amazon S3 uses this header for a message integrity check to ensure that the
+ // encryption key was transmitted without error.
SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
// VersionId used to reference a specific version of the object.
@@ -13089,10 +17415,32 @@ func (s *GetObjectInput) SetVersionId(v string) *GetObjectInput {
return s
}
+func (s *GetObjectInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *GetObjectInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type GetObjectLegalHoldInput struct {
_ struct{} `locationName:"GetObjectLegalHoldRequest" type:"structure"`
- // The bucket containing the object whose Legal Hold status you want to retrieve.
+ // The bucket name containing the object whose Legal Hold status you want to
+ // retrieve.
+ //
+ // When using this API with an access point, you must direct requests to the
+ // access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com.
+ // When using this operation using an access point through the AWS SDKs, you
+ // provide the access point ARN in place of the bucket name. For more information
+ // about access point ARNs, see Using Access Points (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html)
+ // in the Amazon Simple Storage Service Developer Guide.
//
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
@@ -13102,10 +17450,11 @@ type GetObjectLegalHoldInput struct {
// Key is a required field
Key *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
- // request. Bucket owners need not specify this parameter in their requests.
- // Documentation on downloading objects from requester pays buckets can be found
- // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
+ // Confirms that the requester knows that they will be charged for the request.
+ // Bucket owners need not specify this parameter in their requests. For information
+ // about downloading objects from requester pays buckets, see Downloading Objects
+ // in Requestor Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html)
+ // in the Amazon S3 Developer Guide.
RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
// The version ID of the object whose Legal Hold status you want to retrieve.
@@ -13175,6 +17524,20 @@ func (s *GetObjectLegalHoldInput) SetVersionId(v string) *GetObjectLegalHoldInpu
return s
}
+func (s *GetObjectLegalHoldInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *GetObjectLegalHoldInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type GetObjectLegalHoldOutput struct {
_ struct{} `type:"structure" payload:"LegalHold"`
@@ -13201,7 +17564,7 @@ func (s *GetObjectLegalHoldOutput) SetLegalHold(v *ObjectLockLegalHold) *GetObje
type GetObjectLockConfigurationInput struct {
_ struct{} `locationName:"GetObjectLockConfigurationRequest" type:"structure"`
- // The bucket whose object lock configuration you want to retrieve.
+ // The bucket whose Object Lock configuration you want to retrieve.
//
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
@@ -13246,10 +17609,24 @@ func (s *GetObjectLockConfigurationInput) getBucket() (v string) {
return *s.Bucket
}
+func (s *GetObjectLockConfigurationInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *GetObjectLockConfigurationInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type GetObjectLockConfigurationOutput struct {
_ struct{} `type:"structure" payload:"ObjectLockConfiguration"`
- // The specified bucket's object lock configuration.
+ // The specified bucket's Object Lock configuration.
ObjectLockConfiguration *ObjectLockConfiguration `type:"structure"`
}
@@ -13272,6 +17649,7 @@ func (s *GetObjectLockConfigurationOutput) SetObjectLockConfiguration(v *ObjectL
type GetObjectOutput struct {
_ struct{} `type:"structure" payload:"Body"`
+ // Indicates that a range of bytes was specified.
AcceptRanges *string `location:"header" locationName:"accept-ranges" type:"string"`
// Object data.
@@ -13305,11 +17683,11 @@ type GetObjectOutput struct {
DeleteMarker *bool `location:"header" locationName:"x-amz-delete-marker" type:"boolean"`
// An ETag is an opaque identifier assigned by a web server to a specific version
- // of a resource found at a URL
+ // of a resource found at a URL.
ETag *string `location:"header" locationName:"ETag" type:"string"`
// If the object expiration is configured (see PUT Bucket lifecycle), the response
- // includes this header. It includes the expiry-date and rule-id key value pairs
+ // includes this header. It includes the expiry-date and rule-id key-value pairs
// providing object expiration information. The value of the rule-id is URL
// encoded.
Expiration *string `location:"header" locationName:"x-amz-expiration" type:"string"`
@@ -13321,6 +17699,10 @@ type GetObjectOutput struct {
LastModified *time.Time `location:"header" locationName:"Last-Modified" type:"timestamp"`
// A map of metadata to store with the object in S3.
+ //
+ // By default unmarshaled keys are written as a map keys in following canonicalized format:
+ // the first letter and any letter following a hyphen will be capitalized, and the rest as lowercase.
+ // Set `aws.Config.LowerCaseHeaderMaps` to `true` to write unmarshaled keys to the map as lowercase.
Metadata map[string]*string `location:"headers" locationName:"x-amz-meta-" type:"map"`
// This is set to the number of metadata entries not returned in x-amz-meta
@@ -13333,15 +17715,17 @@ type GetObjectOutput struct {
// returned if you have permission to view an object's legal hold status.
ObjectLockLegalHoldStatus *string `location:"header" locationName:"x-amz-object-lock-legal-hold" type:"string" enum:"ObjectLockLegalHoldStatus"`
- // The object lock mode currently in place for this object.
+ // The Object Lock mode currently in place for this object.
ObjectLockMode *string `location:"header" locationName:"x-amz-object-lock-mode" type:"string" enum:"ObjectLockMode"`
- // The date and time when this object's object lock will expire.
+ // The date and time when this object's Object Lock will expire.
ObjectLockRetainUntilDate *time.Time `location:"header" locationName:"x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"iso8601"`
// The count of parts this object has.
PartsCount *int64 `location:"header" locationName:"x-amz-mp-parts-count" type:"integer"`
+ // Amazon S3 can return this if your request involves a bucket that is either
+ // a source or destination in a replication rule.
ReplicationStatus *string `location:"header" locationName:"x-amz-replication-status" type:"string" enum:"ReplicationStatus"`
// If present, indicates that the requester was successfully charged for the
@@ -13358,18 +17742,21 @@ type GetObjectOutput struct {
SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
// If server-side encryption with a customer-provided encryption key was requested,
- // the response will include this header to provide round trip message integrity
+ // the response will include this header to provide round-trip message integrity
// verification of the customer-provided encryption key.
SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
- // If present, specifies the ID of the AWS Key Management Service (KMS) master
- // encryption key that was used for the object.
+ // If present, specifies the ID of the AWS Key Management Service (AWS KMS)
+ // symmetric customer managed customer master key (CMK) that was used for the
+ // object.
SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"`
- // The Server-side encryption algorithm used when storing this object in S3
- // (e.g., AES256, aws:kms).
+ // The server-side encryption algorithm used when storing this object in Amazon
+ // S3 (for example, AES256, aws:kms).
ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"`
+ // Provides storage class information of the object. Amazon S3 returns this
+ // header for all objects except for Standard storage class objects.
StorageClass *string `location:"header" locationName:"x-amz-storage-class" type:"string" enum:"StorageClass"`
// The number of tags, if any, on the object.
@@ -13583,7 +17970,15 @@ func (s *GetObjectOutput) SetWebsiteRedirectLocation(v string) *GetObjectOutput
type GetObjectRetentionInput struct {
_ struct{} `locationName:"GetObjectRetentionRequest" type:"structure"`
- // The bucket containing the object whose retention settings you want to retrieve.
+ // The bucket name containing the object whose retention settings you want to
+ // retrieve.
+ //
+ // When using this API with an access point, you must direct requests to the
+ // access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com.
+ // When using this operation using an access point through the AWS SDKs, you
+ // provide the access point ARN in place of the bucket name. For more information
+ // about access point ARNs, see Using Access Points (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html)
+ // in the Amazon Simple Storage Service Developer Guide.
//
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
@@ -13593,10 +17988,11 @@ type GetObjectRetentionInput struct {
// Key is a required field
Key *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
- // request. Bucket owners need not specify this parameter in their requests.
- // Documentation on downloading objects from requester pays buckets can be found
- // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
+ // Confirms that the requester knows that they will be charged for the request.
+ // Bucket owners need not specify this parameter in their requests. For information
+ // about downloading objects from requester pays buckets, see Downloading Objects
+ // in Requestor Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html)
+ // in the Amazon S3 Developer Guide.
RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
// The version ID for the object whose retention settings you want to retrieve.
@@ -13666,6 +18062,20 @@ func (s *GetObjectRetentionInput) SetVersionId(v string) *GetObjectRetentionInpu
return s
}
+func (s *GetObjectRetentionInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *GetObjectRetentionInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type GetObjectRetentionOutput struct {
_ struct{} `type:"structure" payload:"Retention"`
@@ -13692,12 +18102,24 @@ func (s *GetObjectRetentionOutput) SetRetention(v *ObjectLockRetention) *GetObje
type GetObjectTaggingInput struct {
_ struct{} `locationName:"GetObjectTaggingRequest" type:"structure"`
+ // The bucket name containing the object for which to get the tagging information.
+ //
+ // When using this API with an access point, you must direct requests to the
+ // access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com.
+ // When using this operation using an access point through the AWS SDKs, you
+ // provide the access point ARN in place of the bucket name. For more information
+ // about access point ARNs, see Using Access Points (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html)
+ // in the Amazon Simple Storage Service Developer Guide.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
+ // Object key for which to get the tagging information.
+ //
// Key is a required field
Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
+ // The versionId of the object for which to get the tagging information.
VersionId *string `location:"querystring" locationName:"versionId" type:"string"`
}
@@ -13758,12 +18180,29 @@ func (s *GetObjectTaggingInput) SetVersionId(v string) *GetObjectTaggingInput {
return s
}
+func (s *GetObjectTaggingInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *GetObjectTaggingInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type GetObjectTaggingOutput struct {
_ struct{} `type:"structure"`
+ // Contains the tag set.
+ //
// TagSet is a required field
TagSet []*Tag `locationNameList:"Tag" type:"list" required:"true"`
+ // The versionId of the object for which you got the tagging information.
VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"`
}
@@ -13792,16 +18231,22 @@ func (s *GetObjectTaggingOutput) SetVersionId(v string) *GetObjectTaggingOutput
type GetObjectTorrentInput struct {
_ struct{} `locationName:"GetObjectTorrentRequest" type:"structure"`
+ // The name of the bucket containing the object for which to get the torrent
+ // files.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
+ // The object key for which to get the information.
+ //
// Key is a required field
Key *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
- // request. Bucket owners need not specify this parameter in their requests.
- // Documentation on downloading objects from requester pays buckets can be found
- // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
+ // Confirms that the requester knows that they will be charged for the request.
+ // Bucket owners need not specify this parameter in their requests. For information
+ // about downloading objects from requester pays buckets, see Downloading Objects
+ // in Requestor Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html)
+ // in the Amazon S3 Developer Guide.
RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
}
@@ -13862,9 +18307,24 @@ func (s *GetObjectTorrentInput) SetRequestPayer(v string) *GetObjectTorrentInput
return s
}
+func (s *GetObjectTorrentInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *GetObjectTorrentInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type GetObjectTorrentOutput struct {
_ struct{} `type:"structure" payload:"Body"`
+ // A Bencoded dictionary as defined by the BitTorrent specification
Body io.ReadCloser `type:"blob"`
// If present, indicates that the requester was successfully charged for the
@@ -13943,6 +18403,20 @@ func (s *GetPublicAccessBlockInput) getBucket() (v string) {
return *s.Bucket
}
+func (s *GetPublicAccessBlockInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *GetPublicAccessBlockInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type GetPublicAccessBlockOutput struct {
_ struct{} `type:"structure" payload:"PublicAccessBlockConfiguration"`
@@ -13967,6 +18441,7 @@ func (s *GetPublicAccessBlockOutput) SetPublicAccessBlockConfiguration(v *Public
return s
}
+// Container for Glacier job parameters.
type GlacierJobParameters struct {
_ struct{} `type:"structure"`
@@ -14005,9 +18480,11 @@ func (s *GlacierJobParameters) SetTier(v string) *GlacierJobParameters {
return s
}
+// Container for grant information.
type Grant struct {
_ struct{} `type:"structure"`
+ // The person being granted permissions.
Grantee *Grantee `type:"structure" xmlPrefix:"xsi" xmlURI:"http://www.w3.org/2001/XMLSchema-instance"`
// Specifies the permission given to the grantee.
@@ -14051,6 +18528,7 @@ func (s *Grant) SetPermission(v string) *Grant {
return s
}
+// Container for the person being granted permissions.
type Grantee struct {
_ struct{} `type:"structure" xmlPrefix:"xsi" xmlURI:"http://www.w3.org/2001/XMLSchema-instance"`
@@ -14128,6 +18606,8 @@ func (s *Grantee) SetURI(v string) *Grantee {
type HeadBucketInput struct {
_ struct{} `locationName:"HeadBucketRequest" type:"structure"`
+ // The bucket name.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
}
@@ -14171,6 +18651,20 @@ func (s *HeadBucketInput) getBucket() (v string) {
return *s.Bucket
}
+func (s *HeadBucketInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *HeadBucketInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type HeadBucketOutput struct {
_ struct{} `type:"structure"`
}
@@ -14188,6 +18682,8 @@ func (s HeadBucketOutput) GoString() string {
type HeadObjectInput struct {
_ struct{} `locationName:"HeadObjectRequest" type:"structure"`
+ // The name of the bucket containing the object.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
@@ -14207,6 +18703,8 @@ type HeadObjectInput struct {
// otherwise return a 412 (precondition failed).
IfUnmodifiedSince *time.Time `location:"header" locationName:"If-Unmodified-Since" type:"timestamp"`
+ // The object key.
+ //
// Key is a required field
Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
@@ -14217,28 +18715,30 @@ type HeadObjectInput struct {
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.
+ // the HTTP Range header, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.
Range *string `location:"header" locationName:"Range" type:"string"`
- // Confirms that the requester knows that she or he will be charged for the
- // request. Bucket owners need not specify this parameter in their requests.
- // Documentation on downloading objects from requester pays buckets can be found
- // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
+ // Confirms that the requester knows that they will be charged for the request.
+ // Bucket owners need not specify this parameter in their requests. For information
+ // about downloading objects from requester pays buckets, see Downloading Objects
+ // in Requestor Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html)
+ // in the Amazon S3 Developer Guide.
RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
- // Specifies the algorithm to use to when encrypting the object (e.g., AES256).
+ // Specifies the algorithm to use to when encrypting the object (for example,
+ // AES256).
SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
// Specifies the customer-provided encryption key for Amazon S3 to use in encrypting
// data. This value is used to store the object and then it is discarded; Amazon
- // does not store the encryption key. The key must be appropriate for use with
- // the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm
+ // S3 does not store the encryption key. The key must be appropriate for use
+ // with the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm
// header.
SSECustomerKey *string `marshal-as:"blob" location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string" sensitive:"true"`
// Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321.
- // Amazon S3 uses this header for a message integrity check to ensure the encryption
- // key was transmitted without error.
+ // Amazon S3 uses this header for a message integrity check to ensure that the
+ // encryption key was transmitted without error.
SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
// VersionId used to reference a specific version of the object.
@@ -14369,9 +18869,24 @@ func (s *HeadObjectInput) SetVersionId(v string) *HeadObjectInput {
return s
}
+func (s *HeadObjectInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *HeadObjectInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type HeadObjectOutput struct {
_ struct{} `type:"structure"`
+ // Indicates that a range of bytes was specified.
AcceptRanges *string `location:"header" locationName:"accept-ranges" type:"string"`
// Specifies caching behavior along the request/reply chain.
@@ -14399,11 +18914,11 @@ type HeadObjectOutput struct {
DeleteMarker *bool `location:"header" locationName:"x-amz-delete-marker" type:"boolean"`
// An ETag is an opaque identifier assigned by a web server to a specific version
- // of a resource found at a URL
+ // of a resource found at a URL.
ETag *string `location:"header" locationName:"ETag" type:"string"`
// If the object expiration is configured (see PUT Bucket lifecycle), the response
- // includes this header. It includes the expiry-date and rule-id key value pairs
+ // includes this header. It includes the expiry-date and rule-id key-value pairs
// providing object expiration information. The value of the rule-id is URL
// encoded.
Expiration *string `location:"header" locationName:"x-amz-expiration" type:"string"`
@@ -14415,6 +18930,10 @@ type HeadObjectOutput struct {
LastModified *time.Time `location:"header" locationName:"Last-Modified" type:"timestamp"`
// A map of metadata to store with the object in S3.
+ //
+ // By default unmarshaled keys are written as a map keys in following canonicalized format:
+ // the first letter and any letter following a hyphen will be capitalized, and the rest as lowercase.
+ // Set `aws.Config.LowerCaseHeaderMaps` to `true` to write unmarshaled keys to the map as lowercase.
Metadata map[string]*string `location:"headers" locationName:"x-amz-meta-" type:"map"`
// This is set to the number of metadata entries not returned in x-amz-meta
@@ -14423,26 +18942,69 @@ 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 Legal Hold status for the specified object.
+ // Specifies whether a legal hold is in effect for this object. This header
+ // is only returned if the requester has the s3:GetObjectLegalHold permission.
+ // This header is not returned if the specified version of this object has never
+ // had a legal hold applied. For more information about S3 Object Lock, see
+ // Object Lock (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html).
ObjectLockLegalHoldStatus *string `location:"header" locationName:"x-amz-object-lock-legal-hold" type:"string" enum:"ObjectLockLegalHoldStatus"`
- // The object lock mode currently in place for this object.
+ // The Object Lock mode, if any, that's in effect for this object. This header
+ // is only returned if the requester has the s3:GetObjectRetention permission.
+ // For more information about S3 Object Lock, see Object Lock (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html).
ObjectLockMode *string `location:"header" locationName:"x-amz-object-lock-mode" type:"string" enum:"ObjectLockMode"`
- // The date and time when this object's object lock expires.
+ // The date and time when the Object Lock retention period expires. This header
+ // is only returned if the requester has the s3:GetObjectRetention permission.
ObjectLockRetainUntilDate *time.Time `location:"header" locationName:"x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"iso8601"`
// The count of parts this object has.
PartsCount *int64 `location:"header" locationName:"x-amz-mp-parts-count" type:"integer"`
+ // Amazon S3 can return this header if your request involves a bucket that is
+ // either a source or destination in a replication rule.
+ //
+ // In replication, you have a source bucket on which you configure replication
+ // and destination bucket where Amazon S3 stores object replicas. When you request
+ // an object (GetObject) or object metadata (HeadObject) from these buckets,
+ // Amazon S3 will return the x-amz-replication-status header in the response
+ // as follows:
+ //
+ // * If requesting an object from the source bucket — Amazon S3 will return
+ // the x-amz-replication-status header if the object in your request is eligible
+ // for replication. For example, suppose that in your replication configuration,
+ // you specify object prefix TaxDocs requesting Amazon S3 to replicate objects
+ // with key prefix TaxDocs. Any objects you upload with this key name prefix,
+ // for example TaxDocs/document1.pdf, are eligible for replication. For any
+ // object request with this key name prefix, Amazon S3 will return the x-amz-replication-status
+ // header with value PENDING, COMPLETED or FAILED indicating object replication
+ // status.
+ //
+ // * If requesting an object from the destination bucket — Amazon S3 will
+ // return the x-amz-replication-status header with value REPLICA if the object
+ // in your request is a replica that Amazon S3 created.
+ //
+ // For more information, see Replication (https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html).
ReplicationStatus *string `location:"header" locationName:"x-amz-replication-status" type:"string" enum:"ReplicationStatus"`
// If present, indicates that the requester was successfully charged for the
// request.
RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"`
- // Provides information about object restoration operation and expiration time
- // of the restored object copy.
+ // If the object is an archived object (an object whose storage class is GLACIER),
+ // the response includes this header if either the archive restoration is in
+ // progress (see RestoreObject or an archive copy is already restored.
+ //
+ // If an archive copy is already restored, the header value indicates when Amazon
+ // S3 is scheduled to delete the object copy. For example:
+ //
+ // x-amz-restore: ongoing-request="false", expiry-date="Fri, 23 Dec 2012 00:00:00
+ // GMT"
+ //
+ // If the object restoration is in progress, the header returns the value ongoing-request="true".
+ //
+ // For more information about archiving objects, see Transitioning Objects:
+ // General Considerations (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html#lifecycle-transition-general-considerations).
Restore *string `location:"header" locationName:"x-amz-restore" type:"string"`
// If server-side encryption with a customer-provided encryption key was requested,
@@ -14451,18 +19013,25 @@ type HeadObjectOutput struct {
SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
// If server-side encryption with a customer-provided encryption key was requested,
- // the response will include this header to provide round trip message integrity
+ // the response will include this header to provide round-trip message integrity
// verification of the customer-provided encryption key.
SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
- // If present, specifies the ID of the AWS Key Management Service (KMS) master
- // encryption key that was used for the object.
+ // If present, specifies the ID of the AWS Key Management Service (AWS KMS)
+ // symmetric customer managed customer master key (CMK) that was used for the
+ // object.
SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"`
- // The Server-side encryption algorithm used when storing this object in S3
- // (e.g., AES256, aws:kms).
+ // If the object is stored using server-side encryption either with an AWS KMS
+ // customer master key (CMK) or an Amazon S3-managed encryption key, the response
+ // includes this header with the value of the server-side encryption algorithm
+ // used when storing this object in Amazon S3 (for example, AES256, aws:kms).
ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"`
+ // Provides storage class information of the object. Amazon S3 returns this
+ // header for all objects except for Standard storage class objects.
+ //
+ // For more information, see Storage Classes (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html).
StorageClass *string `location:"header" locationName:"x-amz-storage-class" type:"string" enum:"StorageClass"`
// Version of the object.
@@ -14652,13 +19221,15 @@ func (s *HeadObjectOutput) SetWebsiteRedirectLocation(v string) *HeadObjectOutpu
return s
}
+// Container for the Suffix element.
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.
+ // endpoint (for example,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"`
@@ -14693,6 +19264,7 @@ func (s *IndexDocument) SetSuffix(v string) *IndexDocument {
return s
}
+// Container element that identifies who initiated the multipart upload.
type Initiator struct {
_ struct{} `type:"structure"`
@@ -14913,6 +19485,7 @@ func (s *InventoryConfiguration) SetSchedule(v *InventorySchedule) *InventoryCon
return s
}
+// Specifies the inventory configuration for an Amazon S3 bucket.
type InventoryDestination struct {
_ struct{} `type:"structure"`
@@ -14962,10 +19535,10 @@ func (s *InventoryDestination) SetS3BucketDestination(v *InventoryS3BucketDestin
type InventoryEncryption struct {
_ struct{} `type:"structure"`
- // Specifies the use of SSE-KMS to encrypt delivered Inventory reports.
+ // Specifies the use of SSE-KMS to encrypt delivered inventory reports.
SSEKMS *SSEKMS `locationName:"SSE-KMS" type:"structure"`
- // Specifies the use of SSE-S3 to encrypt delivered Inventory reports.
+ // Specifies the use of SSE-S3 to encrypt delivered inventory reports.
SSES3 *SSES3 `locationName:"SSE-S3" type:"structure"`
}
@@ -15006,6 +19579,8 @@ func (s *InventoryEncryption) SetSSES3(v *SSES3) *InventoryEncryption {
return s
}
+// Specifies an inventory filter. The inventory only includes objects that meet
+// the filter's criteria.
type InventoryFilter struct {
_ struct{} `type:"structure"`
@@ -15044,13 +19619,15 @@ func (s *InventoryFilter) SetPrefix(v string) *InventoryFilter {
return s
}
+// Contains the bucket name, file format, bucket owner (optional), and prefix
+// (optional) where inventory results are published.
type InventoryS3BucketDestination struct {
_ struct{} `type:"structure"`
// The ID of the account that owns the destination bucket.
AccountId *string `type:"string"`
- // The Amazon resource name (ARN) of the bucket where inventory results will
+ // The Amazon Resource Name (ARN) of the bucket where inventory results will
// be published.
//
// Bucket is a required field
@@ -15137,6 +19714,7 @@ func (s *InventoryS3BucketDestination) SetPrefix(v string) *InventoryS3BucketDes
return s
}
+// Specifies the schedule for generating inventory results.
type InventorySchedule struct {
_ struct{} `type:"structure"`
@@ -15175,6 +19753,7 @@ func (s *InventorySchedule) SetFrequency(v string) *InventorySchedule {
return s
}
+// Specifies JSON as object's input serialization format.
type JSONInput struct {
_ struct{} `type:"structure"`
@@ -15198,6 +19777,7 @@ func (s *JSONInput) SetType(v string) *JSONInput {
return s
}
+// Specifies JSON as request's output serialization format.
type JSONOutput struct {
_ struct{} `type:"structure"`
@@ -15225,7 +19805,7 @@ func (s *JSONOutput) SetRecordDelimiter(v string) *JSONOutput {
type KeyFilter struct {
_ struct{} `type:"structure"`
- // A list of containers for the key value pair that defines the criteria for
+ // A list of containers for the key-value pair that defines the criteria for
// the filter rule.
FilterRules []*FilterRule `locationName:"FilterRule" type:"list" flattened:"true"`
}
@@ -15323,9 +19903,12 @@ func (s *LambdaFunctionConfiguration) SetLambdaFunctionArn(v string) *LambdaFunc
return s
}
+// Container for lifecycle rules. You can add as many as 1000 rules.
type LifecycleConfiguration struct {
_ struct{} `type:"structure"`
+ // Specifies lifecycle configuration rules for an Amazon S3 bucket.
+ //
// Rules is a required field
Rules []*Rule `locationName:"Rule" type:"list" flattened:"true" required:"true"`
}
@@ -15369,6 +19952,7 @@ func (s *LifecycleConfiguration) SetRules(v []*Rule) *LifecycleConfiguration {
return s
}
+// Container for the expiration for the lifecycle of the object.
type LifecycleExpiration struct {
_ struct{} `type:"structure"`
@@ -15415,6 +19999,7 @@ func (s *LifecycleExpiration) SetExpiredObjectDeleteMarker(v bool) *LifecycleExp
return s
}
+// A lifecycle rule for individual objects in an Amazon S3 bucket.
type LifecycleRule struct {
_ struct{} `type:"structure"`
@@ -15425,6 +20010,8 @@ type LifecycleRule struct {
// in the Amazon Simple Storage Service Developer Guide.
AbortIncompleteMultipartUpload *AbortIncompleteMultipartUpload `type:"structure"`
+ // Specifies the expiration for the lifecycle of the object in the form of date,
+ // days and, whether the object has a delete marker.
Expiration *LifecycleExpiration `type:"structure"`
// The Filter is used to identify objects that a Lifecycle Rule applies to.
@@ -15441,6 +20028,11 @@ type LifecycleRule struct {
// period in the object's lifetime.
NoncurrentVersionExpiration *NoncurrentVersionExpiration `type:"structure"`
+ // Specifies the transition rule for the lifecycle rule that describes when
+ // noncurrent objects transition to a specific 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 a specific
+ // storage class at a set period in the object's lifetime.
NoncurrentVersionTransitions []*NoncurrentVersionTransition `locationName:"NoncurrentVersionTransition" type:"list" flattened:"true"`
// Prefix identifying one or more objects to which the rule applies. This is
@@ -15455,6 +20047,7 @@ type LifecycleRule struct {
// Status is a required field
Status *string `type:"string" required:"true" enum:"ExpirationStatus"`
+ // Specifies when an Amazon S3 object transitions to a specified storage class.
Transitions []*Transition `locationName:"Transition" type:"list" flattened:"true"`
}
@@ -15546,6 +20139,7 @@ func (s *LifecycleRule) SetTransitions(v []*Transition) *LifecycleRule {
type LifecycleRuleAndOperator struct {
_ struct{} `type:"structure"`
+ // Prefix identifying one or more objects to which the rule applies.
Prefix *string `type:"string"`
// All of these tags must exist in the object's tag set in order for the rule
@@ -15718,13 +20312,28 @@ func (s *ListBucketAnalyticsConfigurationsInput) SetContinuationToken(v string)
return s
}
+func (s *ListBucketAnalyticsConfigurationsInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *ListBucketAnalyticsConfigurationsInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type ListBucketAnalyticsConfigurationsOutput struct {
_ struct{} `type:"structure"`
// The list of analytics configurations for a bucket.
AnalyticsConfigurationList []*AnalyticsConfiguration `locationName:"AnalyticsConfiguration" type:"list" flattened:"true"`
- // The ContinuationToken that represents where this request began.
+ // The marker that is used as a starting point for this analytics configuration
+ // list response. This value is present if it was sent in the request.
ContinuationToken *string `type:"string"`
// Indicates whether the returned list of analytics configurations is complete.
@@ -15832,6 +20441,20 @@ func (s *ListBucketInventoryConfigurationsInput) SetContinuationToken(v string)
return s
}
+func (s *ListBucketInventoryConfigurationsInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *ListBucketInventoryConfigurationsInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type ListBucketInventoryConfigurationsOutput struct {
_ struct{} `type:"structure"`
@@ -15842,8 +20465,9 @@ type ListBucketInventoryConfigurationsOutput struct {
// The list of inventory configurations for a bucket.
InventoryConfigurationList []*InventoryConfiguration `locationName:"InventoryConfiguration" type:"list" flattened:"true"`
- // Indicates whether the returned list of inventory configurations is truncated
- // in this response. A value of true indicates that the list is truncated.
+ // Tells whether the returned list of inventory configurations is complete.
+ // A value of true indicates that the list is not complete and the NextContinuationToken
+ // is provided for a subsequent request.
IsTruncated *bool `type:"boolean"`
// The marker used to continue this inventory configuration listing. Use the
@@ -15946,6 +20570,20 @@ func (s *ListBucketMetricsConfigurationsInput) SetContinuationToken(v string) *L
return s
}
+func (s *ListBucketMetricsConfigurationsInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *ListBucketMetricsConfigurationsInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type ListBucketMetricsConfigurationsOutput struct {
_ struct{} `type:"structure"`
@@ -16019,8 +20657,10 @@ func (s ListBucketsInput) GoString() string {
type ListBucketsOutput struct {
_ struct{} `type:"structure"`
+ // The list of buckets owned by the requestor.
Buckets []*Bucket `locationNameList:"Bucket" type:"list"`
+ // The owner of the buckets listed.
Owner *Owner `type:"structure"`
}
@@ -16049,10 +20689,26 @@ func (s *ListBucketsOutput) SetOwner(v *Owner) *ListBucketsOutput {
type ListMultipartUploadsInput struct {
_ struct{} `locationName:"ListMultipartUploadsRequest" type:"structure"`
+ // Name of the bucket to which the multipart upload was initiated.
+ //
+ // When using this API with an access point, you must direct requests to the
+ // access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com.
+ // When using this operation using an access point through the AWS SDKs, you
+ // provide the access point ARN in place of the bucket name. For more information
+ // about access point ARNs, see Using Access Points (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html)
+ // in the Amazon Simple Storage Service Developer Guide.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
// Character you use to group keys.
+ //
+ // All keys that contain the same string between the prefix, if specified, and
+ // the first occurrence of the delimiter after the prefix are grouped under
+ // a single result element, CommonPrefixes. If you don't specify the prefix
+ // parameter, then the substring starts at the beginning of the key. The keys
+ // that are grouped under CommonPrefixes result element are not returned elsewhere
+ // in the response.
Delimiter *string `location:"querystring" locationName:"delimiter" type:"string"`
// Requests Amazon S3 to encode the object keys in the response and specifies
@@ -16065,6 +20721,13 @@ type ListMultipartUploadsInput struct {
// Together with upload-id-marker, this parameter specifies the multipart upload
// after which listing should begin.
+ //
+ // If upload-id-marker is not specified, only the keys lexicographically greater
+ // than the specified key-marker will be included in the list.
+ //
+ // If upload-id-marker is specified, any multipart uploads for a key equal to
+ // the key-marker might also be included, provided those multipart uploads have
+ // upload IDs lexicographically greater than the specified upload-id-marker.
KeyMarker *string `location:"querystring" locationName:"key-marker" type:"string"`
// Sets the maximum number of multipart uploads, from 1 to 1,000, to return
@@ -16073,12 +20736,16 @@ type ListMultipartUploadsInput struct {
MaxUploads *int64 `location:"querystring" locationName:"max-uploads" type:"integer"`
// Lists in-progress uploads only for those keys that begin with the specified
- // prefix.
+ // prefix. You can use prefixes to separate a bucket into different grouping
+ // of keys. (You can think of using prefix to make groups in the same way you'd
+ // use a folder in a file system.)
Prefix *string `location:"querystring" locationName:"prefix" type:"string"`
// Together with key-marker, specifies the multipart upload after which listing
// should begin. If key-marker is not specified, the upload-id-marker parameter
- // is ignored.
+ // is ignored. Otherwise, any multipart uploads for a key equal to the key-marker
+ // might be included in the list only if they have an upload ID lexicographically
+ // greater than the specified upload-id-marker.
UploadIdMarker *string `location:"querystring" locationName:"upload-id-marker" type:"string"`
}
@@ -16157,17 +20824,42 @@ func (s *ListMultipartUploadsInput) SetUploadIdMarker(v string) *ListMultipartUp
return s
}
+func (s *ListMultipartUploadsInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *ListMultipartUploadsInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type ListMultipartUploadsOutput struct {
_ struct{} `type:"structure"`
// Name of the bucket to which the multipart upload was initiated.
Bucket *string `type:"string"`
+ // If you specify a delimiter in the request, then the result returns each distinct
+ // key prefix containing the delimiter in a CommonPrefixes element. The distinct
+ // key prefixes are returned in the Prefix child element.
CommonPrefixes []*CommonPrefix `type:"list" flattened:"true"`
+ // Contains the delimiter you specified in the request. If you don't specify
+ // a delimiter in your request, this element is absent from the response.
Delimiter *string `type:"string"`
// Encoding type used by Amazon S3 to encode object keys in the response.
+ //
+ // If you specify encoding-type request parameter, Amazon S3 includes this element
+ // in the response, and returns encoded key name values in the following response
+ // elements:
+ //
+ // Delimiter, KeyMarker, Prefix, NextKeyMarker, Key.
EncodingType *string `type:"string" enum:"EncodingType"`
// Indicates whether the returned list of multipart uploads is truncated. A
@@ -16198,6 +20890,8 @@ type ListMultipartUploadsOutput struct {
// Upload ID after which listing began.
UploadIdMarker *string `type:"string"`
+ // Container for elements related to a particular multipart upload. A response
+ // can contain zero or more Upload elements.
Uploads []*MultipartUpload `locationName:"Upload" type:"list" flattened:"true"`
}
@@ -16293,10 +20987,23 @@ func (s *ListMultipartUploadsOutput) SetUploads(v []*MultipartUpload) *ListMulti
type ListObjectVersionsInput struct {
_ struct{} `locationName:"ListObjectVersionsRequest" type:"structure"`
+ // The bucket name that contains the objects.
+ //
+ // When using this API with an access point, you must direct requests to the
+ // access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com.
+ // When using this operation using an access point through the AWS SDKs, you
+ // provide the access point ARN in place of the bucket name. For more information
+ // about access point ARNs, see Using Access Points (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html)
+ // in the Amazon Simple Storage Service Developer Guide.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
- // A delimiter is a character you use to group keys.
+ // A delimiter is a character that you specify to group keys. All keys that
+ // contain the same string between the prefix and the first occurrence of the
+ // delimiter are grouped under a single result element in CommonPrefixes. These
+ // groups are counted as one result against the max-keys limitation. These keys
+ // are not returned elsewhere in the response.
Delimiter *string `location:"querystring" locationName:"delimiter" type:"string"`
// Requests Amazon S3 to encode the object keys in the response and specifies
@@ -16311,10 +21018,17 @@ type ListObjectVersionsInput struct {
KeyMarker *string `location:"querystring" locationName:"key-marker" type:"string"`
// Sets the maximum number of keys returned in the response. The response might
- // contain fewer keys but will never contain more.
+ // contain fewer keys but will never contain more. If additional keys satisfy
+ // the search criteria, but were not returned because max-keys was exceeded,
+ // the response contains <isTruncated>true</isTruncated>. To return the additional
+ // keys, see key-marker and version-id-marker.
MaxKeys *int64 `location:"querystring" locationName:"max-keys" type:"integer"`
- // Limits the response to keys that begin with the specified prefix.
+ // Use this parameter to select only those keys that begin with the specified
+ // prefix. You can use prefixes to separate a bucket into different groupings
+ // of keys. (You can think of using prefix to make groups in the same way you'd
+ // use a folder in a file system.) You can use prefix with delimiter to roll
+ // up numerous objects into a single result under CommonPrefixes.
Prefix *string `location:"querystring" locationName:"prefix" type:"string"`
// Specifies the object version you want to start listing from.
@@ -16396,42 +21110,81 @@ func (s *ListObjectVersionsInput) SetVersionIdMarker(v string) *ListObjectVersio
return s
}
+func (s *ListObjectVersionsInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *ListObjectVersionsInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type ListObjectVersionsOutput struct {
_ struct{} `type:"structure"`
+ // All of the keys rolled up into a common prefix count as a single return when
+ // calculating the number of returns.
CommonPrefixes []*CommonPrefix `type:"list" flattened:"true"`
+ // Container for an object that is a delete marker.
DeleteMarkers []*DeleteMarkerEntry `locationName:"DeleteMarker" type:"list" flattened:"true"`
+ // The delimiter grouping the included keys. A delimiter is a character that
+ // you specify to group keys. All keys that contain the same string between
+ // the prefix and the first occurrence of the delimiter are grouped under a
+ // single result element in CommonPrefixes. These groups are counted as one
+ // result against the max-keys limitation. These keys are not returned elsewhere
+ // in the response.
Delimiter *string `type:"string"`
- // Encoding type used by Amazon S3 to encode object keys in the response.
+ // Encoding type used by Amazon S3 to encode object key names in the XML response.
+ //
+ // If you specify encoding-type request parameter, Amazon S3 includes this element
+ // in the response, and returns encoded key name values in the following response
+ // elements:
+ //
+ // KeyMarker, NextKeyMarker, Prefix, Key, and Delimiter.
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. If your results were truncated, you can
- // make a follow-up paginated request using the NextKeyMarker and NextVersionIdMarker
+ // A flag that indicates whether Amazon S3 returned all of the results that
+ // satisfied the search criteria. If your results were truncated, you can make
+ // a follow-up paginated request using the NextKeyMarker and NextVersionIdMarker
// response parameters as a starting place in another request to return the
// rest of the results.
IsTruncated *bool `type:"boolean"`
- // Marks the last Key returned in a truncated response.
+ // Marks the last key returned in a truncated response.
KeyMarker *string `type:"string"`
+ // Specifies the maximum number of objects to return.
MaxKeys *int64 `type:"integer"`
+ // Bucket name.
Name *string `type:"string"`
- // Use this value for the key marker request parameter in a subsequent request.
+ // When the number of responses exceeds the value of MaxKeys, NextKeyMarker
+ // specifies the first key not returned that satisfies the search criteria.
+ // Use this value for the key-marker request parameter in a subsequent request.
NextKeyMarker *string `type:"string"`
- // Use this value for the next version id marker parameter in a subsequent request.
+ // When the number of responses exceeds the value of MaxKeys, NextVersionIdMarker
+ // specifies the first object version not returned that satisfies the search
+ // criteria. Use this value for the version-id-marker request parameter in a
+ // subsequent request.
NextVersionIdMarker *string `type:"string"`
+ // Selects objects that start with the value supplied by this parameter.
Prefix *string `type:"string"`
+ // Marks the last version of the key returned in a truncated response.
VersionIdMarker *string `type:"string"`
+ // Container for version information.
Versions []*ObjectVersion `locationName:"Version" type:"list" flattened:"true"`
}
@@ -16526,6 +21279,8 @@ func (s *ListObjectVersionsOutput) SetVersions(v []*ObjectVersion) *ListObjectVe
type ListObjectsInput struct {
_ struct{} `locationName:"ListObjectsRequest" type:"structure"`
+ // The name of the bucket containing the objects.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
@@ -16631,26 +21386,65 @@ func (s *ListObjectsInput) SetRequestPayer(v string) *ListObjectsInput {
return s
}
+func (s *ListObjectsInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *ListObjectsInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type ListObjectsOutput struct {
_ struct{} `type:"structure"`
+ // All of the keys rolled up in a common prefix count as a single return when
+ // calculating the number of returns.
+ //
+ // A response can contain CommonPrefixes only if you specify a delimiter.
+ //
+ // CommonPrefixes contains all (if there are any) keys between Prefix and the
+ // next occurrence of the string specified by the delimiter.
+ //
+ // CommonPrefixes lists keys that act like subdirectories in the directory specified
+ // by Prefix.
+ //
+ // For example, if the prefix is notes/ and the delimiter is a slash (/) as
+ // in notes/summer/july, the common prefix is notes/summer/. All of the keys
+ // that roll up into a common prefix count as a single return when calculating
+ // the number of returns.
CommonPrefixes []*CommonPrefix `type:"list" flattened:"true"`
+ // Metadata about each object returned.
Contents []*Object `type:"list" flattened:"true"`
+ // Causes keys that contain the same string between the prefix and the first
+ // occurrence of the delimiter to be rolled up into a single result element
+ // in the CommonPrefixes collection. These rolled-up keys are not returned elsewhere
+ // in the response. Each rolled-up result counts as only one return against
+ // the MaxKeys value.
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.
+ // A flag that indicates whether Amazon S3 returned all of the results that
+ // satisfied the search criteria.
IsTruncated *bool `type:"boolean"`
+ // Indicates where in the bucket listing begins. Marker is included in the response
+ // if it was sent with the request.
Marker *string `type:"string"`
+ // The maximum number of keys returned in the response body.
MaxKeys *int64 `type:"integer"`
+ // Bucket name.
Name *string `type:"string"`
// When response is truncated (the IsTruncated element value in the response
@@ -16662,6 +21456,7 @@ type ListObjectsOutput struct {
// subsequent request to get the next set of object keys.
NextMarker *string `type:"string"`
+ // Keys that begin with the indicated prefix.
Prefix *string `type:"string"`
}
@@ -16738,14 +21533,21 @@ func (s *ListObjectsOutput) SetPrefix(v string) *ListObjectsOutput {
type ListObjectsV2Input struct {
_ struct{} `locationName:"ListObjectsV2Request" type:"structure"`
- // Name of the bucket to list.
+ // Bucket name to list.
+ //
+ // When using this API with an access point, you must direct requests to the
+ // access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com.
+ // When using this operation using an access point through the AWS SDKs, you
+ // provide the access point ARN in place of the bucket name. For more information
+ // about access point ARNs, see Using Access Points (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html)
+ // in the Amazon Simple Storage Service Developer Guide.
//
// 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
+ // key.
ContinuationToken *string `location:"querystring" locationName:"continuation-token" type:"string"`
// A delimiter is a character you use to group keys.
@@ -16756,7 +21558,7 @@ type ListObjectsV2Input struct {
// 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
+ // true.
FetchOwner *bool `location:"querystring" locationName:"fetch-owner" type:"boolean"`
// Sets the maximum number of keys returned in the response. The response might
@@ -16772,7 +21574,7 @@ type ListObjectsV2Input struct {
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
+ // listing after this specified key. StartAfter can be any key in the bucket.
StartAfter *string `location:"querystring" locationName:"start-after" type:"string"`
}
@@ -16863,29 +21665,65 @@ func (s *ListObjectsV2Input) SetStartAfter(v string) *ListObjectsV2Input {
return s
}
+func (s *ListObjectsV2Input) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *ListObjectsV2Input) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type ListObjectsV2Output struct {
_ struct{} `type:"structure"`
+ // All of the keys rolled up into a common prefix count as a single return when
+ // calculating the number of returns.
+ //
+ // A response can contain CommonPrefixes only if you specify a delimiter.
+ //
// CommonPrefixes contains all (if there are any) keys between Prefix and the
- // next occurrence of the string specified by delimiter
+ // next occurrence of the string specified by a delimiter.
+ //
+ // CommonPrefixes lists keys that act like subdirectories in the directory specified
+ // by Prefix.
+ //
+ // For example, if the prefix is notes/ and the delimiter is a slash (/) as
+ // in notes/summer/july, the common prefix is notes/summer/. All of the keys
+ // that roll up into a common prefix count as a single return when calculating
+ // the number of returns.
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
+ // If ContinuationToken was sent with the request, it is included in the response.
ContinuationToken *string `type:"string"`
- // A delimiter is a character you use to group keys.
+ // Causes keys that contain the same string between the prefix and the first
+ // occurrence of the delimiter to be rolled up into a single result element
+ // in the CommonPrefixes collection. These rolled-up keys are not returned elsewhere
+ // in the response. Each rolled-up result counts as only one return against
+ // the MaxKeys value.
Delimiter *string `type:"string"`
- // Encoding type used by Amazon S3 to encode object keys in the response.
+ // Encoding type used by Amazon S3 to encode object key names in the XML response.
+ //
+ // If you specify the encoding-type request parameter, Amazon S3 includes this
+ // element in the response, and returns encoded key name values in the following
+ // response elements:
+ //
+ // Delimiter, Prefix, Key, and StartAfter.
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.
+ // Set to false if all of the results were returned. Set to true if more keys
+ // are available to return. If the number of results exceeds that specified
+ // by MaxKeys, all of the results might not be returned.
IsTruncated *bool `type:"boolean"`
// KeyCount is the number of keys returned with this request. KeyCount will
@@ -16897,20 +21735,26 @@ type ListObjectsV2Output struct {
// contain fewer keys but will never contain more.
MaxKeys *int64 `type:"integer"`
- // Name of the bucket to list.
+ // Bucket name.
+ //
+ // When using this API with an access point, you must direct requests to the
+ // access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com.
+ // When using this operation using an access point through the AWS SDKs, you
+ // provide the access point ARN in place of the bucket name. For more information
+ // about access point ARNs, see Using Access Points (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html)
+ // in the Amazon Simple Storage Service Developer Guide.
Name *string `type:"string"`
- // NextContinuationToken is sent when isTruncated is true which means there
+ // 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.
+ // Keys that begin with the indicated 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
+ // If StartAfter was sent with the request, it is included in the response.
StartAfter *string `type:"string"`
}
@@ -16999,9 +21843,20 @@ func (s *ListObjectsV2Output) SetStartAfter(v string) *ListObjectsV2Output {
type ListPartsInput struct {
_ struct{} `locationName:"ListPartsRequest" type:"structure"`
+ // Name of the bucket to which the parts are being uploaded.
+ //
+ // When using this API with an access point, you must direct requests to the
+ // access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com.
+ // When using this operation using an access point through the AWS SDKs, you
+ // provide the access point ARN in place of the bucket name. For more information
+ // about access point ARNs, see Using Access Points (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html)
+ // in the Amazon Simple Storage Service Developer Guide.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
+ // Object key for which the multipart upload was initiated.
+ //
// Key is a required field
Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
@@ -17012,10 +21867,11 @@ type ListPartsInput struct {
// part numbers will be listed.
PartNumberMarker *int64 `location:"querystring" locationName:"part-number-marker" type:"integer"`
- // Confirms that the requester knows that she or he will be charged for the
- // request. Bucket owners need not specify this parameter in their requests.
- // Documentation on downloading objects from requester pays buckets can be found
- // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
+ // Confirms that the requester knows that they will be charged for the request.
+ // Bucket owners need not specify this parameter in their requests. For information
+ // about downloading objects from requester pays buckets, see Downloading Objects
+ // in Requestor Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html)
+ // in the Amazon S3 Developer Guide.
RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
// Upload ID identifying the multipart upload whose parts are being listed.
@@ -17102,23 +21958,51 @@ func (s *ListPartsInput) SetUploadId(v string) *ListPartsInput {
return s
}
+func (s *ListPartsInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *ListPartsInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type ListPartsOutput struct {
_ struct{} `type:"structure"`
- // Date when multipart upload will become eligible for abort operation by lifecycle.
+ // If the bucket has a lifecycle rule configured with an action to abort incomplete
+ // multipart uploads and the prefix in the lifecycle rule matches the object
+ // name in the request, then the response includes this header indicating when
+ // the initiated multipart upload will become eligible for abort operation.
+ // For more information, see Aborting Incomplete Multipart Uploads Using a Bucket
+ // Lifecycle Policy (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config).
+ //
+ // The response will also include the x-amz-abort-rule-id header that will provide
+ // the ID of the lifecycle configuration rule that defines this action.
AbortDate *time.Time `location:"header" locationName:"x-amz-abort-date" type:"timestamp"`
- // Id of the lifecycle rule that makes a multipart upload eligible for abort
- // operation.
+ // This header is returned along with the x-amz-abort-date header. It identifies
+ // applicable lifecycle configuration rule that defines the action to abort
+ // incomplete multipart uploads.
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"`
- // Identifies who initiated the multipart upload.
+ // Container element that identifies who initiated the multipart upload. If
+ // the initiator is an AWS account, this element provides the same information
+ // as the Owner element. If the initiator is an IAM User, this element provides
+ // the user ARN and display name.
Initiator *Initiator `type:"structure"`
- // Indicates whether the returned list of parts is truncated.
+ // Indicates whether the returned list of parts is truncated. A true value indicates
+ // that the list was truncated. A list can be truncated if the number of parts
+ // exceeds the limit returned in the MaxParts element.
IsTruncated *bool `type:"boolean"`
// Object key for which the multipart upload was initiated.
@@ -17132,18 +22016,26 @@ type ListPartsOutput struct {
// in a subsequent request.
NextPartNumberMarker *int64 `type:"integer"`
+ // Container element that identifies the object owner, after the object is created.
+ // If multipart upload is initiated by an IAM user, this element provides the
+ // parent account ID and display name.
Owner *Owner `type:"structure"`
- // Part number after which listing begins.
+ // When a list is truncated, this element specifies the last part in the list,
+ // as well as the value to use for the part-number-marker request parameter
+ // in a subsequent request.
PartNumberMarker *int64 `type:"integer"`
+ // Container for elements related to a particular part. A response can contain
+ // zero or more Part elements.
Parts []*Part `locationName:"Part" type:"list" flattened:"true"`
// If present, indicates that the requester was successfully charged for the
// request.
RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"`
- // The class of storage used to store the object.
+ // Class of storage (STANDARD or REDUCED_REDUNDANCY) used to store the uploaded
+ // object.
StorageClass *string `type:"string" enum:"StorageClass"`
// Upload ID identifying the multipart upload whose parts are being listed.
@@ -17251,7 +22143,8 @@ func (s *ListPartsOutput) SetUploadId(v string) *ListPartsOutput {
return s
}
-// Describes an S3 location that will receive the results of the restore request.
+// Describes an Amazon S3 location that will receive the results of the restore
+// request.
type Location struct {
_ struct{} `type:"structure"`
@@ -17266,8 +22159,7 @@ type Location struct {
// The canned ACL to apply to the restore results.
CannedACL *string `type:"string" enum:"ObjectCannedACL"`
- // Describes the server-side encryption that will be applied to the restore
- // results.
+ // Contains the type of server-side encryption used.
Encryption *Encryption `type:"structure"`
// The prefix that is prepended to the restore results for this request.
@@ -17389,13 +22281,14 @@ type LoggingEnabled struct {
// Specifies the bucket where you want Amazon S3 to store server access logs.
// You can have your logs delivered to any bucket that you own, including the
// same bucket that is being logged. You can also configure multiple buckets
- // to deliver their logs to the same target bucket. In this case you should
+ // to deliver their logs to the same target bucket. In this case, you should
// choose a different TargetPrefix for each source bucket so that the delivered
// log files can be distinguished by key.
//
// TargetBucket is a required field
TargetBucket *string `type:"string" required:"true"`
+ // Container for granting information.
TargetGrants []*TargetGrant `locationNameList:"Grant" type:"list"`
// A prefix for all log object keys. If you store log files from multiple Amazon
@@ -17464,8 +22357,10 @@ func (s *LoggingEnabled) SetTargetPrefix(v string) *LoggingEnabled {
type MetadataEntry struct {
_ struct{} `type:"structure"`
+ // Name of the Object.
Name *string `type:"string"`
+ // Value of the Object.
Value *string `type:"string"`
}
@@ -17485,12 +22380,71 @@ func (s *MetadataEntry) SetName(v string) *MetadataEntry {
return s
}
-// SetValue sets the Value field's value.
-func (s *MetadataEntry) SetValue(v string) *MetadataEntry {
- s.Value = &v
+// SetValue sets the Value field's value.
+func (s *MetadataEntry) SetValue(v string) *MetadataEntry {
+ s.Value = &v
+ return s
+}
+
+// A container specifying replication metrics-related settings enabling metrics
+// and Amazon S3 events for S3 Replication Time Control (S3 RTC). Must be specified
+// together with a ReplicationTime block.
+type Metrics struct {
+ _ struct{} `type:"structure"`
+
+ // A container specifying the time threshold for emitting the s3:Replication:OperationMissedThreshold
+ // event.
+ //
+ // EventThreshold is a required field
+ EventThreshold *ReplicationTimeValue `type:"structure" required:"true"`
+
+ // Specifies whether the replication metrics are enabled.
+ //
+ // Status is a required field
+ Status *string `type:"string" required:"true" enum:"MetricsStatus"`
+}
+
+// String returns the string representation
+func (s Metrics) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s Metrics) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *Metrics) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "Metrics"}
+ if s.EventThreshold == nil {
+ invalidParams.Add(request.NewErrParamRequired("EventThreshold"))
+ }
+ if s.Status == nil {
+ invalidParams.Add(request.NewErrParamRequired("Status"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetEventThreshold sets the EventThreshold field's value.
+func (s *Metrics) SetEventThreshold(v *ReplicationTimeValue) *Metrics {
+ s.EventThreshold = v
+ return s
+}
+
+// SetStatus sets the Status field's value.
+func (s *Metrics) SetStatus(v string) *Metrics {
+ s.Status = &v
return s
}
+// A conjunction (logical AND) of predicates, which is used in evaluating a
+// metrics filter. The operator must have at least two predicates, and an object
+// must match all of the predicates in order for the filter to apply.
type MetricsAndOperator struct {
_ struct{} `type:"structure"`
@@ -17604,6 +22558,9 @@ func (s *MetricsConfiguration) SetId(v string) *MetricsConfiguration {
return s
}
+// Specifies a metrics configuration filter. The metrics configuration only
+// includes objects that meet the filter's criteria. A filter must be a prefix,
+// a tag, or a conjunction (MetricsAndOperator).
type MetricsFilter struct {
_ struct{} `type:"structure"`
@@ -17667,6 +22624,7 @@ func (s *MetricsFilter) SetTag(v *Tag) *MetricsFilter {
return s
}
+// Container for the MultipartUpload for the Amazon S3 object.
type MultipartUpload struct {
_ struct{} `type:"structure"`
@@ -17679,6 +22637,7 @@ type MultipartUpload struct {
// Key of the object for which the multipart upload was initiated.
Key *string `min:"1" type:"string"`
+ // Specifies the owner of the object that is part of the multipart upload.
Owner *Owner `type:"structure"`
// The class of storage used to store the object.
@@ -17778,8 +22737,8 @@ 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
- // (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html)
+ // calculations, see How Amazon S3 Calculates How Long an Object Has Been Noncurrent
+ // (https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations)
// in the Amazon Simple Storage Service Developer Guide.
NoncurrentDays *int64 `type:"integer"`
@@ -17898,10 +22857,17 @@ func (s *NotificationConfiguration) SetTopicConfigurations(v []*TopicConfigurati
type NotificationConfigurationDeprecated struct {
_ struct{} `type:"structure"`
+ // Container for specifying the AWS Lambda notification configuration.
CloudFunctionConfiguration *CloudFunctionConfiguration `type:"structure"`
+ // This data type is deprecated. This data type specifies the configuration
+ // for publishing messages to an Amazon Simple Queue Service (Amazon SQS) queue
+ // when Amazon S3 detects specified events.
QueueConfiguration *QueueConfigurationDeprecated `type:"structure"`
+ // This data type is deprecated. A container for specifying the configuration
+ // for publication of messages to an Amazon Simple Notification Service (Amazon
+ // SNS) topic when Amazon S3 detects specified events.
TopicConfiguration *TopicConfigurationDeprecated `type:"structure"`
}
@@ -17959,17 +22925,25 @@ func (s *NotificationConfigurationFilter) SetKey(v *KeyFilter) *NotificationConf
return s
}
+// An object consists of data and its descriptive metadata.
type Object struct {
_ struct{} `type:"structure"`
+ // The entity tag is an MD5 hash of the object. ETag reflects only changes to
+ // the contents of an object, not its metadata.
ETag *string `type:"string"`
+ // The name that you assign to an object. You use the object key to retrieve
+ // the object.
Key *string `min:"1" type:"string"`
+ // The date the Object was Last Modified
LastModified *time.Time `type:"timestamp"`
+ // The owner of the object
Owner *Owner `type:"structure"`
+ // Size in bytes of the object
Size *int64 `type:"integer"`
// The class of storage used to store the object.
@@ -18022,6 +22996,7 @@ func (s *Object) SetStorageClass(v string) *Object {
return s
}
+// Object Identifier is unique value to identify objects.
type ObjectIdentifier struct {
_ struct{} `type:"structure"`
@@ -18072,14 +23047,14 @@ func (s *ObjectIdentifier) SetVersionId(v string) *ObjectIdentifier {
return s
}
-// The container element for object lock configuration parameters.
+// The container element for Object Lock configuration parameters.
type ObjectLockConfiguration struct {
_ struct{} `type:"structure"`
- // Indicates whether this bucket has an object lock configuration enabled.
+ // Indicates whether this bucket has an Object Lock configuration enabled.
ObjectLockEnabled *string `type:"string" enum:"ObjectLockEnabled"`
- // The object lock rule in place for the specified object.
+ // The Object Lock rule in place for the specified object.
Rule *ObjectLockRule `type:"structure"`
}
@@ -18136,7 +23111,7 @@ type ObjectLockRetention struct {
// Indicates the Retention mode for the specified object.
Mode *string `type:"string" enum:"ObjectLockRetentionMode"`
- // The date on which this object lock retention expires.
+ // The date on which this Object Lock Retention will expire.
RetainUntilDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
}
@@ -18162,7 +23137,7 @@ func (s *ObjectLockRetention) SetRetainUntilDate(v time.Time) *ObjectLockRetenti
return s
}
-// The container element for an object lock rule.
+// The container element for an Object Lock rule.
type ObjectLockRule struct {
_ struct{} `type:"structure"`
@@ -18187,9 +23162,11 @@ func (s *ObjectLockRule) SetDefaultRetention(v *DefaultRetention) *ObjectLockRul
return s
}
+// The version of an object.
type ObjectVersion struct {
_ struct{} `type:"structure"`
+ // The entity tag is an MD5 hash of that version of the object.
ETag *string `type:"string"`
// Specifies whether the object is (true) or is not (false) the latest version
@@ -18202,6 +23179,7 @@ type ObjectVersion struct {
// Date and time the object was last modified.
LastModified *time.Time `type:"timestamp"`
+ // Specifies the owner of the object.
Owner *Owner `type:"structure"`
// Size in bytes of the object.
@@ -18344,11 +23322,14 @@ func (s *OutputSerialization) SetJSON(v *JSONOutput) *OutputSerialization {
return s
}
+// Container for the owner's display name and ID.
type Owner struct {
_ struct{} `type:"structure"`
+ // Container for the display name of the owner.
DisplayName *string `type:"string"`
+ // Container for the ID of the owner.
ID *string `type:"string"`
}
@@ -18374,6 +23355,7 @@ func (s *Owner) SetID(v string) *Owner {
return s
}
+// Container for Parquet.
type ParquetInput struct {
_ struct{} `type:"structure"`
}
@@ -18388,6 +23370,7 @@ func (s ParquetInput) GoString() string {
return s.String()
}
+// Container for elements related to a part.
type Part struct {
_ struct{} `type:"structure"`
@@ -18464,6 +23447,7 @@ func (s *PolicyStatus) SetIsPublic(v bool) *PolicyStatus {
return s
}
+// This data type contains information about progress of an operation.
type Progress struct {
_ struct{} `type:"structure"`
@@ -18505,6 +23489,7 @@ func (s *Progress) SetBytesScanned(v int64) *Progress {
return s
}
+// This data type contains information about the progress event of an operation.
type ProgressEvent struct {
_ struct{} `locationName:"ProgressEvent" type:"structure" payload:"Details"`
@@ -18545,7 +23530,21 @@ func (s *ProgressEvent) UnmarshalEvent(
return nil
}
-// Specifies the Block Public Access configuration for an Amazon S3 bucket.
+func (s *ProgressEvent) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error) {
+ msg.Headers.Set(eventstreamapi.MessageTypeHeader, eventstream.StringValue(eventstreamapi.EventMessageType))
+ var buf bytes.Buffer
+ if err = pm.MarshalPayload(&buf, s); err != nil {
+ return eventstream.Message{}, err
+ }
+ msg.Payload = buf.Bytes()
+ return msg, err
+}
+
+// The PublicAccessBlock configuration that you want to apply to this Amazon
+// S3 bucket. You can enable the configuration options in any combination. For
+// more information about when Amazon S3 considers a bucket or object public,
+// see The Meaning of "Public" (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status)
+// in the Amazon Simple Storage Service Developer Guide.
type PublicAccessBlockConfiguration struct {
_ struct{} `type:"structure"`
@@ -18558,6 +23557,8 @@ type PublicAccessBlockConfiguration struct {
//
// * PUT Object calls fail if the request includes a public ACL.
//
+ // * PUT Bucket calls fail if the request includes a public ACL.
+ //
// Enabling this setting doesn't affect existing policies or ACLs.
BlockPublicAcls *bool `locationName:"BlockPublicAcls" type:"boolean"`
@@ -18624,7 +23625,7 @@ func (s *PublicAccessBlockConfiguration) SetRestrictPublicBuckets(v bool) *Publi
type PutBucketAccelerateConfigurationInput struct {
_ struct{} `locationName:"PutBucketAccelerateConfigurationRequest" type:"structure" payload:"AccelerateConfiguration"`
- // Specifies the Accelerate Configuration you want to set for the bucket.
+ // Container for setting the transfer acceleration state.
//
// AccelerateConfiguration is a required field
AccelerateConfiguration *AccelerateConfiguration `locationName:"AccelerateConfiguration" type:"structure" required:"true" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"`
@@ -18683,6 +23684,20 @@ func (s *PutBucketAccelerateConfigurationInput) getBucket() (v string) {
return *s.Bucket
}
+func (s *PutBucketAccelerateConfigurationInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *PutBucketAccelerateConfigurationInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type PutBucketAccelerateConfigurationOutput struct {
_ struct{} `type:"structure"`
}
@@ -18706,6 +23721,8 @@ type PutBucketAclInput struct {
// Contains the elements that set the ACL permissions for an object per grantee.
AccessControlPolicy *AccessControlPolicy `locationName:"AccessControlPolicy" type:"structure" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"`
+ // The bucket to which to apply the ACL.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
@@ -18812,6 +23829,20 @@ func (s *PutBucketAclInput) SetGrantWriteACP(v string) *PutBucketAclInput {
return s
}
+func (s *PutBucketAclInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *PutBucketAclInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type PutBucketAclOutput struct {
_ struct{} `type:"structure"`
}
@@ -18907,6 +23938,20 @@ func (s *PutBucketAnalyticsConfigurationInput) SetId(v string) *PutBucketAnalyti
return s
}
+func (s *PutBucketAnalyticsConfigurationInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *PutBucketAnalyticsConfigurationInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type PutBucketAnalyticsConfigurationOutput struct {
_ struct{} `type:"structure"`
}
@@ -18924,12 +23969,14 @@ func (s PutBucketAnalyticsConfigurationOutput) GoString() string {
type PutBucketCorsInput struct {
_ struct{} `locationName:"PutBucketCorsRequest" type:"structure" payload:"CORSConfiguration"`
+ // Specifies the bucket impacted by the corsconfiguration.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
// Describes the cross-origin access configuration for objects in an Amazon
// S3 bucket. For more information, see Enabling Cross-Origin Resource Sharing
- // (https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) in the Amazon
+ // (https://docs.aws.amazon.com/AmazonS3/latest/dev//cors.html) in the Amazon
// Simple Storage Service Developer Guide.
//
// CORSConfiguration is a required field
@@ -18989,6 +24036,20 @@ func (s *PutBucketCorsInput) SetCORSConfiguration(v *CORSConfiguration) *PutBuck
return s
}
+func (s *PutBucketCorsInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *PutBucketCorsInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type PutBucketCorsOutput struct {
_ struct{} `type:"structure"`
}
@@ -19007,9 +24068,9 @@ type PutBucketEncryptionInput struct {
_ struct{} `locationName:"PutBucketEncryptionRequest" type:"structure" payload:"ServerSideEncryptionConfiguration"`
// Specifies default encryption for a bucket using server-side encryption with
- // Amazon S3-managed keys (SSE-S3) or AWS KMS-managed keys (SSE-KMS). For information
- // about the Amazon S3 default encryption feature, see Amazon S3 Default Bucket
- // Encryption (https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html)
+ // Amazon S3-managed keys (SSE-S3) or customer master keys stored in AWS KMS
+ // (SSE-KMS). For information about the Amazon S3 default encryption feature,
+ // see Amazon S3 Default Bucket Encryption (https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html)
// in the Amazon Simple Storage Service Developer Guide.
//
// Bucket is a required field
@@ -19074,6 +24135,20 @@ func (s *PutBucketEncryptionInput) SetServerSideEncryptionConfiguration(v *Serve
return s
}
+func (s *PutBucketEncryptionInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *PutBucketEncryptionInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type PutBucketEncryptionOutput struct {
_ struct{} `type:"structure"`
}
@@ -19169,6 +24244,20 @@ func (s *PutBucketInventoryConfigurationInput) SetInventoryConfiguration(v *Inve
return s
}
+func (s *PutBucketInventoryConfigurationInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *PutBucketInventoryConfigurationInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type PutBucketInventoryConfigurationOutput struct {
_ struct{} `type:"structure"`
}
@@ -19186,12 +24275,12 @@ func (s PutBucketInventoryConfigurationOutput) GoString() string {
type PutBucketLifecycleConfigurationInput struct {
_ struct{} `locationName:"PutBucketLifecycleConfigurationRequest" type:"structure" payload:"LifecycleConfiguration"`
+ // The name of the bucket for which to set the configuration.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
- // Specifies the lifecycle configuration for objects in an Amazon S3 bucket.
- // For more information, see Object Lifecycle Management (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html)
- // in the Amazon Simple Storage Service Developer Guide.
+ // Container for lifecycle rules. You can add as many as 1,000 rules.
LifecycleConfiguration *BucketLifecycleConfiguration `locationName:"LifecycleConfiguration" type:"structure" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"`
}
@@ -19245,6 +24334,20 @@ func (s *PutBucketLifecycleConfigurationInput) SetLifecycleConfiguration(v *Buck
return s
}
+func (s *PutBucketLifecycleConfigurationInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *PutBucketLifecycleConfigurationInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type PutBucketLifecycleConfigurationOutput struct {
_ struct{} `type:"structure"`
}
@@ -19265,6 +24368,7 @@ type PutBucketLifecycleInput struct {
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
+ // Container for lifecycle rules. You can add as many as 1000 rules.
LifecycleConfiguration *LifecycleConfiguration `locationName:"LifecycleConfiguration" type:"structure" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"`
}
@@ -19318,6 +24422,20 @@ func (s *PutBucketLifecycleInput) SetLifecycleConfiguration(v *LifecycleConfigur
return s
}
+func (s *PutBucketLifecycleInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *PutBucketLifecycleInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type PutBucketLifecycleOutput struct {
_ struct{} `type:"structure"`
}
@@ -19335,9 +24453,13 @@ func (s PutBucketLifecycleOutput) GoString() string {
type PutBucketLoggingInput struct {
_ struct{} `locationName:"PutBucketLoggingRequest" type:"structure" payload:"BucketLoggingStatus"`
+ // The name of the bucket for which to set the logging parameters.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
+ // Container for logging status information.
+ //
// BucketLoggingStatus is a required field
BucketLoggingStatus *BucketLoggingStatus `locationName:"BucketLoggingStatus" type:"structure" required:"true" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"`
}
@@ -19395,6 +24517,20 @@ func (s *PutBucketLoggingInput) SetBucketLoggingStatus(v *BucketLoggingStatus) *
return s
}
+func (s *PutBucketLoggingInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *PutBucketLoggingInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type PutBucketLoggingOutput struct {
_ struct{} `type:"structure"`
}
@@ -19490,6 +24626,20 @@ func (s *PutBucketMetricsConfigurationInput) SetMetricsConfiguration(v *MetricsC
return s
}
+func (s *PutBucketMetricsConfigurationInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *PutBucketMetricsConfigurationInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type PutBucketMetricsConfigurationOutput struct {
_ struct{} `type:"structure"`
}
@@ -19507,6 +24657,8 @@ func (s PutBucketMetricsConfigurationOutput) GoString() string {
type PutBucketNotificationConfigurationInput struct {
_ struct{} `locationName:"PutBucketNotificationConfigurationRequest" type:"structure" payload:"NotificationConfiguration"`
+ // The name of the bucket.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
@@ -19570,6 +24722,20 @@ func (s *PutBucketNotificationConfigurationInput) SetNotificationConfiguration(v
return s
}
+func (s *PutBucketNotificationConfigurationInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *PutBucketNotificationConfigurationInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type PutBucketNotificationConfigurationOutput struct {
_ struct{} `type:"structure"`
}
@@ -19587,9 +24753,13 @@ func (s PutBucketNotificationConfigurationOutput) GoString() string {
type PutBucketNotificationInput struct {
_ struct{} `locationName:"PutBucketNotificationRequest" type:"structure" payload:"NotificationConfiguration"`
+ // The name of the bucket.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
+ // The container for the configuration.
+ //
// NotificationConfiguration is a required field
NotificationConfiguration *NotificationConfigurationDeprecated `locationName:"NotificationConfiguration" type:"structure" required:"true" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"`
}
@@ -19642,6 +24812,20 @@ func (s *PutBucketNotificationInput) SetNotificationConfiguration(v *Notificatio
return s
}
+func (s *PutBucketNotificationInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *PutBucketNotificationInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type PutBucketNotificationOutput struct {
_ struct{} `type:"structure"`
}
@@ -19659,6 +24843,8 @@ func (s PutBucketNotificationOutput) GoString() string {
type PutBucketPolicyInput struct {
_ struct{} `locationName:"PutBucketPolicyRequest" type:"structure" payload:"Policy"`
+ // The name of the bucket.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
@@ -19726,6 +24912,20 @@ func (s *PutBucketPolicyInput) SetPolicy(v string) *PutBucketPolicyInput {
return s
}
+func (s *PutBucketPolicyInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *PutBucketPolicyInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type PutBucketPolicyOutput struct {
_ struct{} `type:"structure"`
}
@@ -19743,6 +24943,8 @@ func (s PutBucketPolicyOutput) GoString() string {
type PutBucketReplicationInput struct {
_ struct{} `locationName:"PutBucketReplicationRequest" type:"structure" payload:"ReplicationConfiguration"`
+ // The name of the bucket
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
@@ -19752,7 +24954,6 @@ type PutBucketReplicationInput struct {
// ReplicationConfiguration is a required field
ReplicationConfiguration *ReplicationConfiguration `locationName:"ReplicationConfiguration" type:"structure" required:"true" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"`
- // A token that allows Amazon S3 object lock to be enabled for an existing bucket.
Token *string `location:"header" locationName:"x-amz-bucket-object-lock-token" type:"string"`
}
@@ -19815,6 +25016,20 @@ func (s *PutBucketReplicationInput) SetToken(v string) *PutBucketReplicationInpu
return s
}
+func (s *PutBucketReplicationInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *PutBucketReplicationInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type PutBucketReplicationOutput struct {
_ struct{} `type:"structure"`
}
@@ -19832,9 +25047,13 @@ func (s PutBucketReplicationOutput) GoString() string {
type PutBucketRequestPaymentInput struct {
_ struct{} `locationName:"PutBucketRequestPaymentRequest" type:"structure" payload:"RequestPaymentConfiguration"`
+ // The bucket name.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
+ // Container for Payer.
+ //
// RequestPaymentConfiguration is a required field
RequestPaymentConfiguration *RequestPaymentConfiguration `locationName:"RequestPaymentConfiguration" type:"structure" required:"true" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"`
}
@@ -19892,6 +25111,20 @@ func (s *PutBucketRequestPaymentInput) SetRequestPaymentConfiguration(v *Request
return s
}
+func (s *PutBucketRequestPaymentInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *PutBucketRequestPaymentInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type PutBucketRequestPaymentOutput struct {
_ struct{} `type:"structure"`
}
@@ -19909,9 +25142,13 @@ func (s PutBucketRequestPaymentOutput) GoString() string {
type PutBucketTaggingInput struct {
_ struct{} `locationName:"PutBucketTaggingRequest" type:"structure" payload:"Tagging"`
+ // The bucket name.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
+ // Container for the TagSet and Tag elements.
+ //
// Tagging is a required field
Tagging *Tagging `locationName:"Tagging" type:"structure" required:"true" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"`
}
@@ -19969,6 +25206,20 @@ func (s *PutBucketTaggingInput) SetTagging(v *Tagging) *PutBucketTaggingInput {
return s
}
+func (s *PutBucketTaggingInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *PutBucketTaggingInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type PutBucketTaggingOutput struct {
_ struct{} `type:"structure"`
}
@@ -19986,6 +25237,8 @@ func (s PutBucketTaggingOutput) GoString() string {
type PutBucketVersioningInput struct {
_ struct{} `locationName:"PutBucketVersioningRequest" type:"structure" payload:"VersioningConfiguration"`
+ // The bucket name.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
@@ -19993,9 +25246,7 @@ type PutBucketVersioningInput struct {
// and the value that is displayed on your authentication device.
MFA *string `location:"header" locationName:"x-amz-mfa" type:"string"`
- // Describes the versioning state of an Amazon S3 bucket. For more information,
- // see PUT Bucket versioning (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTVersioningStatus.html)
- // in the Amazon Simple Storage Service API Reference.
+ // Container for setting the versioning state.
//
// VersioningConfiguration is a required field
VersioningConfiguration *VersioningConfiguration `locationName:"VersioningConfiguration" type:"structure" required:"true" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"`
@@ -20055,6 +25306,20 @@ func (s *PutBucketVersioningInput) SetVersioningConfiguration(v *VersioningConfi
return s
}
+func (s *PutBucketVersioningInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *PutBucketVersioningInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type PutBucketVersioningOutput struct {
_ struct{} `type:"structure"`
}
@@ -20072,10 +25337,12 @@ func (s PutBucketVersioningOutput) GoString() string {
type PutBucketWebsiteInput struct {
_ struct{} `locationName:"PutBucketWebsiteRequest" type:"structure" payload:"WebsiteConfiguration"`
+ // The bucket name.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
- // Specifies website configuration parameters for an Amazon S3 bucket.
+ // Container for the request.
//
// WebsiteConfiguration is a required field
WebsiteConfiguration *WebsiteConfiguration `locationName:"WebsiteConfiguration" type:"structure" required:"true" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"`
@@ -20134,6 +25401,20 @@ func (s *PutBucketWebsiteInput) SetWebsiteConfiguration(v *WebsiteConfiguration)
return s
}
+func (s *PutBucketWebsiteInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *PutBucketWebsiteInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type PutBucketWebsiteOutput struct {
_ struct{} `type:"structure"`
}
@@ -20151,12 +25432,23 @@ func (s PutBucketWebsiteOutput) GoString() string {
type PutObjectAclInput struct {
_ struct{} `locationName:"PutObjectAclRequest" type:"structure" payload:"AccessControlPolicy"`
- // The canned ACL to apply to the object.
+ // The canned ACL to apply to the object. For more information, see Canned ACL
+ // (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL).
ACL *string `location:"header" locationName:"x-amz-acl" type:"string" enum:"ObjectCannedACL"`
// Contains the elements that set the ACL permissions for an object per grantee.
AccessControlPolicy *AccessControlPolicy `locationName:"AccessControlPolicy" type:"structure" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"`
+ // The bucket name that contains the object to which you want to attach the
+ // ACL.
+ //
+ // When using this API with an access point, you must direct requests to the
+ // access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com.
+ // When using this operation using an access point through the AWS SDKs, you
+ // provide the access point ARN in place of the bucket name. For more information
+ // about access point ARNs, see Using Access Points (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html)
+ // in the Amazon Simple Storage Service Developer Guide.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
@@ -20176,13 +25468,16 @@ 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 for which the PUT operation was initiated.
+ //
// Key is a required field
Key *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
- // request. Bucket owners need not specify this parameter in their requests.
- // Documentation on downloading objects from requester pays buckets can be found
- // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
+ // Confirms that the requester knows that they will be charged for the request.
+ // Bucket owners need not specify this parameter in their requests. For information
+ // about downloading objects from requester pays buckets, see Downloading Objects
+ // in Requestor Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html)
+ // in the Amazon S3 Developer Guide.
RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
// VersionId used to reference a specific version of the object.
@@ -20299,6 +25594,20 @@ func (s *PutObjectAclInput) SetVersionId(v string) *PutObjectAclInput {
return s
}
+func (s *PutObjectAclInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *PutObjectAclInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type PutObjectAclOutput struct {
_ struct{} `type:"structure"`
@@ -20326,44 +25635,62 @@ func (s *PutObjectAclOutput) SetRequestCharged(v string) *PutObjectAclOutput {
type PutObjectInput struct {
_ struct{} `locationName:"PutObjectRequest" type:"structure" payload:"Body"`
- // The canned ACL to apply to the object.
+ // The canned ACL to apply to the object. For more information, see Canned ACL
+ // (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL).
ACL *string `location:"header" locationName:"x-amz-acl" type:"string" enum:"ObjectCannedACL"`
// Object data.
Body io.ReadSeeker `type:"blob"`
- // Name of the bucket to which the PUT operation was initiated.
+ // Bucket name to which the PUT operation was initiated.
+ //
+ // When using this API with an access point, you must direct requests to the
+ // access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com.
+ // When using this operation using an access point through the AWS SDKs, you
+ // provide the access point ARN in place of the bucket name. For more information
+ // about access point ARNs, see Using Access Points (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html)
+ // in the Amazon Simple Storage Service Developer Guide.
//
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
- // Specifies caching behavior along the request/reply chain.
+ // Can be used to specify caching behavior along the request/reply chain. For
+ // more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9
+ // (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9).
CacheControl *string `location:"header" locationName:"Cache-Control" type:"string"`
- // Specifies presentational information for the object.
+ // Specifies presentational information for the object. For more information,
+ // see http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1 (http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1).
ContentDisposition *string `location:"header" locationName:"Content-Disposition" type:"string"`
// Specifies what content encodings have been applied to the object and thus
// what decoding mechanisms must be applied to obtain the media-type referenced
- // by the Content-Type header field.
+ // by the Content-Type header field. For more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11
+ // (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11).
ContentEncoding *string `location:"header" locationName:"Content-Encoding" type:"string"`
// The language the content is in.
ContentLanguage *string `location:"header" locationName:"Content-Language" type:"string"`
// Size of the body in bytes. This parameter is useful when the size of the
- // body cannot be determined automatically.
+ // body cannot be determined automatically. For more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.13
+ // (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.13).
ContentLength *int64 `location:"header" locationName:"Content-Length" type:"long"`
- // The base64-encoded 128-bit MD5 digest of the part data. This parameter is
- // auto-populated when using the command from the CLI. This parameted is required
- // if object lock parameters are specified.
+ // The base64-encoded 128-bit MD5 digest of the message (without the headers)
+ // according to RFC 1864. This header can be used as a message integrity check
+ // to verify that the data is the same data that was originally sent. Although
+ // it is optional, we recommend using the Content-MD5 mechanism as an end-to-end
+ // integrity check. For more information about REST request authentication,
+ // see REST Authentication (https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html).
ContentMD5 *string `location:"header" locationName:"Content-MD5" type:"string"`
- // A standard MIME type describing the format of the object data.
+ // A standard MIME type describing the format of the contents. For more information,
+ // see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17 (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17).
ContentType *string `location:"header" locationName:"Content-Type" type:"string"`
- // The date and time at which the object is no longer cacheable.
+ // The date and time at which the object is no longer cacheable. For more information,
+ // see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.21 (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.21).
Expires *time.Time `location:"header" locationName:"Expires" type:"timestamp"`
// Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object.
@@ -20386,34 +25713,37 @@ type PutObjectInput struct {
// A map of metadata to store with the object in S3.
Metadata map[string]*string `location:"headers" locationName:"x-amz-meta-" type:"map"`
- // The Legal Hold status that you want to apply to the specified object.
+ // Specifies whether a legal hold will be applied to this object. For more information
+ // about S3 Object Lock, see Object Lock (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html).
ObjectLockLegalHoldStatus *string `location:"header" locationName:"x-amz-object-lock-legal-hold" type:"string" enum:"ObjectLockLegalHoldStatus"`
- // The object lock mode that you want to apply to this object.
+ // The Object Lock mode that you want to apply to this object.
ObjectLockMode *string `location:"header" locationName:"x-amz-object-lock-mode" type:"string" enum:"ObjectLockMode"`
- // The date and time when you want this object's object lock to expire.
+ // The date and time when you want this object's Object Lock to expire.
ObjectLockRetainUntilDate *time.Time `location:"header" locationName:"x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"iso8601"`
- // Confirms that the requester knows that she or he will be charged for the
- // request. Bucket owners need not specify this parameter in their requests.
- // Documentation on downloading objects from requester pays buckets can be found
- // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
+ // Confirms that the requester knows that they will be charged for the request.
+ // Bucket owners need not specify this parameter in their requests. For information
+ // about downloading objects from requester pays buckets, see Downloading Objects
+ // in Requestor Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html)
+ // in the Amazon S3 Developer Guide.
RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
- // Specifies the algorithm to use to when encrypting the object (e.g., AES256).
+ // Specifies the algorithm to use to when encrypting the object (for example,
+ // AES256).
SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
// Specifies the customer-provided encryption key for Amazon S3 to use in encrypting
// data. This value is used to store the object and then it is discarded; Amazon
- // does not store the encryption key. The key must be appropriate for use with
- // the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm
+ // S3 does not store the encryption key. The key must be appropriate for use
+ // with the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm
// header.
SSECustomerKey *string `marshal-as:"blob" location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string" sensitive:"true"`
// Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321.
- // Amazon S3 uses this header for a message integrity check to ensure the encryption
- // key was transmitted without error.
+ // Amazon S3 uses this header for a message integrity check to ensure that the
+ // encryption key was transmitted without error.
SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
// Specifies the AWS KMS Encryption Context to use for object encryption. The
@@ -20421,17 +25751,24 @@ type PutObjectInput struct {
// encryption context key-value pairs.
SSEKMSEncryptionContext *string `location:"header" locationName:"x-amz-server-side-encryption-context" type:"string" sensitive:"true"`
- // Specifies the AWS KMS key ID to use for object encryption. All GET and PUT
- // 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
+ // If x-amz-server-side-encryption is present and has the value of aws:kms,
+ // this header specifies the ID of the AWS Key Management Service (AWS KMS)
+ // symmetrical customer managed customer master key (CMK) that was used for
+ // the object.
+ //
+ // If the value of x-amz-server-side-encryption is aws:kms, this header specifies
+ // the ID of the symmetric customer managed AWS KMS CMK that will be used for
+ // the object. If you specify x-amz-server-side-encryption:aws:kms, but do not
+ // providex-amz-server-side-encryption-aws-kms-key-id, Amazon S3 uses the AWS
+ // managed CMK in AWS to protect the data.
SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"`
- // The Server-side encryption algorithm used when storing this object in S3
- // (e.g., AES256, aws:kms).
+ // The server-side encryption algorithm used when storing this object in Amazon
+ // S3 (for example, AES256, aws:kms).
ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"`
- // The type of storage to use for the object. Defaults to 'STANDARD'.
+ // If you don't specify, Standard is the default storage class. Amazon S3 supports
+ // other storage classes.
StorageClass *string `location:"header" locationName:"x-amz-storage-class" type:"string" enum:"StorageClass"`
// The tag-set for the object. The tag-set must be encoded as URL Query parameters.
@@ -20440,7 +25777,22 @@ type PutObjectInput struct {
// If the bucket is configured as a website, redirects requests for this object
// to another object in the same bucket or to an external URL. Amazon S3 stores
- // the value of this header in the object metadata.
+ // the value of this header in the object metadata. For information about object
+ // metadata, see Object Key and Metadata (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html).
+ //
+ // In the following example, the request header sets the redirect to an object
+ // (anotherPage.html) in the same bucket:
+ //
+ // x-amz-website-redirect-location: /anotherPage.html
+ //
+ // In the following example, the request header sets the object redirect to
+ // another website:
+ //
+ // x-amz-website-redirect-location: http://www.example.com/
+ //
+ // For more information about website hosting in Amazon S3, see Hosting Websites
+ // on Amazon S3 (https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html)
+ // and How to Configure Website Page Redirects (https://docs.aws.amazon.com/AmazonS3/latest/dev/how-to-page-redirect.html).
WebsiteRedirectLocation *string `location:"header" locationName:"x-amz-website-redirect-location" type:"string"`
}
@@ -20670,10 +26022,32 @@ func (s *PutObjectInput) SetWebsiteRedirectLocation(v string) *PutObjectInput {
return s
}
+func (s *PutObjectInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *PutObjectInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type PutObjectLegalHoldInput struct {
_ struct{} `locationName:"PutObjectLegalHoldRequest" type:"structure" payload:"LegalHold"`
- // The bucket containing the object that you want to place a Legal Hold on.
+ // The bucket name containing the object that you want to place a Legal Hold
+ // on.
+ //
+ // When using this API with an access point, you must direct requests to the
+ // access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com.
+ // When using this operation using an access point through the AWS SDKs, you
+ // provide the access point ARN in place of the bucket name. For more information
+ // about access point ARNs, see Using Access Points (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html)
+ // in the Amazon Simple Storage Service Developer Guide.
//
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
@@ -20687,10 +26061,11 @@ type PutObjectLegalHoldInput struct {
// specified object.
LegalHold *ObjectLockLegalHold `locationName:"LegalHold" type:"structure" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"`
- // Confirms that the requester knows that she or he will be charged for the
- // request. Bucket owners need not specify this parameter in their requests.
- // Documentation on downloading objects from requester pays buckets can be found
- // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
+ // Confirms that the requester knows that they will be charged for the request.
+ // Bucket owners need not specify this parameter in their requests. For information
+ // about downloading objects from requester pays buckets, see Downloading Objects
+ // in Requestor Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html)
+ // in the Amazon S3 Developer Guide.
RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
// The version ID of the object that you want to place a Legal Hold on.
@@ -20766,6 +26141,20 @@ func (s *PutObjectLegalHoldInput) SetVersionId(v string) *PutObjectLegalHoldInpu
return s
}
+func (s *PutObjectLegalHoldInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *PutObjectLegalHoldInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type PutObjectLegalHoldOutput struct {
_ struct{} `type:"structure"`
@@ -20793,21 +26182,22 @@ func (s *PutObjectLegalHoldOutput) SetRequestCharged(v string) *PutObjectLegalHo
type PutObjectLockConfigurationInput struct {
_ struct{} `locationName:"PutObjectLockConfigurationRequest" type:"structure" payload:"ObjectLockConfiguration"`
- // The bucket whose object lock configuration you want to create or replace.
+ // The bucket whose Object Lock configuration you want to create or replace.
//
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
- // The object lock configuration that you want to apply to the specified bucket.
+ // The Object Lock configuration that you want to apply to the specified bucket.
ObjectLockConfiguration *ObjectLockConfiguration `locationName:"ObjectLockConfiguration" type:"structure" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"`
- // Confirms that the requester knows that she or he will be charged for the
- // request. Bucket owners need not specify this parameter in their requests.
- // Documentation on downloading objects from requester pays buckets can be found
- // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
+ // Confirms that the requester knows that they will be charged for the request.
+ // Bucket owners need not specify this parameter in their requests. For information
+ // about downloading objects from requester pays buckets, see Downloading Objects
+ // in Requestor Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html)
+ // in the Amazon S3 Developer Guide.
RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
- // A token to allow Amazon S3 object lock to be enabled for an existing bucket.
+ // A token to allow Object Lock to be enabled for an existing bucket.
Token *string `location:"header" locationName:"x-amz-bucket-object-lock-token" type:"string"`
}
@@ -20868,6 +26258,20 @@ func (s *PutObjectLockConfigurationInput) SetToken(v string) *PutObjectLockConfi
return s
}
+func (s *PutObjectLockConfigurationInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *PutObjectLockConfigurationInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type PutObjectLockConfigurationOutput struct {
_ struct{} `type:"structure"`
@@ -20898,8 +26302,10 @@ type PutObjectOutput struct {
// Entity tag for the uploaded object.
ETag *string `location:"header" locationName:"ETag" 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.
+ // If the expiration is configured for the object (see PutBucketLifecycleConfiguration),
+ // the response includes this header. It includes the expiry-date and rule-id
+ // key-value pairs that provide information about object expiration. The value
+ // of the rule-id is URL encoded.
Expiration *string `location:"header" locationName:"x-amz-expiration" type:"string"`
// If present, indicates that the requester was successfully charged for the
@@ -20912,7 +26318,7 @@ type PutObjectOutput struct {
SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
// If server-side encryption with a customer-provided encryption key was requested,
- // the response will include this header to provide round trip message integrity
+ // the response will include this header to provide round-trip message integrity
// verification of the customer-provided encryption key.
SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
@@ -20921,12 +26327,16 @@ type PutObjectOutput struct {
// the encryption context key-value pairs.
SSEKMSEncryptionContext *string `location:"header" locationName:"x-amz-server-side-encryption-context" type:"string" sensitive:"true"`
- // If present, specifies the ID of the AWS Key Management Service (KMS) master
- // encryption key that was used for the object.
+ // If x-amz-server-side-encryption is present and has the value of aws:kms,
+ // this header specifies the ID of the AWS Key Management Service (AWS KMS)
+ // symmetric customer managed customer master key (CMK) that was used for the
+ // object.
SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"`
- // The Server-side encryption algorithm used when storing this object in S3
- // (e.g., AES256, aws:kms).
+ // If you specified server-side encryption either with an AWS KMS customer master
+ // key (CMK) or Amazon S3-managed encryption key in your PUT request, the response
+ // includes this header. It confirms the encryption algorithm that Amazon S3
+ // used to encrypt the object.
ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"`
// Version of the object.
@@ -21000,13 +26410,20 @@ func (s *PutObjectOutput) SetVersionId(v string) *PutObjectOutput {
type PutObjectRetentionInput struct {
_ struct{} `locationName:"PutObjectRetentionRequest" type:"structure" payload:"Retention"`
- // The bucket that contains the object you want to apply this Object Retention
+ // The bucket name that contains the object you want to apply this Object Retention
// configuration to.
//
+ // When using this API with an access point, you must direct requests to the
+ // access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com.
+ // When using this operation using an access point through the AWS SDKs, you
+ // provide the access point ARN in place of the bucket name. For more information
+ // about access point ARNs, see Using Access Points (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html)
+ // in the Amazon Simple Storage Service Developer Guide.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
- // Indicates whether this operation should bypass Governance-mode restrictions.j
+ // Indicates whether this operation should bypass Governance-mode restrictions.
BypassGovernanceRetention *bool `location:"header" locationName:"x-amz-bypass-governance-retention" type:"boolean"`
// The key name for the object that you want to apply this Object Retention
@@ -21015,10 +26432,11 @@ type PutObjectRetentionInput struct {
// Key is a required field
Key *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
- // request. Bucket owners need not specify this parameter in their requests.
- // Documentation on downloading objects from requester pays buckets can be found
- // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
+ // Confirms that the requester knows that they will be charged for the request.
+ // Bucket owners need not specify this parameter in their requests. For information
+ // about downloading objects from requester pays buckets, see Downloading Objects
+ // in Requestor Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html)
+ // in the Amazon S3 Developer Guide.
RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
// The container element for the Object Retention configuration.
@@ -21104,6 +26522,20 @@ func (s *PutObjectRetentionInput) SetVersionId(v string) *PutObjectRetentionInpu
return s
}
+func (s *PutObjectRetentionInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *PutObjectRetentionInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type PutObjectRetentionOutput struct {
_ struct{} `type:"structure"`
@@ -21131,15 +26563,29 @@ func (s *PutObjectRetentionOutput) SetRequestCharged(v string) *PutObjectRetenti
type PutObjectTaggingInput struct {
_ struct{} `locationName:"PutObjectTaggingRequest" type:"structure" payload:"Tagging"`
+ // The bucket name containing the object.
+ //
+ // When using this API with an access point, you must direct requests to the
+ // access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com.
+ // When using this operation using an access point through the AWS SDKs, you
+ // provide the access point ARN in place of the bucket name. For more information
+ // about access point ARNs, see Using Access Points (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html)
+ // in the Amazon Simple Storage Service Developer Guide.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
+ // Name of the tag.
+ //
// Key is a required field
Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
+ // Container for the TagSet and Tag elements
+ //
// Tagging is a required field
Tagging *Tagging `locationName:"Tagging" type:"structure" required:"true" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"`
+ // The versionId of the object that the tag-set will be added to.
VersionId *string `location:"querystring" locationName:"versionId" type:"string"`
}
@@ -21214,9 +26660,24 @@ func (s *PutObjectTaggingInput) SetVersionId(v string) *PutObjectTaggingInput {
return s
}
+func (s *PutObjectTaggingInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *PutObjectTaggingInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type PutObjectTaggingOutput struct {
_ struct{} `type:"structure"`
+ // The versionId of the object the tag-set was added to.
VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"`
}
@@ -21303,6 +26764,20 @@ func (s *PutPublicAccessBlockInput) SetPublicAccessBlockConfiguration(v *PublicA
return s
}
+func (s *PutPublicAccessBlockInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *PutPublicAccessBlockInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type PutPublicAccessBlockOutput struct {
_ struct{} `type:"structure"`
}
@@ -21322,6 +26797,8 @@ func (s PutPublicAccessBlockOutput) GoString() string {
type QueueConfiguration struct {
_ struct{} `type:"structure"`
+ // A collection of bucket events for which to send notifications
+ //
// Events is a required field
Events []*string `locationName:"Event" type:"list" flattened:"true" required:"true"`
@@ -21391,6 +26868,10 @@ func (s *QueueConfiguration) SetQueueArn(v string) *QueueConfiguration {
return s
}
+// This data type is deprecated. Use QueueConfiguration for the same purposes.
+// This data type specifies the configuration for publishing messages to an
+// Amazon Simple Queue Service (Amazon SQS) queue when Amazon S3 detects specified
+// events.
type QueueConfigurationDeprecated struct {
_ struct{} `type:"structure"`
@@ -21399,12 +26880,15 @@ type QueueConfigurationDeprecated struct {
// Deprecated: Event has been deprecated
Event *string `deprecated:"true" type:"string" enum:"Event"`
+ // A collection of bucket events for which to send notifications
Events []*string `locationName:"Event" type:"list" flattened:"true"`
// An optional unique identifier for configurations in a notification configuration.
// If you don't provide one, Amazon S3 will assign an ID.
Id *string `type:"string"`
+ // The Amazon Resource Name (ARN) of the Amazon SQS queue to which Amazon S3
+ // publishes a message when it detects events of the specified type.
Queue *string `type:"string"`
}
@@ -21442,6 +26926,7 @@ func (s *QueueConfigurationDeprecated) SetQueue(v string) *QueueConfigurationDep
return s
}
+// The container for the records event.
type RecordsEvent struct {
_ struct{} `locationName:"RecordsEvent" type:"structure" payload:"Payload"`
@@ -21481,6 +26966,13 @@ func (s *RecordsEvent) UnmarshalEvent(
return nil
}
+func (s *RecordsEvent) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error) {
+ msg.Headers.Set(eventstreamapi.MessageTypeHeader, eventstream.StringValue(eventstreamapi.EventMessageType))
+ msg.Headers.Set(":content-type", eventstream.StringValue("application/octet-stream"))
+ msg.Payload = s.Payload
+ return msg, err
+}
+
// Specifies how requests are redirected. In the event of an error, you can
// specify a different error code to return.
type Redirect struct {
@@ -21608,7 +27100,7 @@ type ReplicationConfiguration struct {
// The Amazon Resource Name (ARN) of the AWS Identity and Access Management
// (IAM) role that Amazon S3 assumes when replicating objects. For more information,
- // see How to Set Up Cross-Region Replication (https://docs.aws.amazon.com/AmazonS3/latest/dev/crr-how-setup.html)
+ // see How to Set Up Replication (https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-how-setup.html)
// in the Amazon Simple Storage Service Developer Guide.
//
// Role is a required field
@@ -21673,14 +27165,30 @@ func (s *ReplicationConfiguration) SetRules(v []*ReplicationRule) *ReplicationCo
type ReplicationRule struct {
_ struct{} `type:"structure"`
- // Specifies whether Amazon S3 should replicate delete makers.
+ // Specifies whether Amazon S3 replicates the delete markers. If you specify
+ // a Filter, you must specify this element. However, in the latest version of
+ // replication configuration (when Filter is specified), Amazon S3 doesn't replicate
+ // delete markers. Therefore, the DeleteMarkerReplication element can contain
+ // only <Status>Disabled</Status>. For an example configuration, see Basic Rule
+ // Configuration (https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-add-config.html#replication-config-min-rule-config).
+ //
+ // If you don't specify the Filter element, Amazon S3 assumes that the replication
+ // configuration is the earlier version, V1. In the earlier version, Amazon
+ // S3 handled replication of delete markers differently. For more information,
+ // see Backward Compatibility (https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-add-config.html#replication-backward-compat-considerations).
DeleteMarkerReplication *DeleteMarkerReplication `type:"structure"`
- // A container for information about the replication destination.
+ // A container for information about the replication destination and its configurations
+ // including enabling the S3 Replication Time Control (S3 RTC).
//
// Destination is a required field
Destination *Destination `type:"structure" required:"true"`
+ // Optional configuration to replicate existing source bucket objects. For more
+ // information, see Replicating Existing Objects (https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-what-is-isnot-replicated.html#existing-object-replication)
+ // in the Amazon S3 Developer Guide.
+ ExistingObjectReplication *ExistingObjectReplication `type:"structure"`
+
// A filter that identifies the subset of objects to which the replication rule
// applies. A Filter must specify exactly one Prefix, Tag, or an And child element.
Filter *ReplicationRuleFilter `type:"structure"`
@@ -21688,9 +27196,9 @@ type ReplicationRule struct {
// A unique identifier for the rule. The maximum value is 255 characters.
ID *string `type:"string"`
- // An object keyname prefix that identifies the object or objects to which the
- // rule applies. The maximum prefix length is 1,024 characters. To include all
- // objects in a bucket, specify an empty string.
+ // An object key name prefix that identifies the object or objects to which
+ // the rule applies. The maximum prefix length is 1,024 characters. To include
+ // all objects in a bucket, specify an empty string.
//
// Deprecated: Prefix has been deprecated
Prefix *string `deprecated:"true" type:"string"`
@@ -21700,21 +27208,21 @@ type ReplicationRule struct {
// when filtering. If two or more rules identify the same object based on a
// specified filter, the rule with higher priority takes precedence. For example:
//
- // * Same object quality prefix based filter criteria If prefixes you specified
+ // * Same object quality prefix-based filter criteria if prefixes you specified
// in multiple rules overlap
//
- // * Same object qualify tag based filter criteria specified in multiple
+ // * Same object qualify tag-based filter criteria specified in multiple
// rules
//
- // For more information, see Cross-Region Replication (CRR) (https://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html)
- // in the Amazon S3 Developer Guide.
+ // For more information, see Replication (https://docs.aws.amazon.com/AmazonS3/latest/dev/replication.html)
+ // in the Amazon Simple Storage Service Developer Guide.
Priority *int64 `type:"integer"`
// A container that describes additional filters for identifying the source
// objects that you want to replicate. You can choose to enable or disable the
// replication of these objects. Currently, Amazon S3 supports only the filter
// that you can specify for objects created with server-side encryption using
- // an AWS KMS-Managed Key (SSE-KMS).
+ // a customer master key (CMK) stored in AWS Key Management Service (SSE-KMS).
SourceSelectionCriteria *SourceSelectionCriteria `type:"structure"`
// Specifies whether the rule is enabled.
@@ -21747,6 +27255,11 @@ func (s *ReplicationRule) Validate() error {
invalidParams.AddNested("Destination", err.(request.ErrInvalidParams))
}
}
+ if s.ExistingObjectReplication != nil {
+ if err := s.ExistingObjectReplication.Validate(); err != nil {
+ invalidParams.AddNested("ExistingObjectReplication", err.(request.ErrInvalidParams))
+ }
+ }
if s.Filter != nil {
if err := s.Filter.Validate(); err != nil {
invalidParams.AddNested("Filter", err.(request.ErrInvalidParams))
@@ -21776,6 +27289,12 @@ func (s *ReplicationRule) SetDestination(v *Destination) *ReplicationRule {
return s
}
+// SetExistingObjectReplication sets the ExistingObjectReplication field's value.
+func (s *ReplicationRule) SetExistingObjectReplication(v *ExistingObjectReplication) *ReplicationRule {
+ s.ExistingObjectReplication = v
+ return s
+}
+
// SetFilter sets the Filter field's value.
func (s *ReplicationRule) SetFilter(v *ReplicationRuleFilter) *ReplicationRule {
s.Filter = v
@@ -21812,11 +27331,25 @@ func (s *ReplicationRule) SetStatus(v string) *ReplicationRule {
return s
}
+// A container for specifying rule filters. The filters determine the subset
+// of objects to which the rule applies. This element is required only if you
+// specify more than one filter.
+//
+// For example:
+//
+// * If you specify both a Prefix and a Tag filter, wrap these filters in
+// an And tag.
+//
+// * If you specify a filter based on multiple tags, wrap the Tag elements
+// in an And tag
type ReplicationRuleAndOperator struct {
_ struct{} `type:"structure"`
+ // An object key name prefix that identifies the subset of objects to which
+ // the rule applies.
Prefix *string `type:"string"`
+ // An array of tags containing key and value pairs.
Tags []*Tag `locationName:"Tag" locationNameList:"Tag" type:"list" flattened:"true"`
}
@@ -21878,8 +27411,8 @@ type ReplicationRuleFilter struct {
// in an And tag.
And *ReplicationRuleAndOperator `type:"structure"`
- // An object keyname prefix that identifies the subset of objects to which the
- // rule applies.
+ // An object key name prefix that identifies the subset of objects to which
+ // the rule applies.
Prefix *string `type:"string"`
// A container for specifying a tag key and value.
@@ -21936,6 +27469,91 @@ func (s *ReplicationRuleFilter) SetTag(v *Tag) *ReplicationRuleFilter {
return s
}
+// A container specifying S3 Replication Time Control (S3 RTC) related information,
+// including whether S3 RTC is enabled and the time when all objects and operations
+// on objects must be replicated. Must be specified together with a Metrics
+// block.
+type ReplicationTime struct {
+ _ struct{} `type:"structure"`
+
+ // Specifies whether the replication time is enabled.
+ //
+ // Status is a required field
+ Status *string `type:"string" required:"true" enum:"ReplicationTimeStatus"`
+
+ // A container specifying the time by which replication should be complete for
+ // all objects and operations on objects.
+ //
+ // Time is a required field
+ Time *ReplicationTimeValue `type:"structure" required:"true"`
+}
+
+// String returns the string representation
+func (s ReplicationTime) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ReplicationTime) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ReplicationTime) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ReplicationTime"}
+ if s.Status == nil {
+ invalidParams.Add(request.NewErrParamRequired("Status"))
+ }
+ if s.Time == nil {
+ invalidParams.Add(request.NewErrParamRequired("Time"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetStatus sets the Status field's value.
+func (s *ReplicationTime) SetStatus(v string) *ReplicationTime {
+ s.Status = &v
+ return s
+}
+
+// SetTime sets the Time field's value.
+func (s *ReplicationTime) SetTime(v *ReplicationTimeValue) *ReplicationTime {
+ s.Time = v
+ return s
+}
+
+// A container specifying the time value for S3 Replication Time Control (S3
+// RTC) and replication metrics EventThreshold.
+type ReplicationTimeValue struct {
+ _ struct{} `type:"structure"`
+
+ // Contains an integer specifying time in minutes.
+ //
+ // Valid values: 15 minutes.
+ Minutes *int64 `type:"integer"`
+}
+
+// String returns the string representation
+func (s ReplicationTimeValue) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ReplicationTimeValue) GoString() string {
+ return s.String()
+}
+
+// SetMinutes sets the Minutes field's value.
+func (s *ReplicationTimeValue) SetMinutes(v int64) *ReplicationTimeValue {
+ s.Minutes = &v
+ return s
+}
+
+// Container for Payer.
type RequestPaymentConfiguration struct {
_ struct{} `type:"structure"`
@@ -21974,6 +27592,7 @@ func (s *RequestPaymentConfiguration) SetPayer(v string) *RequestPaymentConfigur
return s
}
+// Container for specifying if periodic QueryProgress messages should be sent.
type RequestProgress struct {
_ struct{} `type:"structure"`
@@ -22001,21 +27620,34 @@ func (s *RequestProgress) SetEnabled(v bool) *RequestProgress {
type RestoreObjectInput struct {
_ struct{} `locationName:"RestoreObjectRequest" type:"structure" payload:"RestoreRequest"`
+ // The bucket name or containing the object to restore.
+ //
+ // When using this API with an access point, you must direct requests to the
+ // access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com.
+ // When using this operation using an access point through the AWS SDKs, you
+ // provide the access point ARN in place of the bucket name. For more information
+ // about access point ARNs, see Using Access Points (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html)
+ // in the Amazon Simple Storage Service Developer Guide.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
+ // Object key for which the operation was initiated.
+ //
// Key is a required field
Key *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
- // request. Bucket owners need not specify this parameter in their requests.
- // Documentation on downloading objects from requester pays buckets can be found
- // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
+ // Confirms that the requester knows that they will be charged for the request.
+ // Bucket owners need not specify this parameter in their requests. For information
+ // about downloading objects from requester pays buckets, see Downloading Objects
+ // in Requestor Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html)
+ // in the Amazon S3 Developer Guide.
RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
// Container for restore job parameters.
RestoreRequest *RestoreRequest `locationName:"RestoreRequest" type:"structure" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"`
+ // VersionId used to reference a specific version of the object.
VersionId *string `location:"querystring" locationName:"versionId" type:"string"`
}
@@ -22093,6 +27725,20 @@ func (s *RestoreObjectInput) SetVersionId(v string) *RestoreObjectInput {
return s
}
+func (s *RestoreObjectInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *RestoreObjectInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type RestoreObjectOutput struct {
_ struct{} `type:"structure"`
@@ -22298,6 +27944,7 @@ type Rule struct {
// in the Amazon Simple Storage Service Developer Guide.
AbortIncompleteMultipartUpload *AbortIncompleteMultipartUpload `type:"structure"`
+ // Specifies the expiration for the lifecycle of the object.
Expiration *LifecycleExpiration `type:"structure"`
// Unique identifier for the rule. The value can't be longer than 255 characters.
@@ -22409,12 +28056,12 @@ func (s *Rule) SetTransition(v *Transition) *Rule {
return s
}
-// Specifies the use of SSE-KMS to encrypt delivered Inventory reports.
+// Specifies the use of SSE-KMS to encrypt delivered inventory reports.
type SSEKMS struct {
_ struct{} `locationName:"SSE-KMS" type:"structure"`
- // Specifies the ID of the AWS Key Management Service (KMS) master encryption
- // key to use for encrypting Inventory reports.
+ // Specifies the ID of the AWS Key Management Service (AWS KMS) symmetric customer
+ // managed customer master key (CMK) to use for encrypting inventory reports.
//
// KeyId is a required field
KeyId *string `type:"string" required:"true" sensitive:"true"`
@@ -22449,7 +28096,7 @@ func (s *SSEKMS) SetKeyId(v string) *SSEKMS {
return s
}
-// Specifies the use of SSE-S3 to encrypt delivered Inventory reports.
+// Specifies the use of SSE-S3 to encrypt delivered inventory reports.
type SSES3 struct {
_ struct{} `locationName:"SSE-S3" type:"structure"`
}
@@ -22464,16 +28111,24 @@ func (s SSES3) GoString() string {
return s.String()
}
+// Specifies the byte range of the object to get the records from. A record
+// is processed when its first byte is contained by the range. This parameter
+// is optional, but when specified, it must not be empty. See RFC 2616, Section
+// 14.35.1 about how to specify the start and end of the range.
type ScanRange struct {
_ struct{} `type:"structure"`
// Specifies the end of the byte range. This parameter is optional. Valid values:
// non-negative integers. The default value is one less than the size of the
- // object being queried.
+ // object being queried. If only the End parameter is supplied, it is interpreted
+ // to mean scan the last N bytes of the file. For example, <scanrange><end>50</end></scanrange>
+ // means scan the last 50 bytes.
End *int64 `type:"long"`
// Specifies the start of the byte range. This parameter is optional. Valid
- // values: non-negative integers. The default value is 0.
+ // values: non-negative integers. The default value is 0. If only start is supplied,
+ // it means scan from that point to the end of the file.For example; <scanrange><start>50</start></scanrange>
+ // means scan from byte 50 until the end of the file.
Start *int64 `type:"long"`
}
@@ -22499,75 +28154,8 @@ func (s *ScanRange) SetStart(v int64) *ScanRange {
return s
}
-// SelectObjectContentEventStream provides handling of EventStreams for
-// the SelectObjectContent API.
-//
-// Use this type to receive SelectObjectContentEventStream events. The events
-// can be read from the Events channel member.
-//
-// The events that can be received are:
-//
-// * ContinuationEvent
-// * EndEvent
-// * ProgressEvent
-// * RecordsEvent
-// * StatsEvent
-type SelectObjectContentEventStream struct {
- // Reader is the EventStream reader for the SelectObjectContentEventStream
- // events. This value is automatically set by the SDK when the API call is made
- // Use this member when unit testing your code with the SDK to mock out the
- // EventStream Reader.
- //
- // Must not be nil.
- Reader SelectObjectContentEventStreamReader
-
- // StreamCloser is the io.Closer for the EventStream connection. For HTTP
- // EventStream this is the response Body. The stream will be closed when
- // the Close method of the EventStream is called.
- StreamCloser io.Closer
-}
-
-// Close closes the EventStream. This will also cause the Events channel to be
-// closed. You can use the closing of the Events channel to terminate your
-// application's read from the API's EventStream.
-//
-// Will close the underlying EventStream reader. For EventStream over HTTP
-// connection this will also close the HTTP connection.
-//
-// Close must be called when done using the EventStream API. Not calling Close
-// may result in resource leaks.
-func (es *SelectObjectContentEventStream) Close() (err error) {
- es.Reader.Close()
- es.StreamCloser.Close()
-
- return es.Err()
-}
-
-// Err returns any error that occurred while reading EventStream Events from
-// the service API's response. Returns nil if there were no errors.
-func (es *SelectObjectContentEventStream) Err() error {
- if err := es.Reader.Err(); err != nil {
- return err
- }
- return nil
-}
-
-// Events returns a channel to read EventStream Events from the
-// SelectObjectContent API.
-//
-// These events are:
-//
-// * ContinuationEvent
-// * EndEvent
-// * ProgressEvent
-// * RecordsEvent
-// * StatsEvent
-func (es *SelectObjectContentEventStream) Events() <-chan SelectObjectContentEventStreamEvent {
- return es.Reader.Events()
-}
-
// SelectObjectContentEventStreamEvent groups together all EventStream
-// events read from the SelectObjectContent API.
+// events writes for SelectObjectContentEventStream.
//
// These events are:
//
@@ -22578,11 +28166,12 @@ func (es *SelectObjectContentEventStream) Events() <-chan SelectObjectContentEve
// * StatsEvent
type SelectObjectContentEventStreamEvent interface {
eventSelectObjectContentEventStream()
+ eventstreamapi.Marshaler
+ eventstreamapi.Unmarshaler
}
-// SelectObjectContentEventStreamReader provides the interface for reading EventStream
-// Events from the SelectObjectContent API. The
-// default implementation for this interface will be SelectObjectContentEventStream.
+// SelectObjectContentEventStreamReader provides the interface for reading to the stream. The
+// default implementation for this interface will be SelectObjectContentEventStreamData.
//
// The reader's Close method must allow multiple concurrent calls.
//
@@ -22597,8 +28186,7 @@ type SelectObjectContentEventStreamReader interface {
// Returns a channel of events as they are read from the event stream.
Events() <-chan SelectObjectContentEventStreamEvent
- // Close will close the underlying event stream reader. For event stream over
- // HTTP this will also close the HTTP connection.
+ // Close will stop the reader reading events from the stream.
Close() error
// Returns any error that has occurred while reading from the event stream.
@@ -22608,57 +28196,44 @@ type SelectObjectContentEventStreamReader interface {
type readSelectObjectContentEventStream struct {
eventReader *eventstreamapi.EventReader
stream chan SelectObjectContentEventStreamEvent
- errVal atomic.Value
+ err *eventstreamapi.OnceError
done chan struct{}
closeOnce sync.Once
}
-func newReadSelectObjectContentEventStream(
- reader io.ReadCloser,
- unmarshalers request.HandlerList,
- logger aws.Logger,
- logLevel aws.LogLevelType,
-) *readSelectObjectContentEventStream {
+func newReadSelectObjectContentEventStream(eventReader *eventstreamapi.EventReader) *readSelectObjectContentEventStream {
r := &readSelectObjectContentEventStream{
- stream: make(chan SelectObjectContentEventStreamEvent),
- done: make(chan struct{}),
+ eventReader: eventReader,
+ stream: make(chan SelectObjectContentEventStreamEvent),
+ done: make(chan struct{}),
+ err: eventstreamapi.NewOnceError(),
}
-
- r.eventReader = eventstreamapi.NewEventReader(
- reader,
- protocol.HandlerPayloadUnmarshal{
- Unmarshalers: unmarshalers,
- },
- r.unmarshalerForEventType,
- )
- r.eventReader.UseLogger(logger, logLevel)
+ go r.readEventStream()
return r
}
-// Close will close the underlying event stream reader. For EventStream over
-// HTTP this will also close the HTTP connection.
+// Close will close the underlying event stream reader.
func (r *readSelectObjectContentEventStream) Close() error {
r.closeOnce.Do(r.safeClose)
-
return r.Err()
}
+func (r *readSelectObjectContentEventStream) ErrorSet() <-chan struct{} {
+ return r.err.ErrorSet()
+}
+
+func (r *readSelectObjectContentEventStream) Closed() <-chan struct{} {
+ return r.done
+}
+
func (r *readSelectObjectContentEventStream) safeClose() {
close(r.done)
- err := r.eventReader.Close()
- if err != nil {
- r.errVal.Store(err)
- }
}
func (r *readSelectObjectContentEventStream) Err() error {
- if v := r.errVal.Load(); v != nil {
- return v.(error)
- }
-
- return nil
+ return r.err.Err()
}
func (r *readSelectObjectContentEventStream) Events() <-chan SelectObjectContentEventStreamEvent {
@@ -22666,6 +28241,7 @@ func (r *readSelectObjectContentEventStream) Events() <-chan SelectObjectContent
}
func (r *readSelectObjectContentEventStream) readEventStream() {
+ defer r.Close()
defer close(r.stream)
for {
@@ -22680,7 +28256,7 @@ func (r *readSelectObjectContentEventStream) readEventStream() {
return
default:
}
- r.errVal.Store(err)
+ r.err.SetError(err)
return
}
@@ -22692,22 +28268,20 @@ func (r *readSelectObjectContentEventStream) readEventStream() {
}
}
-func (r *readSelectObjectContentEventStream) unmarshalerForEventType(
- eventType string,
-) (eventstreamapi.Unmarshaler, error) {
+type unmarshalerForSelectObjectContentEventStreamEvent struct {
+ metadata protocol.ResponseMetadata
+}
+
+func (u unmarshalerForSelectObjectContentEventStreamEvent) UnmarshalerForEventName(eventType string) (eventstreamapi.Unmarshaler, error) {
switch eventType {
case "Cont":
return &ContinuationEvent{}, nil
-
case "End":
return &EndEvent{}, nil
-
case "Progress":
return &ProgressEvent{}, nil
-
case "Records":
return &RecordsEvent{}, nil
-
case "Stats":
return &StatsEvent{}, nil
default:
@@ -22739,7 +28313,7 @@ type SelectObjectContentInput struct {
// Expression is a required field
Expression *string `type:"string" required:"true"`
- // The type of the provided expression (for example., SQL).
+ // The type of the provided expression (for example, SQL).
//
// ExpressionType is a required field
ExpressionType *string `type:"string" required:"true" enum:"ExpressionType"`
@@ -22778,6 +28352,18 @@ type SelectObjectContentInput struct {
// is processed when its first byte is contained by the range. This parameter
// is optional, but when specified, it must not be empty. See RFC 2616, Section
// 14.35.1 about how to specify the start and end of the range.
+ //
+ // ScanRangemay be used in the following ways:
+ //
+ // * <scanrange><start>50</start><end>100</end></scanrange> - process only
+ // the records starting between the bytes 50 and 100 (inclusive, counting
+ // from zero)
+ //
+ // * <scanrange><start>50</start></scanrange> - process only the records
+ // starting after the byte 50
+ //
+ // * <scanrange><end>50</end></scanrange> - process only the records within
+ // the last 50 bytes of the file.
ScanRange *ScanRange `type:"structure"`
}
@@ -22905,11 +28491,24 @@ func (s *SelectObjectContentInput) SetScanRange(v *ScanRange) *SelectObjectConte
return s
}
+func (s *SelectObjectContentInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *SelectObjectContentInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type SelectObjectContentOutput struct {
_ struct{} `type:"structure" payload:"Payload"`
- // Use EventStream to use the API's stream.
- EventStream *SelectObjectContentEventStream `type:"structure"`
+ EventStream *SelectObjectContentEventStream
}
// String returns the string representation
@@ -22922,29 +28521,17 @@ func (s SelectObjectContentOutput) GoString() string {
return s.String()
}
-// SetEventStream sets the EventStream field's value.
func (s *SelectObjectContentOutput) SetEventStream(v *SelectObjectContentEventStream) *SelectObjectContentOutput {
s.EventStream = v
return s
}
+func (s *SelectObjectContentOutput) GetEventStream() *SelectObjectContentEventStream {
+ return s.EventStream
+}
-func (s *SelectObjectContentOutput) runEventStreamLoop(r *request.Request) {
- if r.Error != nil {
- return
- }
- reader := newReadSelectObjectContentEventStream(
- r.HTTPResponse.Body,
- r.Handlers.UnmarshalStream,
- r.Config.Logger,
- r.Config.LogLevel.Value(),
- )
- go reader.readEventStream()
-
- eventStream := &SelectObjectContentEventStream{
- StreamCloser: r.HTTPResponse.Body,
- Reader: reader,
- }
- s.EventStream = eventStream
+// GetStream returns the type to interact with the event stream.
+func (s *SelectObjectContentOutput) GetStream() *SelectObjectContentEventStream {
+ return s.EventStream
}
// Describes the parameters for Select job types.
@@ -22956,7 +28543,7 @@ type SelectParameters struct {
// Expression is a required field
Expression *string `type:"string" required:"true"`
- // The type of the provided expression (e.g., SQL).
+ // The type of the provided expression (for example, SQL).
//
// ExpressionType is a required field
ExpressionType *string `type:"string" required:"true" enum:"ExpressionType"`
@@ -23176,7 +28763,7 @@ func (s *ServerSideEncryptionRule) SetApplyServerSideEncryptionByDefault(v *Serv
// objects that you want to replicate. You can choose to enable or disable the
// replication of these objects. Currently, Amazon S3 supports only the filter
// that you can specify for objects created with server-side encryption using
-// an AWS KMS-Managed Key (SSE-KMS).
+// a customer master key (CMK) stored in AWS Key Management Service (SSE-KMS).
type SourceSelectionCriteria struct {
_ struct{} `type:"structure"`
@@ -23223,7 +28810,7 @@ type SseKmsEncryptedObjects struct {
_ struct{} `type:"structure"`
// Specifies whether Amazon S3 replicates objects created with server-side encryption
- // using an AWS KMS-managed key.
+ // using a customer master key (CMK) stored in AWS Key Management Service.
//
// Status is a required field
Status *string `type:"string" required:"true" enum:"SseKmsEncryptedObjectsStatus"`
@@ -23258,6 +28845,7 @@ func (s *SseKmsEncryptedObjects) SetStatus(v string) *SseKmsEncryptedObjects {
return s
}
+// Container for the stats details.
type Stats struct {
_ struct{} `type:"structure"`
@@ -23299,6 +28887,7 @@ func (s *Stats) SetBytesScanned(v int64) *Stats {
return s
}
+// Container for the Stats Event.
type StatsEvent struct {
_ struct{} `locationName:"StatsEvent" type:"structure" payload:"Details"`
@@ -23339,6 +28928,16 @@ func (s *StatsEvent) UnmarshalEvent(
return nil
}
+func (s *StatsEvent) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error) {
+ msg.Headers.Set(eventstreamapi.MessageTypeHeader, eventstream.StringValue(eventstreamapi.EventMessageType))
+ var buf bytes.Buffer
+ if err = pm.MarshalPayload(&buf, s); err != nil {
+ return eventstream.Message{}, err
+ }
+ msg.Payload = buf.Bytes()
+ return msg, err
+}
+
// Specifies data related to access patterns to be collected and made available
// to analyze the tradeoffs between different storage classes for an Amazon
// S3 bucket.
@@ -23381,6 +28980,8 @@ func (s *StorageClassAnalysis) SetDataExport(v *StorageClassAnalysisDataExport)
return s
}
+// Container for data related to the storage class analysis for an Amazon S3
+// bucket for export.
type StorageClassAnalysisDataExport struct {
_ struct{} `type:"structure"`
@@ -23438,6 +29039,7 @@ func (s *StorageClassAnalysisDataExport) SetOutputSchemaVersion(v string) *Stora
return s
}
+// A container of a key value name pair.
type Tag struct {
_ struct{} `type:"structure"`
@@ -23493,9 +29095,12 @@ func (s *Tag) SetValue(v string) *Tag {
return s
}
+// Container for TagSet elements.
type Tagging struct {
_ struct{} `type:"structure"`
+ // A collection for a set of tags
+ //
// TagSet is a required field
TagSet []*Tag `locationNameList:"Tag" type:"list" required:"true"`
}
@@ -23539,9 +29144,11 @@ func (s *Tagging) SetTagSet(v []*Tag) *Tagging {
return s
}
+// Container for granting information.
type TargetGrant struct {
_ struct{} `type:"structure"`
+ // Container for the person being granted permissions.
Grantee *Grantee `type:"structure" xmlPrefix:"xsi" xmlURI:"http://www.w3.org/2001/XMLSchema-instance"`
// Logging permissions assigned to the Grantee for the bucket.
@@ -23664,6 +29271,10 @@ func (s *TopicConfiguration) SetTopicArn(v string) *TopicConfiguration {
return s
}
+// A container for specifying the configuration for publication of messages
+// to an Amazon Simple Notification Service (Amazon SNS) topic when Amazon S3
+// detects specified events. This data type is deprecated. Use TopicConfiguration
+// instead.
type TopicConfigurationDeprecated struct {
_ struct{} `type:"structure"`
@@ -23672,6 +29283,7 @@ type TopicConfigurationDeprecated struct {
// Deprecated: Event has been deprecated
Event *string `deprecated:"true" type:"string" enum:"Event"`
+ // A collection of events related to objects
Events []*string `locationName:"Event" type:"list" flattened:"true"`
// An optional unique identifier for configurations in a notification configuration.
@@ -23764,6 +29376,8 @@ func (s *Transition) SetStorageClass(v string) *Transition {
type UploadPartCopyInput struct {
_ struct{} `locationName:"UploadPartCopyRequest" type:"structure"`
+ // The bucket name.
+ //
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
@@ -23789,11 +29403,12 @@ type UploadPartCopyInput struct {
// The range of bytes to copy from the source object. The range value must use
// the form bytes=first-last, where the first and last are the zero-based byte
// offsets to copy. For example, bytes=0-9 indicates that you want to copy the
- // first ten bytes of the source. You can copy a range only if the source object
+ // first 10 bytes of the source. You can copy a range only if the source object
// is greater than 5 MB.
CopySourceRange *string `location:"header" locationName:"x-amz-copy-source-range" type:"string"`
- // Specifies the algorithm to use when decrypting the source object (e.g., AES256).
+ // Specifies the algorithm to use when decrypting the source object (for example,
+ // AES256).
CopySourceSSECustomerAlgorithm *string `location:"header" locationName:"x-amz-copy-source-server-side-encryption-customer-algorithm" type:"string"`
// Specifies the customer-provided encryption key for Amazon S3 to use to decrypt
@@ -23802,10 +29417,12 @@ type UploadPartCopyInput struct {
CopySourceSSECustomerKey *string `marshal-as:"blob" location:"header" locationName:"x-amz-copy-source-server-side-encryption-customer-key" type:"string" sensitive:"true"`
// Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321.
- // Amazon S3 uses this header for a message integrity check to ensure the encryption
- // key was transmitted without error.
+ // Amazon S3 uses this header for a message integrity check to ensure that the
+ // encryption key was transmitted without error.
CopySourceSSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-copy-source-server-side-encryption-customer-key-MD5" type:"string"`
+ // Object key for which the multipart upload was initiated.
+ //
// Key is a required field
Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
@@ -23815,26 +29432,28 @@ type UploadPartCopyInput struct {
// PartNumber is a required field
PartNumber *int64 `location:"querystring" locationName:"partNumber" type:"integer" required:"true"`
- // Confirms that the requester knows that she or he will be charged for the
- // request. Bucket owners need not specify this parameter in their requests.
- // Documentation on downloading objects from requester pays buckets can be found
- // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
+ // Confirms that the requester knows that they will be charged for the request.
+ // Bucket owners need not specify this parameter in their requests. For information
+ // about downloading objects from requester pays buckets, see Downloading Objects
+ // in Requestor Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html)
+ // in the Amazon S3 Developer Guide.
RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
- // Specifies the algorithm to use to when encrypting the object (e.g., AES256).
+ // Specifies the algorithm to use to when encrypting the object (for example,
+ // AES256).
SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
// Specifies the customer-provided encryption key for Amazon S3 to use in encrypting
// data. This value is used to store the object and then it is discarded; Amazon
- // does not store the encryption key. The key must be appropriate for use with
- // the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm
+ // S3 does not store the encryption key. The key must be appropriate for use
+ // with the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm
// header. This must be the same encryption key specified in the initiate multipart
// upload request.
SSECustomerKey *string `marshal-as:"blob" location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string" sensitive:"true"`
// Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321.
- // Amazon S3 uses this header for a message integrity check to ensure the encryption
- // key was transmitted without error.
+ // Amazon S3 uses this header for a message integrity check to ensure that the
+ // encryption key was transmitted without error.
SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
// Upload ID identifying the multipart upload whose part is being copied.
@@ -24007,9 +29626,24 @@ func (s *UploadPartCopyInput) SetUploadId(v string) *UploadPartCopyInput {
return s
}
+func (s *UploadPartCopyInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *UploadPartCopyInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type UploadPartCopyOutput struct {
_ struct{} `type:"structure" payload:"CopyPartResult"`
+ // Container for all response elements.
CopyPartResult *CopyPartResult `type:"structure"`
// The version of the source object that was copied, if you have enabled versioning
@@ -24026,16 +29660,17 @@ type UploadPartCopyOutput struct {
SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
// If server-side encryption with a customer-provided encryption key was requested,
- // the response will include this header to provide round trip message integrity
+ // the response will include this header to provide round-trip message integrity
// verification of the customer-provided encryption key.
SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
- // If present, specifies the ID of the AWS Key Management Service (KMS) master
- // encryption key that was used for the object.
+ // If present, specifies the ID of the AWS Key Management Service (AWS KMS)
+ // symmetric customer managed customer master key (CMK) that was used for the
+ // object.
SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"`
- // The Server-side encryption algorithm used when storing this object in S3
- // (e.g., AES256, aws:kms).
+ // The server-side encryption algorithm used when storing this object in Amazon
+ // S3 (for example, AES256, aws:kms).
ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"`
}
@@ -24107,7 +29742,7 @@ type UploadPartInput struct {
ContentLength *int64 `location:"header" locationName:"Content-Length" type:"long"`
// The base64-encoded 128-bit MD5 digest of the part data. This parameter is
- // auto-populated when using the command from the CLI. This parameted is required
+ // auto-populated when using the command from the CLI. This parameter is required
// if object lock parameters are specified.
ContentMD5 *string `location:"header" locationName:"Content-MD5" type:"string"`
@@ -24122,26 +29757,28 @@ type UploadPartInput struct {
// PartNumber is a required field
PartNumber *int64 `location:"querystring" locationName:"partNumber" type:"integer" required:"true"`
- // Confirms that the requester knows that she or he will be charged for the
- // request. Bucket owners need not specify this parameter in their requests.
- // Documentation on downloading objects from requester pays buckets can be found
- // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
+ // Confirms that the requester knows that they will be charged for the request.
+ // Bucket owners need not specify this parameter in their requests. For information
+ // about downloading objects from requester pays buckets, see Downloading Objects
+ // in Requestor Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html)
+ // in the Amazon S3 Developer Guide.
RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
- // Specifies the algorithm to use to when encrypting the object (e.g., AES256).
+ // Specifies the algorithm to use to when encrypting the object (for example,
+ // AES256).
SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
// Specifies the customer-provided encryption key for Amazon S3 to use in encrypting
// data. This value is used to store the object and then it is discarded; Amazon
- // does not store the encryption key. The key must be appropriate for use with
- // the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm
+ // S3 does not store the encryption key. The key must be appropriate for use
+ // with the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm
// header. This must be the same encryption key specified in the initiate multipart
// upload request.
SSECustomerKey *string `marshal-as:"blob" location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string" sensitive:"true"`
// Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321.
- // Amazon S3 uses this header for a message integrity check to ensure the encryption
- // key was transmitted without error.
+ // Amazon S3 uses this header for a message integrity check to ensure that the
+ // encryption key was transmitted without error.
SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
// Upload ID identifying the multipart upload whose part is being uploaded.
@@ -24268,6 +29905,20 @@ func (s *UploadPartInput) SetUploadId(v string) *UploadPartInput {
return s
}
+func (s *UploadPartInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *UploadPartInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
type UploadPartOutput struct {
_ struct{} `type:"structure"`
@@ -24284,16 +29935,16 @@ type UploadPartOutput struct {
SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
// If server-side encryption with a customer-provided encryption key was requested,
- // the response will include this header to provide round trip message integrity
+ // the response will include this header to provide round-trip message integrity
// verification of the customer-provided encryption key.
SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
- // If present, specifies the ID of the AWS Key Management Service (KMS) master
- // encryption key that was used for the object.
+ // If present, specifies the ID of the AWS Key Management Service (AWS KMS)
+ // symmetric customer managed customer master key (CMK) was used for the object.
SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"`
- // The Server-side encryption algorithm used when storing this object in S3
- // (e.g., AES256, aws:kms).
+ // The server-side encryption algorithm used when storing this object in Amazon
+ // S3 (for example, AES256, aws:kms).
ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"`
}
@@ -24608,11 +30259,37 @@ const (
// EventS3ObjectRemovedDeleteMarkerCreated is a Event enum value
EventS3ObjectRemovedDeleteMarkerCreated = "s3:ObjectRemoved:DeleteMarkerCreated"
+ // EventS3ObjectRestore is a Event enum value
+ EventS3ObjectRestore = "s3:ObjectRestore:*"
+
// EventS3ObjectRestorePost is a Event enum value
EventS3ObjectRestorePost = "s3:ObjectRestore:Post"
// EventS3ObjectRestoreCompleted is a Event enum value
EventS3ObjectRestoreCompleted = "s3:ObjectRestore:Completed"
+
+ // EventS3Replication is a Event enum value
+ EventS3Replication = "s3:Replication:*"
+
+ // EventS3ReplicationOperationFailedReplication is a Event enum value
+ EventS3ReplicationOperationFailedReplication = "s3:Replication:OperationFailedReplication"
+
+ // EventS3ReplicationOperationNotTracked is a Event enum value
+ EventS3ReplicationOperationNotTracked = "s3:Replication:OperationNotTracked"
+
+ // EventS3ReplicationOperationMissedThreshold is a Event enum value
+ EventS3ReplicationOperationMissedThreshold = "s3:Replication:OperationMissedThreshold"
+
+ // EventS3ReplicationOperationReplicatedAfterThreshold is a Event enum value
+ EventS3ReplicationOperationReplicatedAfterThreshold = "s3:Replication:OperationReplicatedAfterThreshold"
+)
+
+const (
+ // ExistingObjectReplicationStatusEnabled is a ExistingObjectReplicationStatus enum value
+ ExistingObjectReplicationStatusEnabled = "Enabled"
+
+ // ExistingObjectReplicationStatusDisabled is a ExistingObjectReplicationStatus enum value
+ ExistingObjectReplicationStatusDisabled = "Disabled"
)
const (
@@ -24741,6 +30418,14 @@ const (
MetadataDirectiveReplace = "REPLACE"
)
+const (
+ // MetricsStatusEnabled is a MetricsStatus enum value
+ MetricsStatusEnabled = "Enabled"
+
+ // MetricsStatusDisabled is a MetricsStatus enum value
+ MetricsStatusDisabled = "Disabled"
+)
+
const (
// ObjectCannedACLPrivate is a ObjectCannedACL enum value
ObjectCannedACLPrivate = "private"
@@ -24889,6 +30574,14 @@ const (
ReplicationStatusReplica = "REPLICA"
)
+const (
+ // ReplicationTimeStatusEnabled is a ReplicationTimeStatus enum value
+ ReplicationTimeStatusEnabled = "Enabled"
+
+ // ReplicationTimeStatusDisabled is a ReplicationTimeStatus enum value
+ ReplicationTimeStatusDisabled = "Disabled"
+)
+
// If present, indicates that the requester was successfully charged for the
// request.
const (
@@ -24896,10 +30589,11 @@ const (
RequestChargedRequester = "requester"
)
-// Confirms that the requester knows that she or he will be charged for the
-// request. Bucket owners need not specify this parameter in their requests.
-// Documentation on downloading objects from requester pays buckets can be found
-// at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
+// Confirms that the requester knows that they will be charged for the request.
+// Bucket owners need not specify this parameter in their requests. For information
+// about downloading objects from requester pays buckets, see Downloading Objects
+// in Requestor Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html)
+// in the Amazon S3 Developer Guide.
const (
// RequestPayerRequester is a RequestPayer enum value
RequestPayerRequester = "requester"
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/customizations.go b/vendor/github.com/aws/aws-sdk-go/service/s3/customizations.go
index 23d386b16..036d0b2e0 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
@@ -4,6 +4,7 @@ import (
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/internal/s3err"
+ "github.com/aws/aws-sdk-go/service/s3/internal/arn"
)
func init() {
@@ -13,7 +14,7 @@ func init() {
func defaultInitClientFn(c *client.Client) {
// Support building custom endpoints based on config
- c.Handlers.Build.PushFront(updateEndpointForS3Config)
+ c.Handlers.Build.PushFront(endpointHandler)
// Require SSL when using SSE keys
c.Handlers.Validate.PushBack(validateSSERequiresSSL)
@@ -27,7 +28,7 @@ func defaultInitClientFn(c *client.Client) {
}
func defaultInitRequestFn(r *request.Request) {
- // Add reuest handlers for specific platforms.
+ // Add request handlers for specific platforms.
// e.g. 100-continue support for PUT requests using Go 1.6
platformRequestHandlers(r)
@@ -73,3 +74,8 @@ type sseCustomerKeyGetter interface {
type copySourceSSECustomerKeyGetter interface {
getCopySourceSSECustomerKey() string
}
+
+type endpointARNGetter interface {
+ getEndpointARN() (arn.Resource, error)
+ hasEndpointARN() bool
+}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/endpoint.go b/vendor/github.com/aws/aws-sdk-go/service/s3/endpoint.go
new file mode 100644
index 000000000..c4048fbfb
--- /dev/null
+++ b/vendor/github.com/aws/aws-sdk-go/service/s3/endpoint.go
@@ -0,0 +1,233 @@
+package s3
+
+import (
+ "net/url"
+ "strings"
+
+ "github.com/aws/aws-sdk-go/aws"
+ awsarn "github.com/aws/aws-sdk-go/aws/arn"
+ "github.com/aws/aws-sdk-go/aws/awserr"
+ "github.com/aws/aws-sdk-go/aws/endpoints"
+ "github.com/aws/aws-sdk-go/aws/request"
+ "github.com/aws/aws-sdk-go/private/protocol"
+ "github.com/aws/aws-sdk-go/service/s3/internal/arn"
+)
+
+// Used by shapes with members decorated as endpoint ARN.
+func parseEndpointARN(v string) (arn.Resource, error) {
+ return arn.ParseResource(v, accessPointResourceParser)
+}
+
+func accessPointResourceParser(a awsarn.ARN) (arn.Resource, error) {
+ resParts := arn.SplitResource(a.Resource)
+ switch resParts[0] {
+ case "accesspoint":
+ return arn.ParseAccessPointResource(a, resParts[1:])
+ default:
+ return nil, arn.InvalidARNError{ARN: a, Reason: "unknown resource type"}
+ }
+}
+
+func endpointHandler(req *request.Request) {
+ endpoint, ok := req.Params.(endpointARNGetter)
+ if !ok || !endpoint.hasEndpointARN() {
+ updateBucketEndpointFromParams(req)
+ return
+ }
+
+ resource, err := endpoint.getEndpointARN()
+ if err != nil {
+ req.Error = newInvalidARNError(nil, err)
+ return
+ }
+
+ resReq := resourceRequest{
+ Resource: resource,
+ Request: req,
+ }
+
+ if resReq.IsCrossPartition() {
+ req.Error = newClientPartitionMismatchError(resource,
+ req.ClientInfo.PartitionID, aws.StringValue(req.Config.Region), nil)
+ return
+ }
+
+ if !resReq.AllowCrossRegion() && resReq.IsCrossRegion() {
+ req.Error = newClientRegionMismatchError(resource,
+ req.ClientInfo.PartitionID, aws.StringValue(req.Config.Region), nil)
+ return
+ }
+
+ if resReq.HasCustomEndpoint() {
+ req.Error = newInvalidARNWithCustomEndpointError(resource, nil)
+ return
+ }
+
+ switch tv := resource.(type) {
+ case arn.AccessPointARN:
+ err = updateRequestAccessPointEndpoint(req, tv)
+ if err != nil {
+ req.Error = err
+ }
+ default:
+ req.Error = newInvalidARNError(resource, nil)
+ }
+}
+
+type resourceRequest struct {
+ Resource arn.Resource
+ Request *request.Request
+}
+
+func (r resourceRequest) ARN() awsarn.ARN {
+ return r.Resource.GetARN()
+}
+
+func (r resourceRequest) AllowCrossRegion() bool {
+ return aws.BoolValue(r.Request.Config.S3UseARNRegion)
+}
+
+func (r resourceRequest) UseFIPS() bool {
+ return isFIPS(aws.StringValue(r.Request.Config.Region))
+}
+
+func (r resourceRequest) IsCrossPartition() bool {
+ return r.Request.ClientInfo.PartitionID != r.Resource.GetARN().Partition
+}
+
+func (r resourceRequest) IsCrossRegion() bool {
+ return isCrossRegion(r.Request, r.Resource.GetARN().Region)
+}
+
+func (r resourceRequest) HasCustomEndpoint() bool {
+ return len(aws.StringValue(r.Request.Config.Endpoint)) > 0
+}
+
+func isFIPS(clientRegion string) bool {
+ return strings.HasPrefix(clientRegion, "fips-") || strings.HasSuffix(clientRegion, "-fips")
+}
+func isCrossRegion(req *request.Request, otherRegion string) bool {
+ return req.ClientInfo.SigningRegion != otherRegion
+}
+
+func updateBucketEndpointFromParams(r *request.Request) {
+ bucket, ok := bucketNameFromReqParams(r.Params)
+ if !ok {
+ // Ignore operation requests if the bucket name was not provided
+ // if this is an input validation error the validation handler
+ // will report it.
+ return
+ }
+ updateEndpointForS3Config(r, bucket)
+}
+
+func updateRequestAccessPointEndpoint(req *request.Request, accessPoint arn.AccessPointARN) error {
+ // Accelerate not supported
+ if aws.BoolValue(req.Config.S3UseAccelerate) {
+ return newClientConfiguredForAccelerateError(accessPoint,
+ req.ClientInfo.PartitionID, aws.StringValue(req.Config.Region), nil)
+ }
+
+ // Ignore the disable host prefix for access points since custom endpoints
+ // are not supported.
+ req.Config.DisableEndpointHostPrefix = aws.Bool(false)
+
+ if err := accessPointEndpointBuilder(accessPoint).Build(req); err != nil {
+ return err
+ }
+
+ removeBucketFromPath(req.HTTPRequest.URL)
+
+ return nil
+}
+
+func removeBucketFromPath(u *url.URL) {
+ u.Path = strings.Replace(u.Path, "/{Bucket}", "", -1)
+ if u.Path == "" {
+ u.Path = "/"
+ }
+}
+
+type accessPointEndpointBuilder arn.AccessPointARN
+
+const (
+ accessPointPrefixLabel = "accesspoint"
+ accountIDPrefixLabel = "accountID"
+ accesPointPrefixTemplate = "{" + accessPointPrefixLabel + "}-{" + accountIDPrefixLabel + "}."
+)
+
+func (a accessPointEndpointBuilder) Build(req *request.Request) error {
+ resolveRegion := arn.AccessPointARN(a).Region
+ cfgRegion := aws.StringValue(req.Config.Region)
+
+ if isFIPS(cfgRegion) {
+ if aws.BoolValue(req.Config.S3UseARNRegion) && isCrossRegion(req, resolveRegion) {
+ // FIPS with cross region is not supported, the SDK must fail
+ // because there is no well defined method for SDK to construct a
+ // correct FIPS endpoint.
+ return newClientConfiguredForCrossRegionFIPSError(arn.AccessPointARN(a),
+ req.ClientInfo.PartitionID, cfgRegion, nil)
+ }
+ resolveRegion = cfgRegion
+ }
+
+ endpoint, err := resolveRegionalEndpoint(req, resolveRegion)
+ if err != nil {
+ return newFailedToResolveEndpointError(arn.AccessPointARN(a),
+ req.ClientInfo.PartitionID, cfgRegion, err)
+ }
+
+ if err = updateRequestEndpoint(req, endpoint.URL); err != nil {
+ return err
+ }
+
+ const serviceEndpointLabel = "s3-accesspoint"
+
+ // dualstack provided by endpoint resolver
+ cfgHost := req.HTTPRequest.URL.Host
+ if strings.HasPrefix(cfgHost, "s3") {
+ req.HTTPRequest.URL.Host = serviceEndpointLabel + cfgHost[2:]
+ }
+
+ protocol.HostPrefixBuilder{
+ Prefix: accesPointPrefixTemplate,
+ LabelsFn: a.hostPrefixLabelValues,
+ }.Build(req)
+
+ req.ClientInfo.SigningName = endpoint.SigningName
+ req.ClientInfo.SigningRegion = endpoint.SigningRegion
+
+ err = protocol.ValidateEndpointHost(req.Operation.Name, req.HTTPRequest.URL.Host)
+ if err != nil {
+ return newInvalidARNError(arn.AccessPointARN(a), err)
+ }
+
+ return nil
+}
+
+func (a accessPointEndpointBuilder) hostPrefixLabelValues() map[string]string {
+ return map[string]string{
+ accessPointPrefixLabel: arn.AccessPointARN(a).AccessPointName,
+ accountIDPrefixLabel: arn.AccessPointARN(a).AccountID,
+ }
+}
+
+func resolveRegionalEndpoint(r *request.Request, region string) (endpoints.ResolvedEndpoint, error) {
+ return r.Config.EndpointResolver.EndpointFor(EndpointsID, region, func(opts *endpoints.Options) {
+ opts.DisableSSL = aws.BoolValue(r.Config.DisableSSL)
+ opts.UseDualStack = aws.BoolValue(r.Config.UseDualStack)
+ opts.S3UsEast1RegionalEndpoint = endpoints.RegionalS3UsEast1Endpoint
+ })
+}
+
+func updateRequestEndpoint(r *request.Request, endpoint string) (err error) {
+ endpoint = endpoints.AddScheme(endpoint, aws.BoolValue(r.Config.DisableSSL))
+
+ r.HTTPRequest.URL, err = url.Parse(endpoint + r.Operation.HTTPPath)
+ if err != nil {
+ return awserr.New(request.ErrCodeSerialization,
+ "failed to parse endpoint URL", err)
+ }
+
+ return nil
+}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/endpoint_errors.go b/vendor/github.com/aws/aws-sdk-go/service/s3/endpoint_errors.go
new file mode 100644
index 000000000..9df03e78d
--- /dev/null
+++ b/vendor/github.com/aws/aws-sdk-go/service/s3/endpoint_errors.go
@@ -0,0 +1,151 @@
+package s3
+
+import (
+ "fmt"
+
+ "github.com/aws/aws-sdk-go/aws/awserr"
+ "github.com/aws/aws-sdk-go/service/s3/internal/arn"
+)
+
+const (
+ invalidARNErrorErrCode = "InvalidARNError"
+ configurationErrorErrCode = "ConfigurationError"
+)
+
+type invalidARNError struct {
+ message string
+ resource arn.Resource
+ origErr error
+}
+
+func (e invalidARNError) Error() string {
+ var extra string
+ if e.resource != nil {
+ extra = "ARN: " + e.resource.String()
+ }
+ return awserr.SprintError(e.Code(), e.Message(), extra, e.origErr)
+}
+
+func (e invalidARNError) Code() string {
+ return invalidARNErrorErrCode
+}
+
+func (e invalidARNError) Message() string {
+ return e.message
+}
+
+func (e invalidARNError) OrigErr() error {
+ return e.origErr
+}
+
+func newInvalidARNError(resource arn.Resource, err error) invalidARNError {
+ return invalidARNError{
+ message: "invalid ARN",
+ origErr: err,
+ resource: resource,
+ }
+}
+
+func newInvalidARNWithCustomEndpointError(resource arn.Resource, err error) invalidARNError {
+ return invalidARNError{
+ message: "resource ARN not supported with custom client endpoints",
+ origErr: err,
+ resource: resource,
+ }
+}
+
+// ARN not supported for the target partition
+func newInvalidARNWithUnsupportedPartitionError(resource arn.Resource, err error) invalidARNError {
+ return invalidARNError{
+ message: "resource ARN not supported for the target ARN partition",
+ origErr: err,
+ resource: resource,
+ }
+}
+
+type configurationError struct {
+ message string
+ resource arn.Resource
+ clientPartitionID string
+ clientRegion string
+ origErr error
+}
+
+func (e configurationError) Error() string {
+ extra := fmt.Sprintf("ARN: %s, client partition: %s, client region: %s",
+ e.resource, e.clientPartitionID, e.clientRegion)
+
+ return awserr.SprintError(e.Code(), e.Message(), extra, e.origErr)
+}
+
+func (e configurationError) Code() string {
+ return configurationErrorErrCode
+}
+
+func (e configurationError) Message() string {
+ return e.message
+}
+
+func (e configurationError) OrigErr() error {
+ return e.origErr
+}
+
+func newClientPartitionMismatchError(resource arn.Resource, clientPartitionID, clientRegion string, err error) configurationError {
+ return configurationError{
+ message: "client partition does not match provided ARN partition",
+ origErr: err,
+ resource: resource,
+ clientPartitionID: clientPartitionID,
+ clientRegion: clientRegion,
+ }
+}
+
+func newClientRegionMismatchError(resource arn.Resource, clientPartitionID, clientRegion string, err error) configurationError {
+ return configurationError{
+ message: "client region does not match provided ARN region",
+ origErr: err,
+ resource: resource,
+ clientPartitionID: clientPartitionID,
+ clientRegion: clientRegion,
+ }
+}
+
+func newFailedToResolveEndpointError(resource arn.Resource, clientPartitionID, clientRegion string, err error) configurationError {
+ return configurationError{
+ message: "endpoint resolver failed to find an endpoint for the provided ARN region",
+ origErr: err,
+ resource: resource,
+ clientPartitionID: clientPartitionID,
+ clientRegion: clientRegion,
+ }
+}
+
+func newClientConfiguredForFIPSError(resource arn.Resource, clientPartitionID, clientRegion string, err error) configurationError {
+ return configurationError{
+ message: "client configured for fips but cross-region resource ARN provided",
+ origErr: err,
+ resource: resource,
+ clientPartitionID: clientPartitionID,
+ clientRegion: clientRegion,
+ }
+}
+
+func newClientConfiguredForAccelerateError(resource arn.Resource, clientPartitionID, clientRegion string, err error) configurationError {
+ return configurationError{
+ message: "client configured for S3 Accelerate but is supported with resource ARN",
+ origErr: err,
+ resource: resource,
+ clientPartitionID: clientPartitionID,
+ clientRegion: clientRegion,
+ }
+}
+
+func newClientConfiguredForCrossRegionFIPSError(resource arn.Resource, clientPartitionID, clientRegion string, err error) configurationError {
+ return configurationError{
+ message: "client configured for FIPS with cross-region enabled but is supported with cross-region resource ARN",
+ origErr: err,
+ resource: resource,
+ clientPartitionID: clientPartitionID,
+ clientRegion: clientRegion,
+ }
+}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/errors.go b/vendor/github.com/aws/aws-sdk-go/service/s3/errors.go
index 931cb17bb..49aeff16f 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/errors.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/s3/errors.go
@@ -13,6 +13,12 @@ const (
// ErrCodeBucketAlreadyOwnedByYou for service response error code
// "BucketAlreadyOwnedByYou".
+ //
+ // The bucket you tried to create already exists, and you own it. Amazon S3
+ // returns this error in all AWS Regions except in the North Virginia Region.
+ // For legacy compatibility, if you re-create an existing bucket that you already
+ // own in the North Virginia Region, Amazon S3 returns 200 OK and resets the
+ // bucket access control lists (ACLs).
ErrCodeBucketAlreadyOwnedByYou = "BucketAlreadyOwnedByYou"
// ErrCodeNoSuchBucket for service response error code
@@ -36,13 +42,13 @@ const (
// ErrCodeObjectAlreadyInActiveTierError for service response error code
// "ObjectAlreadyInActiveTierError".
//
- // This operation is not allowed against this storage tier
+ // This operation is not allowed against this storage tier.
ErrCodeObjectAlreadyInActiveTierError = "ObjectAlreadyInActiveTierError"
// ErrCodeObjectNotInActiveTierError for service response error code
// "ObjectNotInActiveTierError".
//
// The source object of the COPY operation is not in the active tier and is
- // only stored in Amazon Glacier.
+ // only stored in Amazon S3 Glacier.
ErrCodeObjectNotInActiveTierError = "ObjectNotInActiveTierError"
)
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket.go b/vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket.go
index a7fbc2de2..81cdec1ae 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
@@ -30,10 +30,10 @@ var accelerateOpBlacklist = operationBlacklist{
opListBuckets, opCreateBucket, opDeleteBucket,
}
-// Request handler to automatically add the bucket name to the endpoint domain
+// 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) {
+func updateEndpointForS3Config(r *request.Request, bucketName string) {
forceHostStyle := aws.BoolValue(r.Config.S3ForcePathStyle)
accelerate := aws.BoolValue(r.Config.S3UseAccelerate)
@@ -43,45 +43,29 @@ func updateEndpointForS3Config(r *request.Request) {
r.Config.Logger.Log("ERROR: aws.Config.S3UseAccelerate is not compatible with aws.Config.S3ForcePathStyle, ignoring S3ForcePathStyle.")
}
}
- updateEndpointForAccelerate(r)
+ updateEndpointForAccelerate(r, bucketName)
} else if !forceHostStyle && r.Operation.Name != opGetBucketLocation {
- updateEndpointForHostStyle(r)
+ updateEndpointForHostStyle(r, bucketName)
}
}
-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) {
+func updateEndpointForHostStyle(r *request.Request, bucketName string) {
+ if !hostCompatibleBucketName(r.HTTPRequest.URL, bucketName) {
// bucket name must be valid to put into the host
return
}
- moveBucketToHost(r.HTTPRequest.URL, bucket)
+ moveBucketToHost(r.HTTPRequest.URL, bucketName)
}
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) {
+func updateEndpointForAccelerate(r *request.Request, bucketName string) {
+ if !hostCompatibleBucketName(r.HTTPRequest.URL, bucketName) {
r.Error = awserr.New("InvalidParameterException",
- fmt.Sprintf("bucket name %s is not compatible with S3 Accelerate", bucket),
+ fmt.Sprintf("bucket name %s is not compatible with S3 Accelerate", bucketName),
nil)
return
}
@@ -106,7 +90,7 @@ func updateEndpointForAccelerate(r *request.Request) {
r.HTTPRequest.URL.Host = strings.Join(parts, ".")
- moveBucketToHost(r.HTTPRequest.URL, bucket)
+ moveBucketToHost(r.HTTPRequest.URL, bucketName)
}
// Attempts to retrieve the bucket name from the request input parameters.
@@ -148,8 +132,5 @@ func dnsCompatibleBucketName(bucket string) bool {
// 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 = "/"
- }
+ removeBucketFromPath(u)
}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/internal/arn/accesspoint_arn.go b/vendor/github.com/aws/aws-sdk-go/service/s3/internal/arn/accesspoint_arn.go
new file mode 100644
index 000000000..2f93f96fd
--- /dev/null
+++ b/vendor/github.com/aws/aws-sdk-go/service/s3/internal/arn/accesspoint_arn.go
@@ -0,0 +1,45 @@
+package arn
+
+import (
+ "strings"
+
+ "github.com/aws/aws-sdk-go/aws/arn"
+)
+
+// AccessPointARN provides representation
+type AccessPointARN struct {
+ arn.ARN
+ AccessPointName string
+}
+
+// GetARN returns the base ARN for the Access Point resource
+func (a AccessPointARN) GetARN() arn.ARN {
+ return a.ARN
+}
+
+// ParseAccessPointResource attempts to parse the ARN's resource as an
+// AccessPoint resource.
+func ParseAccessPointResource(a arn.ARN, resParts []string) (AccessPointARN, error) {
+ if len(a.Region) == 0 {
+ return AccessPointARN{}, InvalidARNError{a, "region not set"}
+ }
+ if len(a.AccountID) == 0 {
+ return AccessPointARN{}, InvalidARNError{a, "account-id not set"}
+ }
+ if len(resParts) == 0 {
+ return AccessPointARN{}, InvalidARNError{a, "resource-id not set"}
+ }
+ if len(resParts) > 1 {
+ return AccessPointARN{}, InvalidARNError{a, "sub resource not supported"}
+ }
+
+ resID := resParts[0]
+ if len(strings.TrimSpace(resID)) == 0 {
+ return AccessPointARN{}, InvalidARNError{a, "resource-id not set"}
+ }
+
+ return AccessPointARN{
+ ARN: a,
+ AccessPointName: resID,
+ }, nil
+}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/internal/arn/arn.go b/vendor/github.com/aws/aws-sdk-go/service/s3/internal/arn/arn.go
new file mode 100644
index 000000000..a942d887f
--- /dev/null
+++ b/vendor/github.com/aws/aws-sdk-go/service/s3/internal/arn/arn.go
@@ -0,0 +1,71 @@
+package arn
+
+import (
+ "strings"
+
+ "github.com/aws/aws-sdk-go/aws/arn"
+)
+
+// Resource provides the interfaces abstracting ARNs of specific resource
+// types.
+type Resource interface {
+ GetARN() arn.ARN
+ String() string
+}
+
+// ResourceParser provides the function for parsing an ARN's resource
+// component into a typed resource.
+type ResourceParser func(arn.ARN) (Resource, error)
+
+// ParseResource parses an AWS ARN into a typed resource for the S3 API.
+func ParseResource(s string, resParser ResourceParser) (resARN Resource, err error) {
+ a, err := arn.Parse(s)
+ if err != nil {
+ return nil, err
+ }
+
+ if len(a.Partition) == 0 {
+ return nil, InvalidARNError{a, "partition not set"}
+ }
+ if a.Service != "s3" {
+ return nil, InvalidARNError{a, "service is not S3"}
+ }
+ if len(a.Resource) == 0 {
+ return nil, InvalidARNError{a, "resource not set"}
+ }
+
+ return resParser(a)
+}
+
+// SplitResource splits the resource components by the ARN resource delimiters.
+func SplitResource(v string) []string {
+ var parts []string
+ var offset int
+
+ for offset <= len(v) {
+ idx := strings.IndexAny(v[offset:], "/:")
+ if idx < 0 {
+ parts = append(parts, v[offset:])
+ break
+ }
+ parts = append(parts, v[offset:idx+offset])
+ offset += idx + 1
+ }
+
+ return parts
+}
+
+// IsARN returns whether the given string is an ARN
+func IsARN(s string) bool {
+ return arn.IsARN(s)
+}
+
+// InvalidARNError provides the error for an invalid ARN error.
+type InvalidARNError struct {
+ ARN arn.ARN
+ Reason string
+}
+
+func (e InvalidARNError) Error() string {
+ return "invalid Amazon S3 ARN, " + e.Reason + ", " + e.ARN.String()
+}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/service.go b/vendor/github.com/aws/aws-sdk-go/service/s3/service.go
index 07e129737..b4c07b4d4 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
@@ -31,7 +31,7 @@ var initRequest func(*request.Request)
const (
ServiceName = "s3" // Name of service.
EndpointsID = ServiceName // ID to lookup a service endpoint with.
- ServiceID = "S3" // ServiceID is a unique identifer of a specific service.
+ ServiceID = "S3" // ServiceID is a unique identifier of a specific service.
)
// New creates a new instance of the S3 client with a session.
@@ -39,6 +39,8 @@ const (
// aws.Config parameter to add your extra config.
//
// Example:
+// mySession := session.Must(session.NewSession())
+//
// // Create a S3 client from just a session.
// svc := s3.New(mySession)
//
@@ -76,6 +78,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint,
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
+ svc.Handlers.BuildStream.PushBackNamed(restxml.BuildHandler)
svc.Handlers.UnmarshalStream.PushBackNamed(restxml.UnmarshalHandler)
// Run custom client initialization if present
diff --git a/vendor/github.com/aws/aws-sdk-go/service/sts/api.go b/vendor/github.com/aws/aws-sdk-go/service/sts/api.go
index 9c5ed4545..7f60d4aa1 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/sts/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/sts/api.go
@@ -78,6 +78,8 @@ func (c *STS) AssumeRoleRequest(input *AssumeRoleInput) (req *request.Request, o
// IAM Roles (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html)
// in the IAM User Guide.
//
+// Session Duration
+//
// By default, the temporary security credentials created by AssumeRole last
// for one hour. However, you can use the optional DurationSeconds parameter
// to specify the duration of your session. You can provide a value from 900
@@ -91,6 +93,8 @@ func (c *STS) AssumeRoleRequest(input *AssumeRoleInput) (req *request.Request, o
// URL. For more information, see Using IAM Roles (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html)
// in the IAM User Guide.
//
+// Permissions
+//
// The temporary security credentials created by AssumeRole can be used to make
// API calls to any AWS service with the following exception: You cannot call
// the AWS STS GetFederationToken or GetSessionToken API operations.
@@ -99,7 +103,7 @@ func (c *STS) AssumeRoleRequest(input *AssumeRoleInput) (req *request.Request, o
// to this operation. You can pass a single JSON policy document to use as an
// inline session policy. You can also specify up to 10 managed policies to
// use as managed session policies. The plain text that you use for both inline
-// and managed session policies shouldn't exceed 2048 characters. Passing policies
+// and managed session policies can't exceed 2,048 characters. Passing policies
// to this operation returns new temporary credentials. The resulting session's
// permissions are the intersection of the role's identity-based policy and
// the session policies. You can use the role's temporary credentials in subsequent
@@ -131,6 +135,24 @@ func (c *STS) AssumeRoleRequest(input *AssumeRoleInput) (req *request.Request, o
// see IAM Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html)
// in the IAM User Guide.
//
+// Tags
+//
+// (Optional) You can pass tag key-value pairs to your session. These tags are
+// called session tags. For more information about session tags, see Passing
+// Session Tags in STS (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html)
+// in the IAM User Guide.
+//
+// An administrator must grant you the permissions necessary to pass session
+// tags. The administrator can also create granular permissions to allow you
+// to pass only specific session tags. For more information, see Tutorial: Using
+// Tags for Attribute-Based Access Control (https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_attribute-based-access-control.html)
+// in the IAM User Guide.
+//
+// You can set the session tags as transitive. Transitive tags persist during
+// role chaining. For more information, see Chaining Roles with Session Tags
+// (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html#id_session-tags_role-chaining)
+// in the IAM User Guide.
+//
// Using MFA with AssumeRole
//
// (Optional) You can include multi-factor authentication (MFA) information
@@ -165,9 +187,18 @@ func (c *STS) AssumeRoleRequest(input *AssumeRoleInput) (req *request.Request, o
// message describes the specific error.
//
// * ErrCodePackedPolicyTooLargeException "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.
+// The request was rejected because the total packed size of the session policies
+// and session tags combined was too large. An AWS conversion compresses the
+// session policy document, session policy ARNs, and session tags into a packed
+// binary format that has a separate limit. The error message indicates by percentage
+// how close the policies and tags are to the upper size limit. For more information,
+// see Passing Session Tags in STS (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html)
+// in the IAM User Guide.
+//
+// You could receive this error even though you meet other defined session policy
+// and session tag limits. For more information, see IAM and STS Entity Character
+// Limits (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html)
+// in the IAM User Guide.
//
// * ErrCodeRegionDisabledException "RegionDisabledException"
// STS is not activated in the requested region for the account that is being
@@ -256,6 +287,8 @@ func (c *STS) AssumeRoleWithSAMLRequest(input *AssumeRoleWithSAMLInput) (req *re
// 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.
//
+// Session Duration
+//
// By default, the temporary security credentials created by AssumeRoleWithSAML
// last for one hour. However, you can use the optional DurationSeconds parameter
// to specify the duration of your session. Your role session lasts for the
@@ -271,6 +304,8 @@ func (c *STS) AssumeRoleWithSAMLRequest(input *AssumeRoleWithSAMLInput) (req *re
// URL. For more information, see Using IAM Roles (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html)
// in the IAM User Guide.
//
+// Permissions
+//
// The temporary security credentials created by AssumeRoleWithSAML can be used
// to make API calls to any AWS service with the following exception: you cannot
// call the STS GetFederationToken or GetSessionToken API operations.
@@ -279,7 +314,7 @@ func (c *STS) AssumeRoleWithSAMLRequest(input *AssumeRoleWithSAMLInput) (req *re
// to this operation. You can pass a single JSON policy document to use as an
// inline session policy. You can also specify up to 10 managed policies to
// use as managed session policies. The plain text that you use for both inline
-// and managed session policies shouldn't exceed 2048 characters. Passing policies
+// and managed session policies can't exceed 2,048 characters. Passing policies
// to this operation returns new temporary credentials. The resulting session's
// permissions are the intersection of the role's identity-based policy and
// the session policies. You can use the role's temporary credentials in subsequent
@@ -289,12 +324,6 @@ func (c *STS) AssumeRoleWithSAMLRequest(input *AssumeRoleWithSAMLInput) (req *re
// information, see Session Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
// 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. You must
-// also 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.
@@ -302,8 +331,50 @@ func (c *STS) AssumeRoleWithSAMLRequest(input *AssumeRoleWithSAMLInput) (req *re
// 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).
+// identifiable information (PII). For example, you could instead use the persistent
+// identifier (urn:oasis:names:tc:SAML:2.0:nameid-format:persistent).
+//
+// Tags
+//
+// (Optional) You can configure your IdP to pass attributes into your SAML assertion
+// as session tags. Each session tag consists of a key name and an associated
+// value. For more information about session tags, see Passing Session Tags
+// in STS (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html)
+// in the IAM User Guide.
+//
+// You can pass up to 50 session tags. The plain text session tag keys can’t
+// exceed 128 characters and the values can’t exceed 256 characters. For these
+// and additional limits, see IAM and STS Character Limits (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length)
+// in the IAM User Guide.
+//
+// An AWS conversion compresses the passed session policies and session tags
+// into a packed binary format that has a separate limit. Your request can fail
+// for this limit even if your plain text meets the other requirements. The
+// PackedPolicySize response element indicates by percentage how close the policies
+// and tags for your request are to the upper size limit.
+//
+// You can pass a session tag with the same key as a tag that is attached to
+// the role. When you do, session tags override the role's tags with the same
+// key.
+//
+// An administrator must grant you the permissions necessary to pass session
+// tags. The administrator can also create granular permissions to allow you
+// to pass only specific session tags. For more information, see Tutorial: Using
+// Tags for Attribute-Based Access Control (https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_attribute-based-access-control.html)
+// in the IAM User Guide.
+//
+// You can set the session tags as transitive. Transitive tags persist during
+// role chaining. For more information, see Chaining Roles with Session Tags
+// (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html#id_session-tags_role-chaining)
+// in the IAM User Guide.
+//
+// SAML Configuration
+//
+// Before your application can call AssumeRoleWithSAML, you must configure your
+// SAML identity provider (IdP) to issue the claims required by 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. You must
+// also create an IAM role that specifies this SAML provider in its trust policy.
//
// For more information, see the following resources:
//
@@ -332,9 +403,18 @@ func (c *STS) AssumeRoleWithSAMLRequest(input *AssumeRoleWithSAMLInput) (req *re
// message describes the specific error.
//
// * ErrCodePackedPolicyTooLargeException "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.
+// The request was rejected because the total packed size of the session policies
+// and session tags combined was too large. An AWS conversion compresses the
+// session policy document, session policy ARNs, and session tags into a packed
+// binary format that has a separate limit. The error message indicates by percentage
+// how close the policies and tags are to the upper size limit. For more information,
+// see Passing Session Tags in STS (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html)
+// in the IAM User Guide.
+//
+// You could receive this error even though you meet other defined session policy
+// and session tag limits. For more information, see IAM and STS Entity Character
+// Limits (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html)
+// in the IAM User Guide.
//
// * ErrCodeIDPRejectedClaimException "IDPRejectedClaim"
// The identity provider (IdP) reported that authentication failed. This might
@@ -456,6 +536,8 @@ func (c *STS) AssumeRoleWithWebIdentityRequest(input *AssumeRoleWithWebIdentityI
// key ID, a secret access key, and a security token. Applications can use these
// temporary security credentials to sign calls to AWS service API operations.
//
+// Session Duration
+//
// By default, the temporary security credentials created by AssumeRoleWithWebIdentity
// last for one hour. However, you can use the optional DurationSeconds parameter
// to specify the duration of your session. You can provide a value from 900
@@ -469,6 +551,8 @@ func (c *STS) AssumeRoleWithWebIdentityRequest(input *AssumeRoleWithWebIdentityI
// URL. For more information, see Using IAM Roles (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html)
// in the IAM User Guide.
//
+// Permissions
+//
// The temporary security credentials created by AssumeRoleWithWebIdentity can
// be used to make API calls to any AWS service with the following exception:
// you cannot call the STS GetFederationToken or GetSessionToken API operations.
@@ -477,7 +561,7 @@ func (c *STS) AssumeRoleWithWebIdentityRequest(input *AssumeRoleWithWebIdentityI
// to this operation. You can pass a single JSON policy document to use as an
// inline session policy. You can also specify up to 10 managed policies to
// use as managed session policies. The plain text that you use for both inline
-// and managed session policies shouldn't exceed 2048 characters. Passing policies
+// and managed session policies can't exceed 2,048 characters. Passing policies
// to this operation returns new temporary credentials. The resulting session's
// permissions are the intersection of the role's identity-based policy and
// the session policies. You can use the role's temporary credentials in subsequent
@@ -487,6 +571,42 @@ func (c *STS) AssumeRoleWithWebIdentityRequest(input *AssumeRoleWithWebIdentityI
// information, see Session Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
// in the IAM User Guide.
//
+// Tags
+//
+// (Optional) You can configure your IdP to pass attributes into your web identity
+// token as session tags. Each session tag consists of a key name and an associated
+// value. For more information about session tags, see Passing Session Tags
+// in STS (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html)
+// in the IAM User Guide.
+//
+// You can pass up to 50 session tags. The plain text session tag keys can’t
+// exceed 128 characters and the values can’t exceed 256 characters. For these
+// and additional limits, see IAM and STS Character Limits (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length)
+// in the IAM User Guide.
+//
+// An AWS conversion compresses the passed session policies and session tags
+// into a packed binary format that has a separate limit. Your request can fail
+// for this limit even if your plain text meets the other requirements. The
+// PackedPolicySize response element indicates by percentage how close the policies
+// and tags for your request are to the upper size limit.
+//
+// You can pass a session tag with the same key as a tag that is attached to
+// the role. When you do, the session tag overrides the role tag with the same
+// key.
+//
+// An administrator must grant you the permissions necessary to pass session
+// tags. The administrator can also create granular permissions to allow you
+// to pass only specific session tags. For more information, see Tutorial: Using
+// Tags for Attribute-Based Access Control (https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_attribute-based-access-control.html)
+// in the IAM User Guide.
+//
+// You can set the session tags as transitive. Transitive tags persist during
+// role chaining. For more information, see Chaining Roles with Session Tags
+// (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html#id_session-tags_role-chaining)
+// in the IAM User Guide.
+//
+// Identities
+//
// Before your application can call AssumeRoleWithWebIdentity, you must have
// an identity token from a supported identity provider and create a role that
// the application can assume. The role that your application assumes must trust
@@ -514,8 +634,8 @@ func (c *STS) AssumeRoleWithWebIdentityRequest(input *AssumeRoleWithWebIdentityI
// * AWS SDK for iOS Developer Guide (http://aws.amazon.com/sdkforios/) and
// AWS SDK for Android Developer Guide (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.
+// providers. The toolkits then show how to use the information from these
+// providers to get and use temporary security credentials.
//
// * Web Identity Federation with Mobile Applications (http://aws.amazon.com/articles/web-identity-federation-with-mobile-applications).
// This article discusses web identity federation and shows an example of
@@ -535,9 +655,18 @@ func (c *STS) AssumeRoleWithWebIdentityRequest(input *AssumeRoleWithWebIdentityI
// message describes the specific error.
//
// * ErrCodePackedPolicyTooLargeException "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.
+// The request was rejected because the total packed size of the session policies
+// and session tags combined was too large. An AWS conversion compresses the
+// session policy document, session policy ARNs, and session tags into a packed
+// binary format that has a separate limit. The error message indicates by percentage
+// how close the policies and tags are to the upper size limit. For more information,
+// see Passing Session Tags in STS (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html)
+// in the IAM User Guide.
+//
+// You could receive this error even though you meet other defined session policy
+// and session tag limits. For more information, see IAM and STS Entity Character
+// Limits (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html)
+// in the IAM User Guide.
//
// * ErrCodeIDPRejectedClaimException "IDPRejectedClaim"
// The identity provider (IdP) reported that authentication failed. This might
@@ -547,11 +676,11 @@ func (c *STS) AssumeRoleWithWebIdentityRequest(input *AssumeRoleWithWebIdentityI
// can also mean that the claim has expired or has been explicitly revoked.
//
// * ErrCodeIDPCommunicationErrorException "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
+// The request could not be fulfilled because the identity provider (IDP) that
+// was asked to verify the incoming identity token could not be reached. This
+// is often a transient error caused by network conditions. Retry the request
// a limited number of times so that you don't exceed the request rate. If the
-// error persists, the non-AWS identity provider might be down or not responding.
+// error persists, the identity provider might be down or not responding.
//
// * ErrCodeInvalidIdentityTokenException "InvalidIdentityToken"
// The web identity token that was passed could not be validated by AWS. Get
@@ -676,9 +805,9 @@ func (c *STS) DecodeAuthorizationMessageRequest(input *DecodeAuthorizationMessag
//
// Returned Error Codes:
// * ErrCodeInvalidAuthorizationMessageException "InvalidAuthorizationMessageException"
-// This error is returned if the message passed to DecodeAuthorizationMessage
-// was invalid. This can happen if the token contains invalid characters, such
-// as linebreaks.
+// The error returned if the message passed to DecodeAuthorizationMessage was
+// invalid. This can happen if the token contains invalid characters, such as
+// linebreaks.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/DecodeAuthorizationMessage
func (c *STS) DecodeAuthorizationMessage(input *DecodeAuthorizationMessageInput) (*DecodeAuthorizationMessageOutput, error) {
@@ -763,7 +892,8 @@ func (c *STS) GetAccessKeyInfoRequest(input *GetAccessKeyInfoInput) (req *reques
// pull a credentials report (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_getting-report.html)
// to learn which IAM user owns the keys. To learn who requested the temporary
// credentials for an ASIA access key, view the STS events in your CloudTrail
-// logs (https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-integration.html).
+// logs (https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-integration.html)
+// in the IAM User Guide.
//
// This operation does not indicate the state of the access key. The key might
// be active, inactive, or deleted. Active keys might not have permissions to
@@ -850,7 +980,8 @@ func (c *STS) GetCallerIdentityRequest(input *GetCallerIdentityInput) (req *requ
// sts:GetCallerIdentity action, you can still perform this operation. Permissions
// are not required because the same information is returned when an IAM user
// or role is denied access. To view an example response, see I Am Not Authorized
-// to Perform: iam:DeleteVirtualMFADevice (https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_access-denied-delete-mfa).
+// to Perform: iam:DeleteVirtualMFADevice (https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_access-denied-delete-mfa)
+// in the IAM User Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@@ -942,7 +1073,8 @@ func (c *STS) GetFederationTokenRequest(input *GetFederationTokenInput) (req *re
// or an OpenID Connect-compatible identity provider. In this case, we recommend
// that you use Amazon Cognito (http://aws.amazon.com/cognito/) or AssumeRoleWithWebIdentity.
// For more information, see Federation Through a Web-based Identity Provider
-// (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_assumerolewithwebidentity).
+// (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_assumerolewithwebidentity)
+// in the IAM User Guide.
//
// You can also call GetFederationToken using the security credentials of an
// AWS account root user, but we do not recommend it. Instead, we recommend
@@ -952,41 +1084,67 @@ func (c *STS) GetFederationTokenRequest(input *GetFederationTokenInput) (req *re
// Practices (https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html)
// in the IAM User Guide.
//
+// Session duration
+//
// The temporary credentials are valid for the specified duration, from 900
// seconds (15 minutes) up to a maximum of 129,600 seconds (36 hours). The default
-// is 43,200 seconds (12 hours). Temporary credentials that are obtained by
-// using AWS account root user credentials have a maximum duration of 3,600
-// seconds (1 hour).
+// session duration is 43,200 seconds (12 hours). Temporary credentials that
+// are obtained by using AWS account root user credentials have a maximum duration
+// of 3,600 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:
+// Permissions
//
-// * You cannot use these credentials to call any IAM API operations.
+// You can use the temporary credentials created by GetFederationToken in any
+// AWS service except the following:
//
-// * You cannot call any STS API operations except GetCallerIdentity.
+// * You cannot call any IAM operations using the AWS CLI or the AWS API.
//
-// Permissions
+// * You cannot call any STS operations except GetCallerIdentity.
//
// You must pass an inline or managed session policy (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
// to this operation. You can pass a single JSON policy document to use as an
// inline session policy. You can also specify up to 10 managed policies to
// use as managed session policies. The plain text that you use for both inline
-// and managed session policies shouldn't exceed 2048 characters.
+// and managed session policies can't exceed 2,048 characters.
//
// Though the session policy parameters are optional, if you do not pass a policy,
-// then the resulting federated user session has no permissions. The only exception
-// is when the credentials are used to access a resource that has a resource-based
-// policy that specifically references the federated user session in the Principal
-// element of the policy. When you pass session policies, the session permissions
-// are the intersection of the IAM user policies and the session policies that
-// you pass. This gives you a way to further restrict the permissions for a
-// federated user. You cannot use session policies to grant more permissions
-// than those that are defined in the permissions policy of the IAM user. For
-// more information, see Session Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
+// then the resulting federated user session has no permissions. When you pass
+// session policies, the session permissions are the intersection of the IAM
+// user policies and the session policies that you pass. This gives you a way
+// to further restrict the permissions for a federated user. You cannot use
+// session policies to grant more permissions than those that are defined in
+// the permissions policy of the IAM user. For more information, see Session
+// Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
// in the IAM User Guide. For information about using GetFederationToken to
// create temporary security credentials, see GetFederationToken—Federation
// Through a Custom Identity Broker (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_getfederationtoken).
//
+// You can use the credentials to access a resource that has a resource-based
+// policy. If that policy specifically references the federated user session
+// in the Principal element of the policy, the session has the permissions allowed
+// by the policy. These permissions are granted in addition to the permissions
+// granted by the session policies.
+//
+// Tags
+//
+// (Optional) You can pass tag key-value pairs to your session. These are called
+// session tags. For more information about session tags, see Passing Session
+// Tags in STS (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html)
+// in the IAM User Guide.
+//
+// An administrator must grant you the permissions necessary to pass session
+// tags. The administrator can also create granular permissions to allow you
+// to pass only specific session tags. For more information, see Tutorial: Using
+// Tags for Attribute-Based Access Control (https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_attribute-based-access-control.html)
+// in the IAM User Guide.
+//
+// Tag key–value pairs are not case sensitive, but case is preserved. This
+// means that you cannot have separate Department and department tag keys. Assume
+// that the user that you are federating has the Department=Marketing tag and
+// you pass the department=engineering session tag. Department and department
+// are not saved as separate tags, and the session tag passed in the request
+// takes precedence over the user tag.
+//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
@@ -1000,9 +1158,18 @@ func (c *STS) GetFederationTokenRequest(input *GetFederationTokenInput) (req *re
// message describes the specific error.
//
// * ErrCodePackedPolicyTooLargeException "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.
+// The request was rejected because the total packed size of the session policies
+// and session tags combined was too large. An AWS conversion compresses the
+// session policy document, session policy ARNs, and session tags into a packed
+// binary format that has a separate limit. The error message indicates by percentage
+// how close the policies and tags are to the upper size limit. For more information,
+// see Passing Session Tags in STS (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html)
+// in the IAM User Guide.
+//
+// You could receive this error even though you meet other defined session policy
+// and session tag limits. For more information, see IAM and STS Entity Character
+// Limits (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html)
+// in the IAM User Guide.
//
// * ErrCodeRegionDisabledException "RegionDisabledException"
// STS is not activated in the requested region for the account that is being
@@ -1091,6 +1258,8 @@ func (c *STS) GetSessionTokenRequest(input *GetSessionTokenInput) (req *request.
// and Comparing the AWS STS API operations (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison)
// in the IAM User Guide.
//
+// Session Duration
+//
// The GetSessionToken operation must be called by using the long-term AWS security
// credentials of the AWS account root user or an IAM user. Credentials that
// are created by IAM users are valid for the duration that you specify. This
@@ -1099,6 +1268,8 @@ func (c *STS) GetSessionTokenRequest(input *GetSessionTokenInput) (req *request.
// based on account credentials can range from 900 seconds (15 minutes) up to
// 3,600 seconds (1 hour), with a default of 1 hour.
//
+// Permissions
+//
// The temporary security credentials created by GetSessionToken can be used
// to make API calls to any AWS service with the following exceptions:
//
@@ -1213,16 +1384,16 @@ type AssumeRoleInput struct {
// in the IAM User Guide.
//
// The plain text that you use for both inline and managed session policies
- // shouldn't exceed 2048 characters. The JSON policy characters can be any ASCII
+ // can't exceed 2,048 characters. The JSON policy characters can be any ASCII
// character from the space character to the end of the valid character list
// (\u0020 through \u00FF). It can also include the tab (\u0009), linefeed (\u000A),
// and carriage return (\u000D) characters.
//
- // The characters in this parameter count towards the 2048 character session
- // policy guideline. However, an AWS conversion compresses the session policies
- // into a packed binary format that has a separate limit. This is the enforced
- // limit. The PackedPolicySize response element indicates by percentage how
- // close the policy is to the upper size limit.
+ // An AWS conversion compresses the passed session policies and session tags
+ // into a packed binary format that has a separate limit. Your request can fail
+ // for this limit even if your plain text meets the other requirements. The
+ // PackedPolicySize response element indicates by percentage how close the policies
+ // and tags for your request are to the upper size limit.
Policy *string `min:"1" type:"string"`
// The Amazon Resource Names (ARNs) of the IAM managed policies that you want
@@ -1231,15 +1402,15 @@ type AssumeRoleInput struct {
//
// This parameter is optional. You can provide up to 10 managed policy ARNs.
// However, the plain text that you use for both inline and managed session
- // policies shouldn't exceed 2048 characters. For more information about ARNs,
+ // policies can't exceed 2,048 characters. For more information about ARNs,
// see Amazon Resource Names (ARNs) and AWS Service Namespaces (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// in the AWS General Reference.
//
- // The characters in this parameter count towards the 2048 character session
- // policy guideline. However, an AWS conversion compresses the session policies
- // into a packed binary format that has a separate limit. This is the enforced
- // limit. The PackedPolicySize response element indicates by percentage how
- // close the policy is to the upper size limit.
+ // An AWS conversion compresses the passed session policies and session tags
+ // into a packed binary format that has a separate limit. Your request can fail
+ // for this limit even if your plain text meets the other requirements. The
+ // PackedPolicySize response element indicates by percentage how close the policies
+ // and tags for your request are to the upper size limit.
//
// Passing policies to this operation returns new temporary credentials. The
// resulting session's permissions are the intersection of the role's identity-based
@@ -1284,6 +1455,41 @@ type AssumeRoleInput struct {
// also include underscores or any of the following characters: =,.@-
SerialNumber *string `min:"9" type:"string"`
+ // A list of session tags that you want to pass. Each session tag consists of
+ // a key name and an associated value. For more information about session tags,
+ // see Tagging AWS STS Sessions (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html)
+ // in the IAM User Guide.
+ //
+ // This parameter is optional. You can pass up to 50 session tags. The plain
+ // text session tag keys can’t exceed 128 characters, and the values can’t
+ // exceed 256 characters. For these and additional limits, see IAM and STS Character
+ // Limits (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length)
+ // in the IAM User Guide.
+ //
+ // An AWS conversion compresses the passed session policies and session tags
+ // into a packed binary format that has a separate limit. Your request can fail
+ // for this limit even if your plain text meets the other requirements. The
+ // PackedPolicySize response element indicates by percentage how close the policies
+ // and tags for your request are to the upper size limit.
+ //
+ // You can pass a session tag with the same key as a tag that is already attached
+ // to the role. When you do, session tags override a role tag with the same
+ // key.
+ //
+ // Tag key–value pairs are not case sensitive, but case is preserved. This
+ // means that you cannot have separate Department and department tag keys. Assume
+ // that the role has the Department=Marketing tag and you pass the department=engineering
+ // session tag. Department and department are not saved as separate tags, and
+ // the session tag passed in the request takes precedence over the role tag.
+ //
+ // Additionally, if you used temporary credentials to perform this operation,
+ // the new session inherits any transitive session tags from the calling session.
+ // If you pass a session tag with the same key as an inherited tag, the operation
+ // fails. To view the inherited tags for a session, see the AWS CloudTrail logs.
+ // For more information, see Viewing Session Tags in CloudTrail (https://docs.aws.amazon.com/IAM/latest/UserGuide/session-tags.html#id_session-tags_ctlogs)
+ // in the IAM User Guide.
+ Tags []*Tag `type:"list"`
+
// The value provided by the MFA device, if the trust policy of the role being
// assumed requires MFA (that is, if the policy includes a condition that tests
// for MFA). If the role being assumed requires MFA and if the TokenCode value
@@ -1292,6 +1498,19 @@ type AssumeRoleInput struct {
// The format for this parameter, as described by its regex pattern, is a sequence
// of six numeric digits.
TokenCode *string `min:"6" type:"string"`
+
+ // A list of keys for session tags that you want to set as transitive. If you
+ // set a tag key as transitive, the corresponding key and value passes to subsequent
+ // sessions in a role chain. For more information, see Chaining Roles with Session
+ // Tags (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html#id_session-tags_role-chaining)
+ // in the IAM User Guide.
+ //
+ // This parameter is optional. When you set session tags as transitive, the
+ // session policy and session tags packed binary limit is not affected.
+ //
+ // If you choose not to specify a transitive tag key, then no tags are passed
+ // from this session to any subsequent sessions.
+ TransitiveTagKeys []*string `type:"list"`
}
// String returns the string representation
@@ -1344,6 +1563,16 @@ func (s *AssumeRoleInput) Validate() error {
}
}
}
+ if s.Tags != nil {
+ for i, v := range s.Tags {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
if invalidParams.Len() > 0 {
return invalidParams
@@ -1393,12 +1622,24 @@ func (s *AssumeRoleInput) SetSerialNumber(v string) *AssumeRoleInput {
return s
}
+// SetTags sets the Tags field's value.
+func (s *AssumeRoleInput) SetTags(v []*Tag) *AssumeRoleInput {
+ s.Tags = v
+ return s
+}
+
// SetTokenCode sets the TokenCode field's value.
func (s *AssumeRoleInput) SetTokenCode(v string) *AssumeRoleInput {
s.TokenCode = &v
return s
}
+// SetTransitiveTagKeys sets the TransitiveTagKeys field's value.
+func (s *AssumeRoleInput) SetTransitiveTagKeys(v []*string) *AssumeRoleInput {
+ s.TransitiveTagKeys = v
+ return s
+}
+
// Contains the response to a successful AssumeRole request, including temporary
// AWS credentials that can be used to make AWS requests.
type AssumeRoleOutput struct {
@@ -1418,9 +1659,10 @@ type AssumeRoleOutput struct {
// We strongly recommend that you make no assumptions about the maximum size.
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.
+ // A percentage value that indicates the packed size of the session policies
+ // and session tags combined passed in the request. The request fails if the
+ // packed size is greater than 100 percent, which means the policies and tags
+ // exceeded the allowed space.
PackedPolicySize *int64 `type:"integer"`
}
@@ -1491,16 +1733,16 @@ type AssumeRoleWithSAMLInput struct {
// in the IAM User Guide.
//
// The plain text that you use for both inline and managed session policies
- // shouldn't exceed 2048 characters. The JSON policy characters can be any ASCII
+ // can't exceed 2,048 characters. The JSON policy characters can be any ASCII
// character from the space character to the end of the valid character list
// (\u0020 through \u00FF). It can also include the tab (\u0009), linefeed (\u000A),
// and carriage return (\u000D) characters.
//
- // The characters in this parameter count towards the 2048 character session
- // policy guideline. However, an AWS conversion compresses the session policies
- // into a packed binary format that has a separate limit. This is the enforced
- // limit. The PackedPolicySize response element indicates by percentage how
- // close the policy is to the upper size limit.
+ // An AWS conversion compresses the passed session policies and session tags
+ // into a packed binary format that has a separate limit. Your request can fail
+ // for this limit even if your plain text meets the other requirements. The
+ // PackedPolicySize response element indicates by percentage how close the policies
+ // and tags for your request are to the upper size limit.
Policy *string `min:"1" type:"string"`
// The Amazon Resource Names (ARNs) of the IAM managed policies that you want
@@ -1509,15 +1751,15 @@ type AssumeRoleWithSAMLInput struct {
//
// This parameter is optional. You can provide up to 10 managed policy ARNs.
// However, the plain text that you use for both inline and managed session
- // policies shouldn't exceed 2048 characters. For more information about ARNs,
+ // policies can't exceed 2,048 characters. For more information about ARNs,
// see Amazon Resource Names (ARNs) and AWS Service Namespaces (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// in the AWS General Reference.
//
- // The characters in this parameter count towards the 2048 character session
- // policy guideline. However, an AWS conversion compresses the session policies
- // into a packed binary format that has a separate limit. This is the enforced
- // limit. The PackedPolicySize response element indicates by percentage how
- // close the policy is to the upper size limit.
+ // An AWS conversion compresses the passed session policies and session tags
+ // into a packed binary format that has a separate limit. Your request can fail
+ // for this limit even if your plain text meets the other requirements. The
+ // PackedPolicySize response element indicates by percentage how close the policies
+ // and tags for your request are to the upper size limit.
//
// Passing policies to this operation returns new temporary credentials. The
// resulting session's permissions are the intersection of the role's identity-based
@@ -1673,9 +1915,10 @@ type AssumeRoleWithSAMLOutput struct {
// ) )
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.
+ // A percentage value that indicates the packed size of the session policies
+ // and session tags combined passed in the request. The request fails if the
+ // packed size is greater than 100 percent, which means the policies and tags
+ // exceeded the allowed space.
PackedPolicySize *int64 `type:"integer"`
// The value of the NameID element in the Subject element of the SAML assertion.
@@ -1786,16 +2029,16 @@ type AssumeRoleWithWebIdentityInput struct {
// in the IAM User Guide.
//
// The plain text that you use for both inline and managed session policies
- // shouldn't exceed 2048 characters. The JSON policy characters can be any ASCII
+ // can't exceed 2,048 characters. The JSON policy characters can be any ASCII
// character from the space character to the end of the valid character list
// (\u0020 through \u00FF). It can also include the tab (\u0009), linefeed (\u000A),
// and carriage return (\u000D) characters.
//
- // The characters in this parameter count towards the 2048 character session
- // policy guideline. However, an AWS conversion compresses the session policies
- // into a packed binary format that has a separate limit. This is the enforced
- // limit. The PackedPolicySize response element indicates by percentage how
- // close the policy is to the upper size limit.
+ // An AWS conversion compresses the passed session policies and session tags
+ // into a packed binary format that has a separate limit. Your request can fail
+ // for this limit even if your plain text meets the other requirements. The
+ // PackedPolicySize response element indicates by percentage how close the policies
+ // and tags for your request are to the upper size limit.
Policy *string `min:"1" type:"string"`
// The Amazon Resource Names (ARNs) of the IAM managed policies that you want
@@ -1804,15 +2047,15 @@ type AssumeRoleWithWebIdentityInput struct {
//
// This parameter is optional. You can provide up to 10 managed policy ARNs.
// However, the plain text that you use for both inline and managed session
- // policies shouldn't exceed 2048 characters. For more information about ARNs,
+ // policies can't exceed 2,048 characters. For more information about ARNs,
// see Amazon Resource Names (ARNs) and AWS Service Namespaces (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// in the AWS General Reference.
//
- // The characters in this parameter count towards the 2048 character session
- // policy guideline. However, an AWS conversion compresses the session policies
- // into a packed binary format that has a separate limit. This is the enforced
- // limit. The PackedPolicySize response element indicates by percentage how
- // close the policy is to the upper size limit.
+ // An AWS conversion compresses the passed session policies and session tags
+ // into a packed binary format that has a separate limit. Your request can fail
+ // for this limit even if your plain text meets the other requirements. The
+ // PackedPolicySize response element indicates by percentage how close the policies
+ // and tags for your request are to the upper size limit.
//
// Passing policies to this operation returns new temporary credentials. The
// resulting session's permissions are the intersection of the role's identity-based
@@ -1983,9 +2226,10 @@ type AssumeRoleWithWebIdentityOutput struct {
// We strongly recommend that you make no assumptions about the maximum size.
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.
+ // A percentage value that indicates the packed size of the session policies
+ // and session tags combined passed in the request. The request fails if the
+ // packed size is greater than 100 percent, which means the policies and tags
+ // exceeded the allowed space.
PackedPolicySize *int64 `type:"integer"`
// The issuing authority of the web identity token presented. For OpenID Connect
@@ -2057,7 +2301,7 @@ type AssumedRoleUser struct {
// The ARN of the temporary security credentials that are returned from the
// AssumeRole action. For more information about ARNs and how to use them in
// policies, see IAM Identifiers (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html)
- // in Using IAM.
+ // in the IAM User Guide.
//
// Arn is a required field
Arn *string `min:"20" type:"string" required:"true"`
@@ -2225,7 +2469,7 @@ type FederatedUser struct {
// The ARN that specifies the federated user that is associated with the credentials.
// For more information about ARNs and how to use them in policies, see IAM
// Identifiers (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html)
- // in Using IAM.
+ // in the IAM User Guide.
//
// Arn is a required field
Arn *string `min:"20" type:"string" required:"true"`
@@ -2265,7 +2509,7 @@ type GetAccessKeyInfoInput struct {
// The identifier of an access key.
//
// This parameter allows (through its regex pattern) a string of characters
- // that can consist of any upper- or lowercased letter or digit.
+ // that can consist of any upper- or lowercase letter or digit.
//
// AccessKeyId is a required field
AccessKeyId *string `min:"16" type:"string" required:"true"`
@@ -2418,10 +2662,7 @@ type GetFederationTokenInput struct {
// use as managed session policies.
//
// This parameter is optional. However, if you do not pass any session policies,
- // then the resulting federated user session has no permissions. The only exception
- // is when the credentials are used to access a resource that has a resource-based
- // policy that specifically references the federated user session in the Principal
- // element of the policy.
+ // then the resulting federated user session has no permissions.
//
// When you pass session policies, the session permissions are the intersection
// of the IAM user policies and the session policies that you pass. This gives
@@ -2431,17 +2672,23 @@ type GetFederationTokenInput struct {
// Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
// in the IAM User Guide.
//
+ // The resulting credentials can be used to access a resource that has a resource-based
+ // policy. If that policy specifically references the federated user session
+ // in the Principal element of the policy, the session has the permissions allowed
+ // by the policy. These permissions are granted in addition to the permissions
+ // that are granted by the session policies.
+ //
// The plain text that you use for both inline and managed session policies
- // shouldn't exceed 2048 characters. The JSON policy characters can be any ASCII
+ // can't exceed 2,048 characters. The JSON policy characters can be any ASCII
// character from the space character to the end of the valid character list
// (\u0020 through \u00FF). It can also include the tab (\u0009), linefeed (\u000A),
// and carriage return (\u000D) characters.
//
- // The characters in this parameter count towards the 2048 character session
- // policy guideline. However, an AWS conversion compresses the session policies
- // into a packed binary format that has a separate limit. This is the enforced
- // limit. The PackedPolicySize response element indicates by percentage how
- // close the policy is to the upper size limit.
+ // An AWS conversion compresses the passed session policies and session tags
+ // into a packed binary format that has a separate limit. Your request can fail
+ // for this limit even if your plain text meets the other requirements. The
+ // PackedPolicySize response element indicates by percentage how close the policies
+ // and tags for your request are to the upper size limit.
Policy *string `min:"1" type:"string"`
// The Amazon Resource Names (ARNs) of the IAM managed policies that you want
@@ -2452,16 +2699,13 @@ type GetFederationTokenInput struct {
// to this operation. You can pass a single JSON policy document to use as an
// inline session policy. You can also specify up to 10 managed policies to
// use as managed session policies. The plain text that you use for both inline
- // and managed session policies shouldn't exceed 2048 characters. You can provide
+ // and managed session policies can't exceed 2,048 characters. You can provide
// up to 10 managed policy ARNs. For more information about ARNs, see Amazon
// Resource Names (ARNs) and AWS Service Namespaces (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// in the AWS General Reference.
//
// This parameter is optional. However, if you do not pass any session policies,
- // then the resulting federated user session has no permissions. The only exception
- // is when the credentials are used to access a resource that has a resource-based
- // policy that specifically references the federated user session in the Principal
- // element of the policy.
+ // then the resulting federated user session has no permissions.
//
// When you pass session policies, the session permissions are the intersection
// of the IAM user policies and the session policies that you pass. This gives
@@ -2471,12 +2715,46 @@ type GetFederationTokenInput struct {
// Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
// in the IAM User Guide.
//
- // The characters in this parameter count towards the 2048 character session
- // policy guideline. However, an AWS conversion compresses the session policies
- // into a packed binary format that has a separate limit. This is the enforced
- // limit. The PackedPolicySize response element indicates by percentage how
- // close the policy is to the upper size limit.
+ // The resulting credentials can be used to access a resource that has a resource-based
+ // policy. If that policy specifically references the federated user session
+ // in the Principal element of the policy, the session has the permissions allowed
+ // by the policy. These permissions are granted in addition to the permissions
+ // that are granted by the session policies.
+ //
+ // An AWS conversion compresses the passed session policies and session tags
+ // into a packed binary format that has a separate limit. Your request can fail
+ // for this limit even if your plain text meets the other requirements. The
+ // PackedPolicySize response element indicates by percentage how close the policies
+ // and tags for your request are to the upper size limit.
PolicyArns []*PolicyDescriptorType `type:"list"`
+
+ // A list of session tags. Each session tag consists of a key name and an associated
+ // value. For more information about session tags, see Passing Session Tags
+ // in STS (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html)
+ // in the IAM User Guide.
+ //
+ // This parameter is optional. You can pass up to 50 session tags. The plain
+ // text session tag keys can’t exceed 128 characters and the values can’t
+ // exceed 256 characters. For these and additional limits, see IAM and STS Character
+ // Limits (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length)
+ // in the IAM User Guide.
+ //
+ // An AWS conversion compresses the passed session policies and session tags
+ // into a packed binary format that has a separate limit. Your request can fail
+ // for this limit even if your plain text meets the other requirements. The
+ // PackedPolicySize response element indicates by percentage how close the policies
+ // and tags for your request are to the upper size limit.
+ //
+ // You can pass a session tag with the same key as a tag that is already attached
+ // to the user you are federating. When you do, session tags override a user
+ // tag with the same key.
+ //
+ // Tag key–value pairs are not case sensitive, but case is preserved. This
+ // means that you cannot have separate Department and department tag keys. Assume
+ // that the role has the Department=Marketing tag and you pass the department=engineering
+ // session tag. Department and department are not saved as separate tags, and
+ // the session tag passed in the request takes precedence over the role tag.
+ Tags []*Tag `type:"list"`
}
// String returns the string representation
@@ -2514,6 +2792,16 @@ func (s *GetFederationTokenInput) Validate() error {
}
}
}
+ if s.Tags != nil {
+ for i, v := range s.Tags {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
if invalidParams.Len() > 0 {
return invalidParams
@@ -2545,6 +2833,12 @@ func (s *GetFederationTokenInput) SetPolicyArns(v []*PolicyDescriptorType) *GetF
return s
}
+// SetTags sets the Tags field's value.
+func (s *GetFederationTokenInput) SetTags(v []*Tag) *GetFederationTokenInput {
+ s.Tags = v
+ return s
+}
+
// Contains the response to a successful GetFederationToken request, including
// temporary AWS credentials that can be used to make AWS requests.
type GetFederationTokenOutput struct {
@@ -2563,9 +2857,10 @@ type GetFederationTokenOutput struct {
// 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.
+ // A percentage value that indicates the packed size of the session policies
+ // and session tags combined passed in the request. The request fails if the
+ // packed size is greater than 100 percent, which means the policies and tags
+ // exceeded the allowed space.
PackedPolicySize *int64 `type:"integer"`
}
@@ -2748,3 +3043,73 @@ func (s *PolicyDescriptorType) SetArn(v string) *PolicyDescriptorType {
s.Arn = &v
return s
}
+
+// You can pass custom key-value pair attributes when you assume a role or federate
+// a user. These are called session tags. You can then use the session tags
+// to control access to resources. For more information, see Tagging AWS STS
+// Sessions (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html)
+// in the IAM User Guide.
+type Tag struct {
+ _ struct{} `type:"structure"`
+
+ // The key for a session tag.
+ //
+ // You can pass up to 50 session tags. The plain text session tag keys can’t
+ // exceed 128 characters. For these and additional limits, see IAM and STS Character
+ // Limits (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length)
+ // in the IAM User Guide.
+ //
+ // Key is a required field
+ Key *string `min:"1" type:"string" required:"true"`
+
+ // The value for a session tag.
+ //
+ // You can pass up to 50 session tags. The plain text session tag values can’t
+ // exceed 256 characters. For these and additional limits, see IAM and STS Character
+ // Limits (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length)
+ // in the IAM User Guide.
+ //
+ // Value is a required field
+ Value *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s Tag) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s Tag) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *Tag) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "Tag"}
+ if s.Key == nil {
+ invalidParams.Add(request.NewErrParamRequired("Key"))
+ }
+ if s.Key != nil && len(*s.Key) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Key", 1))
+ }
+ if s.Value == nil {
+ invalidParams.Add(request.NewErrParamRequired("Value"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetKey sets the Key field's value.
+func (s *Tag) SetKey(v string) *Tag {
+ s.Key = &v
+ return s
+}
+
+// SetValue sets the Value field's value.
+func (s *Tag) SetValue(v string) *Tag {
+ s.Value = &v
+ return s
+}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/sts/errors.go b/vendor/github.com/aws/aws-sdk-go/service/sts/errors.go
index a3e378eda..a233f542e 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/sts/errors.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/sts/errors.go
@@ -14,11 +14,11 @@ const (
// ErrCodeIDPCommunicationErrorException for service response error code
// "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
+ // The request could not be fulfilled because the identity provider (IDP) that
+ // was asked to verify the incoming identity token could not be reached. This
+ // is often a transient error caused by network conditions. Retry the request
// a limited number of times so that you don't exceed the request rate. If the
- // error persists, the non-AWS identity provider might be down or not responding.
+ // error persists, the identity provider might be down or not responding.
ErrCodeIDPCommunicationErrorException = "IDPCommunicationError"
// ErrCodeIDPRejectedClaimException for service response error code
@@ -34,9 +34,9 @@ const (
// ErrCodeInvalidAuthorizationMessageException for service response error code
// "InvalidAuthorizationMessageException".
//
- // This error is returned if the message passed to DecodeAuthorizationMessage
- // was invalid. This can happen if the token contains invalid characters, such
- // as linebreaks.
+ // The error returned if the message passed to DecodeAuthorizationMessage was
+ // invalid. This can happen if the token contains invalid characters, such as
+ // linebreaks.
ErrCodeInvalidAuthorizationMessageException = "InvalidAuthorizationMessageException"
// ErrCodeInvalidIdentityTokenException for service response error code
@@ -56,9 +56,18 @@ const (
// ErrCodePackedPolicyTooLargeException for service response error code
// "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.
+ // The request was rejected because the total packed size of the session policies
+ // and session tags combined was too large. An AWS conversion compresses the
+ // session policy document, session policy ARNs, and session tags into a packed
+ // binary format that has a separate limit. The error message indicates by percentage
+ // how close the policies and tags are to the upper size limit. For more information,
+ // see Passing Session Tags in STS (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html)
+ // in the IAM User Guide.
+ //
+ // You could receive this error even though you meet other defined session policy
+ // and session tag limits. For more information, see IAM and STS Entity Character
+ // Limits (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html)
+ // in the IAM User Guide.
ErrCodePackedPolicyTooLargeException = "PackedPolicyTooLarge"
// ErrCodeRegionDisabledException for service response error code
diff --git a/vendor/github.com/aws/aws-sdk-go/service/sts/service.go b/vendor/github.com/aws/aws-sdk-go/service/sts/service.go
index 2c3c3d2c1..d34a68553 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/sts/service.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/sts/service.go
@@ -31,7 +31,7 @@ var initRequest func(*request.Request)
const (
ServiceName = "sts" // Name of service.
EndpointsID = ServiceName // ID to lookup a service endpoint with.
- ServiceID = "STS" // ServiceID is a unique identifer of a specific service.
+ ServiceID = "STS" // ServiceID is a unique identifier of a specific service.
)
// New creates a new instance of the STS client with a session.
@@ -39,6 +39,8 @@ const (
// aws.Config parameter to add your extra config.
//
// Example:
+// mySession := session.Must(session.NewSession())
+//
// // Create a STS client from just a session.
// svc := sts.New(mySession)
//
diff --git a/vendor/github.com/cpuguy83/go-md2man/md2man/md2man.go b/vendor/github.com/cpuguy83/go-md2man/md2man/md2man.go
deleted file mode 100644
index af62279a6..000000000
--- a/vendor/github.com/cpuguy83/go-md2man/md2man/md2man.go
+++ /dev/null
@@ -1,20 +0,0 @@
-package md2man
-
-import (
- "github.com/russross/blackfriday"
-)
-
-// Render converts a markdown document into a roff formatted document.
-func Render(doc []byte) []byte {
- renderer := RoffRenderer(0)
- extensions := 0
- extensions |= blackfriday.EXTENSION_NO_INTRA_EMPHASIS
- extensions |= blackfriday.EXTENSION_TABLES
- extensions |= blackfriday.EXTENSION_FENCED_CODE
- extensions |= blackfriday.EXTENSION_AUTOLINK
- extensions |= blackfriday.EXTENSION_SPACE_HEADERS
- extensions |= blackfriday.EXTENSION_FOOTNOTES
- extensions |= blackfriday.EXTENSION_TITLEBLOCK
-
- return blackfriday.Markdown(doc, renderer, extensions)
-}
diff --git a/vendor/github.com/cpuguy83/go-md2man/md2man/roff.go b/vendor/github.com/cpuguy83/go-md2man/md2man/roff.go
deleted file mode 100644
index 8c29ec687..000000000
--- a/vendor/github.com/cpuguy83/go-md2man/md2man/roff.go
+++ /dev/null
@@ -1,285 +0,0 @@
-package md2man
-
-import (
- "bytes"
- "fmt"
- "html"
- "strings"
-
- "github.com/russross/blackfriday"
-)
-
-type roffRenderer struct {
- ListCounters []int
-}
-
-// RoffRenderer creates a new blackfriday Renderer for generating roff documents
-// from markdown
-func RoffRenderer(flags int) blackfriday.Renderer {
- return &roffRenderer{}
-}
-
-func (r *roffRenderer) GetFlags() int {
- return 0
-}
-
-func (r *roffRenderer) TitleBlock(out *bytes.Buffer, text []byte) {
- out.WriteString(".TH ")
-
- splitText := bytes.Split(text, []byte("\n"))
- for i, line := range splitText {
- line = bytes.TrimPrefix(line, []byte("% "))
- if i == 0 {
- line = bytes.Replace(line, []byte("("), []byte("\" \""), 1)
- line = bytes.Replace(line, []byte(")"), []byte("\" \""), 1)
- }
- line = append([]byte("\""), line...)
- line = append(line, []byte("\" ")...)
- out.Write(line)
- }
- out.WriteString("\n")
-
- // disable hyphenation
- out.WriteString(".nh\n")
- // disable justification (adjust text to left margin only)
- out.WriteString(".ad l\n")
-}
-
-func (r *roffRenderer) BlockCode(out *bytes.Buffer, text []byte, lang string) {
- out.WriteString("\n.PP\n.RS\n\n.nf\n")
- escapeSpecialChars(out, text)
- out.WriteString("\n.fi\n.RE\n")
-}
-
-func (r *roffRenderer) BlockQuote(out *bytes.Buffer, text []byte) {
- out.WriteString("\n.PP\n.RS\n")
- out.Write(text)
- out.WriteString("\n.RE\n")
-}
-
-func (r *roffRenderer) BlockHtml(out *bytes.Buffer, text []byte) { // nolint: golint
- out.Write(text)
-}
-
-func (r *roffRenderer) Header(out *bytes.Buffer, text func() bool, level int, id string) {
- marker := out.Len()
-
- switch {
- case marker == 0:
- // This is the doc header
- out.WriteString(".TH ")
- case level == 1:
- out.WriteString("\n\n.SH ")
- case level == 2:
- out.WriteString("\n.SH ")
- default:
- out.WriteString("\n.SS ")
- }
-
- if !text() {
- out.Truncate(marker)
- return
- }
-}
-
-func (r *roffRenderer) HRule(out *bytes.Buffer) {
- out.WriteString("\n.ti 0\n\\l'\\n(.lu'\n")
-}
-
-func (r *roffRenderer) List(out *bytes.Buffer, text func() bool, flags int) {
- marker := out.Len()
- r.ListCounters = append(r.ListCounters, 1)
- out.WriteString("\n.RS\n")
- if !text() {
- out.Truncate(marker)
- return
- }
- r.ListCounters = r.ListCounters[:len(r.ListCounters)-1]
- out.WriteString("\n.RE\n")
-}
-
-func (r *roffRenderer) ListItem(out *bytes.Buffer, text []byte, flags int) {
- if flags&blackfriday.LIST_TYPE_ORDERED != 0 {
- out.WriteString(fmt.Sprintf(".IP \"%3d.\" 5\n", r.ListCounters[len(r.ListCounters)-1]))
- r.ListCounters[len(r.ListCounters)-1]++
- } else {
- out.WriteString(".IP \\(bu 2\n")
- }
- out.Write(text)
- out.WriteString("\n")
-}
-
-func (r *roffRenderer) Paragraph(out *bytes.Buffer, text func() bool) {
- marker := out.Len()
- out.WriteString("\n.PP\n")
- if !text() {
- out.Truncate(marker)
- return
- }
- if marker != 0 {
- out.WriteString("\n")
- }
-}
-
-func (r *roffRenderer) Table(out *bytes.Buffer, header []byte, body []byte, columnData []int) {
- out.WriteString("\n.TS\nallbox;\n")
-
- maxDelims := 0
- lines := strings.Split(strings.TrimRight(string(header), "\n")+"\n"+strings.TrimRight(string(body), "\n"), "\n")
- for _, w := range lines {
- curDelims := strings.Count(w, "\t")
- if curDelims > maxDelims {
- maxDelims = curDelims
- }
- }
- out.Write([]byte(strings.Repeat("l ", maxDelims+1) + "\n"))
- out.Write([]byte(strings.Repeat("l ", maxDelims+1) + ".\n"))
- out.Write(header)
- if len(header) > 0 {
- out.Write([]byte("\n"))
- }
-
- out.Write(body)
- out.WriteString("\n.TE\n")
-}
-
-func (r *roffRenderer) TableRow(out *bytes.Buffer, text []byte) {
- if out.Len() > 0 {
- out.WriteString("\n")
- }
- out.Write(text)
-}
-
-func (r *roffRenderer) TableHeaderCell(out *bytes.Buffer, text []byte, align int) {
- if out.Len() > 0 {
- out.WriteString("\t")
- }
- if len(text) == 0 {
- text = []byte{' '}
- }
- out.Write([]byte("\\fB\\fC" + string(text) + "\\fR"))
-}
-
-func (r *roffRenderer) TableCell(out *bytes.Buffer, text []byte, align int) {
- if out.Len() > 0 {
- out.WriteString("\t")
- }
- if len(text) > 30 {
- text = append([]byte("T{\n"), text...)
- text = append(text, []byte("\nT}")...)
- }
- if len(text) == 0 {
- text = []byte{' '}
- }
- out.Write(text)
-}
-
-func (r *roffRenderer) Footnotes(out *bytes.Buffer, text func() bool) {
-
-}
-
-func (r *roffRenderer) FootnoteItem(out *bytes.Buffer, name, text []byte, flags int) {
-
-}
-
-func (r *roffRenderer) AutoLink(out *bytes.Buffer, link []byte, kind int) {
- out.WriteString("\n\\[la]")
- out.Write(link)
- out.WriteString("\\[ra]")
-}
-
-func (r *roffRenderer) CodeSpan(out *bytes.Buffer, text []byte) {
- out.WriteString("\\fB\\fC")
- escapeSpecialChars(out, text)
- out.WriteString("\\fR")
-}
-
-func (r *roffRenderer) DoubleEmphasis(out *bytes.Buffer, text []byte) {
- out.WriteString("\\fB")
- out.Write(text)
- out.WriteString("\\fP")
-}
-
-func (r *roffRenderer) Emphasis(out *bytes.Buffer, text []byte) {
- out.WriteString("\\fI")
- out.Write(text)
- out.WriteString("\\fP")
-}
-
-func (r *roffRenderer) Image(out *bytes.Buffer, link []byte, title []byte, alt []byte) {
-}
-
-func (r *roffRenderer) LineBreak(out *bytes.Buffer) {
- out.WriteString("\n.br\n")
-}
-
-func (r *roffRenderer) Link(out *bytes.Buffer, link []byte, title []byte, content []byte) {
- out.Write(content)
- r.AutoLink(out, link, 0)
-}
-
-func (r *roffRenderer) RawHtmlTag(out *bytes.Buffer, tag []byte) { // nolint: golint
- out.Write(tag)
-}
-
-func (r *roffRenderer) TripleEmphasis(out *bytes.Buffer, text []byte) {
- out.WriteString("\\s+2")
- out.Write(text)
- out.WriteString("\\s-2")
-}
-
-func (r *roffRenderer) StrikeThrough(out *bytes.Buffer, text []byte) {
-}
-
-func (r *roffRenderer) FootnoteRef(out *bytes.Buffer, ref []byte, id int) {
-
-}
-
-func (r *roffRenderer) Entity(out *bytes.Buffer, entity []byte) {
- out.WriteString(html.UnescapeString(string(entity)))
-}
-
-func (r *roffRenderer) NormalText(out *bytes.Buffer, text []byte) {
- escapeSpecialChars(out, text)
-}
-
-func (r *roffRenderer) DocumentHeader(out *bytes.Buffer) {
-}
-
-func (r *roffRenderer) DocumentFooter(out *bytes.Buffer) {
-}
-
-func needsBackslash(c byte) bool {
- for _, r := range []byte("-_&\\~") {
- if c == r {
- return true
- }
- }
- return false
-}
-
-func escapeSpecialChars(out *bytes.Buffer, text []byte) {
- for i := 0; i < len(text); i++ {
- // escape initial apostrophe or period
- if len(text) >= 1 && (text[0] == '\'' || text[0] == '.') {
- out.WriteString("\\&")
- }
-
- // directly copy normal characters
- org := i
-
- for i < len(text) && !needsBackslash(text[i]) {
- i++
- }
- if i > org {
- out.Write(text[org:i])
- }
-
- // escape a character
- if i >= len(text) {
- break
- }
- out.WriteByte('\\')
- out.WriteByte(text[i])
- }
-}
diff --git a/vendor/github.com/cpuguy83/go-md2man/LICENSE.md b/vendor/github.com/cpuguy83/go-md2man/v2/LICENSE.md
similarity index 100%
rename from vendor/github.com/cpuguy83/go-md2man/LICENSE.md
rename to vendor/github.com/cpuguy83/go-md2man/v2/LICENSE.md
diff --git a/vendor/github.com/cpuguy83/go-md2man/v2/md2man/md2man.go b/vendor/github.com/cpuguy83/go-md2man/v2/md2man/md2man.go
new file mode 100644
index 000000000..b48005673
--- /dev/null
+++ b/vendor/github.com/cpuguy83/go-md2man/v2/md2man/md2man.go
@@ -0,0 +1,14 @@
+package md2man
+
+import (
+ "github.com/russross/blackfriday/v2"
+)
+
+// Render converts a markdown document into a roff formatted document.
+func Render(doc []byte) []byte {
+ renderer := NewRoffRenderer()
+
+ return blackfriday.Run(doc,
+ []blackfriday.Option{blackfriday.WithRenderer(renderer),
+ blackfriday.WithExtensions(renderer.GetExtensions())}...)
+}
diff --git a/vendor/github.com/cpuguy83/go-md2man/v2/md2man/roff.go b/vendor/github.com/cpuguy83/go-md2man/v2/md2man/roff.go
new file mode 100644
index 000000000..0668a66cf
--- /dev/null
+++ b/vendor/github.com/cpuguy83/go-md2man/v2/md2man/roff.go
@@ -0,0 +1,345 @@
+package md2man
+
+import (
+ "fmt"
+ "io"
+ "os"
+ "strings"
+
+ "github.com/russross/blackfriday/v2"
+)
+
+// roffRenderer implements the blackfriday.Renderer interface for creating
+// roff format (manpages) from markdown text
+type roffRenderer struct {
+ extensions blackfriday.Extensions
+ listCounters []int
+ firstHeader bool
+ defineTerm bool
+ listDepth int
+}
+
+const (
+ titleHeader = ".TH "
+ topLevelHeader = "\n\n.SH "
+ secondLevelHdr = "\n.SH "
+ otherHeader = "\n.SS "
+ crTag = "\n"
+ emphTag = "\\fI"
+ emphCloseTag = "\\fP"
+ strongTag = "\\fB"
+ strongCloseTag = "\\fP"
+ breakTag = "\n.br\n"
+ paraTag = "\n.PP\n"
+ hruleTag = "\n.ti 0\n\\l'\\n(.lu'\n"
+ linkTag = "\n\\[la]"
+ linkCloseTag = "\\[ra]"
+ codespanTag = "\\fB\\fC"
+ codespanCloseTag = "\\fR"
+ codeTag = "\n.PP\n.RS\n\n.nf\n"
+ codeCloseTag = "\n.fi\n.RE\n"
+ quoteTag = "\n.PP\n.RS\n"
+ quoteCloseTag = "\n.RE\n"
+ listTag = "\n.RS\n"
+ listCloseTag = "\n.RE\n"
+ arglistTag = "\n.TP\n"
+ tableStart = "\n.TS\nallbox;\n"
+ tableEnd = ".TE\n"
+ tableCellStart = "T{\n"
+ tableCellEnd = "\nT}\n"
+)
+
+// NewRoffRenderer creates a new blackfriday Renderer for generating roff documents
+// from markdown
+func NewRoffRenderer() *roffRenderer { // nolint: golint
+ var extensions blackfriday.Extensions
+
+ extensions |= blackfriday.NoIntraEmphasis
+ extensions |= blackfriday.Tables
+ extensions |= blackfriday.FencedCode
+ extensions |= blackfriday.SpaceHeadings
+ extensions |= blackfriday.Footnotes
+ extensions |= blackfriday.Titleblock
+ extensions |= blackfriday.DefinitionLists
+ return &roffRenderer{
+ extensions: extensions,
+ }
+}
+
+// GetExtensions returns the list of extensions used by this renderer implementation
+func (r *roffRenderer) GetExtensions() blackfriday.Extensions {
+ return r.extensions
+}
+
+// RenderHeader handles outputting the header at document start
+func (r *roffRenderer) RenderHeader(w io.Writer, ast *blackfriday.Node) {
+ // disable hyphenation
+ out(w, ".nh\n")
+}
+
+// RenderFooter handles outputting the footer at the document end; the roff
+// renderer has no footer information
+func (r *roffRenderer) RenderFooter(w io.Writer, ast *blackfriday.Node) {
+}
+
+// RenderNode is called for each node in a markdown document; based on the node
+// type the equivalent roff output is sent to the writer
+func (r *roffRenderer) RenderNode(w io.Writer, node *blackfriday.Node, entering bool) blackfriday.WalkStatus {
+
+ var walkAction = blackfriday.GoToNext
+
+ switch node.Type {
+ case blackfriday.Text:
+ r.handleText(w, node, entering)
+ case blackfriday.Softbreak:
+ out(w, crTag)
+ case blackfriday.Hardbreak:
+ out(w, breakTag)
+ case blackfriday.Emph:
+ if entering {
+ out(w, emphTag)
+ } else {
+ out(w, emphCloseTag)
+ }
+ case blackfriday.Strong:
+ if entering {
+ out(w, strongTag)
+ } else {
+ out(w, strongCloseTag)
+ }
+ case blackfriday.Link:
+ if !entering {
+ out(w, linkTag+string(node.LinkData.Destination)+linkCloseTag)
+ }
+ case blackfriday.Image:
+ // ignore images
+ walkAction = blackfriday.SkipChildren
+ case blackfriday.Code:
+ out(w, codespanTag)
+ escapeSpecialChars(w, node.Literal)
+ out(w, codespanCloseTag)
+ case blackfriday.Document:
+ break
+ case blackfriday.Paragraph:
+ // roff .PP markers break lists
+ if r.listDepth > 0 {
+ return blackfriday.GoToNext
+ }
+ if entering {
+ out(w, paraTag)
+ } else {
+ out(w, crTag)
+ }
+ case blackfriday.BlockQuote:
+ if entering {
+ out(w, quoteTag)
+ } else {
+ out(w, quoteCloseTag)
+ }
+ case blackfriday.Heading:
+ r.handleHeading(w, node, entering)
+ case blackfriday.HorizontalRule:
+ out(w, hruleTag)
+ case blackfriday.List:
+ r.handleList(w, node, entering)
+ case blackfriday.Item:
+ r.handleItem(w, node, entering)
+ case blackfriday.CodeBlock:
+ out(w, codeTag)
+ escapeSpecialChars(w, node.Literal)
+ out(w, codeCloseTag)
+ case blackfriday.Table:
+ r.handleTable(w, node, entering)
+ case blackfriday.TableCell:
+ r.handleTableCell(w, node, entering)
+ case blackfriday.TableHead:
+ case blackfriday.TableBody:
+ case blackfriday.TableRow:
+ // no action as cell entries do all the nroff formatting
+ return blackfriday.GoToNext
+ default:
+ fmt.Fprintln(os.Stderr, "WARNING: go-md2man does not handle node type "+node.Type.String())
+ }
+ return walkAction
+}
+
+func (r *roffRenderer) handleText(w io.Writer, node *blackfriday.Node, entering bool) {
+ var (
+ start, end string
+ )
+ // handle special roff table cell text encapsulation
+ if node.Parent.Type == blackfriday.TableCell {
+ if len(node.Literal) > 30 {
+ start = tableCellStart
+ end = tableCellEnd
+ } else {
+ // end rows that aren't terminated by "tableCellEnd" with a cr if end of row
+ if node.Parent.Next == nil && !node.Parent.IsHeader {
+ end = crTag
+ }
+ }
+ }
+ out(w, start)
+ escapeSpecialChars(w, node.Literal)
+ out(w, end)
+}
+
+func (r *roffRenderer) handleHeading(w io.Writer, node *blackfriday.Node, entering bool) {
+ if entering {
+ switch node.Level {
+ case 1:
+ if !r.firstHeader {
+ out(w, titleHeader)
+ r.firstHeader = true
+ break
+ }
+ out(w, topLevelHeader)
+ case 2:
+ out(w, secondLevelHdr)
+ default:
+ out(w, otherHeader)
+ }
+ }
+}
+
+func (r *roffRenderer) handleList(w io.Writer, node *blackfriday.Node, entering bool) {
+ openTag := listTag
+ closeTag := listCloseTag
+ if node.ListFlags&blackfriday.ListTypeDefinition != 0 {
+ // tags for definition lists handled within Item node
+ openTag = ""
+ closeTag = ""
+ }
+ if entering {
+ r.listDepth++
+ if node.ListFlags&blackfriday.ListTypeOrdered != 0 {
+ r.listCounters = append(r.listCounters, 1)
+ }
+ out(w, openTag)
+ } else {
+ if node.ListFlags&blackfriday.ListTypeOrdered != 0 {
+ r.listCounters = r.listCounters[:len(r.listCounters)-1]
+ }
+ out(w, closeTag)
+ r.listDepth--
+ }
+}
+
+func (r *roffRenderer) handleItem(w io.Writer, node *blackfriday.Node, entering bool) {
+ if entering {
+ if node.ListFlags&blackfriday.ListTypeOrdered != 0 {
+ out(w, fmt.Sprintf(".IP \"%3d.\" 5\n", r.listCounters[len(r.listCounters)-1]))
+ r.listCounters[len(r.listCounters)-1]++
+ } else if node.ListFlags&blackfriday.ListTypeDefinition != 0 {
+ // state machine for handling terms and following definitions
+ // since blackfriday does not distinguish them properly, nor
+ // does it seperate them into separate lists as it should
+ if !r.defineTerm {
+ out(w, arglistTag)
+ r.defineTerm = true
+ } else {
+ r.defineTerm = false
+ }
+ } else {
+ out(w, ".IP \\(bu 2\n")
+ }
+ } else {
+ out(w, "\n")
+ }
+}
+
+func (r *roffRenderer) handleTable(w io.Writer, node *blackfriday.Node, entering bool) {
+ if entering {
+ out(w, tableStart)
+ //call walker to count cells (and rows?) so format section can be produced
+ columns := countColumns(node)
+ out(w, strings.Repeat("l ", columns)+"\n")
+ out(w, strings.Repeat("l ", columns)+".\n")
+ } else {
+ out(w, tableEnd)
+ }
+}
+
+func (r *roffRenderer) handleTableCell(w io.Writer, node *blackfriday.Node, entering bool) {
+ var (
+ start, end string
+ )
+ if node.IsHeader {
+ start = codespanTag
+ end = codespanCloseTag
+ }
+ if entering {
+ if node.Prev != nil && node.Prev.Type == blackfriday.TableCell {
+ out(w, "\t"+start)
+ } else {
+ out(w, start)
+ }
+ } else {
+ // need to carriage return if we are at the end of the header row
+ if node.IsHeader && node.Next == nil {
+ end = end + crTag
+ }
+ out(w, end)
+ }
+}
+
+// because roff format requires knowing the column count before outputting any table
+// data we need to walk a table tree and count the columns
+func countColumns(node *blackfriday.Node) int {
+ var columns int
+
+ node.Walk(func(node *blackfriday.Node, entering bool) blackfriday.WalkStatus {
+ switch node.Type {
+ case blackfriday.TableRow:
+ if !entering {
+ return blackfriday.Terminate
+ }
+ case blackfriday.TableCell:
+ if entering {
+ columns++
+ }
+ default:
+ }
+ return blackfriday.GoToNext
+ })
+ return columns
+}
+
+func out(w io.Writer, output string) {
+ io.WriteString(w, output) // nolint: errcheck
+}
+
+func needsBackslash(c byte) bool {
+ for _, r := range []byte("-_&\\~") {
+ if c == r {
+ return true
+ }
+ }
+ return false
+}
+
+func escapeSpecialChars(w io.Writer, text []byte) {
+ for i := 0; i < len(text); i++ {
+ // escape initial apostrophe or period
+ if len(text) >= 1 && (text[0] == '\'' || text[0] == '.') {
+ out(w, "\\&")
+ }
+
+ // directly copy normal characters
+ org := i
+
+ for i < len(text) && !needsBackslash(text[i]) {
+ i++
+ }
+ if i > org {
+ w.Write(text[org:i]) // nolint: errcheck
+ }
+
+ // escape a character
+ if i >= len(text) {
+ break
+ }
+
+ w.Write([]byte{'\\', text[i]}) // nolint: errcheck
+ }
+}
diff --git a/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/async/types.go b/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/async/types.go
index bfb21c818..9c549b60e 100644
--- a/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/async/types.go
+++ b/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/async/types.go
@@ -49,6 +49,10 @@ const (
func (u *LaunchResultBase) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
+ // AsyncJobId : This response indicates that the processing is
+ // asynchronous. The string is an id that can be used to obtain the
+ // status of the asynchronous job.
+ AsyncJobId string `json:"async_job_id,omitempty"`
}
var w wrap
var err error
@@ -58,7 +62,7 @@ func (u *LaunchResultBase) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "async_job_id":
- err = json.Unmarshal(body, &u.AsyncJobId)
+ u.AsyncJobId = w.AsyncJobId
if err != nil {
return err
@@ -88,6 +92,10 @@ const (
func (u *LaunchEmptyResult) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
+ // AsyncJobId : This response indicates that the processing is
+ // asynchronous. The string is an id that can be used to obtain the
+ // status of the asynchronous job.
+ AsyncJobId string `json:"async_job_id,omitempty"`
}
var w wrap
var err error
@@ -97,7 +105,7 @@ func (u *LaunchEmptyResult) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "async_job_id":
- err = json.Unmarshal(body, &u.AsyncJobId)
+ u.AsyncJobId = w.AsyncJobId
if err != nil {
return err
diff --git a/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/auth/types.go b/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/auth/types.go
index f694c07aa..65806a23c 100644
--- a/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/auth/types.go
+++ b/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/auth/types.go
@@ -49,9 +49,9 @@ func (u *AccessError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// InvalidAccountType : Current account type cannot access the resource.
- InvalidAccountType json.RawMessage `json:"invalid_account_type,omitempty"`
+ InvalidAccountType *InvalidAccountTypeError `json:"invalid_account_type,omitempty"`
// PaperAccessDenied : Current account cannot access Paper.
- PaperAccessDenied json.RawMessage `json:"paper_access_denied,omitempty"`
+ PaperAccessDenied *PaperAccessError `json:"paper_access_denied,omitempty"`
}
var w wrap
var err error
@@ -61,13 +61,13 @@ func (u *AccessError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "invalid_account_type":
- err = json.Unmarshal(w.InvalidAccountType, &u.InvalidAccountType)
+ u.InvalidAccountType = w.InvalidAccountType
if err != nil {
return err
}
case "paper_access_denied":
- err = json.Unmarshal(w.PaperAccessDenied, &u.PaperAccessDenied)
+ u.PaperAccessDenied = w.PaperAccessDenied
if err != nil {
return err
@@ -79,6 +79,9 @@ func (u *AccessError) UnmarshalJSON(body []byte) error {
// AuthError : Errors occurred during authentication.
type AuthError struct {
dropbox.Tagged
+ // MissingScope : The access token does not have the required scope to
+ // access the route.
+ MissingScope *TokenScopeError `json:"missing_scope,omitempty"`
}
// Valid tag values for AuthError
@@ -88,9 +91,32 @@ const (
AuthErrorInvalidSelectAdmin = "invalid_select_admin"
AuthErrorUserSuspended = "user_suspended"
AuthErrorExpiredAccessToken = "expired_access_token"
+ AuthErrorMissingScope = "missing_scope"
AuthErrorOther = "other"
)
+// UnmarshalJSON deserializes into a AuthError instance
+func (u *AuthError) UnmarshalJSON(body []byte) error {
+ type wrap struct {
+ dropbox.Tagged
+ }
+ var w wrap
+ var err error
+ if err = json.Unmarshal(body, &w); err != nil {
+ return err
+ }
+ u.Tag = w.Tag
+ switch u.Tag {
+ case "missing_scope":
+ err = json.Unmarshal(body, &u.MissingScope)
+
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+
// InvalidAccountTypeError : has no documentation (yet)
type InvalidAccountTypeError struct {
dropbox.Tagged
@@ -186,3 +212,16 @@ func NewTokenFromOAuth1Result(Oauth2Token string) *TokenFromOAuth1Result {
s.Oauth2Token = Oauth2Token
return s
}
+
+// TokenScopeError : has no documentation (yet)
+type TokenScopeError struct {
+ // RequiredScope : The required scope to access the route.
+ RequiredScope string `json:"required_scope"`
+}
+
+// NewTokenScopeError returns a new TokenScopeError instance
+func NewTokenScopeError(RequiredScope string) *TokenScopeError {
+ s := new(TokenScopeError)
+ s.RequiredScope = RequiredScope
+ return s
+}
diff --git a/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/common/types.go b/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/common/types.go
index e1f967e08..2b2313ae9 100644
--- a/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/common/types.go
+++ b/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/common/types.go
@@ -52,6 +52,14 @@ const (
func (u *PathRoot) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
+ // Root : Paths are relative to the authenticating user's root namespace
+ // (This results in `PathRootError.invalid_root` if the user's root
+ // namespace has changed.).
+ Root string `json:"root,omitempty"`
+ // NamespaceId : Paths are relative to given namespace id (This results
+ // in `PathRootError.no_permission` if you don't have access to this
+ // namespace.).
+ NamespaceId string `json:"namespace_id,omitempty"`
}
var w wrap
var err error
@@ -61,13 +69,13 @@ func (u *PathRoot) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "root":
- err = json.Unmarshal(body, &u.Root)
+ u.Root = w.Root
if err != nil {
return err
}
case "namespace_id":
- err = json.Unmarshal(body, &u.NamespaceId)
+ u.NamespaceId = w.NamespaceId
if err != nil {
return err
@@ -107,7 +115,7 @@ func (u *PathRootError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "invalid_root":
- u.InvalidRoot, err = IsRootInfoFromJSON(body)
+ u.InvalidRoot, err = IsRootInfoFromJSON(w.InvalidRoot)
if err != nil {
return err
@@ -161,10 +169,6 @@ const (
func (u *rootInfoUnion) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Team : has no documentation (yet)
- Team json.RawMessage `json:"team,omitempty"`
- // User : has no documentation (yet)
- User json.RawMessage `json:"user,omitempty"`
}
var w wrap
var err error
diff --git a/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/file_properties/types.go b/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/file_properties/types.go
index 93f945847..58b896717 100644
--- a/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/file_properties/types.go
+++ b/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/file_properties/types.go
@@ -86,6 +86,8 @@ const (
func (u *TemplateError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
+ // TemplateNotFound : Template does not exist for the given identifier.
+ TemplateNotFound string `json:"template_not_found,omitempty"`
}
var w wrap
var err error
@@ -95,7 +97,7 @@ func (u *TemplateError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "template_not_found":
- err = json.Unmarshal(body, &u.TemplateNotFound)
+ u.TemplateNotFound = w.TemplateNotFound
if err != nil {
return err
@@ -126,8 +128,10 @@ const (
func (u *PropertiesError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
+ // TemplateNotFound : Template does not exist for the given identifier.
+ TemplateNotFound string `json:"template_not_found,omitempty"`
// Path : has no documentation (yet)
- Path json.RawMessage `json:"path,omitempty"`
+ Path *LookupError `json:"path,omitempty"`
}
var w wrap
var err error
@@ -137,13 +141,13 @@ func (u *PropertiesError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "template_not_found":
- err = json.Unmarshal(body, &u.TemplateNotFound)
+ u.TemplateNotFound = w.TemplateNotFound
if err != nil {
return err
}
case "path":
- err = json.Unmarshal(w.Path, &u.Path)
+ u.Path = w.Path
if err != nil {
return err
@@ -176,8 +180,10 @@ const (
func (u *InvalidPropertyGroupError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
+ // TemplateNotFound : Template does not exist for the given identifier.
+ TemplateNotFound string `json:"template_not_found,omitempty"`
// Path : has no documentation (yet)
- Path json.RawMessage `json:"path,omitempty"`
+ Path *LookupError `json:"path,omitempty"`
}
var w wrap
var err error
@@ -187,13 +193,13 @@ func (u *InvalidPropertyGroupError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "template_not_found":
- err = json.Unmarshal(body, &u.TemplateNotFound)
+ u.TemplateNotFound = w.TemplateNotFound
if err != nil {
return err
}
case "path":
- err = json.Unmarshal(w.Path, &u.Path)
+ u.Path = w.Path
if err != nil {
return err
@@ -227,8 +233,10 @@ const (
func (u *AddPropertiesError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
+ // TemplateNotFound : Template does not exist for the given identifier.
+ TemplateNotFound string `json:"template_not_found,omitempty"`
// Path : has no documentation (yet)
- Path json.RawMessage `json:"path,omitempty"`
+ Path *LookupError `json:"path,omitempty"`
}
var w wrap
var err error
@@ -238,13 +246,13 @@ func (u *AddPropertiesError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "template_not_found":
- err = json.Unmarshal(body, &u.TemplateNotFound)
+ u.TemplateNotFound = w.TemplateNotFound
if err != nil {
return err
}
case "path":
- err = json.Unmarshal(w.Path, &u.Path)
+ u.Path = w.Path
if err != nil {
return err
@@ -388,6 +396,8 @@ const (
func (u *LookupError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
+ // MalformedPath : has no documentation (yet)
+ MalformedPath string `json:"malformed_path,omitempty"`
}
var w wrap
var err error
@@ -397,7 +407,7 @@ func (u *LookupError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "malformed_path":
- err = json.Unmarshal(body, &u.MalformedPath)
+ u.MalformedPath = w.MalformedPath
if err != nil {
return err
@@ -428,6 +438,8 @@ const (
func (u *ModifyTemplateError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
+ // TemplateNotFound : Template does not exist for the given identifier.
+ TemplateNotFound string `json:"template_not_found,omitempty"`
}
var w wrap
var err error
@@ -437,7 +449,7 @@ func (u *ModifyTemplateError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "template_not_found":
- err = json.Unmarshal(body, &u.TemplateNotFound)
+ u.TemplateNotFound = w.TemplateNotFound
if err != nil {
return err
@@ -522,7 +534,7 @@ func (u *PropertiesSearchError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// PropertyGroupLookup : has no documentation (yet)
- PropertyGroupLookup json.RawMessage `json:"property_group_lookup,omitempty"`
+ PropertyGroupLookup *LookUpPropertiesError `json:"property_group_lookup,omitempty"`
}
var w wrap
var err error
@@ -532,7 +544,7 @@ func (u *PropertiesSearchError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "property_group_lookup":
- err = json.Unmarshal(w.PropertyGroupLookup, &u.PropertyGroupLookup)
+ u.PropertyGroupLookup = w.PropertyGroupLookup
if err != nil {
return err
@@ -580,6 +592,8 @@ const (
func (u *PropertiesSearchMode) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
+ // FieldName : Search for a value associated with this field name.
+ FieldName string `json:"field_name,omitempty"`
}
var w wrap
var err error
@@ -589,7 +603,7 @@ func (u *PropertiesSearchMode) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "field_name":
- err = json.Unmarshal(body, &u.FieldName)
+ u.FieldName = w.FieldName
if err != nil {
return err
@@ -768,10 +782,12 @@ const (
func (u *RemovePropertiesError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
+ // TemplateNotFound : Template does not exist for the given identifier.
+ TemplateNotFound string `json:"template_not_found,omitempty"`
// Path : has no documentation (yet)
- Path json.RawMessage `json:"path,omitempty"`
+ Path *LookupError `json:"path,omitempty"`
// PropertyGroupLookup : has no documentation (yet)
- PropertyGroupLookup json.RawMessage `json:"property_group_lookup,omitempty"`
+ PropertyGroupLookup *LookUpPropertiesError `json:"property_group_lookup,omitempty"`
}
var w wrap
var err error
@@ -781,19 +797,19 @@ func (u *RemovePropertiesError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "template_not_found":
- err = json.Unmarshal(body, &u.TemplateNotFound)
+ u.TemplateNotFound = w.TemplateNotFound
if err != nil {
return err
}
case "path":
- err = json.Unmarshal(w.Path, &u.Path)
+ u.Path = w.Path
if err != nil {
return err
}
case "property_group_lookup":
- err = json.Unmarshal(w.PropertyGroupLookup, &u.PropertyGroupLookup)
+ u.PropertyGroupLookup = w.PropertyGroupLookup
if err != nil {
return err
@@ -836,7 +852,7 @@ func (u *TemplateFilterBase) UnmarshalJSON(body []byte) error {
dropbox.Tagged
// FilterSome : Only templates with an ID in the supplied list will be
// returned (a subset of templates will be returned).
- FilterSome json.RawMessage `json:"filter_some,omitempty"`
+ FilterSome []string `json:"filter_some,omitempty"`
}
var w wrap
var err error
@@ -846,7 +862,7 @@ func (u *TemplateFilterBase) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "filter_some":
- err = json.Unmarshal(body, &u.FilterSome)
+ u.FilterSome = w.FilterSome
if err != nil {
return err
@@ -876,7 +892,7 @@ func (u *TemplateFilter) UnmarshalJSON(body []byte) error {
dropbox.Tagged
// FilterSome : Only templates with an ID in the supplied list will be
// returned (a subset of templates will be returned).
- FilterSome json.RawMessage `json:"filter_some,omitempty"`
+ FilterSome []string `json:"filter_some,omitempty"`
}
var w wrap
var err error
@@ -886,7 +902,7 @@ func (u *TemplateFilter) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "filter_some":
- err = json.Unmarshal(body, &u.FilterSome)
+ u.FilterSome = w.FilterSome
if err != nil {
return err
@@ -950,10 +966,12 @@ const (
func (u *UpdatePropertiesError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
+ // TemplateNotFound : Template does not exist for the given identifier.
+ TemplateNotFound string `json:"template_not_found,omitempty"`
// Path : has no documentation (yet)
- Path json.RawMessage `json:"path,omitempty"`
+ Path *LookupError `json:"path,omitempty"`
// PropertyGroupLookup : has no documentation (yet)
- PropertyGroupLookup json.RawMessage `json:"property_group_lookup,omitempty"`
+ PropertyGroupLookup *LookUpPropertiesError `json:"property_group_lookup,omitempty"`
}
var w wrap
var err error
@@ -963,19 +981,19 @@ func (u *UpdatePropertiesError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "template_not_found":
- err = json.Unmarshal(body, &u.TemplateNotFound)
+ u.TemplateNotFound = w.TemplateNotFound
if err != nil {
return err
}
case "path":
- err = json.Unmarshal(w.Path, &u.Path)
+ u.Path = w.Path
if err != nil {
return err
}
case "property_group_lookup":
- err = json.Unmarshal(w.PropertyGroupLookup, &u.PropertyGroupLookup)
+ u.PropertyGroupLookup = w.PropertyGroupLookup
if err != nil {
return err
diff --git a/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/files/client.go b/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/files/client.go
index 828fb7285..c211a3832 100644
--- a/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/files/client.go
+++ b/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/files/client.go
@@ -57,7 +57,7 @@ type Client interface {
Copy(arg *RelocationArg) (res IsMetadata, err error)
// CopyBatch : Copy multiple files or folders to different locations at once
// in the user's Dropbox. This route will replace `copyBatch`. The main
- // difference is this route will return stutus for each entry, while
+ // difference is this route will return status for each entry, while
// `copyBatch` raises failure if any entry fails. This route will either
// finish synchronously, or return a job ID and do the async copy job in
// background. Please use `copyBatchCheck` to check the job status.
@@ -130,19 +130,23 @@ type Client interface {
// total files. The input cannot be a single file. Any single file must be
// less than 4GB in size.
DownloadZip(arg *DownloadZipArg) (res *DownloadZipResult, content io.ReadCloser, err error)
+ // Export : Export a file from a user's Dropbox. This route only supports
+ // exporting files that cannot be downloaded directly and whose
+ // `ExportResult.file_metadata` has `ExportInfo.export_as` populated.
+ Export(arg *ExportArg) (res *ExportResult, content io.ReadCloser, err error)
// GetMetadata : Returns the metadata for a file or folder. Note: Metadata
// for the root folder is unsupported.
GetMetadata(arg *GetMetadataArg) (res IsMetadata, err error)
// GetPreview : Get a preview for a file. Currently, PDF previews are
// generated for files with the following extensions: .ai, .doc, .docm,
- // .docx, .eps, .odp, .odt, .pps, .ppsm, .ppsx, .ppt, .pptm, .pptx, .rtf.
- // HTML previews are generated for files with the following extensions:
- // .csv, .ods, .xls, .xlsm, .xlsx. Other formats will return an unsupported
- // extension error.
+ // .docx, .eps, .gdoc, .gslides, .odp, .odt, .pps, .ppsm, .ppsx, .ppt,
+ // .pptm, .pptx, .rtf. HTML previews are generated for files with the
+ // following extensions: .csv, .ods, .xls, .xlsm, .gsheet, .xlsx. Other
+ // formats will return an unsupported extension error.
GetPreview(arg *PreviewArg) (res *FileMetadata, content io.ReadCloser, err error)
// GetTemporaryLink : Get a temporary link to stream content of a file. This
- // link will expire in four hours and afterwards you will get 410 Gone. So
- // this URL should not be used to display content directly in the browser.
+ // link will expire in four hours and afterwards you will get 410 Gone. This
+ // URL should not be used to display content directly in the browser. The
// Content-Type of the link is determined automatically by the file's mime
// type.
GetTemporaryLink(arg *GetTemporaryLinkArg) (res *GetTemporaryLinkResult, err error)
@@ -246,7 +250,7 @@ type Client interface {
Move(arg *RelocationArg) (res IsMetadata, err error)
// MoveBatch : Move multiple files or folders to different locations at once
// in the user's Dropbox. This route will replace `moveBatch`. The main
- // difference is this route will return stutus for each entry, while
+ // difference is this route will return status for each entry, while
// `moveBatch` raises failure if any entry fails. This route will either
// finish synchronously, or return a job ID and do the async move job in
// background. Please use `moveBatchCheck` to check the job status.
@@ -477,7 +481,7 @@ func (dbx *apiImpl) AlphaUpload(arg *CommitInfoWithProperties, content io.Reader
headers := map[string]string{
"Content-Type": "application/octet-stream",
- "Dropbox-API-Arg": string(b),
+ "Dropbox-API-Arg": dropbox.HTTPHeaderSafeJSON(b),
}
if dbx.Config.AsMemberID != "" {
headers["Dropbox-API-Select-User"] = dbx.Config.AsMemberID
@@ -1636,7 +1640,7 @@ func (dbx *apiImpl) Download(arg *DownloadArg) (res *FileMetadata, content io.Re
}
headers := map[string]string{
- "Dropbox-API-Arg": string(b),
+ "Dropbox-API-Arg": dropbox.HTTPHeaderSafeJSON(b),
}
for k, v := range arg.ExtraHeaders {
headers[k] = v
@@ -1706,7 +1710,7 @@ func (dbx *apiImpl) DownloadZip(arg *DownloadZipArg) (res *DownloadZipResult, co
}
headers := map[string]string{
- "Dropbox-API-Arg": string(b),
+ "Dropbox-API-Arg": dropbox.HTTPHeaderSafeJSON(b),
}
if dbx.Config.AsMemberID != "" {
headers["Dropbox-API-Select-User"] = dbx.Config.AsMemberID
@@ -1757,6 +1761,73 @@ func (dbx *apiImpl) DownloadZip(arg *DownloadZipArg) (res *DownloadZipResult, co
return
}
+//ExportAPIError is an error-wrapper for the export route
+type ExportAPIError struct {
+ dropbox.APIError
+ EndpointError *ExportError `json:"error"`
+}
+
+func (dbx *apiImpl) Export(arg *ExportArg) (res *ExportResult, content io.ReadCloser, err error) {
+ cli := dbx.Client
+
+ dbx.Config.LogDebug("arg: %v", arg)
+ b, err := json.Marshal(arg)
+ if err != nil {
+ return
+ }
+
+ headers := map[string]string{
+ "Dropbox-API-Arg": dropbox.HTTPHeaderSafeJSON(b),
+ }
+ if dbx.Config.AsMemberID != "" {
+ headers["Dropbox-API-Select-User"] = dbx.Config.AsMemberID
+ }
+
+ req, err := (*dropbox.Context)(dbx).NewRequest("content", "download", true, "files", "export", headers, nil)
+ if err != nil {
+ return
+ }
+ dbx.Config.LogInfo("req: %v", req)
+
+ resp, err := cli.Do(req)
+ if err != nil {
+ return
+ }
+
+ dbx.Config.LogInfo("resp: %v", resp)
+ body := []byte(resp.Header.Get("Dropbox-API-Result"))
+ content = resp.Body
+ dbx.Config.LogDebug("body: %s", body)
+ if resp.StatusCode == http.StatusOK {
+ err = json.Unmarshal(body, &res)
+ if err != nil {
+ return
+ }
+
+ return
+ }
+ if resp.StatusCode == http.StatusConflict {
+ defer resp.Body.Close()
+ body, err = ioutil.ReadAll(resp.Body)
+ if err != nil {
+ return
+ }
+ var apiError ExportAPIError
+ err = json.Unmarshal(body, &apiError)
+ if err != nil {
+ return
+ }
+ err = apiError
+ return
+ }
+ err = auth.HandleCommonAuthErrors(dbx.Config, resp, body)
+ if err != nil {
+ return
+ }
+ err = dropbox.HandleCommonAPIErrors(dbx.Config, resp, body)
+ return
+}
+
//GetMetadataAPIError is an error-wrapper for the get_metadata route
type GetMetadataAPIError struct {
dropbox.APIError
@@ -1850,7 +1921,7 @@ func (dbx *apiImpl) GetPreview(arg *PreviewArg) (res *FileMetadata, content io.R
}
headers := map[string]string{
- "Dropbox-API-Arg": string(b),
+ "Dropbox-API-Arg": dropbox.HTTPHeaderSafeJSON(b),
}
if dbx.Config.AsMemberID != "" {
headers["Dropbox-API-Select-User"] = dbx.Config.AsMemberID
@@ -2049,7 +2120,7 @@ func (dbx *apiImpl) GetThumbnail(arg *ThumbnailArg) (res *FileMetadata, content
}
headers := map[string]string{
- "Dropbox-API-Arg": string(b),
+ "Dropbox-API-Arg": dropbox.HTTPHeaderSafeJSON(b),
}
if dbx.Config.AsMemberID != "" {
headers["Dropbox-API-Select-User"] = dbx.Config.AsMemberID
@@ -2116,7 +2187,7 @@ func (dbx *apiImpl) GetThumbnailBatch(arg *GetThumbnailBatchArg) (res *GetThumbn
}
headers := map[string]string{
- "Dropbox-API-Arg": string(b),
+ "Dropbox-API-Arg": dropbox.HTTPHeaderSafeJSON(b),
}
if dbx.Config.AsMemberID != "" {
headers["Dropbox-API-Select-User"] = dbx.Config.AsMemberID
@@ -3625,7 +3696,7 @@ func (dbx *apiImpl) Upload(arg *CommitInfo, content io.Reader) (res *FileMetadat
headers := map[string]string{
"Content-Type": "application/octet-stream",
- "Dropbox-API-Arg": string(b),
+ "Dropbox-API-Arg": dropbox.HTTPHeaderSafeJSON(b),
}
if dbx.Config.AsMemberID != "" {
headers["Dropbox-API-Select-User"] = dbx.Config.AsMemberID
@@ -3692,7 +3763,7 @@ func (dbx *apiImpl) UploadSessionAppendV2(arg *UploadSessionAppendArg, content i
headers := map[string]string{
"Content-Type": "application/octet-stream",
- "Dropbox-API-Arg": string(b),
+ "Dropbox-API-Arg": dropbox.HTTPHeaderSafeJSON(b),
}
if dbx.Config.AsMemberID != "" {
headers["Dropbox-API-Select-User"] = dbx.Config.AsMemberID
@@ -3757,7 +3828,7 @@ func (dbx *apiImpl) UploadSessionAppend(arg *UploadSessionCursor, content io.Rea
headers := map[string]string{
"Content-Type": "application/octet-stream",
- "Dropbox-API-Arg": string(b),
+ "Dropbox-API-Arg": dropbox.HTTPHeaderSafeJSON(b),
}
if dbx.Config.AsMemberID != "" {
headers["Dropbox-API-Select-User"] = dbx.Config.AsMemberID
@@ -3819,7 +3890,7 @@ func (dbx *apiImpl) UploadSessionFinish(arg *UploadSessionFinishArg, content io.
headers := map[string]string{
"Content-Type": "application/octet-stream",
- "Dropbox-API-Arg": string(b),
+ "Dropbox-API-Arg": dropbox.HTTPHeaderSafeJSON(b),
}
if dbx.Config.AsMemberID != "" {
headers["Dropbox-API-Select-User"] = dbx.Config.AsMemberID
@@ -4018,7 +4089,7 @@ func (dbx *apiImpl) UploadSessionStart(arg *UploadSessionStartArg, content io.Re
headers := map[string]string{
"Content-Type": "application/octet-stream",
- "Dropbox-API-Arg": string(b),
+ "Dropbox-API-Arg": dropbox.HTTPHeaderSafeJSON(b),
}
if dbx.Config.AsMemberID != "" {
headers["Dropbox-API-Select-User"] = dbx.Config.AsMemberID
diff --git a/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/files/types.go b/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/files/types.go
index fc87512f4..7103ffe04 100644
--- a/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/files/types.go
+++ b/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/files/types.go
@@ -95,7 +95,7 @@ func (u *GetMetadataError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// Path : has no documentation (yet)
- Path json.RawMessage `json:"path,omitempty"`
+ Path *LookupError `json:"path,omitempty"`
}
var w wrap
var err error
@@ -105,7 +105,7 @@ func (u *GetMetadataError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "path":
- err = json.Unmarshal(w.Path, &u.Path)
+ u.Path = w.Path
if err != nil {
return err
@@ -134,9 +134,9 @@ func (u *AlphaGetMetadataError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// Path : has no documentation (yet)
- Path json.RawMessage `json:"path,omitempty"`
+ Path *LookupError `json:"path,omitempty"`
// PropertiesError : has no documentation (yet)
- PropertiesError json.RawMessage `json:"properties_error,omitempty"`
+ PropertiesError *file_properties.LookUpPropertiesError `json:"properties_error,omitempty"`
}
var w wrap
var err error
@@ -146,13 +146,13 @@ func (u *AlphaGetMetadataError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "path":
- err = json.Unmarshal(w.Path, &u.Path)
+ u.Path = w.Path
if err != nil {
return err
}
case "properties_error":
- err = json.Unmarshal(w.PropertiesError, &u.PropertiesError)
+ u.PropertiesError = w.PropertiesError
if err != nil {
return err
@@ -319,10 +319,8 @@ const (
func (u *CreateFolderBatchJobStatus) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Complete : The batch create folder has finished.
- Complete json.RawMessage `json:"complete,omitempty"`
// Failed : The batch create folder has failed.
- Failed json.RawMessage `json:"failed,omitempty"`
+ Failed *CreateFolderBatchError `json:"failed,omitempty"`
}
var w wrap
var err error
@@ -338,7 +336,7 @@ func (u *CreateFolderBatchJobStatus) UnmarshalJSON(body []byte) error {
return err
}
case "failed":
- err = json.Unmarshal(w.Failed, &u.Failed)
+ u.Failed = w.Failed
if err != nil {
return err
@@ -370,8 +368,10 @@ const (
func (u *CreateFolderBatchLaunch) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Complete : has no documentation (yet)
- Complete json.RawMessage `json:"complete,omitempty"`
+ // AsyncJobId : This response indicates that the processing is
+ // asynchronous. The string is an id that can be used to obtain the
+ // status of the asynchronous job.
+ AsyncJobId string `json:"async_job_id,omitempty"`
}
var w wrap
var err error
@@ -381,7 +381,7 @@ func (u *CreateFolderBatchLaunch) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "async_job_id":
- err = json.Unmarshal(body, &u.AsyncJobId)
+ u.AsyncJobId = w.AsyncJobId
if err != nil {
return err
@@ -440,10 +440,8 @@ const (
func (u *CreateFolderBatchResultEntry) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Success : has no documentation (yet)
- Success json.RawMessage `json:"success,omitempty"`
// Failure : has no documentation (yet)
- Failure json.RawMessage `json:"failure,omitempty"`
+ Failure *CreateFolderEntryError `json:"failure,omitempty"`
}
var w wrap
var err error
@@ -459,7 +457,7 @@ func (u *CreateFolderBatchResultEntry) UnmarshalJSON(body []byte) error {
return err
}
case "failure":
- err = json.Unmarshal(w.Failure, &u.Failure)
+ u.Failure = w.Failure
if err != nil {
return err
@@ -486,7 +484,7 @@ func (u *CreateFolderEntryError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// Path : has no documentation (yet)
- Path json.RawMessage `json:"path,omitempty"`
+ Path *WriteError `json:"path,omitempty"`
}
var w wrap
var err error
@@ -496,7 +494,7 @@ func (u *CreateFolderEntryError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "path":
- err = json.Unmarshal(w.Path, &u.Path)
+ u.Path = w.Path
if err != nil {
return err
@@ -535,7 +533,7 @@ func (u *CreateFolderError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// Path : has no documentation (yet)
- Path json.RawMessage `json:"path,omitempty"`
+ Path *WriteError `json:"path,omitempty"`
}
var w wrap
var err error
@@ -545,7 +543,7 @@ func (u *CreateFolderError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "path":
- err = json.Unmarshal(w.Path, &u.Path)
+ u.Path = w.Path
if err != nil {
return err
@@ -629,10 +627,8 @@ const (
func (u *DeleteBatchJobStatus) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Complete : The batch delete has finished.
- Complete json.RawMessage `json:"complete,omitempty"`
// Failed : The batch delete has failed.
- Failed json.RawMessage `json:"failed,omitempty"`
+ Failed *DeleteBatchError `json:"failed,omitempty"`
}
var w wrap
var err error
@@ -648,7 +644,7 @@ func (u *DeleteBatchJobStatus) UnmarshalJSON(body []byte) error {
return err
}
case "failed":
- err = json.Unmarshal(w.Failed, &u.Failed)
+ u.Failed = w.Failed
if err != nil {
return err
@@ -680,8 +676,10 @@ const (
func (u *DeleteBatchLaunch) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Complete : has no documentation (yet)
- Complete json.RawMessage `json:"complete,omitempty"`
+ // AsyncJobId : This response indicates that the processing is
+ // asynchronous. The string is an id that can be used to obtain the
+ // status of the asynchronous job.
+ AsyncJobId string `json:"async_job_id,omitempty"`
}
var w wrap
var err error
@@ -691,7 +689,7 @@ func (u *DeleteBatchLaunch) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "async_job_id":
- err = json.Unmarshal(body, &u.AsyncJobId)
+ u.AsyncJobId = w.AsyncJobId
if err != nil {
return err
@@ -771,10 +769,8 @@ const (
func (u *DeleteBatchResultEntry) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Success : has no documentation (yet)
- Success json.RawMessage `json:"success,omitempty"`
// Failure : has no documentation (yet)
- Failure json.RawMessage `json:"failure,omitempty"`
+ Failure *DeleteError `json:"failure,omitempty"`
}
var w wrap
var err error
@@ -790,7 +786,7 @@ func (u *DeleteBatchResultEntry) UnmarshalJSON(body []byte) error {
return err
}
case "failure":
- err = json.Unmarshal(w.Failure, &u.Failure)
+ u.Failure = w.Failure
if err != nil {
return err
@@ -822,9 +818,9 @@ func (u *DeleteError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// PathLookup : has no documentation (yet)
- PathLookup json.RawMessage `json:"path_lookup,omitempty"`
+ PathLookup *LookupError `json:"path_lookup,omitempty"`
// PathWrite : has no documentation (yet)
- PathWrite json.RawMessage `json:"path_write,omitempty"`
+ PathWrite *WriteError `json:"path_write,omitempty"`
}
var w wrap
var err error
@@ -834,13 +830,13 @@ func (u *DeleteError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "path_lookup":
- err = json.Unmarshal(w.PathLookup, &u.PathLookup)
+ u.PathLookup = w.PathLookup
if err != nil {
return err
}
case "path_write":
- err = json.Unmarshal(w.PathWrite, &u.PathWrite)
+ u.PathWrite = w.PathWrite
if err != nil {
return err
@@ -939,12 +935,6 @@ const (
func (u *metadataUnion) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // File : has no documentation (yet)
- File json.RawMessage `json:"file,omitempty"`
- // Folder : has no documentation (yet)
- Folder json.RawMessage `json:"folder,omitempty"`
- // Deleted : has no documentation (yet)
- Deleted json.RawMessage `json:"deleted,omitempty"`
}
var w wrap
var err error
@@ -1050,8 +1040,9 @@ type DownloadError struct {
// Valid tag values for DownloadError
const (
- DownloadErrorPath = "path"
- DownloadErrorOther = "other"
+ DownloadErrorPath = "path"
+ DownloadErrorUnsupportedFile = "unsupported_file"
+ DownloadErrorOther = "other"
)
// UnmarshalJSON deserializes into a DownloadError instance
@@ -1059,7 +1050,7 @@ func (u *DownloadError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// Path : has no documentation (yet)
- Path json.RawMessage `json:"path,omitempty"`
+ Path *LookupError `json:"path,omitempty"`
}
var w wrap
var err error
@@ -1069,7 +1060,7 @@ func (u *DownloadError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "path":
- err = json.Unmarshal(w.Path, &u.Path)
+ u.Path = w.Path
if err != nil {
return err
@@ -1111,7 +1102,7 @@ func (u *DownloadZipError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// Path : has no documentation (yet)
- Path json.RawMessage `json:"path,omitempty"`
+ Path *LookupError `json:"path,omitempty"`
}
var w wrap
var err error
@@ -1121,7 +1112,7 @@ func (u *DownloadZipError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "path":
- err = json.Unmarshal(w.Path, &u.Path)
+ u.Path = w.Path
if err != nil {
return err
@@ -1143,6 +1134,107 @@ func NewDownloadZipResult(Metadata *FolderMetadata) *DownloadZipResult {
return s
}
+// ExportArg : has no documentation (yet)
+type ExportArg struct {
+ // Path : The path of the file to be exported.
+ Path string `json:"path"`
+}
+
+// NewExportArg returns a new ExportArg instance
+func NewExportArg(Path string) *ExportArg {
+ s := new(ExportArg)
+ s.Path = Path
+ return s
+}
+
+// ExportError : has no documentation (yet)
+type ExportError struct {
+ dropbox.Tagged
+ // Path : has no documentation (yet)
+ Path *LookupError `json:"path,omitempty"`
+}
+
+// Valid tag values for ExportError
+const (
+ ExportErrorPath = "path"
+ ExportErrorNonExportable = "non_exportable"
+ ExportErrorOther = "other"
+)
+
+// UnmarshalJSON deserializes into a ExportError instance
+func (u *ExportError) UnmarshalJSON(body []byte) error {
+ type wrap struct {
+ dropbox.Tagged
+ // Path : has no documentation (yet)
+ Path *LookupError `json:"path,omitempty"`
+ }
+ var w wrap
+ var err error
+ if err = json.Unmarshal(body, &w); err != nil {
+ return err
+ }
+ u.Tag = w.Tag
+ switch u.Tag {
+ case "path":
+ u.Path = w.Path
+
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+
+// ExportInfo : Export information for a file.
+type ExportInfo struct {
+ // ExportAs : Format to which the file can be exported to.
+ ExportAs string `json:"export_as,omitempty"`
+}
+
+// NewExportInfo returns a new ExportInfo instance
+func NewExportInfo() *ExportInfo {
+ s := new(ExportInfo)
+ return s
+}
+
+// ExportMetadata : has no documentation (yet)
+type ExportMetadata struct {
+ // Name : The last component of the path (including extension). This never
+ // contains a slash.
+ Name string `json:"name"`
+ // Size : The file size in bytes.
+ Size uint64 `json:"size"`
+ // ExportHash : A hash based on the exported file content. This field can be
+ // used to verify data integrity. Similar to content hash. For more
+ // information see our `Content hash`
+ // <https://www.dropbox.com/developers/reference/content-hash> page.
+ ExportHash string `json:"export_hash,omitempty"`
+}
+
+// NewExportMetadata returns a new ExportMetadata instance
+func NewExportMetadata(Name string, Size uint64) *ExportMetadata {
+ s := new(ExportMetadata)
+ s.Name = Name
+ s.Size = Size
+ return s
+}
+
+// ExportResult : has no documentation (yet)
+type ExportResult struct {
+ // ExportMetadata : Metadata for the exported version of the file.
+ ExportMetadata *ExportMetadata `json:"export_metadata"`
+ // FileMetadata : Metadata for the original file.
+ FileMetadata *FileMetadata `json:"file_metadata"`
+}
+
+// NewExportResult returns a new ExportResult instance
+func NewExportResult(ExportMetadata *ExportMetadata, FileMetadata *FileMetadata) *ExportResult {
+ s := new(ExportResult)
+ s.ExportMetadata = ExportMetadata
+ s.FileMetadata = FileMetadata
+ return s
+}
+
// FileMetadata : has no documentation (yet)
type FileMetadata struct {
Metadata
@@ -1162,12 +1254,20 @@ type FileMetadata struct {
Rev string `json:"rev"`
// Size : The file size in bytes.
Size uint64 `json:"size"`
- // MediaInfo : Additional information if the file is a photo or video.
+ // MediaInfo : Additional information if the file is a photo or video. This
+ // field will not be set on entries returned by `listFolder`,
+ // `listFolderContinue`, or `getThumbnailBatch`, starting December 2, 2019.
MediaInfo *MediaInfo `json:"media_info,omitempty"`
// SymlinkInfo : Set if this file is a symlink.
SymlinkInfo *SymlinkInfo `json:"symlink_info,omitempty"`
// SharingInfo : Set if this file is contained in a shared folder.
SharingInfo *FileSharingInfo `json:"sharing_info,omitempty"`
+ // IsDownloadable : If true, file can be downloaded directly; else the file
+ // must be exported.
+ IsDownloadable bool `json:"is_downloadable"`
+ // ExportInfo : Information about format this file can be exported to. This
+ // filed must be set if `is_downloadable` is set to false.
+ ExportInfo *ExportInfo `json:"export_info,omitempty"`
// PropertyGroups : Additional information if the file has custom properties
// with the property template specified.
PropertyGroups []*file_properties.PropertyGroup `json:"property_groups,omitempty"`
@@ -1193,6 +1293,7 @@ func NewFileMetadata(Name string, Id string, ClientModified time.Time, ServerMod
s.ServerModified = ServerModified
s.Rev = Rev
s.Size = Size
+ s.IsDownloadable = true
return s
}
@@ -1313,7 +1414,7 @@ func (u *GetCopyReferenceError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// Path : has no documentation (yet)
- Path json.RawMessage `json:"path,omitempty"`
+ Path *LookupError `json:"path,omitempty"`
}
var w wrap
var err error
@@ -1323,7 +1424,7 @@ func (u *GetCopyReferenceError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "path":
- err = json.Unmarshal(w.Path, &u.Path)
+ u.Path = w.Path
if err != nil {
return err
@@ -1401,8 +1502,10 @@ type GetTemporaryLinkError struct {
// Valid tag values for GetTemporaryLinkError
const (
- GetTemporaryLinkErrorPath = "path"
- GetTemporaryLinkErrorOther = "other"
+ GetTemporaryLinkErrorPath = "path"
+ GetTemporaryLinkErrorEmailNotVerified = "email_not_verified"
+ GetTemporaryLinkErrorUnsupportedFile = "unsupported_file"
+ GetTemporaryLinkErrorOther = "other"
)
// UnmarshalJSON deserializes into a GetTemporaryLinkError instance
@@ -1410,7 +1513,7 @@ func (u *GetTemporaryLinkError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// Path : has no documentation (yet)
- Path json.RawMessage `json:"path,omitempty"`
+ Path *LookupError `json:"path,omitempty"`
}
var w wrap
var err error
@@ -1420,7 +1523,7 @@ func (u *GetTemporaryLinkError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "path":
- err = json.Unmarshal(w.Path, &u.Path)
+ u.Path = w.Path
if err != nil {
return err
@@ -1552,10 +1655,8 @@ const (
func (u *GetThumbnailBatchResultEntry) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Success : has no documentation (yet)
- Success json.RawMessage `json:"success,omitempty"`
// Failure : The result for this file if it was an error.
- Failure json.RawMessage `json:"failure,omitempty"`
+ Failure *ThumbnailError `json:"failure,omitempty"`
}
var w wrap
var err error
@@ -1571,7 +1672,7 @@ func (u *GetThumbnailBatchResultEntry) UnmarshalJSON(body []byte) error {
return err
}
case "failure":
- err = json.Unmarshal(w.Failure, &u.Failure)
+ u.Failure = w.Failure
if err != nil {
return err
@@ -1605,7 +1706,8 @@ type ListFolderArg struct {
// all subfolders.
Recursive bool `json:"recursive"`
// IncludeMediaInfo : If true, `FileMetadata.media_info` is set for photo
- // and video.
+ // and video. This parameter will no longer have an effect starting December
+ // 2, 2019.
IncludeMediaInfo bool `json:"include_media_info"`
// IncludeDeleted : If true, the results will include entries for files and
// folders that used to exist but were deleted.
@@ -1630,6 +1732,9 @@ type ListFolderArg struct {
// `FileMetadata.property_groups` is set if there exists property data
// associated with the file and each of the listed templates.
IncludePropertyGroups *file_properties.TemplateFilterBase `json:"include_property_groups,omitempty"`
+ // IncludeNonDownloadableFiles : If true, include files that are not
+ // downloadable, i.e. Google Docs.
+ IncludeNonDownloadableFiles bool `json:"include_non_downloadable_files"`
}
// NewListFolderArg returns a new ListFolderArg instance
@@ -1641,6 +1746,7 @@ func NewListFolderArg(Path string) *ListFolderArg {
s.IncludeDeleted = false
s.IncludeHasExplicitSharedMembers = false
s.IncludeMountedFolders = true
+ s.IncludeNonDownloadableFiles = true
return s
}
@@ -1677,7 +1783,7 @@ func (u *ListFolderContinueError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// Path : has no documentation (yet)
- Path json.RawMessage `json:"path,omitempty"`
+ Path *LookupError `json:"path,omitempty"`
}
var w wrap
var err error
@@ -1687,7 +1793,7 @@ func (u *ListFolderContinueError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "path":
- err = json.Unmarshal(w.Path, &u.Path)
+ u.Path = w.Path
if err != nil {
return err
@@ -1714,7 +1820,7 @@ func (u *ListFolderError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// Path : has no documentation (yet)
- Path json.RawMessage `json:"path,omitempty"`
+ Path *LookupError `json:"path,omitempty"`
}
var w wrap
var err error
@@ -1724,7 +1830,7 @@ func (u *ListFolderError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "path":
- err = json.Unmarshal(w.Path, &u.Path)
+ u.Path = w.Path
if err != nil {
return err
@@ -1884,7 +1990,7 @@ func (u *ListRevisionsError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// Path : has no documentation (yet)
- Path json.RawMessage `json:"path,omitempty"`
+ Path *LookupError `json:"path,omitempty"`
}
var w wrap
var err error
@@ -1894,7 +2000,7 @@ func (u *ListRevisionsError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "path":
- err = json.Unmarshal(w.Path, &u.Path)
+ u.Path = w.Path
if err != nil {
return err
@@ -1947,12 +2053,13 @@ type LookupError struct {
// Valid tag values for LookupError
const (
- LookupErrorMalformedPath = "malformed_path"
- LookupErrorNotFound = "not_found"
- LookupErrorNotFile = "not_file"
- LookupErrorNotFolder = "not_folder"
- LookupErrorRestrictedContent = "restricted_content"
- LookupErrorOther = "other"
+ LookupErrorMalformedPath = "malformed_path"
+ LookupErrorNotFound = "not_found"
+ LookupErrorNotFile = "not_file"
+ LookupErrorNotFolder = "not_folder"
+ LookupErrorRestrictedContent = "restricted_content"
+ LookupErrorUnsupportedContentType = "unsupported_content_type"
+ LookupErrorOther = "other"
)
// UnmarshalJSON deserializes into a LookupError instance
@@ -1963,7 +2070,7 @@ func (u *LookupError) UnmarshalJSON(body []byte) error {
// format. Please refer to the `Path formats documentation`
// <https://www.dropbox.com/developers/documentation/http/documentation#path-formats>
// for more information.
- MalformedPath json.RawMessage `json:"malformed_path,omitempty"`
+ MalformedPath string `json:"malformed_path,omitempty"`
}
var w wrap
var err error
@@ -1973,7 +2080,7 @@ func (u *LookupError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "malformed_path":
- err = json.Unmarshal(body, &u.MalformedPath)
+ u.MalformedPath = w.MalformedPath
if err != nil {
return err
@@ -2010,7 +2117,7 @@ func (u *MediaInfo) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "metadata":
- u.Metadata, err = IsMediaMetadataFromJSON(body)
+ u.Metadata, err = IsMediaMetadataFromJSON(w.Metadata)
if err != nil {
return err
@@ -2061,10 +2168,6 @@ const (
func (u *mediaMetadataUnion) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Photo : has no documentation (yet)
- Photo json.RawMessage `json:"photo,omitempty"`
- // Video : has no documentation (yet)
- Video json.RawMessage `json:"video,omitempty"`
}
var w wrap
var err error
@@ -2188,7 +2291,7 @@ func (u *PreviewError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// Path : An error occurs when downloading metadata for the file.
- Path json.RawMessage `json:"path,omitempty"`
+ Path *LookupError `json:"path,omitempty"`
}
var w wrap
var err error
@@ -2198,7 +2301,7 @@ func (u *PreviewError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "path":
- err = json.Unmarshal(w.Path, &u.Path)
+ u.Path = w.Path
if err != nil {
return err
@@ -2298,6 +2401,7 @@ const (
RelocationErrorCantTransferOwnership = "cant_transfer_ownership"
RelocationErrorInsufficientQuota = "insufficient_quota"
RelocationErrorInternalError = "internal_error"
+ RelocationErrorCantMoveSharedFolder = "cant_move_shared_folder"
RelocationErrorOther = "other"
)
@@ -2306,11 +2410,11 @@ func (u *RelocationError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// FromLookup : has no documentation (yet)
- FromLookup json.RawMessage `json:"from_lookup,omitempty"`
+ FromLookup *LookupError `json:"from_lookup,omitempty"`
// FromWrite : has no documentation (yet)
- FromWrite json.RawMessage `json:"from_write,omitempty"`
+ FromWrite *WriteError `json:"from_write,omitempty"`
// To : has no documentation (yet)
- To json.RawMessage `json:"to,omitempty"`
+ To *WriteError `json:"to,omitempty"`
}
var w wrap
var err error
@@ -2320,19 +2424,19 @@ func (u *RelocationError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "from_lookup":
- err = json.Unmarshal(w.FromLookup, &u.FromLookup)
+ u.FromLookup = w.FromLookup
if err != nil {
return err
}
case "from_write":
- err = json.Unmarshal(w.FromWrite, &u.FromWrite)
+ u.FromWrite = w.FromWrite
if err != nil {
return err
}
case "to":
- err = json.Unmarshal(w.To, &u.To)
+ u.To = w.To
if err != nil {
return err
@@ -2365,6 +2469,7 @@ const (
RelocationBatchErrorCantTransferOwnership = "cant_transfer_ownership"
RelocationBatchErrorInsufficientQuota = "insufficient_quota"
RelocationBatchErrorInternalError = "internal_error"
+ RelocationBatchErrorCantMoveSharedFolder = "cant_move_shared_folder"
RelocationBatchErrorOther = "other"
RelocationBatchErrorTooManyWriteOperations = "too_many_write_operations"
)
@@ -2374,11 +2479,11 @@ func (u *RelocationBatchError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// FromLookup : has no documentation (yet)
- FromLookup json.RawMessage `json:"from_lookup,omitempty"`
+ FromLookup *LookupError `json:"from_lookup,omitempty"`
// FromWrite : has no documentation (yet)
- FromWrite json.RawMessage `json:"from_write,omitempty"`
+ FromWrite *WriteError `json:"from_write,omitempty"`
// To : has no documentation (yet)
- To json.RawMessage `json:"to,omitempty"`
+ To *WriteError `json:"to,omitempty"`
}
var w wrap
var err error
@@ -2388,19 +2493,19 @@ func (u *RelocationBatchError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "from_lookup":
- err = json.Unmarshal(w.FromLookup, &u.FromLookup)
+ u.FromLookup = w.FromLookup
if err != nil {
return err
}
case "from_write":
- err = json.Unmarshal(w.FromWrite, &u.FromWrite)
+ u.FromWrite = w.FromWrite
if err != nil {
return err
}
case "to":
- err = json.Unmarshal(w.To, &u.To)
+ u.To = w.To
if err != nil {
return err
@@ -2429,7 +2534,7 @@ func (u *RelocationBatchErrorEntry) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// RelocationError : User errors that retry won't help.
- RelocationError json.RawMessage `json:"relocation_error,omitempty"`
+ RelocationError *RelocationError `json:"relocation_error,omitempty"`
}
var w wrap
var err error
@@ -2439,7 +2544,7 @@ func (u *RelocationBatchErrorEntry) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "relocation_error":
- err = json.Unmarshal(w.RelocationError, &u.RelocationError)
+ u.RelocationError = w.RelocationError
if err != nil {
return err
@@ -2468,10 +2573,8 @@ const (
func (u *RelocationBatchJobStatus) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Complete : The copy or move batch job has finished.
- Complete json.RawMessage `json:"complete,omitempty"`
// Failed : The copy or move batch job has failed with exception.
- Failed json.RawMessage `json:"failed,omitempty"`
+ Failed *RelocationBatchError `json:"failed,omitempty"`
}
var w wrap
var err error
@@ -2487,7 +2590,7 @@ func (u *RelocationBatchJobStatus) UnmarshalJSON(body []byte) error {
return err
}
case "failed":
- err = json.Unmarshal(w.Failed, &u.Failed)
+ u.Failed = w.Failed
if err != nil {
return err
@@ -2519,8 +2622,10 @@ const (
func (u *RelocationBatchLaunch) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Complete : has no documentation (yet)
- Complete json.RawMessage `json:"complete,omitempty"`
+ // AsyncJobId : This response indicates that the processing is
+ // asynchronous. The string is an id that can be used to obtain the
+ // status of the asynchronous job.
+ AsyncJobId string `json:"async_job_id,omitempty"`
}
var w wrap
var err error
@@ -2530,7 +2635,7 @@ func (u *RelocationBatchLaunch) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "async_job_id":
- err = json.Unmarshal(body, &u.AsyncJobId)
+ u.AsyncJobId = w.AsyncJobId
if err != nil {
return err
@@ -2613,7 +2718,7 @@ func (u *RelocationBatchResultEntry) UnmarshalJSON(body []byte) error {
// Success : has no documentation (yet)
Success json.RawMessage `json:"success,omitempty"`
// Failure : has no documentation (yet)
- Failure json.RawMessage `json:"failure,omitempty"`
+ Failure *RelocationBatchErrorEntry `json:"failure,omitempty"`
}
var w wrap
var err error
@@ -2623,13 +2728,13 @@ func (u *RelocationBatchResultEntry) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "success":
- u.Success, err = IsMetadataFromJSON(body)
+ u.Success, err = IsMetadataFromJSON(w.Success)
if err != nil {
return err
}
case "failure":
- err = json.Unmarshal(w.Failure, &u.Failure)
+ u.Failure = w.Failure
if err != nil {
return err
@@ -2638,8 +2743,9 @@ func (u *RelocationBatchResultEntry) UnmarshalJSON(body []byte) error {
return nil
}
-// RelocationBatchV2JobStatus : Result returned by `copyBatch` or `moveBatch`
-// that may either launch an asynchronous job or complete synchronously.
+// RelocationBatchV2JobStatus : Result returned by `copyBatchCheck` or
+// `moveBatchCheck` that may either be in progress or completed with result for
+// each entry.
type RelocationBatchV2JobStatus struct {
dropbox.Tagged
// Complete : The copy or move batch job has finished.
@@ -2656,8 +2762,6 @@ const (
func (u *RelocationBatchV2JobStatus) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Complete : The copy or move batch job has finished.
- Complete json.RawMessage `json:"complete,omitempty"`
}
var w wrap
var err error
@@ -2698,8 +2802,10 @@ const (
func (u *RelocationBatchV2Launch) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Complete : has no documentation (yet)
- Complete json.RawMessage `json:"complete,omitempty"`
+ // AsyncJobId : This response indicates that the processing is
+ // asynchronous. The string is an id that can be used to obtain the
+ // status of the asynchronous job.
+ AsyncJobId string `json:"async_job_id,omitempty"`
}
var w wrap
var err error
@@ -2709,7 +2815,7 @@ func (u *RelocationBatchV2Launch) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "async_job_id":
- err = json.Unmarshal(body, &u.AsyncJobId)
+ u.AsyncJobId = w.AsyncJobId
if err != nil {
return err
@@ -2810,10 +2916,10 @@ func (u *RestoreError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// PathLookup : An error occurs when downloading metadata for the file.
- PathLookup json.RawMessage `json:"path_lookup,omitempty"`
+ PathLookup *LookupError `json:"path_lookup,omitempty"`
// PathWrite : An error occurs when trying to restore the file to that
// path.
- PathWrite json.RawMessage `json:"path_write,omitempty"`
+ PathWrite *WriteError `json:"path_write,omitempty"`
}
var w wrap
var err error
@@ -2823,13 +2929,13 @@ func (u *RestoreError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "path_lookup":
- err = json.Unmarshal(w.PathLookup, &u.PathLookup)
+ u.PathLookup = w.PathLookup
if err != nil {
return err
}
case "path_write":
- err = json.Unmarshal(w.PathWrite, &u.PathWrite)
+ u.PathWrite = w.PathWrite
if err != nil {
return err
@@ -2876,7 +2982,7 @@ func (u *SaveCopyReferenceError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// Path : has no documentation (yet)
- Path json.RawMessage `json:"path,omitempty"`
+ Path *WriteError `json:"path,omitempty"`
}
var w wrap
var err error
@@ -2886,7 +2992,7 @@ func (u *SaveCopyReferenceError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "path":
- err = json.Unmarshal(w.Path, &u.Path)
+ u.Path = w.Path
if err != nil {
return err
@@ -2965,7 +3071,7 @@ func (u *SaveUrlError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// Path : has no documentation (yet)
- Path json.RawMessage `json:"path,omitempty"`
+ Path *WriteError `json:"path,omitempty"`
}
var w wrap
var err error
@@ -2975,7 +3081,7 @@ func (u *SaveUrlError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "path":
- err = json.Unmarshal(w.Path, &u.Path)
+ u.Path = w.Path
if err != nil {
return err
@@ -3004,10 +3110,8 @@ const (
func (u *SaveUrlJobStatus) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Complete : Metadata of the file where the URL is saved to.
- Complete json.RawMessage `json:"complete,omitempty"`
// Failed : has no documentation (yet)
- Failed json.RawMessage `json:"failed,omitempty"`
+ Failed *SaveUrlError `json:"failed,omitempty"`
}
var w wrap
var err error
@@ -3023,7 +3127,7 @@ func (u *SaveUrlJobStatus) UnmarshalJSON(body []byte) error {
return err
}
case "failed":
- err = json.Unmarshal(w.Failed, &u.Failed)
+ u.Failed = w.Failed
if err != nil {
return err
@@ -3053,8 +3157,10 @@ const (
func (u *SaveUrlResult) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Complete : Metadata of the file where the URL is saved to.
- Complete json.RawMessage `json:"complete,omitempty"`
+ // AsyncJobId : This response indicates that the processing is
+ // asynchronous. The string is an id that can be used to obtain the
+ // status of the asynchronous job.
+ AsyncJobId string `json:"async_job_id,omitempty"`
}
var w wrap
var err error
@@ -3064,7 +3170,7 @@ func (u *SaveUrlResult) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "async_job_id":
- err = json.Unmarshal(body, &u.AsyncJobId)
+ u.AsyncJobId = w.AsyncJobId
if err != nil {
return err
@@ -3127,7 +3233,7 @@ func (u *SearchError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// Path : has no documentation (yet)
- Path json.RawMessage `json:"path,omitempty"`
+ Path *LookupError `json:"path,omitempty"`
}
var w wrap
var err error
@@ -3137,7 +3243,7 @@ func (u *SearchError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "path":
- err = json.Unmarshal(w.Path, &u.Path)
+ u.Path = w.Path
if err != nil {
return err
@@ -3301,7 +3407,7 @@ func (u *SyncSettingsError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// Path : has no documentation (yet)
- Path json.RawMessage `json:"path,omitempty"`
+ Path *LookupError `json:"path,omitempty"`
}
var w wrap
var err error
@@ -3311,7 +3417,7 @@ func (u *SyncSettingsError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "path":
- err = json.Unmarshal(w.Path, &u.Path)
+ u.Path = w.Path
if err != nil {
return err
@@ -3364,7 +3470,7 @@ func (u *ThumbnailError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// Path : An error occurs when downloading metadata for the image.
- Path json.RawMessage `json:"path,omitempty"`
+ Path *LookupError `json:"path,omitempty"`
}
var w wrap
var err error
@@ -3374,7 +3480,7 @@ func (u *ThumbnailError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "path":
- err = json.Unmarshal(w.Path, &u.Path)
+ u.Path = w.Path
if err != nil {
return err
@@ -3445,11 +3551,9 @@ const (
func (u *UploadError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Path : Unable to save the uploaded contents to a file.
- Path json.RawMessage `json:"path,omitempty"`
// PropertiesError : The supplied property group is invalid. The file
// has uploaded without property groups.
- PropertiesError json.RawMessage `json:"properties_error,omitempty"`
+ PropertiesError *file_properties.InvalidPropertyGroupError `json:"properties_error,omitempty"`
}
var w wrap
var err error
@@ -3465,7 +3569,7 @@ func (u *UploadError) UnmarshalJSON(body []byte) error {
return err
}
case "properties_error":
- err = json.Unmarshal(w.PropertiesError, &u.PropertiesError)
+ u.PropertiesError = w.PropertiesError
if err != nil {
return err
@@ -3495,11 +3599,9 @@ const (
func (u *UploadErrorWithProperties) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Path : Unable to save the uploaded contents to a file.
- Path json.RawMessage `json:"path,omitempty"`
// PropertiesError : The supplied property group is invalid. The file
// has uploaded without property groups.
- PropertiesError json.RawMessage `json:"properties_error,omitempty"`
+ PropertiesError *file_properties.InvalidPropertyGroupError `json:"properties_error,omitempty"`
}
var w wrap
var err error
@@ -3515,7 +3617,7 @@ func (u *UploadErrorWithProperties) UnmarshalJSON(body []byte) error {
return err
}
case "properties_error":
- err = json.Unmarshal(w.PropertiesError, &u.PropertiesError)
+ u.PropertiesError = w.PropertiesError
if err != nil {
return err
@@ -3606,8 +3708,6 @@ const (
func (u *UploadSessionFinishBatchJobStatus) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Complete : The `uploadSessionFinishBatch` has finished.
- Complete json.RawMessage `json:"complete,omitempty"`
}
var w wrap
var err error
@@ -3650,8 +3750,10 @@ const (
func (u *UploadSessionFinishBatchLaunch) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Complete : has no documentation (yet)
- Complete json.RawMessage `json:"complete,omitempty"`
+ // AsyncJobId : This response indicates that the processing is
+ // asynchronous. The string is an id that can be used to obtain the
+ // status of the asynchronous job.
+ AsyncJobId string `json:"async_job_id,omitempty"`
}
var w wrap
var err error
@@ -3661,7 +3763,7 @@ func (u *UploadSessionFinishBatchLaunch) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "async_job_id":
- err = json.Unmarshal(body, &u.AsyncJobId)
+ u.AsyncJobId = w.AsyncJobId
if err != nil {
return err
@@ -3709,10 +3811,8 @@ const (
func (u *UploadSessionFinishBatchResultEntry) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Success : has no documentation (yet)
- Success json.RawMessage `json:"success,omitempty"`
// Failure : has no documentation (yet)
- Failure json.RawMessage `json:"failure,omitempty"`
+ Failure *UploadSessionFinishError `json:"failure,omitempty"`
}
var w wrap
var err error
@@ -3728,7 +3828,7 @@ func (u *UploadSessionFinishBatchResultEntry) UnmarshalJSON(body []byte) error {
return err
}
case "failure":
- err = json.Unmarshal(w.Failure, &u.Failure)
+ u.Failure = w.Failure
if err != nil {
return err
@@ -3768,14 +3868,14 @@ func (u *UploadSessionFinishError) UnmarshalJSON(body []byte) error {
dropbox.Tagged
// LookupFailed : The session arguments are incorrect; the value
// explains the reason.
- LookupFailed json.RawMessage `json:"lookup_failed,omitempty"`
+ LookupFailed *UploadSessionLookupError `json:"lookup_failed,omitempty"`
// Path : Unable to save the uploaded contents to a file. Data has
// already been appended to the upload session. Please retry with empty
// data body and updated offset.
- Path json.RawMessage `json:"path,omitempty"`
+ Path *WriteError `json:"path,omitempty"`
// PropertiesError : The supplied property group is invalid. The file
// has uploaded without property groups.
- PropertiesError json.RawMessage `json:"properties_error,omitempty"`
+ PropertiesError *file_properties.InvalidPropertyGroupError `json:"properties_error,omitempty"`
}
var w wrap
var err error
@@ -3785,19 +3885,19 @@ func (u *UploadSessionFinishError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "lookup_failed":
- err = json.Unmarshal(w.LookupFailed, &u.LookupFailed)
+ u.LookupFailed = w.LookupFailed
if err != nil {
return err
}
case "path":
- err = json.Unmarshal(w.Path, &u.Path)
+ u.Path = w.Path
if err != nil {
return err
}
case "properties_error":
- err = json.Unmarshal(w.PropertiesError, &u.PropertiesError)
+ u.PropertiesError = w.PropertiesError
if err != nil {
return err
@@ -3830,11 +3930,6 @@ const (
func (u *UploadSessionLookupError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // IncorrectOffset : The specified offset was incorrect. See the value
- // for the correct offset. This error may occur when a previous request
- // was received and processed successfully but the client did not
- // receive the response, e.g. due to a network error.
- IncorrectOffset json.RawMessage `json:"incorrect_offset,omitempty"`
}
var w wrap
var err error
@@ -3972,10 +4067,10 @@ func (u *WriteError) UnmarshalJSON(body []byte) error {
// format. Please refer to the `Path formats documentation`
// <https://www.dropbox.com/developers/documentation/http/documentation#path-formats>
// for more information.
- MalformedPath json.RawMessage `json:"malformed_path,omitempty"`
+ MalformedPath string `json:"malformed_path,omitempty"`
// Conflict : Couldn't write to the target path because there was
// something in the way.
- Conflict json.RawMessage `json:"conflict,omitempty"`
+ Conflict *WriteConflictError `json:"conflict,omitempty"`
}
var w wrap
var err error
@@ -3985,13 +4080,13 @@ func (u *WriteError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "malformed_path":
- err = json.Unmarshal(body, &u.MalformedPath)
+ u.MalformedPath = w.MalformedPath
if err != nil {
return err
}
case "conflict":
- err = json.Unmarshal(w.Conflict, &u.Conflict)
+ u.Conflict = w.Conflict
if err != nil {
return err
@@ -4029,6 +4124,12 @@ const (
func (u *WriteMode) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
+ // Update : Overwrite if the given "rev" matches the existing file's
+ // "rev". The autorename strategy is to append the string "conflicted
+ // copy" to the file name. For example, "document.txt" might become
+ // "document (conflicted copy).txt" or "document (Panda's conflicted
+ // copy).txt".
+ Update string `json:"update,omitempty"`
}
var w wrap
var err error
@@ -4038,7 +4139,7 @@ func (u *WriteMode) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "update":
- err = json.Unmarshal(body, &u.Update)
+ u.Update = w.Update
if err != nil {
return err
diff --git a/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/sdk.go b/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/sdk.go
index 6744fd4ce..46c49665b 100644
--- a/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/sdk.go
+++ b/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/sdk.go
@@ -21,6 +21,7 @@
package dropbox
import (
+ "bytes"
"encoding/json"
"fmt"
"io"
@@ -37,8 +38,8 @@ const (
hostAPI = "api"
hostContent = "content"
hostNotify = "notify"
- sdkVersion = "5.4.0"
- specVersion = "097e9ba"
+ sdkVersion = "5.6.0"
+ specVersion = "0e697d7"
)
// Version returns the current SDK version and API Spec version
@@ -221,3 +222,20 @@ func HandleCommonAPIErrors(c Config, resp *http.Response, body []byte) error {
}
return apiError
}
+
+// HTTPHeaderSafeJSON encode the JSON passed in b []byte passed in in
+// a way that is suitable for HTTP headers.
+//
+// See: https://www.dropbox.com/developers/reference/json-encoding
+func HTTPHeaderSafeJSON(b []byte) string {
+ var s bytes.Buffer
+ s.Grow(len(b))
+ for _, r := range string(b) {
+ if r >= 0x007f {
+ fmt.Fprintf(&s, "\\u%04x", r)
+ } else {
+ s.WriteRune(r)
+ }
+ }
+ return s.String()
+}
diff --git a/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/seen_state/types.go b/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/seen_state/types.go
index 1afac6e83..be6120a33 100644
--- a/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/seen_state/types.go
+++ b/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/seen_state/types.go
@@ -30,9 +30,12 @@ type PlatformType struct {
// Valid tag values for PlatformType
const (
- PlatformTypeWeb = "web"
- PlatformTypeMobile = "mobile"
- PlatformTypeDesktop = "desktop"
- PlatformTypeUnknown = "unknown"
- PlatformTypeOther = "other"
+ PlatformTypeWeb = "web"
+ PlatformTypeDesktop = "desktop"
+ PlatformTypeMobileIos = "mobile_ios"
+ PlatformTypeMobileAndroid = "mobile_android"
+ PlatformTypeApi = "api"
+ PlatformTypeUnknown = "unknown"
+ PlatformTypeMobile = "mobile"
+ PlatformTypeOther = "other"
)
diff --git a/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/sharing/client.go b/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/sharing/client.go
index 4112ccdba..41f6f284c 100644
--- a/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/sharing/client.go
+++ b/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/sharing/client.go
@@ -966,7 +966,7 @@ func (dbx *apiImpl) GetSharedLinkFile(arg *GetSharedLinkMetadataArg) (res IsShar
}
headers := map[string]string{
- "Dropbox-API-Arg": string(b),
+ "Dropbox-API-Arg": dropbox.HTTPHeaderSafeJSON(b),
}
if dbx.Config.AsMemberID != "" {
headers["Dropbox-API-Select-User"] = dbx.Config.AsMemberID
diff --git a/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/sharing/types.go b/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/sharing/types.go
index 2ae5b47af..4e84fb522 100644
--- a/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/sharing/types.go
+++ b/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/sharing/types.go
@@ -128,9 +128,9 @@ func (u *AddFileMemberError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// UserError : has no documentation (yet)
- UserError json.RawMessage `json:"user_error,omitempty"`
+ UserError *SharingUserError `json:"user_error,omitempty"`
// AccessError : has no documentation (yet)
- AccessError json.RawMessage `json:"access_error,omitempty"`
+ AccessError *SharingFileAccessError `json:"access_error,omitempty"`
}
var w wrap
var err error
@@ -140,13 +140,13 @@ func (u *AddFileMemberError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "user_error":
- err = json.Unmarshal(w.UserError, &u.UserError)
+ u.UserError = w.UserError
if err != nil {
return err
}
case "access_error":
- err = json.Unmarshal(w.AccessError, &u.AccessError)
+ u.AccessError = w.AccessError
if err != nil {
return err
@@ -198,6 +198,7 @@ type AddFolderMemberError struct {
const (
AddFolderMemberErrorAccessError = "access_error"
AddFolderMemberErrorEmailUnverified = "email_unverified"
+ AddFolderMemberErrorBannedMember = "banned_member"
AddFolderMemberErrorBadMember = "bad_member"
AddFolderMemberErrorCantShareOutsideTeam = "cant_share_outside_team"
AddFolderMemberErrorTooManyMembers = "too_many_members"
@@ -215,10 +216,15 @@ func (u *AddFolderMemberError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// AccessError : Unable to access shared folder.
- AccessError json.RawMessage `json:"access_error,omitempty"`
+ AccessError *SharedFolderAccessError `json:"access_error,omitempty"`
// BadMember : `AddFolderMemberArg.members` contains a bad invitation
// recipient.
- BadMember json.RawMessage `json:"bad_member,omitempty"`
+ BadMember *AddMemberSelectorError `json:"bad_member,omitempty"`
+ // TooManyMembers : The value is the member limit that was reached.
+ TooManyMembers uint64 `json:"too_many_members,omitempty"`
+ // TooManyPendingInvites : The value is the pending invite limit that
+ // was reached.
+ TooManyPendingInvites uint64 `json:"too_many_pending_invites,omitempty"`
}
var w wrap
var err error
@@ -228,25 +234,25 @@ func (u *AddFolderMemberError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "access_error":
- err = json.Unmarshal(w.AccessError, &u.AccessError)
+ u.AccessError = w.AccessError
if err != nil {
return err
}
case "bad_member":
- err = json.Unmarshal(w.BadMember, &u.BadMember)
+ u.BadMember = w.BadMember
if err != nil {
return err
}
case "too_many_members":
- err = json.Unmarshal(body, &u.TooManyMembers)
+ u.TooManyMembers = w.TooManyMembers
if err != nil {
return err
}
case "too_many_pending_invites":
- err = json.Unmarshal(body, &u.TooManyPendingInvites)
+ u.TooManyPendingInvites = w.TooManyPendingInvites
if err != nil {
return err
@@ -301,6 +307,14 @@ const (
func (u *AddMemberSelectorError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
+ // InvalidDropboxId : The value is the ID that could not be identified.
+ InvalidDropboxId string `json:"invalid_dropbox_id,omitempty"`
+ // InvalidEmail : The value is the e-email address that is malformed.
+ InvalidEmail string `json:"invalid_email,omitempty"`
+ // UnverifiedDropboxId : The value is the ID of the Dropbox user with an
+ // unverified e-mail address. Invite unverified users by e-mail address
+ // instead of by their Dropbox ID.
+ UnverifiedDropboxId string `json:"unverified_dropbox_id,omitempty"`
}
var w wrap
var err error
@@ -310,19 +324,19 @@ func (u *AddMemberSelectorError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "invalid_dropbox_id":
- err = json.Unmarshal(body, &u.InvalidDropboxId)
+ u.InvalidDropboxId = w.InvalidDropboxId
if err != nil {
return err
}
case "invalid_email":
- err = json.Unmarshal(body, &u.InvalidEmail)
+ u.InvalidEmail = w.InvalidEmail
if err != nil {
return err
}
case "unverified_dropbox_id":
- err = json.Unmarshal(body, &u.UnverifiedDropboxId)
+ u.UnverifiedDropboxId = w.UnverifiedDropboxId
if err != nil {
return err
@@ -449,10 +463,6 @@ const (
func (u *linkMetadataUnion) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Path : has no documentation (yet)
- Path json.RawMessage `json:"path,omitempty"`
- // Collection : has no documentation (yet)
- Collection json.RawMessage `json:"collection,omitempty"`
}
var w wrap
var err error
@@ -545,7 +555,7 @@ func (u *CreateSharedLinkError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// Path : has no documentation (yet)
- Path json.RawMessage `json:"path,omitempty"`
+ Path *files.LookupError `json:"path,omitempty"`
}
var w wrap
var err error
@@ -555,7 +565,7 @@ func (u *CreateSharedLinkError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "path":
- err = json.Unmarshal(w.Path, &u.Path)
+ u.Path = w.Path
if err != nil {
return err
@@ -584,6 +594,10 @@ type CreateSharedLinkWithSettingsError struct {
dropbox.Tagged
// Path : has no documentation (yet)
Path *files.LookupError `json:"path,omitempty"`
+ // SharedLinkAlreadyExists : The shared link already exists. You can call
+ // `listSharedLinks` to get the existing link, or use the provided metadata
+ // if it is returned.
+ SharedLinkAlreadyExists *SharedLinkAlreadyExistsMetadata `json:"shared_link_already_exists,omitempty"`
// SettingsError : There is an error with the given settings.
SettingsError *SharedLinkSettingsError `json:"settings_error,omitempty"`
}
@@ -602,9 +616,13 @@ func (u *CreateSharedLinkWithSettingsError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// Path : has no documentation (yet)
- Path json.RawMessage `json:"path,omitempty"`
+ Path *files.LookupError `json:"path,omitempty"`
+ // SharedLinkAlreadyExists : The shared link already exists. You can
+ // call `listSharedLinks` to get the existing link, or use the provided
+ // metadata if it is returned.
+ SharedLinkAlreadyExists *SharedLinkAlreadyExistsMetadata `json:"shared_link_already_exists,omitempty"`
// SettingsError : There is an error with the given settings.
- SettingsError json.RawMessage `json:"settings_error,omitempty"`
+ SettingsError *SharedLinkSettingsError `json:"settings_error,omitempty"`
}
var w wrap
var err error
@@ -614,13 +632,19 @@ func (u *CreateSharedLinkWithSettingsError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "path":
- err = json.Unmarshal(w.Path, &u.Path)
+ u.Path = w.Path
+
+ if err != nil {
+ return err
+ }
+ case "shared_link_already_exists":
+ u.SharedLinkAlreadyExists = w.SharedLinkAlreadyExists
if err != nil {
return err
}
case "settings_error":
- err = json.Unmarshal(w.SettingsError, &u.SettingsError)
+ u.SettingsError = w.SettingsError
if err != nil {
return err
@@ -698,6 +722,8 @@ const (
FileActionRelinquishMembership = "relinquish_membership"
FileActionShareLink = "share_link"
FileActionCreateLink = "create_link"
+ FileActionCreateViewLink = "create_view_link"
+ FileActionCreateEditLink = "create_edit_link"
FileActionOther = "other"
)
@@ -726,6 +752,14 @@ const (
func (u *FileErrorResult) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
+ // FileNotFoundError : File specified by id was not found.
+ FileNotFoundError string `json:"file_not_found_error,omitempty"`
+ // InvalidFileActionError : User does not have permission to take the
+ // specified action on the file.
+ InvalidFileActionError string `json:"invalid_file_action_error,omitempty"`
+ // PermissionDeniedError : User does not have permission to access file
+ // specified by file.Id.
+ PermissionDeniedError string `json:"permission_denied_error,omitempty"`
}
var w wrap
var err error
@@ -735,19 +769,19 @@ func (u *FileErrorResult) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "file_not_found_error":
- err = json.Unmarshal(body, &u.FileNotFoundError)
+ u.FileNotFoundError = w.FileNotFoundError
if err != nil {
return err
}
case "invalid_file_action_error":
- err = json.Unmarshal(body, &u.InvalidFileActionError)
+ u.InvalidFileActionError = w.InvalidFileActionError
if err != nil {
return err
}
case "permission_denied_error":
- err = json.Unmarshal(body, &u.PermissionDeniedError)
+ u.PermissionDeniedError = w.PermissionDeniedError
if err != nil {
return err
@@ -817,10 +851,6 @@ const (
func (u *sharedLinkMetadataUnion) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // File : has no documentation (yet)
- File json.RawMessage `json:"file,omitempty"`
- // Folder : has no documentation (yet)
- Folder json.RawMessage `json:"folder,omitempty"`
}
var w wrap
var err error
@@ -920,11 +950,7 @@ func (u *FileMemberActionError) UnmarshalJSON(body []byte) error {
dropbox.Tagged
// AccessError : Specified file was invalid or user does not have
// access.
- AccessError json.RawMessage `json:"access_error,omitempty"`
- // NoExplicitAccess : The action cannot be completed because the target
- // member does not have explicit access to the file. The return value is
- // the access that the member has to the file from a parent folder.
- NoExplicitAccess json.RawMessage `json:"no_explicit_access,omitempty"`
+ AccessError *SharingFileAccessError `json:"access_error,omitempty"`
}
var w wrap
var err error
@@ -934,7 +960,7 @@ func (u *FileMemberActionError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "access_error":
- err = json.Unmarshal(w.AccessError, &u.AccessError)
+ u.AccessError = w.AccessError
if err != nil {
return err
@@ -972,9 +998,9 @@ func (u *FileMemberActionIndividualResult) UnmarshalJSON(body []byte) error {
// Success : Member was successfully removed from this file. If
// AccessLevel is given, the member still has access via a parent shared
// folder.
- Success json.RawMessage `json:"success,omitempty"`
+ Success *AccessLevel `json:"success,omitempty"`
// MemberError : User was not able to perform this action.
- MemberError json.RawMessage `json:"member_error,omitempty"`
+ MemberError *FileMemberActionError `json:"member_error,omitempty"`
}
var w wrap
var err error
@@ -984,13 +1010,13 @@ func (u *FileMemberActionIndividualResult) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "success":
- err = json.Unmarshal(body, &u.Success)
+ u.Success = w.Success
if err != nil {
return err
}
case "member_error":
- err = json.Unmarshal(w.MemberError, &u.MemberError)
+ u.MemberError = w.MemberError
if err != nil {
return err
@@ -1036,10 +1062,8 @@ const (
func (u *FileMemberRemoveActionResult) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Success : Member was successfully removed from this file.
- Success json.RawMessage `json:"success,omitempty"`
// MemberError : User was not able to remove this member.
- MemberError json.RawMessage `json:"member_error,omitempty"`
+ MemberError *FileMemberActionError `json:"member_error,omitempty"`
}
var w wrap
var err error
@@ -1055,7 +1079,7 @@ func (u *FileMemberRemoveActionResult) UnmarshalJSON(body []byte) error {
return err
}
case "member_error":
- err = json.Unmarshal(w.MemberError, &u.MemberError)
+ u.MemberError = w.MemberError
if err != nil {
return err
@@ -1245,9 +1269,9 @@ func (u *GetFileMetadataError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// UserError : has no documentation (yet)
- UserError json.RawMessage `json:"user_error,omitempty"`
+ UserError *SharingUserError `json:"user_error,omitempty"`
// AccessError : has no documentation (yet)
- AccessError json.RawMessage `json:"access_error,omitempty"`
+ AccessError *SharingFileAccessError `json:"access_error,omitempty"`
}
var w wrap
var err error
@@ -1257,13 +1281,13 @@ func (u *GetFileMetadataError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "user_error":
- err = json.Unmarshal(w.UserError, &u.UserError)
+ u.UserError = w.UserError
if err != nil {
return err
}
case "access_error":
- err = json.Unmarshal(w.AccessError, &u.AccessError)
+ u.AccessError = w.AccessError
if err != nil {
return err
@@ -1292,10 +1316,8 @@ const (
func (u *GetFileMetadataIndividualResult) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Metadata : The result for this file if it was successful.
- Metadata json.RawMessage `json:"metadata,omitempty"`
// AccessError : The result for this file if it was an error.
- AccessError json.RawMessage `json:"access_error,omitempty"`
+ AccessError *SharingFileAccessError `json:"access_error,omitempty"`
}
var w wrap
var err error
@@ -1311,7 +1333,7 @@ func (u *GetFileMetadataIndividualResult) UnmarshalJSON(body []byte) error {
return err
}
case "access_error":
- err = json.Unmarshal(w.AccessError, &u.AccessError)
+ u.AccessError = w.AccessError
if err != nil {
return err
@@ -1415,7 +1437,7 @@ func (u *GetSharedLinksError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// Path : has no documentation (yet)
- Path json.RawMessage `json:"path,omitempty"`
+ Path string `json:"path,omitempty"`
}
var w wrap
var err error
@@ -1425,7 +1447,7 @@ func (u *GetSharedLinksError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "path":
- err = json.Unmarshal(body, &u.Path)
+ u.Path = w.Path
if err != nil {
return err
@@ -1591,6 +1613,8 @@ const (
func (u *InviteeInfo) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
+ // Email : E-mail address of invited user.
+ Email string `json:"email,omitempty"`
}
var w wrap
var err error
@@ -1600,7 +1624,7 @@ func (u *InviteeInfo) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "email":
- err = json.Unmarshal(body, &u.Email)
+ u.Email = w.Email
if err != nil {
return err
@@ -1657,13 +1681,13 @@ func (u *JobError) UnmarshalJSON(body []byte) error {
dropbox.Tagged
// UnshareFolderError : Error occurred while performing `unshareFolder`
// action.
- UnshareFolderError json.RawMessage `json:"unshare_folder_error,omitempty"`
+ UnshareFolderError *UnshareFolderError `json:"unshare_folder_error,omitempty"`
// RemoveFolderMemberError : Error occurred while performing
// `removeFolderMember` action.
- RemoveFolderMemberError json.RawMessage `json:"remove_folder_member_error,omitempty"`
+ RemoveFolderMemberError *RemoveFolderMemberError `json:"remove_folder_member_error,omitempty"`
// RelinquishFolderMembershipError : Error occurred while performing
// `relinquishFolderMembership` action.
- RelinquishFolderMembershipError json.RawMessage `json:"relinquish_folder_membership_error,omitempty"`
+ RelinquishFolderMembershipError *RelinquishFolderMembershipError `json:"relinquish_folder_membership_error,omitempty"`
}
var w wrap
var err error
@@ -1673,19 +1697,19 @@ func (u *JobError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "unshare_folder_error":
- err = json.Unmarshal(w.UnshareFolderError, &u.UnshareFolderError)
+ u.UnshareFolderError = w.UnshareFolderError
if err != nil {
return err
}
case "remove_folder_member_error":
- err = json.Unmarshal(w.RemoveFolderMemberError, &u.RemoveFolderMemberError)
+ u.RemoveFolderMemberError = w.RemoveFolderMemberError
if err != nil {
return err
}
case "relinquish_folder_membership_error":
- err = json.Unmarshal(w.RelinquishFolderMembershipError, &u.RelinquishFolderMembershipError)
+ u.RelinquishFolderMembershipError = w.RelinquishFolderMembershipError
if err != nil {
return err
@@ -1713,7 +1737,7 @@ func (u *JobStatus) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// Failed : The asynchronous job returned an error.
- Failed json.RawMessage `json:"failed,omitempty"`
+ Failed *JobError `json:"failed,omitempty"`
}
var w wrap
var err error
@@ -1723,7 +1747,7 @@ func (u *JobStatus) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "failed":
- err = json.Unmarshal(w.Failed, &u.Failed)
+ u.Failed = w.Failed
if err != nil {
return err
@@ -1732,6 +1756,18 @@ func (u *JobStatus) UnmarshalJSON(body []byte) error {
return nil
}
+// LinkAccessLevel : has no documentation (yet)
+type LinkAccessLevel struct {
+ dropbox.Tagged
+}
+
+// Valid tag values for LinkAccessLevel
+const (
+ LinkAccessLevelViewer = "viewer"
+ LinkAccessLevelEditor = "editor"
+ LinkAccessLevelOther = "other"
+)
+
// LinkAction : Actions that can be performed on a link.
type LinkAction struct {
dropbox.Tagged
@@ -1755,11 +1791,12 @@ type LinkAudience struct {
// Valid tag values for LinkAudience
const (
- LinkAudiencePublic = "public"
- LinkAudienceTeam = "team"
- LinkAudienceNoOne = "no_one"
- LinkAudienceMembers = "members"
- LinkAudienceOther = "other"
+ LinkAudiencePublic = "public"
+ LinkAudienceTeam = "team"
+ LinkAudienceNoOne = "no_one"
+ LinkAudiencePassword = "password"
+ LinkAudienceMembers = "members"
+ LinkAudienceOther = "other"
)
// LinkExpiry : has no documentation (yet)
@@ -1780,6 +1817,8 @@ const (
func (u *LinkExpiry) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
+ // SetExpiry : Set a new expiry or change an existing expiry.
+ SetExpiry time.Time `json:"set_expiry,omitempty"`
}
var w wrap
var err error
@@ -1789,7 +1828,7 @@ func (u *LinkExpiry) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "set_expiry":
- err = json.Unmarshal(body, &u.SetExpiry)
+ u.SetExpiry = w.SetExpiry
if err != nil {
return err
@@ -1816,6 +1855,8 @@ const (
func (u *LinkPassword) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
+ // SetPassword : Set a new password or change an existing password.
+ SetPassword string `json:"set_password,omitempty"`
}
var w wrap
var err error
@@ -1825,7 +1866,7 @@ func (u *LinkPassword) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "set_password":
- err = json.Unmarshal(body, &u.SetPassword)
+ u.SetPassword = w.SetPassword
if err != nil {
return err
@@ -1858,18 +1899,32 @@ type LinkPermissions struct {
// the shared links policies of the the team (in case the link's owner is
// part of a team) and the shared folder (in case the linked file is part of
// a shared folder). This field is shown only if the caller has access to
- // this info (the link's owner always has access to this data).
+ // this info (the link's owner always has access to this data). For some
+ // links, an effective_audience value is returned instead.
ResolvedVisibility *ResolvedVisibility `json:"resolved_visibility,omitempty"`
// RequestedVisibility : The shared link's requested visibility. This can be
// overridden by the team and shared folder policies. The final visibility,
// after considering these policies, can be found in `resolved_visibility`.
- // This is shown only if the caller is the link's owner.
+ // This is shown only if the caller is the link's owner and
+ // resolved_visibility is returned instead of effective_audience.
RequestedVisibility *RequestedVisibility `json:"requested_visibility,omitempty"`
// CanRevoke : Whether the caller can revoke the shared link.
CanRevoke bool `json:"can_revoke"`
// RevokeFailureReason : The failure reason for revoking the link. This
// field will only be present if the `can_revoke` is false.
RevokeFailureReason *SharedLinkAccessFailureReason `json:"revoke_failure_reason,omitempty"`
+ // EffectiveAudience : The type of audience who can benefit from the access
+ // level specified by the `link_access_level` field.
+ EffectiveAudience *LinkAudience `json:"effective_audience,omitempty"`
+ // LinkAccessLevel : The access level that the link will grant to its users.
+ // A link can grant additional rights to a user beyond their current access
+ // level. For example, if a user was invited as a viewer to a file, and then
+ // opens a link with `link_access_level` set to `editor`, then they will
+ // gain editor privileges. The `link_access_level` is a property of the
+ // link, and does not depend on who is calling this API. In particular,
+ // `link_access_level` does not take into account the API caller's current
+ // permissions to the content.
+ LinkAccessLevel *LinkAccessLevel `json:"link_access_level,omitempty"`
}
// NewLinkPermissions returns a new LinkPermissions instance
@@ -1990,9 +2045,9 @@ func (u *ListFileMembersContinueError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// UserError : has no documentation (yet)
- UserError json.RawMessage `json:"user_error,omitempty"`
+ UserError *SharingUserError `json:"user_error,omitempty"`
// AccessError : has no documentation (yet)
- AccessError json.RawMessage `json:"access_error,omitempty"`
+ AccessError *SharingFileAccessError `json:"access_error,omitempty"`
}
var w wrap
var err error
@@ -2002,13 +2057,13 @@ func (u *ListFileMembersContinueError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "user_error":
- err = json.Unmarshal(w.UserError, &u.UserError)
+ u.UserError = w.UserError
if err != nil {
return err
}
case "access_error":
- err = json.Unmarshal(w.AccessError, &u.AccessError)
+ u.AccessError = w.AccessError
if err != nil {
return err
@@ -2055,9 +2110,9 @@ func (u *ListFileMembersError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// UserError : has no documentation (yet)
- UserError json.RawMessage `json:"user_error,omitempty"`
+ UserError *SharingUserError `json:"user_error,omitempty"`
// AccessError : has no documentation (yet)
- AccessError json.RawMessage `json:"access_error,omitempty"`
+ AccessError *SharingFileAccessError `json:"access_error,omitempty"`
}
var w wrap
var err error
@@ -2067,13 +2122,13 @@ func (u *ListFileMembersError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "user_error":
- err = json.Unmarshal(w.UserError, &u.UserError)
+ u.UserError = w.UserError
if err != nil {
return err
}
case "access_error":
- err = json.Unmarshal(w.AccessError, &u.AccessError)
+ u.AccessError = w.AccessError
if err != nil {
return err
@@ -2102,11 +2157,9 @@ const (
func (u *ListFileMembersIndividualResult) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Result : The results of the query for this file if it was successful.
- Result json.RawMessage `json:"result,omitempty"`
// AccessError : The result of the query for this file if it was an
// error.
- AccessError json.RawMessage `json:"access_error,omitempty"`
+ AccessError *SharingFileAccessError `json:"access_error,omitempty"`
}
var w wrap
var err error
@@ -2122,7 +2175,7 @@ func (u *ListFileMembersIndividualResult) UnmarshalJSON(body []byte) error {
return err
}
case "access_error":
- err = json.Unmarshal(w.AccessError, &u.AccessError)
+ u.AccessError = w.AccessError
if err != nil {
return err
@@ -2181,7 +2234,7 @@ func (u *ListFilesContinueError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// UserError : User account had a problem.
- UserError json.RawMessage `json:"user_error,omitempty"`
+ UserError *SharingUserError `json:"user_error,omitempty"`
}
var w wrap
var err error
@@ -2191,7 +2244,7 @@ func (u *ListFilesContinueError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "user_error":
- err = json.Unmarshal(w.UserError, &u.UserError)
+ u.UserError = w.UserError
if err != nil {
return err
@@ -2281,7 +2334,7 @@ func (u *ListFolderMembersContinueError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// AccessError : has no documentation (yet)
- AccessError json.RawMessage `json:"access_error,omitempty"`
+ AccessError *SharedFolderAccessError `json:"access_error,omitempty"`
}
var w wrap
var err error
@@ -2291,7 +2344,7 @@ func (u *ListFolderMembersContinueError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "access_error":
- err = json.Unmarshal(w.AccessError, &u.AccessError)
+ u.AccessError = w.AccessError
if err != nil {
return err
@@ -2399,7 +2452,7 @@ func (u *ListSharedLinksError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// Path : has no documentation (yet)
- Path json.RawMessage `json:"path,omitempty"`
+ Path *files.LookupError `json:"path,omitempty"`
}
var w wrap
var err error
@@ -2409,7 +2462,7 @@ func (u *ListSharedLinksError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "path":
- err = json.Unmarshal(w.Path, &u.Path)
+ u.Path = w.Path
if err != nil {
return err
@@ -2559,6 +2612,10 @@ const (
func (u *MemberSelector) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
+ // DropboxId : Dropbox account, team member, or group ID of member.
+ DropboxId string `json:"dropbox_id,omitempty"`
+ // Email : E-mail address of member.
+ Email string `json:"email,omitempty"`
}
var w wrap
var err error
@@ -2568,13 +2625,13 @@ func (u *MemberSelector) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "dropbox_id":
- err = json.Unmarshal(body, &u.DropboxId)
+ u.DropboxId = w.DropboxId
if err != nil {
return err
}
case "email":
- err = json.Unmarshal(body, &u.Email)
+ u.Email = w.Email
if err != nil {
return err
@@ -2625,7 +2682,7 @@ func (u *ModifySharedLinkSettingsError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// SettingsError : There is an error with the given settings.
- SettingsError json.RawMessage `json:"settings_error,omitempty"`
+ SettingsError *SharedLinkSettingsError `json:"settings_error,omitempty"`
}
var w wrap
var err error
@@ -2635,7 +2692,7 @@ func (u *ModifySharedLinkSettingsError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "settings_error":
- err = json.Unmarshal(w.SettingsError, &u.SettingsError)
+ u.SettingsError = w.SettingsError
if err != nil {
return err
@@ -2683,10 +2740,7 @@ func (u *MountFolderError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// AccessError : has no documentation (yet)
- AccessError json.RawMessage `json:"access_error,omitempty"`
- // InsufficientQuota : The current user does not have enough space to
- // mount the shared folder.
- InsufficientQuota json.RawMessage `json:"insufficient_quota,omitempty"`
+ AccessError *SharedFolderAccessError `json:"access_error,omitempty"`
}
var w wrap
var err error
@@ -2696,7 +2750,7 @@ func (u *MountFolderError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "access_error":
- err = json.Unmarshal(w.AccessError, &u.AccessError)
+ u.AccessError = w.AccessError
if err != nil {
return err
@@ -2794,8 +2848,6 @@ const (
func (u *PermissionDeniedReason) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // InsufficientPlan : has no documentation (yet)
- InsufficientPlan json.RawMessage `json:"insufficient_plan,omitempty"`
}
var w wrap
var err error
@@ -2847,7 +2899,7 @@ func (u *RelinquishFileMembershipError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// AccessError : has no documentation (yet)
- AccessError json.RawMessage `json:"access_error,omitempty"`
+ AccessError *SharingFileAccessError `json:"access_error,omitempty"`
}
var w wrap
var err error
@@ -2857,7 +2909,7 @@ func (u *RelinquishFileMembershipError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "access_error":
- err = json.Unmarshal(w.AccessError, &u.AccessError)
+ u.AccessError = w.AccessError
if err != nil {
return err
@@ -2907,7 +2959,7 @@ func (u *RelinquishFolderMembershipError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// AccessError : has no documentation (yet)
- AccessError json.RawMessage `json:"access_error,omitempty"`
+ AccessError *SharedFolderAccessError `json:"access_error,omitempty"`
}
var w wrap
var err error
@@ -2917,7 +2969,7 @@ func (u *RelinquishFolderMembershipError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "access_error":
- err = json.Unmarshal(w.AccessError, &u.AccessError)
+ u.AccessError = w.AccessError
if err != nil {
return err
@@ -2970,13 +3022,9 @@ func (u *RemoveFileMemberError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// UserError : has no documentation (yet)
- UserError json.RawMessage `json:"user_error,omitempty"`
+ UserError *SharingUserError `json:"user_error,omitempty"`
// AccessError : has no documentation (yet)
- AccessError json.RawMessage `json:"access_error,omitempty"`
- // NoExplicitAccess : This member does not have explicit access to the
- // file and therefore cannot be removed. The return value is the access
- // that a user might have to the file from a parent folder.
- NoExplicitAccess json.RawMessage `json:"no_explicit_access,omitempty"`
+ AccessError *SharingFileAccessError `json:"access_error,omitempty"`
}
var w wrap
var err error
@@ -2986,13 +3034,13 @@ func (u *RemoveFileMemberError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "user_error":
- err = json.Unmarshal(w.UserError, &u.UserError)
+ u.UserError = w.UserError
if err != nil {
return err
}
case "access_error":
- err = json.Unmarshal(w.AccessError, &u.AccessError)
+ u.AccessError = w.AccessError
if err != nil {
return err
@@ -3055,9 +3103,9 @@ func (u *RemoveFolderMemberError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// AccessError : has no documentation (yet)
- AccessError json.RawMessage `json:"access_error,omitempty"`
+ AccessError *SharedFolderAccessError `json:"access_error,omitempty"`
// MemberError : has no documentation (yet)
- MemberError json.RawMessage `json:"member_error,omitempty"`
+ MemberError *SharedFolderMemberError `json:"member_error,omitempty"`
}
var w wrap
var err error
@@ -3067,13 +3115,13 @@ func (u *RemoveFolderMemberError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "access_error":
- err = json.Unmarshal(w.AccessError, &u.AccessError)
+ u.AccessError = w.AccessError
if err != nil {
return err
}
case "member_error":
- err = json.Unmarshal(w.MemberError, &u.MemberError)
+ u.MemberError = w.MemberError
if err != nil {
return err
@@ -3103,11 +3151,8 @@ const (
func (u *RemoveMemberJobStatus) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Complete : Removing the folder member has finished. The value is
- // information about whether the member has another form of access.
- Complete json.RawMessage `json:"complete,omitempty"`
// Failed : has no documentation (yet)
- Failed json.RawMessage `json:"failed,omitempty"`
+ Failed *RemoveFolderMemberError `json:"failed,omitempty"`
}
var w wrap
var err error
@@ -3123,7 +3168,7 @@ func (u *RemoveMemberJobStatus) UnmarshalJSON(body []byte) error {
return err
}
case "failed":
- err = json.Unmarshal(w.Failed, &u.Failed)
+ u.Failed = w.Failed
if err != nil {
return err
@@ -3132,6 +3177,19 @@ func (u *RemoveMemberJobStatus) UnmarshalJSON(body []byte) error {
return nil
}
+// RequestedLinkAccessLevel : has no documentation (yet)
+type RequestedLinkAccessLevel struct {
+ dropbox.Tagged
+}
+
+// Valid tag values for RequestedLinkAccessLevel
+const (
+ RequestedLinkAccessLevelViewer = "viewer"
+ RequestedLinkAccessLevelEditor = "editor"
+ RequestedLinkAccessLevelMax = "max"
+ RequestedLinkAccessLevelOther = "other"
+)
+
// RequestedVisibility : The access permission that can be requested by the
// caller for the shared link. Note that the final resolved visibility of the
// shared link takes into account other aspects, such as team and shared folder
@@ -3228,7 +3286,7 @@ func (u *SetAccessInheritanceError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// AccessError : Unable to access shared folder.
- AccessError json.RawMessage `json:"access_error,omitempty"`
+ AccessError *SharedFolderAccessError `json:"access_error,omitempty"`
}
var w wrap
var err error
@@ -3238,7 +3296,7 @@ func (u *SetAccessInheritanceError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "access_error":
- err = json.Unmarshal(w.AccessError, &u.AccessError)
+ u.AccessError = w.AccessError
if err != nil {
return err
@@ -3321,7 +3379,7 @@ func (u *ShareFolderErrorBase) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// BadPath : `ShareFolderArg.path` is invalid.
- BadPath json.RawMessage `json:"bad_path,omitempty"`
+ BadPath *SharePathError `json:"bad_path,omitempty"`
}
var w wrap
var err error
@@ -3331,7 +3389,7 @@ func (u *ShareFolderErrorBase) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "bad_path":
- err = json.Unmarshal(w.BadPath, &u.BadPath)
+ u.BadPath = w.BadPath
if err != nil {
return err
@@ -3362,7 +3420,7 @@ func (u *ShareFolderError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// BadPath : `ShareFolderArg.path` is invalid.
- BadPath json.RawMessage `json:"bad_path,omitempty"`
+ BadPath *SharePathError `json:"bad_path,omitempty"`
}
var w wrap
var err error
@@ -3372,7 +3430,7 @@ func (u *ShareFolderError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "bad_path":
- err = json.Unmarshal(w.BadPath, &u.BadPath)
+ u.BadPath = w.BadPath
if err != nil {
return err
@@ -3402,11 +3460,8 @@ const (
func (u *ShareFolderJobStatus) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Complete : The share job has finished. The value is the metadata for
- // the folder.
- Complete json.RawMessage `json:"complete,omitempty"`
// Failed : has no documentation (yet)
- Failed json.RawMessage `json:"failed,omitempty"`
+ Failed *ShareFolderError `json:"failed,omitempty"`
}
var w wrap
var err error
@@ -3422,7 +3477,7 @@ func (u *ShareFolderJobStatus) UnmarshalJSON(body []byte) error {
return err
}
case "failed":
- err = json.Unmarshal(w.Failed, &u.Failed)
+ u.Failed = w.Failed
if err != nil {
return err
@@ -3452,8 +3507,10 @@ const (
func (u *ShareFolderLaunch) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Complete : has no documentation (yet)
- Complete json.RawMessage `json:"complete,omitempty"`
+ // AsyncJobId : This response indicates that the processing is
+ // asynchronous. The string is an id that can be used to obtain the
+ // status of the asynchronous job.
+ AsyncJobId string `json:"async_job_id,omitempty"`
}
var w wrap
var err error
@@ -3463,7 +3520,7 @@ func (u *ShareFolderLaunch) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "async_job_id":
- err = json.Unmarshal(body, &u.AsyncJobId)
+ u.AsyncJobId = w.AsyncJobId
if err != nil {
return err
@@ -3508,9 +3565,6 @@ const (
func (u *SharePathError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // AlreadyShared : Folder is already shared. Contains metadata about the
- // existing shared folder.
- AlreadyShared json.RawMessage `json:"already_shared,omitempty"`
}
var w wrap
var err error
@@ -3670,9 +3724,6 @@ const (
func (u *SharedFolderMemberError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // NoExplicitAccess : The target member only has inherited access to the
- // shared folder.
- NoExplicitAccess json.RawMessage `json:"no_explicit_access,omitempty"`
}
var w wrap
var err error
@@ -3806,6 +3857,43 @@ const (
SharedLinkAccessFailureReasonOther = "other"
)
+// SharedLinkAlreadyExistsMetadata : has no documentation (yet)
+type SharedLinkAlreadyExistsMetadata struct {
+ dropbox.Tagged
+ // Metadata : Metadata of the shared link that already exists.
+ Metadata IsSharedLinkMetadata `json:"metadata,omitempty"`
+}
+
+// Valid tag values for SharedLinkAlreadyExistsMetadata
+const (
+ SharedLinkAlreadyExistsMetadataMetadata = "metadata"
+ SharedLinkAlreadyExistsMetadataOther = "other"
+)
+
+// UnmarshalJSON deserializes into a SharedLinkAlreadyExistsMetadata instance
+func (u *SharedLinkAlreadyExistsMetadata) UnmarshalJSON(body []byte) error {
+ type wrap struct {
+ dropbox.Tagged
+ // Metadata : Metadata of the shared link that already exists.
+ Metadata json.RawMessage `json:"metadata,omitempty"`
+ }
+ var w wrap
+ var err error
+ if err = json.Unmarshal(body, &w); err != nil {
+ return err
+ }
+ u.Tag = w.Tag
+ switch u.Tag {
+ case "metadata":
+ u.Metadata, err = IsSharedLinkMetadataFromJSON(w.Metadata)
+
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+
// SharedLinkPolicy : Who can view shared links in this folder.
type SharedLinkPolicy struct {
dropbox.Tagged
@@ -3830,6 +3918,15 @@ type SharedLinkSettings struct {
// Expires : Expiration time of the shared link. By default the link won't
// expire.
Expires time.Time `json:"expires,omitempty"`
+ // Audience : The new audience who can benefit from the access level
+ // specified by the link's access level specified in the `link_access_level`
+ // field of `LinkPermissions`. This is used in conjunction with team
+ // policies and shared folder policies to determine the final effective
+ // audience type in the `effective_audience` field of `LinkPermissions.
+ Audience *LinkAudience `json:"audience,omitempty"`
+ // Access : Requested access level you want the audience to gain from this
+ // link.
+ Access *RequestedLinkAccessLevel `json:"access,omitempty"`
}
// NewSharedLinkSettings returns a new SharedLinkSettings instance
@@ -3934,7 +4031,7 @@ func (u *TransferFolderError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// AccessError : has no documentation (yet)
- AccessError json.RawMessage `json:"access_error,omitempty"`
+ AccessError *SharedFolderAccessError `json:"access_error,omitempty"`
}
var w wrap
var err error
@@ -3944,7 +4041,7 @@ func (u *TransferFolderError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "access_error":
- err = json.Unmarshal(w.AccessError, &u.AccessError)
+ u.AccessError = w.AccessError
if err != nil {
return err
@@ -3986,7 +4083,7 @@ func (u *UnmountFolderError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// AccessError : has no documentation (yet)
- AccessError json.RawMessage `json:"access_error,omitempty"`
+ AccessError *SharedFolderAccessError `json:"access_error,omitempty"`
}
var w wrap
var err error
@@ -3996,7 +4093,7 @@ func (u *UnmountFolderError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "access_error":
- err = json.Unmarshal(w.AccessError, &u.AccessError)
+ u.AccessError = w.AccessError
if err != nil {
return err
@@ -4039,9 +4136,9 @@ func (u *UnshareFileError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// UserError : has no documentation (yet)
- UserError json.RawMessage `json:"user_error,omitempty"`
+ UserError *SharingUserError `json:"user_error,omitempty"`
// AccessError : has no documentation (yet)
- AccessError json.RawMessage `json:"access_error,omitempty"`
+ AccessError *SharingFileAccessError `json:"access_error,omitempty"`
}
var w wrap
var err error
@@ -4051,13 +4148,13 @@ func (u *UnshareFileError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "user_error":
- err = json.Unmarshal(w.UserError, &u.UserError)
+ u.UserError = w.UserError
if err != nil {
return err
}
case "access_error":
- err = json.Unmarshal(w.AccessError, &u.AccessError)
+ u.AccessError = w.AccessError
if err != nil {
return err
@@ -4106,7 +4203,7 @@ func (u *UnshareFolderError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// AccessError : has no documentation (yet)
- AccessError json.RawMessage `json:"access_error,omitempty"`
+ AccessError *SharedFolderAccessError `json:"access_error,omitempty"`
}
var w wrap
var err error
@@ -4116,7 +4213,7 @@ func (u *UnshareFolderError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "access_error":
- err = json.Unmarshal(w.AccessError, &u.AccessError)
+ u.AccessError = w.AccessError
if err != nil {
return err
@@ -4187,13 +4284,13 @@ func (u *UpdateFolderMemberError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// AccessError : has no documentation (yet)
- AccessError json.RawMessage `json:"access_error,omitempty"`
+ AccessError *SharedFolderAccessError `json:"access_error,omitempty"`
// MemberError : has no documentation (yet)
- MemberError json.RawMessage `json:"member_error,omitempty"`
+ MemberError *SharedFolderMemberError `json:"member_error,omitempty"`
// NoExplicitAccess : If updating the access type required the member to
// be added to the shared folder and there was an error when adding the
// member.
- NoExplicitAccess json.RawMessage `json:"no_explicit_access,omitempty"`
+ NoExplicitAccess *AddFolderMemberError `json:"no_explicit_access,omitempty"`
}
var w wrap
var err error
@@ -4203,19 +4300,19 @@ func (u *UpdateFolderMemberError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "access_error":
- err = json.Unmarshal(w.AccessError, &u.AccessError)
+ u.AccessError = w.AccessError
if err != nil {
return err
}
case "member_error":
- err = json.Unmarshal(w.MemberError, &u.MemberError)
+ u.MemberError = w.MemberError
if err != nil {
return err
}
case "no_explicit_access":
- err = json.Unmarshal(w.NoExplicitAccess, &u.NoExplicitAccess)
+ u.NoExplicitAccess = w.NoExplicitAccess
if err != nil {
return err
@@ -4280,7 +4377,7 @@ func (u *UpdateFolderPolicyError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// AccessError : has no documentation (yet)
- AccessError json.RawMessage `json:"access_error,omitempty"`
+ AccessError *SharedFolderAccessError `json:"access_error,omitempty"`
}
var w wrap
var err error
@@ -4290,7 +4387,7 @@ func (u *UpdateFolderPolicyError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "access_error":
- err = json.Unmarshal(w.AccessError, &u.AccessError)
+ u.AccessError = w.AccessError
if err != nil {
return err
diff --git a/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/team/types.go b/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/team/types.go
index d8f65fad2..469999ddd 100644
--- a/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/team/types.go
+++ b/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/team/types.go
@@ -153,11 +153,11 @@ func (u *BaseTeamFolderError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// AccessError : has no documentation (yet)
- AccessError json.RawMessage `json:"access_error,omitempty"`
+ AccessError *TeamFolderAccessError `json:"access_error,omitempty"`
// StatusError : has no documentation (yet)
- StatusError json.RawMessage `json:"status_error,omitempty"`
+ StatusError *TeamFolderInvalidStatusError `json:"status_error,omitempty"`
// TeamSharedDropboxError : has no documentation (yet)
- TeamSharedDropboxError json.RawMessage `json:"team_shared_dropbox_error,omitempty"`
+ TeamSharedDropboxError *TeamFolderTeamSharedDropboxError `json:"team_shared_dropbox_error,omitempty"`
}
var w wrap
var err error
@@ -167,19 +167,19 @@ func (u *BaseTeamFolderError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "access_error":
- err = json.Unmarshal(w.AccessError, &u.AccessError)
+ u.AccessError = w.AccessError
if err != nil {
return err
}
case "status_error":
- err = json.Unmarshal(w.StatusError, &u.StatusError)
+ u.StatusError = w.StatusError
if err != nil {
return err
}
case "team_shared_dropbox_error":
- err = json.Unmarshal(w.TeamSharedDropboxError, &u.TeamSharedDropboxError)
+ u.TeamSharedDropboxError = w.TeamSharedDropboxError
if err != nil {
return err
@@ -219,10 +219,8 @@ const (
func (u *CustomQuotaResult) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Success : User's custom quota.
- Success json.RawMessage `json:"success,omitempty"`
// InvalidUser : Invalid user (not in team).
- InvalidUser json.RawMessage `json:"invalid_user,omitempty"`
+ InvalidUser *UserSelectorArg `json:"invalid_user,omitempty"`
}
var w wrap
var err error
@@ -238,7 +236,7 @@ func (u *CustomQuotaResult) UnmarshalJSON(body []byte) error {
return err
}
case "invalid_user":
- err = json.Unmarshal(w.InvalidUser, &u.InvalidUser)
+ u.InvalidUser = w.InvalidUser
if err != nil {
return err
@@ -540,13 +538,13 @@ func (u *FeatureValue) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// UploadApiRateLimit : has no documentation (yet)
- UploadApiRateLimit json.RawMessage `json:"upload_api_rate_limit,omitempty"`
+ UploadApiRateLimit *UploadApiRateLimitValue `json:"upload_api_rate_limit,omitempty"`
// HasTeamSharedDropbox : has no documentation (yet)
- HasTeamSharedDropbox json.RawMessage `json:"has_team_shared_dropbox,omitempty"`
+ HasTeamSharedDropbox *HasTeamSharedDropboxValue `json:"has_team_shared_dropbox,omitempty"`
// HasTeamFileEvents : has no documentation (yet)
- HasTeamFileEvents json.RawMessage `json:"has_team_file_events,omitempty"`
+ HasTeamFileEvents *HasTeamFileEventsValue `json:"has_team_file_events,omitempty"`
// HasTeamSelectiveSync : has no documentation (yet)
- HasTeamSelectiveSync json.RawMessage `json:"has_team_selective_sync,omitempty"`
+ HasTeamSelectiveSync *HasTeamSelectiveSyncValue `json:"has_team_selective_sync,omitempty"`
}
var w wrap
var err error
@@ -556,25 +554,25 @@ func (u *FeatureValue) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "upload_api_rate_limit":
- err = json.Unmarshal(w.UploadApiRateLimit, &u.UploadApiRateLimit)
+ u.UploadApiRateLimit = w.UploadApiRateLimit
if err != nil {
return err
}
case "has_team_shared_dropbox":
- err = json.Unmarshal(w.HasTeamSharedDropbox, &u.HasTeamSharedDropbox)
+ u.HasTeamSharedDropbox = w.HasTeamSharedDropbox
if err != nil {
return err
}
case "has_team_file_events":
- err = json.Unmarshal(w.HasTeamFileEvents, &u.HasTeamFileEvents)
+ u.HasTeamFileEvents = w.HasTeamFileEvents
if err != nil {
return err
}
case "has_team_selective_sync":
- err = json.Unmarshal(w.HasTeamSelectiveSync, &u.HasTeamSelectiveSync)
+ u.HasTeamSelectiveSync = w.HasTeamSelectiveSync
if err != nil {
return err
@@ -1010,12 +1008,12 @@ func (u *GroupMembersAddError) UnmarshalJSON(body []byte) error {
// Currently, you cannot add members to a group if they are not part of
// your team, though this may change in a subsequent version. To add new
// members to your Dropbox Business team, use the `membersAdd` endpoint.
- MembersNotInTeam json.RawMessage `json:"members_not_in_team,omitempty"`
+ MembersNotInTeam []string `json:"members_not_in_team,omitempty"`
// UsersNotFound : These users were not found in Dropbox.
- UsersNotFound json.RawMessage `json:"users_not_found,omitempty"`
+ UsersNotFound []string `json:"users_not_found,omitempty"`
// UserCannotBeManagerOfCompanyManagedGroup : A company-managed group
// cannot be managed by a user.
- UserCannotBeManagerOfCompanyManagedGroup json.RawMessage `json:"user_cannot_be_manager_of_company_managed_group,omitempty"`
+ UserCannotBeManagerOfCompanyManagedGroup []string `json:"user_cannot_be_manager_of_company_managed_group,omitempty"`
}
var w wrap
var err error
@@ -1025,19 +1023,19 @@ func (u *GroupMembersAddError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "members_not_in_team":
- err = json.Unmarshal(body, &u.MembersNotInTeam)
+ u.MembersNotInTeam = w.MembersNotInTeam
if err != nil {
return err
}
case "users_not_found":
- err = json.Unmarshal(body, &u.UsersNotFound)
+ u.UsersNotFound = w.UsersNotFound
if err != nil {
return err
}
case "user_cannot_be_manager_of_company_managed_group":
- err = json.Unmarshal(body, &u.UserCannotBeManagerOfCompanyManagedGroup)
+ u.UserCannotBeManagerOfCompanyManagedGroup = w.UserCannotBeManagerOfCompanyManagedGroup
if err != nil {
return err
@@ -1123,9 +1121,9 @@ func (u *GroupMembersRemoveError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// MembersNotInTeam : These members are not part of your team.
- MembersNotInTeam json.RawMessage `json:"members_not_in_team,omitempty"`
+ MembersNotInTeam []string `json:"members_not_in_team,omitempty"`
// UsersNotFound : These users were not found in Dropbox.
- UsersNotFound json.RawMessage `json:"users_not_found,omitempty"`
+ UsersNotFound []string `json:"users_not_found,omitempty"`
}
var w wrap
var err error
@@ -1135,13 +1133,13 @@ func (u *GroupMembersRemoveError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "members_not_in_team":
- err = json.Unmarshal(body, &u.MembersNotInTeam)
+ u.MembersNotInTeam = w.MembersNotInTeam
if err != nil {
return err
}
case "users_not_found":
- err = json.Unmarshal(body, &u.UsersNotFound)
+ u.UsersNotFound = w.UsersNotFound
if err != nil {
return err
@@ -1207,6 +1205,10 @@ const (
func (u *GroupSelector) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
+ // GroupId : Group ID.
+ GroupId string `json:"group_id,omitempty"`
+ // GroupExternalId : External ID of the group.
+ GroupExternalId string `json:"group_external_id,omitempty"`
}
var w wrap
var err error
@@ -1216,13 +1218,13 @@ func (u *GroupSelector) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "group_id":
- err = json.Unmarshal(body, &u.GroupId)
+ u.GroupId = w.GroupId
if err != nil {
return err
}
case "group_external_id":
- err = json.Unmarshal(body, &u.GroupExternalId)
+ u.GroupExternalId = w.GroupExternalId
if err != nil {
return err
@@ -1301,8 +1303,11 @@ const (
func (u *GroupsGetInfoItem) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // GroupInfo : Info about a group.
- GroupInfo json.RawMessage `json:"group_info,omitempty"`
+ // IdNotFound : An ID that was provided as a parameter to
+ // `groupsGetInfo`, and did not match a corresponding group. The ID can
+ // be a group ID, or an external ID, depending on how the method was
+ // called.
+ IdNotFound string `json:"id_not_found,omitempty"`
}
var w wrap
var err error
@@ -1312,7 +1317,7 @@ func (u *GroupsGetInfoItem) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "id_not_found":
- err = json.Unmarshal(body, &u.IdNotFound)
+ u.IdNotFound = w.IdNotFound
if err != nil {
return err
@@ -1482,9 +1487,9 @@ func (u *GroupsSelector) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// GroupIds : List of group IDs.
- GroupIds json.RawMessage `json:"group_ids,omitempty"`
+ GroupIds []string `json:"group_ids,omitempty"`
// GroupExternalIds : List of external IDs of groups.
- GroupExternalIds json.RawMessage `json:"group_external_ids,omitempty"`
+ GroupExternalIds []string `json:"group_external_ids,omitempty"`
}
var w wrap
var err error
@@ -1494,13 +1499,13 @@ func (u *GroupsSelector) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "group_ids":
- err = json.Unmarshal(body, &u.GroupIds)
+ u.GroupIds = w.GroupIds
if err != nil {
return err
}
case "group_external_ids":
- err = json.Unmarshal(body, &u.GroupExternalIds)
+ u.GroupExternalIds = w.GroupExternalIds
if err != nil {
return err
@@ -1526,6 +1531,8 @@ const (
func (u *HasTeamFileEventsValue) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
+ // Enabled : Does this team have file events.
+ Enabled bool `json:"enabled,omitempty"`
}
var w wrap
var err error
@@ -1535,7 +1542,7 @@ func (u *HasTeamFileEventsValue) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "enabled":
- err = json.Unmarshal(body, &u.Enabled)
+ u.Enabled = w.Enabled
if err != nil {
return err
@@ -1561,6 +1568,9 @@ const (
func (u *HasTeamSelectiveSyncValue) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
+ // HasTeamSelectiveSync : Does this team have team selective sync
+ // enabled.
+ HasTeamSelectiveSync bool `json:"has_team_selective_sync,omitempty"`
}
var w wrap
var err error
@@ -1570,7 +1580,7 @@ func (u *HasTeamSelectiveSyncValue) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "has_team_selective_sync":
- err = json.Unmarshal(body, &u.HasTeamSelectiveSync)
+ u.HasTeamSelectiveSync = w.HasTeamSelectiveSync
if err != nil {
return err
@@ -1596,6 +1606,8 @@ const (
func (u *HasTeamSharedDropboxValue) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
+ // HasTeamSharedDropbox : Does this team have a shared team root.
+ HasTeamSharedDropbox bool `json:"has_team_shared_dropbox,omitempty"`
}
var w wrap
var err error
@@ -1605,7 +1617,7 @@ func (u *HasTeamSharedDropboxValue) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "has_team_shared_dropbox":
- err = json.Unmarshal(body, &u.HasTeamSharedDropbox)
+ u.HasTeamSharedDropbox = w.HasTeamSharedDropbox
if err != nil {
return err
@@ -2019,8 +2031,36 @@ const (
func (u *MemberAddResult) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Success : Describes a user that was successfully added to the team.
- Success json.RawMessage `json:"success,omitempty"`
+ // TeamLicenseLimit : Team is already full. The organization has no
+ // available licenses.
+ TeamLicenseLimit string `json:"team_license_limit,omitempty"`
+ // FreeTeamMemberLimitReached : Team is already full. The free team
+ // member limit has been reached.
+ FreeTeamMemberLimitReached string `json:"free_team_member_limit_reached,omitempty"`
+ // UserAlreadyOnTeam : User is already on this team. The provided email
+ // address is associated with a user who is already a member of
+ // (including in recoverable state) or invited to the team.
+ UserAlreadyOnTeam string `json:"user_already_on_team,omitempty"`
+ // UserOnAnotherTeam : User is already on another team. The provided
+ // email address is associated with a user that is already a member or
+ // invited to another team.
+ UserOnAnotherTeam string `json:"user_on_another_team,omitempty"`
+ // UserAlreadyPaired : User is already paired.
+ UserAlreadyPaired string `json:"user_already_paired,omitempty"`
+ // UserMigrationFailed : User migration has failed.
+ UserMigrationFailed string `json:"user_migration_failed,omitempty"`
+ // DuplicateExternalMemberId : A user with the given external member ID
+ // already exists on the team (including in recoverable state).
+ DuplicateExternalMemberId string `json:"duplicate_external_member_id,omitempty"`
+ // DuplicateMemberPersistentId : A user with the given persistent ID
+ // already exists on the team (including in recoverable state).
+ DuplicateMemberPersistentId string `json:"duplicate_member_persistent_id,omitempty"`
+ // PersistentIdDisabled : Persistent ID is only available to teams with
+ // persistent ID SAML configuration. Please contact Dropbox for more
+ // information.
+ PersistentIdDisabled string `json:"persistent_id_disabled,omitempty"`
+ // UserCreationFailed : User creation has failed.
+ UserCreationFailed string `json:"user_creation_failed,omitempty"`
}
var w wrap
var err error
@@ -2036,61 +2076,61 @@ func (u *MemberAddResult) UnmarshalJSON(body []byte) error {
return err
}
case "team_license_limit":
- err = json.Unmarshal(body, &u.TeamLicenseLimit)
+ u.TeamLicenseLimit = w.TeamLicenseLimit
if err != nil {
return err
}
case "free_team_member_limit_reached":
- err = json.Unmarshal(body, &u.FreeTeamMemberLimitReached)
+ u.FreeTeamMemberLimitReached = w.FreeTeamMemberLimitReached
if err != nil {
return err
}
case "user_already_on_team":
- err = json.Unmarshal(body, &u.UserAlreadyOnTeam)
+ u.UserAlreadyOnTeam = w.UserAlreadyOnTeam
if err != nil {
return err
}
case "user_on_another_team":
- err = json.Unmarshal(body, &u.UserOnAnotherTeam)
+ u.UserOnAnotherTeam = w.UserOnAnotherTeam
if err != nil {
return err
}
case "user_already_paired":
- err = json.Unmarshal(body, &u.UserAlreadyPaired)
+ u.UserAlreadyPaired = w.UserAlreadyPaired
if err != nil {
return err
}
case "user_migration_failed":
- err = json.Unmarshal(body, &u.UserMigrationFailed)
+ u.UserMigrationFailed = w.UserMigrationFailed
if err != nil {
return err
}
case "duplicate_external_member_id":
- err = json.Unmarshal(body, &u.DuplicateExternalMemberId)
+ u.DuplicateExternalMemberId = w.DuplicateExternalMemberId
if err != nil {
return err
}
case "duplicate_member_persistent_id":
- err = json.Unmarshal(body, &u.DuplicateMemberPersistentId)
+ u.DuplicateMemberPersistentId = w.DuplicateMemberPersistentId
if err != nil {
return err
}
case "persistent_id_disabled":
- err = json.Unmarshal(body, &u.PersistentIdDisabled)
+ u.PersistentIdDisabled = w.PersistentIdDisabled
if err != nil {
return err
}
case "user_creation_failed":
- err = json.Unmarshal(body, &u.UserCreationFailed)
+ u.UserCreationFailed = w.UserCreationFailed
if err != nil {
return err
@@ -2160,11 +2200,17 @@ type MemberProfile struct {
// JoinedOn : The date and time the user joined as a member of a specific
// team.
JoinedOn time.Time `json:"joined_on,omitempty"`
+ // SuspendedOn : The date and time the user was suspended from the team
+ // (contains value only when the member's status matches
+ // `TeamMemberStatus.suspended`.
+ SuspendedOn time.Time `json:"suspended_on,omitempty"`
// PersistentId : Persistent ID that a team can attach to the user. The
// persistent ID is unique ID to be used for SAML authentication.
PersistentId string `json:"persistent_id,omitempty"`
// IsDirectoryRestricted : Whether the user is a directory restricted user.
IsDirectoryRestricted bool `json:"is_directory_restricted,omitempty"`
+ // ProfilePhotoUrl : URL for the photo representing the user, if one is set.
+ ProfilePhotoUrl string `json:"profile_photo_url,omitempty"`
}
// NewMemberProfile returns a new MemberProfile instance
@@ -2243,7 +2289,10 @@ func (u *MembersAddJobStatus) UnmarshalJSON(body []byte) error {
// Complete : The asynchronous job has finished. For each member that
// was specified in the parameter `MembersAddArg` that was provided to
// `membersAdd`, a corresponding item is returned in this list.
- Complete []json.RawMessage `json:"complete,omitempty"`
+ Complete []*MemberAddResult `json:"complete,omitempty"`
+ // Failed : The asynchronous job returned an error. The string contains
+ // an error message.
+ Failed string `json:"failed,omitempty"`
}
var w wrap
var err error
@@ -2253,13 +2302,13 @@ func (u *MembersAddJobStatus) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "complete":
- err = json.Unmarshal(body, &u.Complete)
+ u.Complete = w.Complete
if err != nil {
return err
}
case "failed":
- err = json.Unmarshal(body, &u.Failed)
+ u.Failed = w.Failed
if err != nil {
return err
@@ -2289,8 +2338,12 @@ const (
func (u *MembersAddLaunch) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
+ // AsyncJobId : This response indicates that the processing is
+ // asynchronous. The string is an id that can be used to obtain the
+ // status of the asynchronous job.
+ AsyncJobId string `json:"async_job_id,omitempty"`
// Complete : has no documentation (yet)
- Complete []json.RawMessage `json:"complete,omitempty"`
+ Complete []*MemberAddResult `json:"complete,omitempty"`
}
var w wrap
var err error
@@ -2300,13 +2353,13 @@ func (u *MembersAddLaunch) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "async_job_id":
- err = json.Unmarshal(body, &u.AsyncJobId)
+ u.AsyncJobId = w.AsyncJobId
if err != nil {
return err
}
case "complete":
- err = json.Unmarshal(body, &u.Complete)
+ u.Complete = w.Complete
if err != nil {
return err
@@ -2422,8 +2475,11 @@ const (
func (u *MembersGetInfoItem) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // MemberInfo : Info about a team member.
- MemberInfo json.RawMessage `json:"member_info,omitempty"`
+ // IdNotFound : An ID that was provided as a parameter to
+ // `membersGetInfo`, and did not match a corresponding user. This might
+ // be a team_member_id, an email, or an external ID, depending on how
+ // the method was called.
+ IdNotFound string `json:"id_not_found,omitempty"`
}
var w wrap
var err error
@@ -2433,7 +2489,7 @@ func (u *MembersGetInfoItem) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "id_not_found":
- err = json.Unmarshal(body, &u.IdNotFound)
+ u.IdNotFound = w.IdNotFound
if err != nil {
return err
@@ -2896,9 +2952,9 @@ func (u *RemoveCustomQuotaResult) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// Success : Successfully removed user.
- Success json.RawMessage `json:"success,omitempty"`
+ Success *UserSelectorArg `json:"success,omitempty"`
// InvalidUser : Invalid user (not in team).
- InvalidUser json.RawMessage `json:"invalid_user,omitempty"`
+ InvalidUser *UserSelectorArg `json:"invalid_user,omitempty"`
}
var w wrap
var err error
@@ -2908,13 +2964,13 @@ func (u *RemoveCustomQuotaResult) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "success":
- err = json.Unmarshal(w.Success, &u.Success)
+ u.Success = w.Success
if err != nil {
return err
}
case "invalid_user":
- err = json.Unmarshal(w.InvalidUser, &u.InvalidUser)
+ u.InvalidUser = w.InvalidUser
if err != nil {
return err
@@ -2980,12 +3036,6 @@ const (
func (u *RevokeDeviceSessionArg) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // WebSession : End an active session.
- WebSession json.RawMessage `json:"web_session,omitempty"`
- // DesktopClient : Unlink a linked desktop device.
- DesktopClient json.RawMessage `json:"desktop_client,omitempty"`
- // MobileClient : Unlink a linked mobile device.
- MobileClient json.RawMessage `json:"mobile_client,omitempty"`
}
var w wrap
var err error
@@ -3242,11 +3292,11 @@ func (u *TeamFolderActivateError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// AccessError : has no documentation (yet)
- AccessError json.RawMessage `json:"access_error,omitempty"`
+ AccessError *TeamFolderAccessError `json:"access_error,omitempty"`
// StatusError : has no documentation (yet)
- StatusError json.RawMessage `json:"status_error,omitempty"`
+ StatusError *TeamFolderInvalidStatusError `json:"status_error,omitempty"`
// TeamSharedDropboxError : has no documentation (yet)
- TeamSharedDropboxError json.RawMessage `json:"team_shared_dropbox_error,omitempty"`
+ TeamSharedDropboxError *TeamFolderTeamSharedDropboxError `json:"team_shared_dropbox_error,omitempty"`
}
var w wrap
var err error
@@ -3256,19 +3306,19 @@ func (u *TeamFolderActivateError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "access_error":
- err = json.Unmarshal(w.AccessError, &u.AccessError)
+ u.AccessError = w.AccessError
if err != nil {
return err
}
case "status_error":
- err = json.Unmarshal(w.StatusError, &u.StatusError)
+ u.StatusError = w.StatusError
if err != nil {
return err
}
case "team_shared_dropbox_error":
- err = json.Unmarshal(w.TeamSharedDropboxError, &u.TeamSharedDropboxError)
+ u.TeamSharedDropboxError = w.TeamSharedDropboxError
if err != nil {
return err
@@ -3329,11 +3379,11 @@ func (u *TeamFolderArchiveError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// AccessError : has no documentation (yet)
- AccessError json.RawMessage `json:"access_error,omitempty"`
+ AccessError *TeamFolderAccessError `json:"access_error,omitempty"`
// StatusError : has no documentation (yet)
- StatusError json.RawMessage `json:"status_error,omitempty"`
+ StatusError *TeamFolderInvalidStatusError `json:"status_error,omitempty"`
// TeamSharedDropboxError : has no documentation (yet)
- TeamSharedDropboxError json.RawMessage `json:"team_shared_dropbox_error,omitempty"`
+ TeamSharedDropboxError *TeamFolderTeamSharedDropboxError `json:"team_shared_dropbox_error,omitempty"`
}
var w wrap
var err error
@@ -3343,19 +3393,19 @@ func (u *TeamFolderArchiveError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "access_error":
- err = json.Unmarshal(w.AccessError, &u.AccessError)
+ u.AccessError = w.AccessError
if err != nil {
return err
}
case "status_error":
- err = json.Unmarshal(w.StatusError, &u.StatusError)
+ u.StatusError = w.StatusError
if err != nil {
return err
}
case "team_shared_dropbox_error":
- err = json.Unmarshal(w.TeamSharedDropboxError, &u.TeamSharedDropboxError)
+ u.TeamSharedDropboxError = w.TeamSharedDropboxError
if err != nil {
return err
@@ -3386,12 +3436,9 @@ const (
func (u *TeamFolderArchiveJobStatus) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Complete : The archive job has finished. The value is the metadata
- // for the resulting team folder.
- Complete json.RawMessage `json:"complete,omitempty"`
// Failed : Error occurred while performing an asynchronous job from
// `teamFolderArchive`.
- Failed json.RawMessage `json:"failed,omitempty"`
+ Failed *TeamFolderArchiveError `json:"failed,omitempty"`
}
var w wrap
var err error
@@ -3407,7 +3454,7 @@ func (u *TeamFolderArchiveJobStatus) UnmarshalJSON(body []byte) error {
return err
}
case "failed":
- err = json.Unmarshal(w.Failed, &u.Failed)
+ u.Failed = w.Failed
if err != nil {
return err
@@ -3437,8 +3484,10 @@ const (
func (u *TeamFolderArchiveLaunch) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Complete : has no documentation (yet)
- Complete json.RawMessage `json:"complete,omitempty"`
+ // AsyncJobId : This response indicates that the processing is
+ // asynchronous. The string is an id that can be used to obtain the
+ // status of the asynchronous job.
+ AsyncJobId string `json:"async_job_id,omitempty"`
}
var w wrap
var err error
@@ -3448,7 +3497,7 @@ func (u *TeamFolderArchiveLaunch) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "async_job_id":
- err = json.Unmarshal(body, &u.AsyncJobId)
+ u.AsyncJobId = w.AsyncJobId
if err != nil {
return err
@@ -3500,7 +3549,7 @@ func (u *TeamFolderCreateError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// SyncSettingsError : An error occurred setting the sync settings.
- SyncSettingsError json.RawMessage `json:"sync_settings_error,omitempty"`
+ SyncSettingsError *files.SyncSettingsError `json:"sync_settings_error,omitempty"`
}
var w wrap
var err error
@@ -3510,7 +3559,7 @@ func (u *TeamFolderCreateError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "sync_settings_error":
- err = json.Unmarshal(w.SyncSettingsError, &u.SyncSettingsError)
+ u.SyncSettingsError = w.SyncSettingsError
if err != nil {
return err
@@ -3539,8 +3588,9 @@ const (
func (u *TeamFolderGetInfoItem) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // TeamFolderMetadata : Properties of a team folder.
- TeamFolderMetadata json.RawMessage `json:"team_folder_metadata,omitempty"`
+ // IdNotFound : An ID that was provided as a parameter to
+ // `teamFolderGetInfo` did not match any of the team's team folders.
+ IdNotFound string `json:"id_not_found,omitempty"`
}
var w wrap
var err error
@@ -3550,7 +3600,7 @@ func (u *TeamFolderGetInfoItem) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "id_not_found":
- err = json.Unmarshal(body, &u.IdNotFound)
+ u.IdNotFound = w.IdNotFound
if err != nil {
return err
@@ -3717,11 +3767,11 @@ func (u *TeamFolderPermanentlyDeleteError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// AccessError : has no documentation (yet)
- AccessError json.RawMessage `json:"access_error,omitempty"`
+ AccessError *TeamFolderAccessError `json:"access_error,omitempty"`
// StatusError : has no documentation (yet)
- StatusError json.RawMessage `json:"status_error,omitempty"`
+ StatusError *TeamFolderInvalidStatusError `json:"status_error,omitempty"`
// TeamSharedDropboxError : has no documentation (yet)
- TeamSharedDropboxError json.RawMessage `json:"team_shared_dropbox_error,omitempty"`
+ TeamSharedDropboxError *TeamFolderTeamSharedDropboxError `json:"team_shared_dropbox_error,omitempty"`
}
var w wrap
var err error
@@ -3731,19 +3781,19 @@ func (u *TeamFolderPermanentlyDeleteError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "access_error":
- err = json.Unmarshal(w.AccessError, &u.AccessError)
+ u.AccessError = w.AccessError
if err != nil {
return err
}
case "status_error":
- err = json.Unmarshal(w.StatusError, &u.StatusError)
+ u.StatusError = w.StatusError
if err != nil {
return err
}
case "team_shared_dropbox_error":
- err = json.Unmarshal(w.TeamSharedDropboxError, &u.TeamSharedDropboxError)
+ u.TeamSharedDropboxError = w.TeamSharedDropboxError
if err != nil {
return err
@@ -3794,11 +3844,11 @@ func (u *TeamFolderRenameError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// AccessError : has no documentation (yet)
- AccessError json.RawMessage `json:"access_error,omitempty"`
+ AccessError *TeamFolderAccessError `json:"access_error,omitempty"`
// StatusError : has no documentation (yet)
- StatusError json.RawMessage `json:"status_error,omitempty"`
+ StatusError *TeamFolderInvalidStatusError `json:"status_error,omitempty"`
// TeamSharedDropboxError : has no documentation (yet)
- TeamSharedDropboxError json.RawMessage `json:"team_shared_dropbox_error,omitempty"`
+ TeamSharedDropboxError *TeamFolderTeamSharedDropboxError `json:"team_shared_dropbox_error,omitempty"`
}
var w wrap
var err error
@@ -3808,19 +3858,19 @@ func (u *TeamFolderRenameError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "access_error":
- err = json.Unmarshal(w.AccessError, &u.AccessError)
+ u.AccessError = w.AccessError
if err != nil {
return err
}
case "status_error":
- err = json.Unmarshal(w.StatusError, &u.StatusError)
+ u.StatusError = w.StatusError
if err != nil {
return err
}
case "team_shared_dropbox_error":
- err = json.Unmarshal(w.TeamSharedDropboxError, &u.TeamSharedDropboxError)
+ u.TeamSharedDropboxError = w.TeamSharedDropboxError
if err != nil {
return err
@@ -3898,13 +3948,13 @@ func (u *TeamFolderUpdateSyncSettingsError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// AccessError : has no documentation (yet)
- AccessError json.RawMessage `json:"access_error,omitempty"`
+ AccessError *TeamFolderAccessError `json:"access_error,omitempty"`
// StatusError : has no documentation (yet)
- StatusError json.RawMessage `json:"status_error,omitempty"`
+ StatusError *TeamFolderInvalidStatusError `json:"status_error,omitempty"`
// TeamSharedDropboxError : has no documentation (yet)
- TeamSharedDropboxError json.RawMessage `json:"team_shared_dropbox_error,omitempty"`
+ TeamSharedDropboxError *TeamFolderTeamSharedDropboxError `json:"team_shared_dropbox_error,omitempty"`
// SyncSettingsError : An error occurred setting the sync settings.
- SyncSettingsError json.RawMessage `json:"sync_settings_error,omitempty"`
+ SyncSettingsError *files.SyncSettingsError `json:"sync_settings_error,omitempty"`
}
var w wrap
var err error
@@ -3914,25 +3964,25 @@ func (u *TeamFolderUpdateSyncSettingsError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "access_error":
- err = json.Unmarshal(w.AccessError, &u.AccessError)
+ u.AccessError = w.AccessError
if err != nil {
return err
}
case "status_error":
- err = json.Unmarshal(w.StatusError, &u.StatusError)
+ u.StatusError = w.StatusError
if err != nil {
return err
}
case "team_shared_dropbox_error":
- err = json.Unmarshal(w.TeamSharedDropboxError, &u.TeamSharedDropboxError)
+ u.TeamSharedDropboxError = w.TeamSharedDropboxError
if err != nil {
return err
}
case "sync_settings_error":
- err = json.Unmarshal(w.SyncSettingsError, &u.SyncSettingsError)
+ u.SyncSettingsError = w.SyncSettingsError
if err != nil {
return err
@@ -4026,9 +4076,6 @@ const (
func (u *TeamMemberStatus) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Removed : User is no longer a member of the team. Removed users are
- // only listed when include_removed is true in members/list.
- Removed json.RawMessage `json:"removed,omitempty"`
}
var w wrap
var err error
@@ -4129,6 +4176,19 @@ func NewTeamNamespacesListResult(Namespaces []*NamespaceMetadata, Cursor string,
return s
}
+// TeamReportFailureReason : has no documentation (yet)
+type TeamReportFailureReason struct {
+ dropbox.Tagged
+}
+
+// Valid tag values for TeamReportFailureReason
+const (
+ TeamReportFailureReasonTemporaryError = "temporary_error"
+ TeamReportFailureReasonManyReportsAtOnce = "many_reports_at_once"
+ TeamReportFailureReasonTooMuchData = "too_much_data"
+ TeamReportFailureReasonOther = "other"
+)
+
// TokenGetAuthenticatedAdminError : Error returned by
// `tokenGetAuthenticatedAdmin`.
type TokenGetAuthenticatedAdminError struct {
@@ -4173,6 +4233,8 @@ const (
func (u *UploadApiRateLimitValue) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
+ // Limit : The number of upload API calls allowed per month.
+ Limit uint32 `json:"limit,omitempty"`
}
var w wrap
var err error
@@ -4182,7 +4244,7 @@ func (u *UploadApiRateLimitValue) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "limit":
- err = json.Unmarshal(body, &u.Limit)
+ u.Limit = w.Limit
if err != nil {
return err
@@ -4247,6 +4309,12 @@ const (
func (u *UserSelectorArg) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
+ // TeamMemberId : has no documentation (yet)
+ TeamMemberId string `json:"team_member_id,omitempty"`
+ // ExternalId : has no documentation (yet)
+ ExternalId string `json:"external_id,omitempty"`
+ // Email : has no documentation (yet)
+ Email string `json:"email,omitempty"`
}
var w wrap
var err error
@@ -4256,19 +4324,19 @@ func (u *UserSelectorArg) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "team_member_id":
- err = json.Unmarshal(body, &u.TeamMemberId)
+ u.TeamMemberId = w.TeamMemberId
if err != nil {
return err
}
case "external_id":
- err = json.Unmarshal(body, &u.ExternalId)
+ u.ExternalId = w.ExternalId
if err != nil {
return err
}
case "email":
- err = json.Unmarshal(body, &u.Email)
+ u.Email = w.Email
if err != nil {
return err
@@ -4301,11 +4369,11 @@ func (u *UsersSelectorArg) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// TeamMemberIds : List of member IDs.
- TeamMemberIds json.RawMessage `json:"team_member_ids,omitempty"`
+ TeamMemberIds []string `json:"team_member_ids,omitempty"`
// ExternalIds : List of external user IDs.
- ExternalIds json.RawMessage `json:"external_ids,omitempty"`
+ ExternalIds []string `json:"external_ids,omitempty"`
// Emails : List of email addresses.
- Emails json.RawMessage `json:"emails,omitempty"`
+ Emails []string `json:"emails,omitempty"`
}
var w wrap
var err error
@@ -4315,19 +4383,19 @@ func (u *UsersSelectorArg) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "team_member_ids":
- err = json.Unmarshal(body, &u.TeamMemberIds)
+ u.TeamMemberIds = w.TeamMemberIds
if err != nil {
return err
}
case "external_ids":
- err = json.Unmarshal(body, &u.ExternalIds)
+ u.ExternalIds = w.ExternalIds
if err != nil {
return err
}
case "emails":
- err = json.Unmarshal(body, &u.Emails)
+ u.Emails = w.Emails
if err != nil {
return err
diff --git a/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/team_policies/types.go b/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/team_policies/types.go
index 9c003f437..2facb0c45 100644
--- a/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/team_policies/types.go
+++ b/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/team_policies/types.go
@@ -71,6 +71,18 @@ const (
OfficeAddInPolicyOther = "other"
)
+// PaperDefaultFolderPolicy : has no documentation (yet)
+type PaperDefaultFolderPolicy struct {
+ dropbox.Tagged
+}
+
+// Valid tag values for PaperDefaultFolderPolicy
+const (
+ PaperDefaultFolderPolicyEveryoneInTeam = "everyone_in_team"
+ PaperDefaultFolderPolicyInviteOnly = "invite_only"
+ PaperDefaultFolderPolicyOther = "other"
+)
+
// PaperDeploymentPolicy : has no documentation (yet)
type PaperDeploymentPolicy struct {
dropbox.Tagged
@@ -83,6 +95,18 @@ const (
PaperDeploymentPolicyOther = "other"
)
+// PaperDesktopPolicy : has no documentation (yet)
+type PaperDesktopPolicy struct {
+ dropbox.Tagged
+}
+
+// Valid tag values for PaperDesktopPolicy
+const (
+ PaperDesktopPolicyDisabled = "disabled"
+ PaperDesktopPolicyEnabled = "enabled"
+ PaperDesktopPolicyOther = "other"
+)
+
// PaperEnabledPolicy : has no documentation (yet)
type PaperEnabledPolicy struct {
dropbox.Tagged
@@ -278,3 +302,15 @@ const (
TwoStepVerificationPolicyRequireTfaDisable = "require_tfa_disable"
TwoStepVerificationPolicyOther = "other"
)
+
+// TwoStepVerificationState : has no documentation (yet)
+type TwoStepVerificationState struct {
+ dropbox.Tagged
+}
+
+// Valid tag values for TwoStepVerificationState
+const (
+ TwoStepVerificationStateRequired = "required"
+ TwoStepVerificationStateOptional = "optional"
+ TwoStepVerificationStateOther = "other"
+)
diff --git a/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/users/types.go b/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/users/types.go
index b9d7d920f..fd707e423 100644
--- a/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/users/types.go
+++ b/vendor/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/users/types.go
@@ -278,6 +278,9 @@ const (
func (u *GetAccountBatchError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
+ // NoAccount : The value is an account ID specified in
+ // `GetAccountBatchArg.account_ids` that does not exist.
+ NoAccount string `json:"no_account,omitempty"`
}
var w wrap
var err error
@@ -287,7 +290,7 @@ func (u *GetAccountBatchError) UnmarshalJSON(body []byte) error {
u.Tag = w.Tag
switch u.Tag {
case "no_account":
- err = json.Unmarshal(body, &u.NoAccount)
+ u.NoAccount = w.NoAccount
if err != nil {
return err
@@ -372,11 +375,6 @@ const (
func (u *SpaceAllocation) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
- // Individual : The user's space allocation applies only to their
- // individual account.
- Individual json.RawMessage `json:"individual,omitempty"`
- // Team : The user shares space with other members of their team.
- Team json.RawMessage `json:"team,omitempty"`
}
var w wrap
var err error
diff --git a/vendor/github.com/golang/protobuf/proto/lib.go b/vendor/github.com/golang/protobuf/proto/lib.go
index fdd328bb7..70fbda532 100644
--- a/vendor/github.com/golang/protobuf/proto/lib.go
+++ b/vendor/github.com/golang/protobuf/proto/lib.go
@@ -393,7 +393,7 @@ func (p *Buffer) Bytes() []byte { return p.buf }
// than relying on this API.
//
// If deterministic serialization is requested, map entries will be sorted
-// by keys in lexographical order. This is an implementation detail and
+// by keys in lexicographical order. This is an implementation detail and
// subject to change.
func (p *Buffer) SetDeterministic(deterministic bool) {
p.deterministic = deterministic
diff --git a/vendor/github.com/golang/protobuf/proto/text.go b/vendor/github.com/golang/protobuf/proto/text.go
index 1aaee725b..d97f9b356 100644
--- a/vendor/github.com/golang/protobuf/proto/text.go
+++ b/vendor/github.com/golang/protobuf/proto/text.go
@@ -456,6 +456,8 @@ func (tm *TextMarshaler) writeStruct(w *textWriter, sv reflect.Value) error {
return nil
}
+var textMarshalerType = reflect.TypeOf((*encoding.TextMarshaler)(nil)).Elem()
+
// writeAny writes an arbitrary field.
func (tm *TextMarshaler) writeAny(w *textWriter, v reflect.Value, props *Properties) error {
v = reflect.Indirect(v)
@@ -519,8 +521,8 @@ func (tm *TextMarshaler) writeAny(w *textWriter, v reflect.Value, props *Propert
// mutating this value.
v = v.Addr()
}
- if etm, ok := v.Interface().(encoding.TextMarshaler); ok {
- text, err := etm.MarshalText()
+ if v.Type().Implements(textMarshalerType) {
+ text, err := v.Interface().(encoding.TextMarshaler).MarshalText()
if err != nil {
return err
}
diff --git a/vendor/github.com/mattn/go-ieproxy/go.mod b/vendor/github.com/mattn/go-ieproxy/go.mod
new file mode 100644
index 000000000..4090bb8e7
--- /dev/null
+++ b/vendor/github.com/mattn/go-ieproxy/go.mod
@@ -0,0 +1,9 @@
+module github.com/mattn/go-ieproxy
+
+go 1.14
+
+require (
+ golang.org/x/net v0.0.0-20191112182307-2180aed22343
+ golang.org/x/sys v0.0.0-20191112214154-59a1497f0cea
+ golang.org/x/text v0.3.2 // indirect
+)
diff --git a/vendor/github.com/mattn/go-ieproxy/go.sum b/vendor/github.com/mattn/go-ieproxy/go.sum
new file mode 100644
index 000000000..a87acb1ec
--- /dev/null
+++ b/vendor/github.com/mattn/go-ieproxy/go.sum
@@ -0,0 +1,11 @@
+golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
+golang.org/x/net v0.0.0-20191112182307-2180aed22343 h1:00ohfJ4K98s3m6BGUoBd8nyfp4Yl0GoIKvw5abItTjI=
+golang.org/x/net v0.0.0-20191112182307-2180aed22343/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20191112214154-59a1497f0cea h1:Mz1TMnfJDRJLk8S8OPCoJYgrsp/Se/2TBre2+vwX128=
+golang.org/x/sys v0.0.0-20191112214154-59a1497f0cea/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
+golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
+golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=
+golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
+golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
diff --git a/vendor/github.com/mattn/go-ieproxy/ieproxy_windows.go b/vendor/github.com/mattn/go-ieproxy/ieproxy_windows.go
index a3d4c11c4..2bf003602 100644
--- a/vendor/github.com/mattn/go-ieproxy/ieproxy_windows.go
+++ b/vendor/github.com/mattn/go-ieproxy/ieproxy_windows.go
@@ -25,33 +25,62 @@ func getConf() ProxyConf {
}
func writeConf() {
- var (
- cfg *tWINHTTP_CURRENT_USER_IE_PROXY_CONFIG
- err error
- )
+ proxy := ""
+ proxyByPass := ""
+ autoConfigUrl := ""
+ autoDetect := false
+
+ // Try from IE first.
+ if ieCfg, err := getUserConfigFromWindowsSyscall(); err == nil {
+ defer globalFreeWrapper(ieCfg.lpszProxy)
+ defer globalFreeWrapper(ieCfg.lpszProxyBypass)
+ defer globalFreeWrapper(ieCfg.lpszAutoConfigUrl)
+
+ proxy = StringFromUTF16Ptr(ieCfg.lpszProxy)
+ proxyByPass = StringFromUTF16Ptr(ieCfg.lpszProxyBypass)
+ autoConfigUrl = StringFromUTF16Ptr(ieCfg.lpszAutoConfigUrl)
+ autoDetect = ieCfg.fAutoDetect
+ }
+
+ if proxy == "" { // <- new. Only fallback if we got NO proxy
+ // Try WinHTTP default proxy.
+ if defaultCfg, err := getDefaultProxyConfiguration(); err == nil {
+ defer globalFreeWrapper(defaultCfg.lpszProxy)
+ defer globalFreeWrapper(defaultCfg.lpszProxyBypass)
+
+ // Changed, next 2 lines, so if that if we always set both of these (they are a pair, it doesn't make sense to set one here and keep the value of the other from above)
+ newProxy := StringFromUTF16Ptr(defaultCfg.lpszProxy)
+ if proxy == "" {
+ proxy = newProxy
+ }
+
+ newProxyByPass := StringFromUTF16Ptr(defaultCfg.lpszProxyBypass)
+ if proxyByPass == "" {
+ proxyByPass = newProxyByPass
+ }
+ }
+ }
- if cfg, err = getUserConfigFromWindowsSyscall(); err != nil {
+ if proxy == "" && !autoDetect {
+ // Fall back to IE registry or manual detection if nothing is found there..
regedit, _ := readRegedit() // If the syscall fails, backup to manual detection.
windowsProxyConf = parseRegedit(regedit)
return
}
- defer globalFreeWrapper(cfg.lpszProxy)
- defer globalFreeWrapper(cfg.lpszProxyBypass)
- defer globalFreeWrapper(cfg.lpszAutoConfigUrl)
-
+ // Setting the proxy settings.
windowsProxyConf = ProxyConf{
Static: StaticProxyConf{
- Active: cfg.lpszProxy != nil,
+ Active: len(proxy) > 0,
},
Automatic: ProxyScriptConf{
- Active: cfg.lpszAutoConfigUrl != nil || cfg.fAutoDetect,
+ Active: len(autoConfigUrl) > 0 || autoDetect,
},
}
if windowsProxyConf.Static.Active {
protocol := make(map[string]string)
- for _, s := range strings.Split(StringFromUTF16Ptr(cfg.lpszProxy), ";") {
+ for _, s := range strings.Split(proxy, ";") {
s = strings.TrimSpace(s)
if s == "" {
continue
@@ -65,31 +94,38 @@ func writeConf() {
}
windowsProxyConf.Static.Protocols = protocol
- if cfg.lpszProxyBypass != nil {
- windowsProxyConf.Static.NoProxy = strings.Replace(StringFromUTF16Ptr(cfg.lpszProxyBypass), ";", ",", -1)
+ if len(proxyByPass) > 0 {
+ windowsProxyConf.Static.NoProxy = strings.Replace(proxyByPass, ";", ",", -1)
}
}
if windowsProxyConf.Automatic.Active {
- windowsProxyConf.Automatic.PreConfiguredURL = StringFromUTF16Ptr(cfg.lpszAutoConfigUrl)
+ windowsProxyConf.Automatic.PreConfiguredURL = autoConfigUrl
}
}
func getUserConfigFromWindowsSyscall() (*tWINHTTP_CURRENT_USER_IE_PROXY_CONFIG, error) {
- handle, _, err := winHttpOpen.Call(0, 0, 0, 0, 0)
- if handle == 0 {
- return &tWINHTTP_CURRENT_USER_IE_PROXY_CONFIG{}, err
+ if err := winHttpGetIEProxyConfigForCurrentUser.Find(); err != nil {
+ return nil, err
}
- defer winHttpCloseHandle.Call(handle)
-
- config := new(tWINHTTP_CURRENT_USER_IE_PROXY_CONFIG)
-
- ret, _, err := winHttpGetIEProxyConfigForCurrentUser.Call(uintptr(unsafe.Pointer(config)))
- if ret > 0 {
- err = nil
+ p := new(tWINHTTP_CURRENT_USER_IE_PROXY_CONFIG)
+ r, _, err := winHttpGetIEProxyConfigForCurrentUser.Call(uintptr(unsafe.Pointer(p)))
+ if rTrue(r) {
+ return p, nil
}
+ return nil, err
+}
- return config, err
+func getDefaultProxyConfiguration() (*tWINHTTP_PROXY_INFO, error) {
+ pInfo := new(tWINHTTP_PROXY_INFO)
+ if err := winHttpGetDefaultProxyConfiguration.Find(); err != nil {
+ return nil, err
+ }
+ r, _, err := winHttpGetDefaultProxyConfiguration.Call(uintptr(unsafe.Pointer(pInfo)))
+ if rTrue(r) {
+ return pInfo, nil
+ }
+ return nil, err
}
// OverrideEnvWithStaticProxy writes new values to the
@@ -135,7 +171,27 @@ func parseRegedit(regedit regeditValues) ProxyConf {
}
func readRegedit() (values regeditValues, err error) {
- k, err := registry.OpenKey(registry.CURRENT_USER, `Software\Microsoft\Windows\CurrentVersion\Internet Settings`, registry.QUERY_VALUE)
+ var proxySettingsPerUser uint64 = 1 // 1 is the default value to consider current user
+ k, err := registry.OpenKey(registry.LOCAL_MACHINE, `Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings`, registry.QUERY_VALUE)
+ if err == nil {
+ //We had used the below variable tempPrxUsrSettings, because the Golang method GetIntegerValue
+ //sets the value to zero even it fails.
+ tempPrxUsrSettings, _, err := k.GetIntegerValue("ProxySettingsPerUser")
+ if err == nil {
+ //consider the value of tempPrxUsrSettings if it is a success
+ proxySettingsPerUser = tempPrxUsrSettings
+ }
+ k.Close()
+ }
+
+ var hkey registry.Key
+ if proxySettingsPerUser == 0 {
+ hkey = registry.LOCAL_MACHINE
+ } else {
+ hkey = registry.CURRENT_USER
+ }
+
+ k, err = registry.OpenKey(hkey, `Software\Microsoft\Windows\CurrentVersion\Internet Settings`, registry.QUERY_VALUE)
if err != nil {
return
}
diff --git a/vendor/github.com/mattn/go-ieproxy/kernel32_data_windows.go b/vendor/github.com/mattn/go-ieproxy/kernel32_data_windows.go
index cfb4349e2..30ebbd22a 100644
--- a/vendor/github.com/mattn/go-ieproxy/kernel32_data_windows.go
+++ b/vendor/github.com/mattn/go-ieproxy/kernel32_data_windows.go
@@ -13,3 +13,7 @@ func globalFreeWrapper(ptr *uint16) {
_, _, _ = globalFree.Call(uintptr(unsafe.Pointer(ptr)))
}
}
+
+func rTrue(r uintptr) bool {
+ return r == 1
+}
diff --git a/vendor/github.com/mattn/go-ieproxy/GetProxyFunc.go b/vendor/github.com/mattn/go-ieproxy/proxy_middleman.go
similarity index 100%
rename from vendor/github.com/mattn/go-ieproxy/GetProxyFunc.go
rename to vendor/github.com/mattn/go-ieproxy/proxy_middleman.go
diff --git a/vendor/github.com/mattn/go-ieproxy/proxyMiddleman_unix.go b/vendor/github.com/mattn/go-ieproxy/proxy_middleman_unix.go
similarity index 100%
rename from vendor/github.com/mattn/go-ieproxy/proxyMiddleman_unix.go
rename to vendor/github.com/mattn/go-ieproxy/proxy_middleman_unix.go
diff --git a/vendor/github.com/mattn/go-ieproxy/proxyMiddleman_windows.go b/vendor/github.com/mattn/go-ieproxy/proxy_middleman_windows.go
similarity index 100%
rename from vendor/github.com/mattn/go-ieproxy/proxyMiddleman_windows.go
rename to vendor/github.com/mattn/go-ieproxy/proxy_middleman_windows.go
diff --git a/vendor/github.com/mattn/go-ieproxy/winhttp_data_windows.go b/vendor/github.com/mattn/go-ieproxy/winhttp_data_windows.go
index 560940df8..4d3b16778 100644
--- a/vendor/github.com/mattn/go-ieproxy/winhttp_data_windows.go
+++ b/vendor/github.com/mattn/go-ieproxy/winhttp_data_windows.go
@@ -7,6 +7,7 @@ var winHttpGetProxyForURL = winHttp.NewProc("WinHttpGetProxyForUrl")
var winHttpOpen = winHttp.NewProc("WinHttpOpen")
var winHttpCloseHandle = winHttp.NewProc("WinHttpCloseHandle")
var winHttpGetIEProxyConfigForCurrentUser = winHttp.NewProc("WinHttpGetIEProxyConfigForCurrentUser")
+var winHttpGetDefaultProxyConfiguration = winHttp.NewProc("WinHttpGetDefaultProxyConfiguration")
type tWINHTTP_AUTOPROXY_OPTIONS struct {
dwFlags autoProxyFlag
diff --git a/vendor/github.com/mattn/go-isatty/.travis.yml b/vendor/github.com/mattn/go-isatty/.travis.yml
index 5597e026d..604314dd4 100644
--- a/vendor/github.com/mattn/go-isatty/.travis.yml
+++ b/vendor/github.com/mattn/go-isatty/.travis.yml
@@ -1,13 +1,14 @@
language: go
+sudo: false
go:
+ - 1.13.x
- tip
-os:
- - linux
- - osx
-
before_install:
- - go get github.com/mattn/goveralls
- - go get golang.org/x/tools/cmd/cover
+ - go get -t -v ./...
+
script:
- - $HOME/gopath/bin/goveralls -repotoken 3gHdORO5k5ziZcWMBxnd9LrMZaJs8m9x5
+ - ./go.test.sh
+
+after_success:
+ - bash <(curl -s https://codecov.io/bash)
diff --git a/vendor/github.com/mattn/go-isatty/README.md b/vendor/github.com/mattn/go-isatty/README.md
index 1e69004bb..38418353e 100644
--- a/vendor/github.com/mattn/go-isatty/README.md
+++ b/vendor/github.com/mattn/go-isatty/README.md
@@ -1,7 +1,7 @@
# go-isatty
[![Godoc Reference](https://godoc.org/github.com/mattn/go-isatty?status.svg)](http://godoc.org/github.com/mattn/go-isatty)
-[![Build Status](https://travis-ci.org/mattn/go-isatty.svg?branch=master)](https://travis-ci.org/mattn/go-isatty)
+[![Codecov](https://codecov.io/gh/mattn/go-isatty/branch/master/graph/badge.svg)](https://codecov.io/gh/mattn/go-isatty)
[![Coverage Status](https://coveralls.io/repos/github/mattn/go-isatty/badge.svg?branch=master)](https://coveralls.io/github/mattn/go-isatty?branch=master)
[![Go Report Card](https://goreportcard.com/badge/mattn/go-isatty)](https://goreportcard.com/report/mattn/go-isatty)
diff --git a/vendor/github.com/mattn/go-isatty/go.mod b/vendor/github.com/mattn/go-isatty/go.mod
index 27ff17727..605c4c221 100644
--- a/vendor/github.com/mattn/go-isatty/go.mod
+++ b/vendor/github.com/mattn/go-isatty/go.mod
@@ -1,3 +1,5 @@
module github.com/mattn/go-isatty
-require golang.org/x/sys v0.0.0-20191008105621-543471e840be
+go 1.12
+
+require golang.org/x/sys v0.0.0-20200116001909-b77594299b42
diff --git a/vendor/github.com/mattn/go-isatty/go.sum b/vendor/github.com/mattn/go-isatty/go.sum
index c141fc53a..912e29cbc 100644
--- a/vendor/github.com/mattn/go-isatty/go.sum
+++ b/vendor/github.com/mattn/go-isatty/go.sum
@@ -1,4 +1,2 @@
-golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a h1:aYOabOQFp6Vj6W1F80affTUvO9UxmJRx8K0gsfABByQ=
-golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20191008105621-543471e840be h1:QAcqgptGM8IQBC9K/RC4o+O9YmqEm0diQn9QmZw/0mU=
-golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200116001909-b77594299b42 h1:vEOn+mP2zCOVzKckCZy6YsCtDblrpj/w7B9nxGNELpg=
+golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
diff --git a/vendor/github.com/mattn/go-isatty/go.test.sh b/vendor/github.com/mattn/go-isatty/go.test.sh
new file mode 100644
index 000000000..012162b07
--- /dev/null
+++ b/vendor/github.com/mattn/go-isatty/go.test.sh
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+
+set -e
+echo "" > coverage.txt
+
+for d in $(go list ./... | grep -v vendor); do
+ go test -race -coverprofile=profile.out -covermode=atomic "$d"
+ if [ -f profile.out ]; then
+ cat profile.out >> coverage.txt
+ rm profile.out
+ fi
+done
diff --git a/vendor/github.com/mattn/go-isatty/isatty_android.go b/vendor/github.com/mattn/go-isatty/isatty_android.go
deleted file mode 100644
index d3567cb5b..000000000
--- a/vendor/github.com/mattn/go-isatty/isatty_android.go
+++ /dev/null
@@ -1,23 +0,0 @@
-// +build android
-
-package isatty
-
-import (
- "syscall"
- "unsafe"
-)
-
-const ioctlReadTermios = syscall.TCGETS
-
-// IsTerminal return true if the file descriptor is terminal.
-func IsTerminal(fd uintptr) bool {
- var termios syscall.Termios
- _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0)
- return err == 0
-}
-
-// IsCygwinTerminal return true if the file descriptor is a cygwin or msys2
-// terminal. This is also always false on this environment.
-func IsCygwinTerminal(fd uintptr) bool {
- return false
-}
diff --git a/vendor/github.com/mattn/go-isatty/isatty_bsd.go b/vendor/github.com/mattn/go-isatty/isatty_bsd.go
index 07e93039d..711f28808 100644
--- a/vendor/github.com/mattn/go-isatty/isatty_bsd.go
+++ b/vendor/github.com/mattn/go-isatty/isatty_bsd.go
@@ -3,18 +3,12 @@
package isatty
-import (
- "syscall"
- "unsafe"
-)
-
-const ioctlReadTermios = syscall.TIOCGETA
+import "golang.org/x/sys/unix"
// IsTerminal return true if the file descriptor is terminal.
func IsTerminal(fd uintptr) bool {
- var termios syscall.Termios
- _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0)
- return err == 0
+ _, err := unix.IoctlGetTermios(int(fd), unix.TIOCGETA)
+ return err == nil
}
// IsCygwinTerminal return true if the file descriptor is a cygwin or msys2
diff --git a/vendor/github.com/mattn/go-isatty/isatty_tcgets.go b/vendor/github.com/mattn/go-isatty/isatty_tcgets.go
index 453b025d0..31a1ca973 100644
--- a/vendor/github.com/mattn/go-isatty/isatty_tcgets.go
+++ b/vendor/github.com/mattn/go-isatty/isatty_tcgets.go
@@ -1,6 +1,5 @@
// +build linux aix
// +build !appengine
-// +build !android
package isatty
diff --git a/vendor/github.com/mattn/go-isatty/renovate.json b/vendor/github.com/mattn/go-isatty/renovate.json
new file mode 100644
index 000000000..5ae9d96b7
--- /dev/null
+++ b/vendor/github.com/mattn/go-isatty/renovate.json
@@ -0,0 +1,8 @@
+{
+ "extends": [
+ "config:base"
+ ],
+ "postUpdateOptions": [
+ "gomodTidy"
+ ]
+}
diff --git a/vendor/github.com/mattn/go-runewidth/.travis.yml b/vendor/github.com/mattn/go-runewidth/.travis.yml
index 5c9c2a30f..6a21813a3 100644
--- a/vendor/github.com/mattn/go-runewidth/.travis.yml
+++ b/vendor/github.com/mattn/go-runewidth/.travis.yml
@@ -1,8 +1,16 @@
language: go
+sudo: false
go:
+ - 1.13.x
- tip
+
before_install:
- - go get github.com/mattn/goveralls
- - go get golang.org/x/tools/cmd/cover
+ - go get -t -v ./...
+
script:
- - $HOME/gopath/bin/goveralls -repotoken lAKAWPzcGsD3A8yBX3BGGtRUdJ6CaGERL
+ - go generate
+ - git diff --cached --exit-code
+ - ./go.test.sh
+
+after_success:
+ - bash <(curl -s https://codecov.io/bash)
diff --git a/vendor/github.com/mattn/go-runewidth/README.mkd b/vendor/github.com/mattn/go-runewidth/README.md
similarity index 82%
rename from vendor/github.com/mattn/go-runewidth/README.mkd
rename to vendor/github.com/mattn/go-runewidth/README.md
index 66663a94b..aa56ab96c 100644
--- a/vendor/github.com/mattn/go-runewidth/README.mkd
+++ b/vendor/github.com/mattn/go-runewidth/README.md
@@ -2,7 +2,7 @@ go-runewidth
============
[![Build Status](https://travis-ci.org/mattn/go-runewidth.png?branch=master)](https://travis-ci.org/mattn/go-runewidth)
-[![Coverage Status](https://coveralls.io/repos/mattn/go-runewidth/badge.png?branch=HEAD)](https://coveralls.io/r/mattn/go-runewidth?branch=HEAD)
+[![Codecov](https://codecov.io/gh/mattn/go-runewidth/branch/master/graph/badge.svg)](https://codecov.io/gh/mattn/go-runewidth)
[![GoDoc](https://godoc.org/github.com/mattn/go-runewidth?status.svg)](http://godoc.org/github.com/mattn/go-runewidth)
[![Go Report Card](https://goreportcard.com/badge/github.com/mattn/go-runewidth)](https://goreportcard.com/report/github.com/mattn/go-runewidth)
diff --git a/vendor/github.com/mattn/go-runewidth/go.test.sh b/vendor/github.com/mattn/go-runewidth/go.test.sh
new file mode 100644
index 000000000..012162b07
--- /dev/null
+++ b/vendor/github.com/mattn/go-runewidth/go.test.sh
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+
+set -e
+echo "" > coverage.txt
+
+for d in $(go list ./... | grep -v vendor); do
+ go test -race -coverprofile=profile.out -covermode=atomic "$d"
+ if [ -f profile.out ]; then
+ cat profile.out >> coverage.txt
+ rm profile.out
+ fi
+done
diff --git a/vendor/github.com/mattn/go-runewidth/runewidth.go b/vendor/github.com/mattn/go-runewidth/runewidth.go
index 8d64da077..19f8e0449 100644
--- a/vendor/github.com/mattn/go-runewidth/runewidth.go
+++ b/vendor/github.com/mattn/go-runewidth/runewidth.go
@@ -50,7 +50,6 @@ func inTables(r rune, ts ...table) bool {
}
func inTable(r rune, t table) bool {
- // func (t table) IncludesRune(r rune) bool {
if r < t[0].first {
return false
}
diff --git a/vendor/github.com/mattn/go-runewidth/runewidth_table.go b/vendor/github.com/mattn/go-runewidth/runewidth_table.go
index 9ca6d0e28..a8ccee5b1 100644
--- a/vendor/github.com/mattn/go-runewidth/runewidth_table.go
+++ b/vendor/github.com/mattn/go-runewidth/runewidth_table.go
@@ -1,3 +1,5 @@
+// Code generated by script/generate.go. DO NOT EDIT.
+
package runewidth
var combining = table{
diff --git a/vendor/github.com/ncw/swift/README.md b/vendor/github.com/ncw/swift/README.md
index 7e678592b..838ec623e 100644
--- a/vendor/github.com/ncw/swift/README.md
+++ b/vendor/github.com/ncw/swift/README.md
@@ -157,3 +157,5 @@ Contributors
- Jérémy Clerc <[email protected]>
- 4xicom <[email protected]>
+- Thiago da Silva <[email protected]>
+- Brandon WELSCH <[email protected]>
diff --git a/vendor/github.com/ncw/swift/swift.go b/vendor/github.com/ncw/swift/swift.go
index cdb79d908..217647b9a 100644
--- a/vendor/github.com/ncw/swift/swift.go
+++ b/vendor/github.com/ncw/swift/swift.go
@@ -125,7 +125,7 @@ type Connection struct {
Expires time.Time // time the token expires, may be Zero if unknown
client *http.Client
Auth Authenticator `json:"-" xml:"-"` // the current authenticator
- authLock sync.Mutex // lock when R/W StorageUrl, AuthToken, Auth
+ authLock *sync.Mutex // lock when R/W StorageUrl, AuthToken, Auth
// swiftInfo is filled after QueryInfo is called
swiftInfo SwiftInfo
}
@@ -458,6 +458,9 @@ func (c *Connection) setDefaults() {
// If you don't call it before calling one of the connection methods
// then it will be called for you on the first access.
func (c *Connection) Authenticate() (err error) {
+ if c.authLock == nil {
+ c.authLock = &sync.Mutex{}
+ }
c.authLock.Lock()
defer c.authLock.Unlock()
return c.authenticate()
@@ -580,6 +583,9 @@ func (c *Connection) UnAuthenticate() {
//
// Doesn't actually check the credentials against the server.
func (c *Connection) Authenticated() bool {
+ if c.authLock == nil {
+ c.authLock = &sync.Mutex{}
+ }
c.authLock.Lock()
defer c.authLock.Unlock()
return c.authenticated()
@@ -1485,6 +1491,22 @@ func (c *Connection) ObjectCreate(container string, objectName string, checkHash
return
}
+func (c *Connection) ObjectSymlinkCreate(container string, symlink string, targetAccount string, targetContainer string, targetObject string, targetEtag string) (headers Headers, err error) {
+
+ EMPTY_MD5 := "d41d8cd98f00b204e9800998ecf8427e"
+ symHeaders := Headers{}
+ contents := bytes.NewBufferString("")
+ if targetAccount != "" {
+ symHeaders["X-Symlink-Target-Account"] = targetAccount
+ }
+ if targetEtag != "" {
+ symHeaders["X-Symlink-Target-Etag"] = targetEtag
+ }
+ symHeaders["X-Symlink-Target"] = fmt.Sprintf("%s/%s", targetContainer, targetObject)
+ _, err = c.ObjectPut(container, symlink, contents, true, EMPTY_MD5, "application/symlink", symHeaders)
+ return
+}
+
func (c *Connection) objectPut(container string, objectName string, contents io.Reader, checkHash bool, Hash string, contentType string, h Headers, parameters url.Values) (headers Headers, err error) {
extraHeaders := objectPutHeaders(objectName, &checkHash, Hash, contentType, h)
hash := md5.New()
diff --git a/vendor/github.com/nsf/termbox-go/termbox_windows.go b/vendor/github.com/nsf/termbox-go/termbox_windows.go
index 22e0f9ea0..d46eb043e 100644
--- a/vendor/github.com/nsf/termbox-go/termbox_windows.go
+++ b/vendor/github.com/nsf/termbox-go/termbox_windows.go
@@ -771,7 +771,11 @@ func key_event_record_to_event(r *key_event_record) (Event, bool) {
case vk_tab:
e.Key = KeyTab
case vk_enter:
- e.Key = KeyEnter
+ if ctrlpressed {
+ e.Key = KeyCtrlJ
+ } else {
+ e.Key = KeyEnter
+ }
case vk_esc:
switch {
case input_mode&InputEsc != 0:
diff --git a/vendor/github.com/pkg/errors/.travis.yml b/vendor/github.com/pkg/errors/.travis.yml
index d4b92663b..9159de03e 100644
--- a/vendor/github.com/pkg/errors/.travis.yml
+++ b/vendor/github.com/pkg/errors/.travis.yml
@@ -1,15 +1,10 @@
language: go
go_import_path: github.com/pkg/errors
go:
- - 1.4.x
- - 1.5.x
- - 1.6.x
- - 1.7.x
- - 1.8.x
- - 1.9.x
- - 1.10.x
- 1.11.x
+ - 1.12.x
+ - 1.13.x
- tip
script:
- - go test -v ./...
+ - make check
diff --git a/vendor/github.com/pkg/errors/Makefile b/vendor/github.com/pkg/errors/Makefile
new file mode 100644
index 000000000..ce9d7cded
--- /dev/null
+++ b/vendor/github.com/pkg/errors/Makefile
@@ -0,0 +1,44 @@
+PKGS := github.com/pkg/errors
+SRCDIRS := $(shell go list -f '{{.Dir}}' $(PKGS))
+GO := go
+
+check: test vet gofmt misspell unconvert staticcheck ineffassign unparam
+
+test:
+ $(GO) test $(PKGS)
+
+vet: | test
+ $(GO) vet $(PKGS)
+
+staticcheck:
+ $(GO) get honnef.co/go/tools/cmd/staticcheck
+ staticcheck -checks all $(PKGS)
+
+misspell:
+ $(GO) get github.com/client9/misspell/cmd/misspell
+ misspell \
+ -locale GB \
+ -error \
+ *.md *.go
+
+unconvert:
+ $(GO) get github.com/mdempsky/unconvert
+ unconvert -v $(PKGS)
+
+ineffassign:
+ $(GO) get github.com/gordonklaus/ineffassign
+ find $(SRCDIRS) -name '*.go' | xargs ineffassign
+
+pedantic: check errcheck
+
+unparam:
+ $(GO) get mvdan.cc/unparam
+ unparam ./...
+
+errcheck:
+ $(GO) get github.com/kisielk/errcheck
+ errcheck $(PKGS)
+
+gofmt:
+ @echo Checking code is gofmted
+ @test -z "$(shell gofmt -s -l -d -e $(SRCDIRS) | tee /dev/stderr)"
diff --git a/vendor/github.com/pkg/errors/README.md b/vendor/github.com/pkg/errors/README.md
index 6483ba2af..54dfdcb12 100644
--- a/vendor/github.com/pkg/errors/README.md
+++ b/vendor/github.com/pkg/errors/README.md
@@ -41,11 +41,18 @@ default:
[Read the package documentation for more information](https://godoc.org/github.com/pkg/errors).
+## Roadmap
+
+With the upcoming [Go2 error proposals](https://go.googlesource.com/proposal/+/master/design/go2draft.md) this package is moving into maintenance mode. The roadmap for a 1.0 release is as follows:
+
+- 0.9. Remove pre Go 1.9 and Go 1.10 support, address outstanding pull requests (if possible)
+- 1.0. Final release.
+
## Contributing
-We welcome pull requests, bug fixes and issue reports. With that said, the bar for adding new symbols to this package is intentionally set high.
+Because of the Go2 errors changes, this package is not accepting proposals for new functionality. With that said, we welcome pull requests, bug fixes and issue reports.
-Before proposing a change, please discuss your change by raising an issue.
+Before sending a PR, please discuss your change by raising an issue.
## License
diff --git a/vendor/github.com/pkg/errors/errors.go b/vendor/github.com/pkg/errors/errors.go
index 7421f326f..161aea258 100644
--- a/vendor/github.com/pkg/errors/errors.go
+++ b/vendor/github.com/pkg/errors/errors.go
@@ -82,7 +82,7 @@
//
// if err, ok := err.(stackTracer); ok {
// for _, f := range err.StackTrace() {
-// fmt.Printf("%+s:%d", f)
+// fmt.Printf("%+s:%d\n", f, f)
// }
// }
//
@@ -159,6 +159,9 @@ type withStack struct {
func (w *withStack) Cause() error { return w.error }
+// Unwrap provides compatibility for Go 1.13 error chains.
+func (w *withStack) Unwrap() error { return w.error }
+
func (w *withStack) Format(s fmt.State, verb rune) {
switch verb {
case 'v':
@@ -241,6 +244,9 @@ type withMessage struct {
func (w *withMessage) Error() string { return w.msg + ": " + w.cause.Error() }
func (w *withMessage) Cause() error { return w.cause }
+// Unwrap provides compatibility for Go 1.13 error chains.
+func (w *withMessage) Unwrap() error { return w.cause }
+
func (w *withMessage) Format(s fmt.State, verb rune) {
switch verb {
case 'v':
diff --git a/vendor/github.com/pkg/errors/go113.go b/vendor/github.com/pkg/errors/go113.go
new file mode 100644
index 000000000..be0d10d0c
--- /dev/null
+++ b/vendor/github.com/pkg/errors/go113.go
@@ -0,0 +1,38 @@
+// +build go1.13
+
+package errors
+
+import (
+ stderrors "errors"
+)
+
+// Is reports whether any error in err's chain matches target.
+//
+// The chain consists of err itself followed by the sequence of errors obtained by
+// repeatedly calling Unwrap.
+//
+// An error is considered to match a target if it is equal to that target or if
+// it implements a method Is(error) bool such that Is(target) returns true.
+func Is(err, target error) bool { return stderrors.Is(err, target) }
+
+// As finds the first error in err's chain that matches target, and if so, sets
+// target to that error value and returns true.
+//
+// The chain consists of err itself followed by the sequence of errors obtained by
+// repeatedly calling Unwrap.
+//
+// An error matches target if the error's concrete value is assignable to the value
+// pointed to by target, or if the error has a method As(interface{}) bool such that
+// As(target) returns true. In the latter case, the As method is responsible for
+// setting target.
+//
+// As will panic if target is not a non-nil pointer to either a type that implements
+// error, or to any interface type. As returns false if err is nil.
+func As(err error, target interface{}) bool { return stderrors.As(err, target) }
+
+// Unwrap returns the result of calling the Unwrap method on err, if err's
+// type contains an Unwrap method returning error.
+// Otherwise, Unwrap returns nil.
+func Unwrap(err error) error {
+ return stderrors.Unwrap(err)
+}
diff --git a/vendor/github.com/pkg/errors/stack.go b/vendor/github.com/pkg/errors/stack.go
index 2874a048c..779a8348f 100644
--- a/vendor/github.com/pkg/errors/stack.go
+++ b/vendor/github.com/pkg/errors/stack.go
@@ -5,10 +5,13 @@ import (
"io"
"path"
"runtime"
+ "strconv"
"strings"
)
// Frame represents a program counter inside a stack frame.
+// For historical reasons if Frame is interpreted as a uintptr
+// its value represents the program counter + 1.
type Frame uintptr
// pc returns the program counter for this frame;
@@ -37,6 +40,15 @@ func (f Frame) line() int {
return line
}
+// name returns the name of this function, if known.
+func (f Frame) name() string {
+ fn := runtime.FuncForPC(f.pc())
+ if fn == nil {
+ return "unknown"
+ }
+ return fn.Name()
+}
+
// Format formats the frame according to the fmt.Formatter interface.
//
// %s source file
@@ -54,22 +66,16 @@ func (f Frame) Format(s fmt.State, verb rune) {
case 's':
switch {
case s.Flag('+'):
- pc := f.pc()
- fn := runtime.FuncForPC(pc)
- if fn == nil {
- io.WriteString(s, "unknown")
- } else {
- file, _ := fn.FileLine(pc)
- fmt.Fprintf(s, "%s\n\t%s", fn.Name(), file)
- }
+ io.WriteString(s, f.name())
+ io.WriteString(s, "\n\t")
+ io.WriteString(s, f.file())
default:
io.WriteString(s, path.Base(f.file()))
}
case 'd':
- fmt.Fprintf(s, "%d", f.line())
+ io.WriteString(s, strconv.Itoa(f.line()))
case 'n':
- name := runtime.FuncForPC(f.pc()).Name()
- io.WriteString(s, funcname(name))
+ io.WriteString(s, funcname(f.name()))
case 'v':
f.Format(s, 's')
io.WriteString(s, ":")
@@ -77,6 +83,16 @@ func (f Frame) Format(s fmt.State, verb rune) {
}
}
+// MarshalText formats a stacktrace Frame as a text string. The output is the
+// same as that of fmt.Sprintf("%+v", f), but without newlines or tabs.
+func (f Frame) MarshalText() ([]byte, error) {
+ name := f.name()
+ if name == "unknown" {
+ return []byte(name), nil
+ }
+ return []byte(fmt.Sprintf("%s %s:%d", name, f.file(), f.line())), nil
+}
+
// StackTrace is stack of Frames from innermost (newest) to outermost (oldest).
type StackTrace []Frame
@@ -94,16 +110,30 @@ func (st StackTrace) Format(s fmt.State, verb rune) {
switch {
case s.Flag('+'):
for _, f := range st {
- fmt.Fprintf(s, "\n%+v", f)
+ io.WriteString(s, "\n")
+ f.Format(s, verb)
}
case s.Flag('#'):
fmt.Fprintf(s, "%#v", []Frame(st))
default:
- fmt.Fprintf(s, "%v", []Frame(st))
+ st.formatSlice(s, verb)
}
case 's':
- fmt.Fprintf(s, "%s", []Frame(st))
+ st.formatSlice(s, verb)
+ }
+}
+
+// formatSlice will format this StackTrace into the given buffer as a slice of
+// Frame, only valid when called with '%s' or '%v'.
+func (st StackTrace) formatSlice(s fmt.State, verb rune) {
+ io.WriteString(s, "[")
+ for i, f := range st {
+ if i > 0 {
+ io.WriteString(s, " ")
+ }
+ f.Format(s, verb)
}
+ io.WriteString(s, "]")
}
// stack represents a stack of program counters.
diff --git a/vendor/github.com/pkg/sftp/.travis.yml b/vendor/github.com/pkg/sftp/.travis.yml
index 3c1e05e5f..51dead078 100644
--- a/vendor/github.com/pkg/sftp/.travis.yml
+++ b/vendor/github.com/pkg/sftp/.travis.yml
@@ -4,25 +4,25 @@ go_import_path: github.com/pkg/sftp
# current and previous stable releases, plus tip
# remember to exclude previous and tip for macs below
go:
- - 1.11.x
- 1.12.x
+ - 1.13.x
- tip
os:
- linux
- osx
-env:
- global:
- - GO111MODULE=on
-
matrix:
exclude:
- os: osx
- go: 1.10.x
+ go: 1.12.x
- os: osx
go: tip
+env:
+ global:
+ - GO111MODULE=on
+
addons:
ssh_known_hosts:
- bitbucket.org
diff --git a/vendor/github.com/pkg/sftp/Makefile b/vendor/github.com/pkg/sftp/Makefile
new file mode 100644
index 000000000..781fe1f5a
--- /dev/null
+++ b/vendor/github.com/pkg/sftp/Makefile
@@ -0,0 +1,11 @@
+integration:
+ go test -integration -v
+ go test -testserver -v
+ go test -integration -testserver -v
+
+integration_w_race:
+ go test -race -integration -v
+ go test -race -testserver -v
+ go test -race -integration -testserver -v
+
+
diff --git a/vendor/github.com/pkg/sftp/attrs.go b/vendor/github.com/pkg/sftp/attrs.go
index 335bcc284..a51cd0923 100644
--- a/vendor/github.com/pkg/sftp/attrs.go
+++ b/vendor/github.com/pkg/sftp/attrs.go
@@ -10,11 +10,14 @@ import (
)
const (
- ssh_FILEXFER_ATTR_SIZE = 0x00000001
- ssh_FILEXFER_ATTR_UIDGID = 0x00000002
- ssh_FILEXFER_ATTR_PERMISSIONS = 0x00000004
- ssh_FILEXFER_ATTR_ACMODTIME = 0x00000008
- ssh_FILEXFER_ATTR_EXTENDED = 0x80000000
+ sshFileXferAttrSize = 0x00000001
+ sshFileXferAttrUIDGID = 0x00000002
+ sshFileXferAttrPermissions = 0x00000004
+ sshFileXferAttrACmodTime = 0x00000008
+ sshFileXferAttrExtented = 0x80000000
+
+ sshFileXferAttrAll = sshFileXferAttrSize | sshFileXferAttrUIDGID | sshFileXferAttrPermissions |
+ sshFileXferAttrACmodTime | sshFileXferAttrExtented
)
// fileInfo is an artificial type designed to satisfy os.FileInfo.
@@ -77,9 +80,9 @@ func fileInfoFromStat(st *FileStat, name string) os.FileInfo {
func fileStatFromInfo(fi os.FileInfo) (uint32, FileStat) {
mtime := fi.ModTime().Unix()
atime := mtime
- var flags uint32 = ssh_FILEXFER_ATTR_SIZE |
- ssh_FILEXFER_ATTR_PERMISSIONS |
- ssh_FILEXFER_ATTR_ACMODTIME
+ var flags uint32 = sshFileXferAttrSize |
+ sshFileXferAttrPermissions |
+ sshFileXferAttrACmodTime
fileStat := FileStat{
Size: uint64(fi.Size()),
@@ -101,31 +104,31 @@ func unmarshalAttrs(b []byte) (*FileStat, []byte) {
func getFileStat(flags uint32, b []byte) (*FileStat, []byte) {
var fs FileStat
- if flags&ssh_FILEXFER_ATTR_SIZE == ssh_FILEXFER_ATTR_SIZE {
- fs.Size, b = unmarshalUint64(b)
+ if flags&sshFileXferAttrSize == sshFileXferAttrSize {
+ fs.Size, b, _ = unmarshalUint64Safe(b)
}
- if flags&ssh_FILEXFER_ATTR_UIDGID == ssh_FILEXFER_ATTR_UIDGID {
- fs.UID, b = unmarshalUint32(b)
+ if flags&sshFileXferAttrUIDGID == sshFileXferAttrUIDGID {
+ fs.UID, b, _ = unmarshalUint32Safe(b)
}
- if flags&ssh_FILEXFER_ATTR_UIDGID == ssh_FILEXFER_ATTR_UIDGID {
- fs.GID, b = unmarshalUint32(b)
+ if flags&sshFileXferAttrUIDGID == sshFileXferAttrUIDGID {
+ fs.GID, b, _ = unmarshalUint32Safe(b)
}
- if flags&ssh_FILEXFER_ATTR_PERMISSIONS == ssh_FILEXFER_ATTR_PERMISSIONS {
- fs.Mode, b = unmarshalUint32(b)
+ if flags&sshFileXferAttrPermissions == sshFileXferAttrPermissions {
+ fs.Mode, b, _ = unmarshalUint32Safe(b)
}
- if flags&ssh_FILEXFER_ATTR_ACMODTIME == ssh_FILEXFER_ATTR_ACMODTIME {
- fs.Atime, b = unmarshalUint32(b)
- fs.Mtime, b = unmarshalUint32(b)
+ if flags&sshFileXferAttrACmodTime == sshFileXferAttrACmodTime {
+ fs.Atime, b, _ = unmarshalUint32Safe(b)
+ fs.Mtime, b, _ = unmarshalUint32Safe(b)
}
- if flags&ssh_FILEXFER_ATTR_EXTENDED == ssh_FILEXFER_ATTR_EXTENDED {
+ if flags&sshFileXferAttrExtented == sshFileXferAttrExtented {
var count uint32
- count, b = unmarshalUint32(b)
+ count, b, _ = unmarshalUint32Safe(b)
ext := make([]StatExtended, count)
for i := uint32(0); i < count; i++ {
var typ string
var data string
- typ, b = unmarshalString(b)
- data, b = unmarshalString(b)
+ typ, b, _ = unmarshalStringSafe(b)
+ data, b, _ = unmarshalStringSafe(b)
ext[i] = StatExtended{typ, data}
}
fs.Extended = ext
@@ -152,17 +155,17 @@ func marshalFileInfo(b []byte, fi os.FileInfo) []byte {
flags, fileStat := fileStatFromInfo(fi)
b = marshalUint32(b, flags)
- if flags&ssh_FILEXFER_ATTR_SIZE != 0 {
+ if flags&sshFileXferAttrSize != 0 {
b = marshalUint64(b, fileStat.Size)
}
- if flags&ssh_FILEXFER_ATTR_UIDGID != 0 {
+ if flags&sshFileXferAttrUIDGID != 0 {
b = marshalUint32(b, fileStat.UID)
b = marshalUint32(b, fileStat.GID)
}
- if flags&ssh_FILEXFER_ATTR_PERMISSIONS != 0 {
+ if flags&sshFileXferAttrPermissions != 0 {
b = marshalUint32(b, fileStat.Mode)
}
- if flags&ssh_FILEXFER_ATTR_ACMODTIME != 0 {
+ if flags&sshFileXferAttrACmodTime != 0 {
b = marshalUint32(b, fileStat.Atime)
b = marshalUint32(b, fileStat.Mtime)
}
@@ -173,7 +176,7 @@ func marshalFileInfo(b []byte, fi os.FileInfo) []byte {
// toFileMode converts sftp filemode bits to the os.FileMode specification
func toFileMode(mode uint32) os.FileMode {
var fm = os.FileMode(mode & 0777)
- switch mode & syscall.S_IFMT {
+ switch mode & S_IFMT {
case syscall.S_IFBLK:
fm |= os.ModeDevice
case syscall.S_IFCHR:
diff --git a/vendor/github.com/pkg/sftp/attrs_unix.go b/vendor/github.com/pkg/sftp/attrs_unix.go
index 95e7922e9..846b2086d 100644
--- a/vendor/github.com/pkg/sftp/attrs_unix.go
+++ b/vendor/github.com/pkg/sftp/attrs_unix.go
@@ -10,7 +10,7 @@ import (
func fileStatFromInfoOs(fi os.FileInfo, flags *uint32, fileStat *FileStat) {
if statt, ok := fi.Sys().(*syscall.Stat_t); ok {
- *flags |= ssh_FILEXFER_ATTR_UIDGID
+ *flags |= sshFileXferAttrUIDGID
fileStat.UID = statt.Uid
fileStat.GID = statt.Gid
}
diff --git a/vendor/github.com/pkg/sftp/client.go b/vendor/github.com/pkg/sftp/client.go
index 11a81b5e0..0d09d2a2c 100644
--- a/vendor/github.com/pkg/sftp/client.go
+++ b/vendor/github.com/pkg/sftp/client.go
@@ -15,12 +15,18 @@ import (
"golang.org/x/crypto/ssh"
)
-// InternalInconsistency indicates the packets sent and the data queued to be
-// written to the file don't match up. It is an unusual error and usually is
-// caused by bad behavior server side or connection issues. The error is
-// limited in scope to the call where it happened, the client object is still
-// OK to use as long as the connection is still open.
-var InternalInconsistency = errors.New("internal inconsistency")
+var (
+ // ErrInternalInconsistency indicates the packets sent and the data queued to be
+ // written to the file don't match up. It is an unusual error and usually is
+ // caused by bad behavior server side or connection issues. The error is
+ // limited in scope to the call where it happened, the client object is still
+ // OK to use as long as the connection is still open.
+ ErrInternalInconsistency = errors.New("internal inconsistency")
+ // InternalInconsistency alias for ErrInternalInconsistency.
+ //
+ // Deprecated: please use ErrInternalInconsistency
+ InternalInconsistency = ErrInternalInconsistency
+)
// A ClientOption is a function which applies configuration to a Client.
type ClientOption func(*Client) error
@@ -45,6 +51,30 @@ func MaxPacketChecked(size int) ClientOption {
}
}
+// UseFstat sets whether to use Fstat or Stat when File.WriteTo is called
+// (usually when copying files).
+// Some servers limit the amount of open files and calling Stat after opening
+// the file will throw an error From the server. Setting this flag will call
+// Fstat instead of Stat which is suppose to be called on an open file handle.
+//
+// It has been found that that with IBM Sterling SFTP servers which have
+// "extractability" level set to 1 which means only 1 file can be opened at
+// any given time.
+//
+// If the server you are working with still has an issue with both Stat and
+// Fstat calls you can always open a file and read it until the end.
+//
+// Another reason to read the file until its end and Fstat doesn't work is
+// that in some servers, reading a full file will automatically delete the
+// file as some of these mainframes map the file to a message in a queue.
+// Once the file has been read it will get deleted.
+func UseFstat(value bool) ClientOption {
+ return func(c *Client) error {
+ c.useFstat = value
+ return nil
+ }
+}
+
// MaxPacketUnchecked sets the maximum size of the payload, measured in bytes.
// It accepts sizes larger than the 32768 bytes all servers should support.
// Only use a setting higher than 32768 if your application always connects to
@@ -155,12 +185,17 @@ type Client struct {
maxPacket int // max packet size read or written.
nextid uint32
maxConcurrentRequests int
+ useFstat bool
}
// Create creates the named file mode 0666 (before umask), truncating it if it
// already exists. If successful, methods on the returned File can be used for
// I/O; the associated file descriptor has mode O_RDWR. If you need more
// control over the flags/mode used to open the file see client.OpenFile.
+//
+// Note that some SFTP servers (eg. AWS Transfer) do not support opening files
+// read/write at the same time. For those services you will need to use
+// `client.OpenFile(os.O_WRONLY|os.O_CREATE|os.O_TRUNC)`.
func (c *Client) Create(path string) (*File, error) {
return c.open(path, flags(os.O_RDWR|os.O_CREATE|os.O_TRUNC))
}
@@ -183,8 +218,8 @@ func (c *Client) recvVersion() error {
if err != nil {
return err
}
- if typ != ssh_FXP_VERSION {
- return &unexpectedPacketErr{ssh_FXP_VERSION, typ}
+ if typ != sshFxpVersion {
+ return &unexpectedPacketErr{sshFxpVersion, typ}
}
version, _ := unmarshalUint32(data)
@@ -222,7 +257,7 @@ func (c *Client) ReadDir(p string) ([]os.FileInfo, error) {
break
}
switch typ {
- case ssh_FXP_NAME:
+ case sshFxpName:
sid, data := unmarshalUint32(data)
if sid != id {
return nil, &unexpectedIDErr{id, sid}
@@ -239,7 +274,7 @@ func (c *Client) ReadDir(p string) ([]os.FileInfo, error) {
}
attrs = append(attrs, fileInfoFromStat(attr, path.Base(filename)))
}
- case ssh_FXP_STATUS:
+ case sshFxpStatus:
// TODO(dfc) scope warning!
err = normaliseError(unmarshalStatus(id, data))
done = true
@@ -263,14 +298,14 @@ func (c *Client) opendir(path string) (string, error) {
return "", err
}
switch typ {
- case ssh_FXP_HANDLE:
+ case sshFxpHandle:
sid, data := unmarshalUint32(data)
if sid != id {
return "", &unexpectedIDErr{id, sid}
}
handle, _ := unmarshalString(data)
return handle, nil
- case ssh_FXP_STATUS:
+ case sshFxpStatus:
return "", normaliseError(unmarshalStatus(id, data))
default:
return "", unimplementedPacketErr(typ)
@@ -289,14 +324,14 @@ func (c *Client) Stat(p string) (os.FileInfo, error) {
return nil, err
}
switch typ {
- case ssh_FXP_ATTRS:
+ case sshFxpAttrs:
sid, data := unmarshalUint32(data)
if sid != id {
return nil, &unexpectedIDErr{id, sid}
}
attr, _ := unmarshalAttrs(data)
return fileInfoFromStat(attr, path.Base(p)), nil
- case ssh_FXP_STATUS:
+ case sshFxpStatus:
return nil, normaliseError(unmarshalStatus(id, data))
default:
return nil, unimplementedPacketErr(typ)
@@ -315,14 +350,14 @@ func (c *Client) Lstat(p string) (os.FileInfo, error) {
return nil, err
}
switch typ {
- case ssh_FXP_ATTRS:
+ case sshFxpAttrs:
sid, data := unmarshalUint32(data)
if sid != id {
return nil, &unexpectedIDErr{id, sid}
}
attr, _ := unmarshalAttrs(data)
return fileInfoFromStat(attr, path.Base(p)), nil
- case ssh_FXP_STATUS:
+ case sshFxpStatus:
return nil, normaliseError(unmarshalStatus(id, data))
default:
return nil, unimplementedPacketErr(typ)
@@ -340,7 +375,7 @@ func (c *Client) ReadLink(p string) (string, error) {
return "", err
}
switch typ {
- case ssh_FXP_NAME:
+ case sshFxpName:
sid, data := unmarshalUint32(data)
if sid != id {
return "", &unexpectedIDErr{id, sid}
@@ -351,13 +386,32 @@ func (c *Client) ReadLink(p string) (string, error) {
}
filename, _ := unmarshalString(data) // ignore dummy attributes
return filename, nil
- case ssh_FXP_STATUS:
+ case sshFxpStatus:
return "", normaliseError(unmarshalStatus(id, data))
default:
return "", unimplementedPacketErr(typ)
}
}
+// Link creates a hard link at 'newname', pointing at the same inode as 'oldname'
+func (c *Client) Link(oldname, newname string) error {
+ id := c.nextID()
+ typ, data, err := c.sendPacket(sshFxpHardlinkPacket{
+ ID: id,
+ Oldpath: oldname,
+ Newpath: newname,
+ })
+ if err != nil {
+ return err
+ }
+ switch typ {
+ case sshFxpStatus:
+ return normaliseError(unmarshalStatus(id, data))
+ default:
+ return unimplementedPacketErr(typ)
+ }
+}
+
// Symlink creates a symbolic link at 'newname', pointing at target 'oldname'
func (c *Client) Symlink(oldname, newname string) error {
id := c.nextID()
@@ -370,7 +424,7 @@ func (c *Client) Symlink(oldname, newname string) error {
return err
}
switch typ {
- case ssh_FXP_STATUS:
+ case sshFxpStatus:
return normaliseError(unmarshalStatus(id, data))
default:
return unimplementedPacketErr(typ)
@@ -390,7 +444,7 @@ func (c *Client) setstat(path string, flags uint32, attrs interface{}) error {
return err
}
switch typ {
- case ssh_FXP_STATUS:
+ case sshFxpStatus:
return normaliseError(unmarshalStatus(id, data))
default:
return unimplementedPacketErr(typ)
@@ -404,7 +458,7 @@ func (c *Client) Chtimes(path string, atime time.Time, mtime time.Time) error {
Mtime uint32
}
attrs := times{uint32(atime.Unix()), uint32(mtime.Unix())}
- return c.setstat(path, ssh_FILEXFER_ATTR_ACMODTIME, attrs)
+ return c.setstat(path, sshFileXferAttrACmodTime, attrs)
}
// Chown changes the user and group owners of the named file.
@@ -414,12 +468,12 @@ func (c *Client) Chown(path string, uid, gid int) error {
GID uint32
}
attrs := owner{uint32(uid), uint32(gid)}
- return c.setstat(path, ssh_FILEXFER_ATTR_UIDGID, attrs)
+ return c.setstat(path, sshFileXferAttrUIDGID, attrs)
}
// Chmod changes the permissions of the named file.
func (c *Client) Chmod(path string, mode os.FileMode) error {
- return c.setstat(path, ssh_FILEXFER_ATTR_PERMISSIONS, uint32(mode))
+ return c.setstat(path, sshFileXferAttrPermissions, uint32(mode))
}
// Truncate sets the size of the named file. Although it may be safely assumed
@@ -427,7 +481,7 @@ func (c *Client) Chmod(path string, mode os.FileMode) error {
// the SFTP protocol does not specify what behavior the server should do when setting
// size greater than the current size.
func (c *Client) Truncate(path string, size int64) error {
- return c.setstat(path, ssh_FILEXFER_ATTR_SIZE, uint64(size))
+ return c.setstat(path, sshFileXferAttrSize, uint64(size))
}
// Open opens the named file for reading. If successful, methods on the
@@ -455,14 +509,14 @@ func (c *Client) open(path string, pflags uint32) (*File, error) {
return nil, err
}
switch typ {
- case ssh_FXP_HANDLE:
+ case sshFxpHandle:
sid, data := unmarshalUint32(data)
if sid != id {
return nil, &unexpectedIDErr{id, sid}
}
handle, _ := unmarshalString(data)
return &File{c: c, path: path, handle: handle}, nil
- case ssh_FXP_STATUS:
+ case sshFxpStatus:
return nil, normaliseError(unmarshalStatus(id, data))
default:
return nil, unimplementedPacketErr(typ)
@@ -482,7 +536,7 @@ func (c *Client) close(handle string) error {
return err
}
switch typ {
- case ssh_FXP_STATUS:
+ case sshFxpStatus:
return normaliseError(unmarshalStatus(id, data))
default:
return unimplementedPacketErr(typ)
@@ -499,14 +553,14 @@ func (c *Client) fstat(handle string) (*FileStat, error) {
return nil, err
}
switch typ {
- case ssh_FXP_ATTRS:
+ case sshFxpAttrs:
sid, data := unmarshalUint32(data)
if sid != id {
return nil, &unexpectedIDErr{id, sid}
}
attr, _ := unmarshalAttrs(data)
return attr, nil
- case ssh_FXP_STATUS:
+ case sshFxpStatus:
return nil, normaliseError(unmarshalStatus(id, data))
default:
return nil, unimplementedPacketErr(typ)
@@ -530,7 +584,7 @@ func (c *Client) StatVFS(path string) (*StatVFS, error) {
switch typ {
// server responded with valid data
- case ssh_FXP_EXTENDED_REPLY:
+ case sshFxpExtendedReply:
var response StatVFS
err = binary.Read(bytes.NewReader(data), binary.BigEndian, &response)
if err != nil {
@@ -540,8 +594,8 @@ func (c *Client) StatVFS(path string) (*StatVFS, error) {
return &response, nil
// the resquest failed
- case ssh_FXP_STATUS:
- return nil, errors.New(fxp(ssh_FXP_STATUS).String())
+ case sshFxpStatus:
+ return nil, errors.New(fxp(sshFxpStatus).String())
default:
return nil, unimplementedPacketErr(typ)
@@ -562,7 +616,7 @@ func (c *Client) Remove(path string) error {
switch err.Code {
// some servers, *cough* osx *cough*, return EPERM, not ENODIR.
// serv-u returns ssh_FX_FILE_IS_A_DIRECTORY
- case ssh_FX_PERMISSION_DENIED, ssh_FX_FAILURE, ssh_FX_FILE_IS_A_DIRECTORY:
+ case sshFxPermissionDenied, sshFxFailure, sshFxFileIsADirectory:
return c.RemoveDirectory(path)
}
}
@@ -579,7 +633,7 @@ func (c *Client) removeFile(path string) error {
return err
}
switch typ {
- case ssh_FXP_STATUS:
+ case sshFxpStatus:
return normaliseError(unmarshalStatus(id, data))
default:
return unimplementedPacketErr(typ)
@@ -597,7 +651,7 @@ func (c *Client) RemoveDirectory(path string) error {
return err
}
switch typ {
- case ssh_FXP_STATUS:
+ case sshFxpStatus:
return normaliseError(unmarshalStatus(id, data))
default:
return unimplementedPacketErr(typ)
@@ -616,7 +670,7 @@ func (c *Client) Rename(oldname, newname string) error {
return err
}
switch typ {
- case ssh_FXP_STATUS:
+ case sshFxpStatus:
return normaliseError(unmarshalStatus(id, data))
default:
return unimplementedPacketErr(typ)
@@ -636,7 +690,7 @@ func (c *Client) PosixRename(oldname, newname string) error {
return err
}
switch typ {
- case ssh_FXP_STATUS:
+ case sshFxpStatus:
return normaliseError(unmarshalStatus(id, data))
default:
return unimplementedPacketErr(typ)
@@ -653,7 +707,7 @@ func (c *Client) realpath(path string) (string, error) {
return "", err
}
switch typ {
- case ssh_FXP_NAME:
+ case sshFxpName:
sid, data := unmarshalUint32(data)
if sid != id {
return "", &unexpectedIDErr{id, sid}
@@ -664,7 +718,7 @@ func (c *Client) realpath(path string) (string, error) {
}
filename, _ := unmarshalString(data) // ignore attributes
return filename, nil
- case ssh_FXP_STATUS:
+ case sshFxpStatus:
return "", normaliseError(unmarshalStatus(id, data))
default:
return "", unimplementedPacketErr(typ)
@@ -690,7 +744,7 @@ func (c *Client) Mkdir(path string) error {
return err
}
switch typ {
- case ssh_FXP_STATUS:
+ case sshFxpStatus:
return normaliseError(unmarshalStatus(id, data))
default:
return unimplementedPacketErr(typ)
@@ -845,14 +899,14 @@ func (f *File) Read(b []byte) (int, error) {
}
delete(reqs, reqID)
switch res.typ {
- case ssh_FXP_STATUS:
+ case sshFxpStatus:
if firstErr.err == nil || req.offset < firstErr.offset {
firstErr = offsetErr{
offset: req.offset,
err: normaliseError(unmarshalStatus(reqID, res.data)),
}
}
- case ssh_FXP_DATA:
+ case sshFxpData:
l, data := unmarshalUint32(data)
n := copy(req.b, data[:l])
read += n
@@ -884,15 +938,26 @@ func (f *File) Read(b []byte) (int, error) {
// maximise throughput for transferring the entire file (especially
// over high latency links).
func (f *File) WriteTo(w io.Writer) (int64, error) {
- fi, err := f.c.Stat(f.path)
- if err != nil {
- return 0, err
+ var fileSize uint64
+ if f.c.useFstat {
+ fileStat, err := f.c.fstat(f.handle)
+ if err != nil {
+ return 0, err
+ }
+ fileSize = fileStat.Size
+
+ } else {
+ fi, err := f.c.Stat(f.path)
+ if err != nil {
+ return 0, err
+ }
+ fileSize = uint64(fi.Size())
}
+
inFlight := 0
desiredInFlight := 1
offset := f.offset
writeOffset := offset
- fileSize := uint64(fi.Size())
// see comment on same line in Read() above
ch := make(chan result, f.c.maxConcurrentRequests+1)
type inflightRead struct {
@@ -934,7 +999,7 @@ func (f *File) WriteTo(w io.Writer) (int64, error) {
if inFlight == 0 {
if firstErr.err == nil && len(pendingWrites) > 0 {
- return copied, InternalInconsistency
+ return copied, ErrInternalInconsistency
}
break
}
@@ -952,11 +1017,11 @@ func (f *File) WriteTo(w io.Writer) (int64, error) {
}
delete(reqs, reqID)
switch res.typ {
- case ssh_FXP_STATUS:
+ case sshFxpStatus:
if firstErr.err == nil || req.offset < firstErr.offset {
firstErr = offsetErr{offset: req.offset, err: normaliseError(unmarshalStatus(reqID, res.data))}
}
- case ssh_FXP_DATA:
+ case sshFxpData:
l, data := unmarshalUint32(data)
if req.offset == writeOffset {
nbytes, err := w.Write(data)
@@ -1071,7 +1136,7 @@ func (f *File) Write(b []byte) (int, error) {
continue
}
switch res.typ {
- case ssh_FXP_STATUS:
+ case sshFxpStatus:
id, _ := unmarshalUint32(res.data)
err := normaliseError(unmarshalStatus(id, res.data))
if err != nil && firstErr == nil {
@@ -1139,7 +1204,7 @@ func (f *File) ReadFrom(r io.Reader) (int64, error) {
continue
}
switch res.typ {
- case ssh_FXP_STATUS:
+ case sshFxpStatus:
id, _ := unmarshalUint32(res.data)
err := normaliseError(unmarshalStatus(id, res.data))
if err != nil && firstErr == nil {
@@ -1218,11 +1283,11 @@ func normaliseError(err error) error {
switch err := err.(type) {
case *StatusError:
switch err.Code {
- case ssh_FX_EOF:
+ case sshFxEOF:
return io.EOF
- case ssh_FX_NO_SUCH_FILE:
+ case sshFxNoSuchFile:
return os.ErrNotExist
- case ssh_FX_OK:
+ case sshFxOk:
return nil
default:
return err
@@ -1260,24 +1325,24 @@ func flags(f int) uint32 {
var out uint32
switch f & os.O_WRONLY {
case os.O_WRONLY:
- out |= ssh_FXF_WRITE
+ out |= sshFxfWrite
case os.O_RDONLY:
- out |= ssh_FXF_READ
+ out |= sshFxfRead
}
if f&os.O_RDWR == os.O_RDWR {
- out |= ssh_FXF_READ | ssh_FXF_WRITE
+ out |= sshFxfRead | sshFxfWrite
}
if f&os.O_APPEND == os.O_APPEND {
- out |= ssh_FXF_APPEND
+ out |= sshFxfAppend
}
if f&os.O_CREATE == os.O_CREATE {
- out |= ssh_FXF_CREAT
+ out |= sshFxfCreat
}
if f&os.O_TRUNC == os.O_TRUNC {
- out |= ssh_FXF_TRUNC
+ out |= sshFxfTrunc
}
if f&os.O_EXCL == os.O_EXCL {
- out |= ssh_FXF_EXCL
+ out |= sshFxfExcl
}
return out
}
diff --git a/vendor/github.com/pkg/sftp/packet-manager.go b/vendor/github.com/pkg/sftp/packet-manager.go
index 2f3be10a6..45d299568 100644
--- a/vendor/github.com/pkg/sftp/packet-manager.go
+++ b/vendor/github.com/pkg/sftp/packet-manager.go
@@ -39,7 +39,7 @@ func newPktMgr(sender packetSender) *packetManager {
}
//// packet ordering
-func (s *packetManager) newOrderId() uint32 {
+func (s *packetManager) newOrderID() uint32 {
s.packetCount++
return s.packetCount
}
@@ -50,10 +50,10 @@ type orderedRequest struct {
}
func (s *packetManager) newOrderedRequest(p requestPacket) orderedRequest {
- return orderedRequest{requestPacket: p, orderid: s.newOrderId()}
+ return orderedRequest{requestPacket: p, orderid: s.newOrderID()}
}
-func (p orderedRequest) orderId() uint32 { return p.orderid }
-func (p orderedRequest) setOrderId(oid uint32) { p.orderid = oid }
+func (p orderedRequest) orderID() uint32 { return p.orderid }
+func (p orderedRequest) setOrderID(oid uint32) { p.orderid = oid }
type orderedResponse struct {
responsePacket
@@ -64,18 +64,18 @@ func (s *packetManager) newOrderedResponse(p responsePacket, id uint32,
) orderedResponse {
return orderedResponse{responsePacket: p, orderid: id}
}
-func (p orderedResponse) orderId() uint32 { return p.orderid }
-func (p orderedResponse) setOrderId(oid uint32) { p.orderid = oid }
+func (p orderedResponse) orderID() uint32 { return p.orderid }
+func (p orderedResponse) setOrderID(oid uint32) { p.orderid = oid }
type orderedPacket interface {
id() uint32
- orderId() uint32
+ orderID() uint32
}
type orderedPackets []orderedPacket
func (o orderedPackets) Sort() {
sort.Slice(o, func(i, j int) bool {
- return o[i].orderId() < o[j].orderId()
+ return o[i].orderID() < o[j].orderID()
})
}
@@ -145,11 +145,11 @@ func (s *packetManager) controller() {
for {
select {
case pkt := <-s.requests:
- debug("incoming id (oid): %v (%v)", pkt.id(), pkt.orderId())
+ debug("incoming id (oid): %v (%v)", pkt.id(), pkt.orderID())
s.incoming = append(s.incoming, pkt)
s.incoming.Sort()
case pkt := <-s.responses:
- debug("outgoing id (oid): %v (%v)", pkt.id(), pkt.orderId())
+ debug("outgoing id (oid): %v (%v)", pkt.id(), pkt.orderID())
s.outgoing = append(s.outgoing, pkt)
s.outgoing.Sort()
case <-s.fini:
@@ -171,7 +171,7 @@ func (s *packetManager) maybeSendPackets() {
in := s.incoming[0]
// debug("incoming: %v", ids(s.incoming))
// debug("outgoing: %v", ids(s.outgoing))
- if in.orderId() == out.orderId() {
+ if in.orderID() == out.orderID() {
debug("Sending packet: %v", out.id())
s.sender.sendPacket(out.(encoding.BinaryMarshaler))
// pop off heads
diff --git a/vendor/github.com/pkg/sftp/packet-typing.go b/vendor/github.com/pkg/sftp/packet-typing.go
index bcff9bf33..addd0e32a 100644
--- a/vendor/github.com/pkg/sftp/packet-typing.go
+++ b/vendor/github.com/pkg/sftp/packet-typing.go
@@ -49,8 +49,9 @@ func (p sshFxpOpendirPacket) getPath() string { return p.Path }
func (p sshFxpOpenPacket) getPath() string { return p.Path }
func (p sshFxpExtendedPacketPosixRename) getPath() string { return p.Oldpath }
+func (p sshFxpExtendedPacketHardlink) getPath() string { return p.Oldpath }
-// hasHandle
+// getHandle
func (p sshFxpFstatPacket) getHandle() string { return p.Handle }
func (p sshFxpFsetstatPacket) getHandle() string { return p.Handle }
func (p sshFxpReadPacket) getHandle() string { return p.Handle }
@@ -68,6 +69,7 @@ func (p sshFxpRmdirPacket) notReadOnly() {}
func (p sshFxpRenamePacket) notReadOnly() {}
func (p sshFxpSymlinkPacket) notReadOnly() {}
func (p sshFxpExtendedPacketPosixRename) notReadOnly() {}
+func (p sshFxpExtendedPacketHardlink) notReadOnly() {}
// some packets with ID are missing id()
func (p sshFxpDataPacket) id() uint32 { return p.ID }
@@ -82,45 +84,45 @@ func (p sshFxVersionPacket) id() uint32 { return 0 }
func makePacket(p rxPacket) (requestPacket, error) {
var pkt requestPacket
switch p.pktType {
- case ssh_FXP_INIT:
+ case sshFxpInit:
pkt = &sshFxInitPacket{}
- case ssh_FXP_LSTAT:
+ case sshFxpLstat:
pkt = &sshFxpLstatPacket{}
- case ssh_FXP_OPEN:
+ case sshFxpOpen:
pkt = &sshFxpOpenPacket{}
- case ssh_FXP_CLOSE:
+ case sshFxpClose:
pkt = &sshFxpClosePacket{}
- case ssh_FXP_READ:
+ case sshFxpRead:
pkt = &sshFxpReadPacket{}
- case ssh_FXP_WRITE:
+ case sshFxpWrite:
pkt = &sshFxpWritePacket{}
- case ssh_FXP_FSTAT:
+ case sshFxpFstat:
pkt = &sshFxpFstatPacket{}
- case ssh_FXP_SETSTAT:
+ case sshFxpSetstat:
pkt = &sshFxpSetstatPacket{}
- case ssh_FXP_FSETSTAT:
+ case sshFxpFsetstat:
pkt = &sshFxpFsetstatPacket{}
- case ssh_FXP_OPENDIR:
+ case sshFxpOpendir:
pkt = &sshFxpOpendirPacket{}
- case ssh_FXP_READDIR:
+ case sshFxpReaddir:
pkt = &sshFxpReaddirPacket{}
- case ssh_FXP_REMOVE:
+ case sshFxpRemove:
pkt = &sshFxpRemovePacket{}
- case ssh_FXP_MKDIR:
+ case sshFxpMkdir:
pkt = &sshFxpMkdirPacket{}
- case ssh_FXP_RMDIR:
+ case sshFxpRmdir:
pkt = &sshFxpRmdirPacket{}
- case ssh_FXP_REALPATH:
+ case sshFxpRealpath:
pkt = &sshFxpRealpathPacket{}
- case ssh_FXP_STAT:
+ case sshFxpStat:
pkt = &sshFxpStatPacket{}
- case ssh_FXP_RENAME:
+ case sshFxpRename:
pkt = &sshFxpRenamePacket{}
- case ssh_FXP_READLINK:
+ case sshFxpReadlink:
pkt = &sshFxpReadlinkPacket{}
- case ssh_FXP_SYMLINK:
+ case sshFxpSymlink:
pkt = &sshFxpSymlinkPacket{}
- case ssh_FXP_EXTENDED:
+ case sshFxpExtended:
pkt = &sshFxpExtendedPacket{}
default:
return nil, errors.Errorf("unhandled packet type: %s", p.pktType)
diff --git a/vendor/github.com/pkg/sftp/packet.go b/vendor/github.com/pkg/sftp/packet.go
index c5c32fc23..c687fd491 100644
--- a/vendor/github.com/pkg/sftp/packet.go
+++ b/vendor/github.com/pkg/sftp/packet.go
@@ -13,11 +13,13 @@ import (
)
var (
+ errLongPacket = errors.New("packet too long")
errShortPacket = errors.New("packet too short")
errUnknownExtendedPacket = errors.New("unknown extended packet")
)
const (
+ maxMsgLength = 256 * 1024
debugDumpTxPacket = false
debugDumpRxPacket = false
debugDumpTxPacketBytes = false
@@ -143,6 +145,10 @@ func recvPacket(r io.Reader) (uint8, []byte, error) {
return 0, nil, err
}
l, _ := unmarshalUint32(b)
+ if l > maxMsgLength {
+ debug("recv packet %d bytes too long", l)
+ return 0, nil, errLongPacket
+ }
b = make([]byte, l)
if _, err := io.ReadFull(r, b); err != nil {
debug("recv packet %d bytes: err %v", l, err)
@@ -189,7 +195,7 @@ func (p sshFxInitPacket) MarshalBinary() ([]byte, error) {
}
b := make([]byte, 0, l)
- b = append(b, ssh_FXP_INIT)
+ b = append(b, sshFxpInit)
b = marshalUint32(b, p.Version)
for _, e := range p.Extensions {
b = marshalString(b, e.Name)
@@ -216,9 +222,11 @@ func (p *sshFxInitPacket) UnmarshalBinary(b []byte) error {
type sshFxVersionPacket struct {
Version uint32
- Extensions []struct {
- Name, Data string
- }
+ Extensions []sshExtensionPair
+}
+
+type sshExtensionPair struct {
+ Name, Data string
}
func (p sshFxVersionPacket) MarshalBinary() ([]byte, error) {
@@ -228,7 +236,7 @@ func (p sshFxVersionPacket) MarshalBinary() ([]byte, error) {
}
b := make([]byte, 0, l)
- b = append(b, ssh_FXP_VERSION)
+ b = append(b, sshFxpVersion)
b = marshalUint32(b, p.Version)
for _, e := range p.Extensions {
b = marshalString(b, e.Name)
@@ -266,7 +274,7 @@ type sshFxpReaddirPacket struct {
func (p sshFxpReaddirPacket) id() uint32 { return p.ID }
func (p sshFxpReaddirPacket) MarshalBinary() ([]byte, error) {
- return marshalIDString(ssh_FXP_READDIR, p.ID, p.Handle)
+ return marshalIDString(sshFxpReaddir, p.ID, p.Handle)
}
func (p *sshFxpReaddirPacket) UnmarshalBinary(b []byte) error {
@@ -281,7 +289,7 @@ type sshFxpOpendirPacket struct {
func (p sshFxpOpendirPacket) id() uint32 { return p.ID }
func (p sshFxpOpendirPacket) MarshalBinary() ([]byte, error) {
- return marshalIDString(ssh_FXP_OPENDIR, p.ID, p.Path)
+ return marshalIDString(sshFxpOpendir, p.ID, p.Path)
}
func (p *sshFxpOpendirPacket) UnmarshalBinary(b []byte) error {
@@ -296,7 +304,7 @@ type sshFxpLstatPacket struct {
func (p sshFxpLstatPacket) id() uint32 { return p.ID }
func (p sshFxpLstatPacket) MarshalBinary() ([]byte, error) {
- return marshalIDString(ssh_FXP_LSTAT, p.ID, p.Path)
+ return marshalIDString(sshFxpLstat, p.ID, p.Path)
}
func (p *sshFxpLstatPacket) UnmarshalBinary(b []byte) error {
@@ -311,7 +319,7 @@ type sshFxpStatPacket struct {
func (p sshFxpStatPacket) id() uint32 { return p.ID }
func (p sshFxpStatPacket) MarshalBinary() ([]byte, error) {
- return marshalIDString(ssh_FXP_STAT, p.ID, p.Path)
+ return marshalIDString(sshFxpStat, p.ID, p.Path)
}
func (p *sshFxpStatPacket) UnmarshalBinary(b []byte) error {
@@ -326,7 +334,7 @@ type sshFxpFstatPacket struct {
func (p sshFxpFstatPacket) id() uint32 { return p.ID }
func (p sshFxpFstatPacket) MarshalBinary() ([]byte, error) {
- return marshalIDString(ssh_FXP_FSTAT, p.ID, p.Handle)
+ return marshalIDString(sshFxpFstat, p.ID, p.Handle)
}
func (p *sshFxpFstatPacket) UnmarshalBinary(b []byte) error {
@@ -341,7 +349,7 @@ type sshFxpClosePacket struct {
func (p sshFxpClosePacket) id() uint32 { return p.ID }
func (p sshFxpClosePacket) MarshalBinary() ([]byte, error) {
- return marshalIDString(ssh_FXP_CLOSE, p.ID, p.Handle)
+ return marshalIDString(sshFxpClose, p.ID, p.Handle)
}
func (p *sshFxpClosePacket) UnmarshalBinary(b []byte) error {
@@ -356,7 +364,7 @@ type sshFxpRemovePacket struct {
func (p sshFxpRemovePacket) id() uint32 { return p.ID }
func (p sshFxpRemovePacket) MarshalBinary() ([]byte, error) {
- return marshalIDString(ssh_FXP_REMOVE, p.ID, p.Filename)
+ return marshalIDString(sshFxpRemove, p.ID, p.Filename)
}
func (p *sshFxpRemovePacket) UnmarshalBinary(b []byte) error {
@@ -371,7 +379,7 @@ type sshFxpRmdirPacket struct {
func (p sshFxpRmdirPacket) id() uint32 { return p.ID }
func (p sshFxpRmdirPacket) MarshalBinary() ([]byte, error) {
- return marshalIDString(ssh_FXP_RMDIR, p.ID, p.Path)
+ return marshalIDString(sshFxpRmdir, p.ID, p.Path)
}
func (p *sshFxpRmdirPacket) UnmarshalBinary(b []byte) error {
@@ -392,7 +400,7 @@ func (p sshFxpSymlinkPacket) MarshalBinary() ([]byte, error) {
4 + len(p.Linkpath)
b := make([]byte, 0, l)
- b = append(b, ssh_FXP_SYMLINK)
+ b = append(b, sshFxpSymlink)
b = marshalUint32(b, p.ID)
b = marshalString(b, p.Targetpath)
b = marshalString(b, p.Linkpath)
@@ -411,6 +419,30 @@ func (p *sshFxpSymlinkPacket) UnmarshalBinary(b []byte) error {
return nil
}
+type sshFxpHardlinkPacket struct {
+ ID uint32
+ Oldpath string
+ Newpath string
+}
+
+func (p sshFxpHardlinkPacket) id() uint32 { return p.ID }
+
+func (p sshFxpHardlinkPacket) MarshalBinary() ([]byte, error) {
+ const ext = "[email protected]"
+ l := 1 + 4 + // type(byte) + uint32
+ 4 + len(ext) +
+ 4 + len(p.Oldpath) +
+ 4 + len(p.Newpath)
+
+ b := make([]byte, 0, l)
+ b = append(b, sshFxpExtended)
+ b = marshalUint32(b, p.ID)
+ b = marshalString(b, ext)
+ b = marshalString(b, p.Oldpath)
+ b = marshalString(b, p.Newpath)
+ return b, nil
+}
+
type sshFxpReadlinkPacket struct {
ID uint32
Path string
@@ -419,7 +451,7 @@ type sshFxpReadlinkPacket struct {
func (p sshFxpReadlinkPacket) id() uint32 { return p.ID }
func (p sshFxpReadlinkPacket) MarshalBinary() ([]byte, error) {
- return marshalIDString(ssh_FXP_READLINK, p.ID, p.Path)
+ return marshalIDString(sshFxpReadlink, p.ID, p.Path)
}
func (p *sshFxpReadlinkPacket) UnmarshalBinary(b []byte) error {
@@ -434,7 +466,7 @@ type sshFxpRealpathPacket struct {
func (p sshFxpRealpathPacket) id() uint32 { return p.ID }
func (p sshFxpRealpathPacket) MarshalBinary() ([]byte, error) {
- return marshalIDString(ssh_FXP_REALPATH, p.ID, p.Path)
+ return marshalIDString(sshFxpRealpath, p.ID, p.Path)
}
func (p *sshFxpRealpathPacket) UnmarshalBinary(b []byte) error {
@@ -464,7 +496,7 @@ type sshFxpNamePacket struct {
func (p sshFxpNamePacket) MarshalBinary() ([]byte, error) {
b := []byte{}
- b = append(b, ssh_FXP_NAME)
+ b = append(b, sshFxpName)
b = marshalUint32(b, p.ID)
b = marshalUint32(b, uint32(len(p.NameAttrs)))
for _, na := range p.NameAttrs {
@@ -493,7 +525,7 @@ func (p sshFxpOpenPacket) MarshalBinary() ([]byte, error) {
4 + 4
b := make([]byte, 0, l)
- b = append(b, ssh_FXP_OPEN)
+ b = append(b, sshFxpOpen)
b = marshalUint32(b, p.ID)
b = marshalString(b, p.Path)
b = marshalUint32(b, p.Pflags)
@@ -530,7 +562,7 @@ func (p sshFxpReadPacket) MarshalBinary() ([]byte, error) {
8 + 4 // uint64 + uint32
b := make([]byte, 0, l)
- b = append(b, ssh_FXP_READ)
+ b = append(b, sshFxpRead)
b = marshalUint32(b, p.ID)
b = marshalString(b, p.Handle)
b = marshalUint64(b, p.Offset)
@@ -566,7 +598,7 @@ func (p sshFxpRenamePacket) MarshalBinary() ([]byte, error) {
4 + len(p.Newpath)
b := make([]byte, 0, l)
- b = append(b, ssh_FXP_RENAME)
+ b = append(b, sshFxpRename)
b = marshalUint32(b, p.ID)
b = marshalString(b, p.Oldpath)
b = marshalString(b, p.Newpath)
@@ -601,7 +633,7 @@ func (p sshFxpPosixRenamePacket) MarshalBinary() ([]byte, error) {
4 + len(p.Newpath)
b := make([]byte, 0, l)
- b = append(b, ssh_FXP_EXTENDED)
+ b = append(b, sshFxpExtended)
b = marshalUint32(b, p.ID)
b = marshalString(b, ext)
b = marshalString(b, p.Oldpath)
@@ -626,7 +658,7 @@ func (p sshFxpWritePacket) MarshalBinary() ([]byte, error) {
len(p.Data)
b := make([]byte, 0, l)
- b = append(b, ssh_FXP_WRITE)
+ b = append(b, sshFxpWrite)
b = marshalUint32(b, p.ID)
b = marshalString(b, p.Handle)
b = marshalUint64(b, p.Offset)
@@ -667,7 +699,7 @@ func (p sshFxpMkdirPacket) MarshalBinary() ([]byte, error) {
4 // uint32
b := make([]byte, 0, l)
- b = append(b, ssh_FXP_MKDIR)
+ b = append(b, sshFxpMkdir)
b = marshalUint32(b, p.ID)
b = marshalString(b, p.Path)
b = marshalUint32(b, p.Flags)
@@ -709,7 +741,7 @@ func (p sshFxpSetstatPacket) MarshalBinary() ([]byte, error) {
4 // uint32 + uint64
b := make([]byte, 0, l)
- b = append(b, ssh_FXP_SETSTAT)
+ b = append(b, sshFxpSetstat)
b = marshalUint32(b, p.ID)
b = marshalString(b, p.Path)
b = marshalUint32(b, p.Flags)
@@ -723,7 +755,7 @@ func (p sshFxpFsetstatPacket) MarshalBinary() ([]byte, error) {
4 // uint32 + uint64
b := make([]byte, 0, l)
- b = append(b, ssh_FXP_FSETSTAT)
+ b = append(b, sshFxpFsetstat)
b = marshalUint32(b, p.ID)
b = marshalString(b, p.Handle)
b = marshalUint32(b, p.Flags)
@@ -763,7 +795,7 @@ type sshFxpHandlePacket struct {
}
func (p sshFxpHandlePacket) MarshalBinary() ([]byte, error) {
- b := []byte{ssh_FXP_HANDLE}
+ b := []byte{sshFxpHandle}
b = marshalUint32(b, p.ID)
b = marshalString(b, p.Handle)
return b, nil
@@ -775,7 +807,7 @@ type sshFxpStatusPacket struct {
}
func (p sshFxpStatusPacket) MarshalBinary() ([]byte, error) {
- b := []byte{ssh_FXP_STATUS}
+ b := []byte{sshFxpStatus}
b = marshalUint32(b, p.ID)
b = marshalStatus(b, p.StatusError)
return b, nil
@@ -788,7 +820,7 @@ type sshFxpDataPacket struct {
}
func (p sshFxpDataPacket) MarshalBinary() ([]byte, error) {
- b := []byte{ssh_FXP_DATA}
+ b := []byte{sshFxpData}
b = marshalUint32(b, p.ID)
b = marshalUint32(b, p.Length)
b = append(b, p.Data[:p.Length]...)
@@ -823,7 +855,7 @@ func (p sshFxpStatvfsPacket) MarshalBinary() ([]byte, error) {
b := make([]byte, 0, l)
- b = append(b, ssh_FXP_EXTENDED)
+ b = append(b, sshFxpExtended)
b = marshalUint32(b, p.ID)
b = marshalString(b, "[email protected]")
b = marshalString(b, p.Path)
@@ -856,10 +888,10 @@ func (p *StatVFS) FreeSpace() uint64 {
return p.Frsize * p.Bfree
}
-// Convert to ssh_FXP_EXTENDED_REPLY packet binary format
+// MarshalBinary converts to ssh_FXP_EXTENDED_REPLY packet binary format
func (p *StatVFS) MarshalBinary() ([]byte, error) {
var buf bytes.Buffer
- buf.Write([]byte{ssh_FXP_EXTENDED_REPLY})
+ buf.Write([]byte{sshFxpExtendedReply})
err := binary.Write(&buf, binary.BigEndian, p)
return buf.Bytes(), err
}
@@ -903,6 +935,8 @@ func (p *sshFxpExtendedPacket) UnmarshalBinary(b []byte) error {
p.SpecificPacket = &sshFxpExtendedPacketStatVFS{}
p.SpecificPacket = &sshFxpExtendedPacketPosixRename{}
+ p.SpecificPacket = &sshFxpExtendedPacketHardlink{}
default:
return errors.Wrapf(errUnknownExtendedPacket, "packet type %v", p.SpecificPacket)
}
@@ -957,3 +991,32 @@ func (p sshFxpExtendedPacketPosixRename) respond(s *Server) responsePacket {
err := os.Rename(p.Oldpath, p.Newpath)
return statusFromError(p, err)
}
+
+type sshFxpExtendedPacketHardlink struct {
+ ID uint32
+ ExtendedRequest string
+ Oldpath string
+ Newpath string
+}
+
+// https://github.com/openssh/openssh-portable/blob/master/PROTOCOL
+func (p sshFxpExtendedPacketHardlink) id() uint32 { return p.ID }
+func (p sshFxpExtendedPacketHardlink) readonly() bool { return true }
+func (p *sshFxpExtendedPacketHardlink) UnmarshalBinary(b []byte) error {
+ var err error
+ if p.ID, b, err = unmarshalUint32Safe(b); err != nil {
+ return err
+ } else if p.ExtendedRequest, b, err = unmarshalStringSafe(b); err != nil {
+ return err
+ } else if p.Oldpath, b, err = unmarshalStringSafe(b); err != nil {
+ return err
+ } else if p.Newpath, _, err = unmarshalStringSafe(b); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (p sshFxpExtendedPacketHardlink) respond(s *Server) responsePacket {
+ err := os.Link(p.Oldpath, p.Newpath)
+ return statusFromError(p, err)
+}
diff --git a/vendor/github.com/pkg/sftp/request-attrs.go b/vendor/github.com/pkg/sftp/request-attrs.go
index 31b1eaa66..7c2e5c122 100644
--- a/vendor/github.com/pkg/sftp/request-attrs.go
+++ b/vendor/github.com/pkg/sftp/request-attrs.go
@@ -5,7 +5,7 @@ package sftp
// request and AttrFlags() and Attributes() when working with SetStat requests.
import "os"
-// File Open and Write Flags. Correlate directly with with os.OpenFile flags
+// FileOpenFlags defines Open and Write Flags. Correlate directly with with os.OpenFile flags
// (https://golang.org/pkg/os/#pkg-constants).
type FileOpenFlags struct {
Read, Write, Append, Creat, Trunc, Excl bool
@@ -13,12 +13,12 @@ type FileOpenFlags struct {
func newFileOpenFlags(flags uint32) FileOpenFlags {
return FileOpenFlags{
- Read: flags&ssh_FXF_READ != 0,
- Write: flags&ssh_FXF_WRITE != 0,
- Append: flags&ssh_FXF_APPEND != 0,
- Creat: flags&ssh_FXF_CREAT != 0,
- Trunc: flags&ssh_FXF_TRUNC != 0,
- Excl: flags&ssh_FXF_EXCL != 0,
+ Read: flags&sshFxfRead != 0,
+ Write: flags&sshFxfWrite != 0,
+ Append: flags&sshFxfAppend != 0,
+ Creat: flags&sshFxfCreat != 0,
+ Trunc: flags&sshFxfTrunc != 0,
+ Excl: flags&sshFxfExcl != 0,
}
}
@@ -28,7 +28,7 @@ func (r *Request) Pflags() FileOpenFlags {
return newFileOpenFlags(r.Flags)
}
-// Flags that indicate whether SFTP file attributes were passed. When a flag is
+// FileAttrFlags that indicate whether SFTP file attributes were passed. When a flag is
// true the corresponding attribute should be available from the FileStat
// object returned by Attributes method. Used with SetStat.
type FileAttrFlags struct {
@@ -37,14 +37,14 @@ type FileAttrFlags struct {
func newFileAttrFlags(flags uint32) FileAttrFlags {
return FileAttrFlags{
- Size: (flags & ssh_FILEXFER_ATTR_SIZE) != 0,
- UidGid: (flags & ssh_FILEXFER_ATTR_UIDGID) != 0,
- Permissions: (flags & ssh_FILEXFER_ATTR_PERMISSIONS) != 0,
- Acmodtime: (flags & ssh_FILEXFER_ATTR_ACMODTIME) != 0,
+ Size: (flags & sshFileXferAttrSize) != 0,
+ UidGid: (flags & sshFileXferAttrUIDGID) != 0,
+ Permissions: (flags & sshFileXferAttrPermissions) != 0,
+ Acmodtime: (flags & sshFileXferAttrACmodTime) != 0,
}
}
-// FileAttrFlags returns a FileAttrFlags boolean struct based on the
+// AttrFlags returns a FileAttrFlags boolean struct based on the
// bitmap/uint32 file attribute flags from the SFTP packaet.
func (r *Request) AttrFlags() FileAttrFlags {
return newFileAttrFlags(r.Flags)
@@ -55,7 +55,7 @@ func (a FileStat) FileMode() os.FileMode {
return os.FileMode(a.Mode)
}
-// Attributres parses file attributes byte blob and return them in a
+// Attributes parses file attributes byte blob and return them in a
// FileStat object.
func (r *Request) Attributes() *FileStat {
fs, _ := getFileStat(r.Flags, r.Attrs)
diff --git a/vendor/github.com/pkg/sftp/request-errors.go b/vendor/github.com/pkg/sftp/request-errors.go
index 00451e74d..e4b4b86dc 100644
--- a/vendor/github.com/pkg/sftp/request-errors.go
+++ b/vendor/github.com/pkg/sftp/request-errors.go
@@ -1,40 +1,52 @@
package sftp
+type fxerr uint32
+
// Error types that match the SFTP's SSH_FXP_STATUS codes. Gives you more
// direct control of the errors being sent vs. letting the library work them
// out from the standard os/io errors.
+const (
+ ErrSSHFxOk = fxerr(sshFxOk)
+ ErrSSHFxEOF = fxerr(sshFxEOF)
+ ErrSSHFxNoSuchFile = fxerr(sshFxNoSuchFile)
+ ErrSSHFxPermissionDenied = fxerr(sshFxPermissionDenied)
+ ErrSSHFxFailure = fxerr(sshFxFailure)
+ ErrSSHFxBadMessage = fxerr(sshFxBadMessage)
+ ErrSSHFxNoConnection = fxerr(sshFxNoConnection)
+ ErrSSHFxConnectionLost = fxerr(sshFxConnectionLost)
+ ErrSSHFxOpUnsupported = fxerr(sshFxOPUnsupported)
+)
-type fxerr uint32
-
+// Deprecated error types, these are aliases for the new ones, please use the new ones directly
const (
- ErrSshFxOk = fxerr(ssh_FX_OK)
- ErrSshFxEof = fxerr(ssh_FX_EOF)
- ErrSshFxNoSuchFile = fxerr(ssh_FX_NO_SUCH_FILE)
- ErrSshFxPermissionDenied = fxerr(ssh_FX_PERMISSION_DENIED)
- ErrSshFxFailure = fxerr(ssh_FX_FAILURE)
- ErrSshFxBadMessage = fxerr(ssh_FX_BAD_MESSAGE)
- ErrSshFxNoConnection = fxerr(ssh_FX_NO_CONNECTION)
- ErrSshFxConnectionLost = fxerr(ssh_FX_CONNECTION_LOST)
- ErrSshFxOpUnsupported = fxerr(ssh_FX_OP_UNSUPPORTED)
+ ErrSshFxOk = ErrSSHFxOk
+ ErrSshFxEof = ErrSSHFxEOF
+ ErrSshFxNoSuchFile = ErrSSHFxNoSuchFile
+ ErrSshFxPermissionDenied = ErrSSHFxPermissionDenied
+ ErrSshFxFailure = ErrSSHFxFailure
+ ErrSshFxBadMessage = ErrSSHFxBadMessage
+ ErrSshFxNoConnection = ErrSSHFxNoConnection
+ ErrSshFxConnectionLost = ErrSSHFxConnectionLost
+ ErrSshFxOpUnsupported = ErrSSHFxOpUnsupported
)
func (e fxerr) Error() string {
switch e {
- case ErrSshFxOk:
+ case ErrSSHFxOk:
return "OK"
- case ErrSshFxEof:
+ case ErrSSHFxEOF:
return "EOF"
- case ErrSshFxNoSuchFile:
+ case ErrSSHFxNoSuchFile:
return "No Such File"
- case ErrSshFxPermissionDenied:
+ case ErrSSHFxPermissionDenied:
return "Permission Denied"
- case ErrSshFxBadMessage:
+ case ErrSSHFxBadMessage:
return "Bad Message"
- case ErrSshFxNoConnection:
+ case ErrSSHFxNoConnection:
return "No Connection"
- case ErrSshFxConnectionLost:
+ case ErrSSHFxConnectionLost:
return "Connection Lost"
- case ErrSshFxOpUnsupported:
+ case ErrSSHFxOpUnsupported:
return "Operation Unsupported"
default:
return "Failure"
diff --git a/vendor/github.com/pkg/sftp/request-example.go b/vendor/github.com/pkg/sftp/request-example.go
index e5abd1842..9f6ae0e69 100644
--- a/vendor/github.com/pkg/sftp/request-example.go
+++ b/vendor/github.com/pkg/sftp/request-example.go
@@ -11,6 +11,7 @@ import (
"os"
"path/filepath"
"sort"
+ "strings"
"sync"
"syscall"
"time"
@@ -90,18 +91,51 @@ func (fs *root) Filecmd(r *Request) error {
file.name = r.Target
fs.files[r.Target] = file
delete(fs.files, r.Filepath)
+
+ if file.IsDir() {
+ for path, file := range fs.files {
+ if strings.HasPrefix(path, r.Filepath+"/") {
+ file.name = r.Target + path[len(r.Filepath):]
+ fs.files[r.Target+path[len(r.Filepath):]] = file
+ delete(fs.files, path)
+ }
+ }
+ }
case "Rmdir", "Remove":
- _, err := fs.fetch(filepath.Dir(r.Filepath))
+ file, err := fs.fetch(filepath.Dir(r.Filepath))
if err != nil {
return err
}
+
+ if file.IsDir() {
+ for path := range fs.files {
+ if strings.HasPrefix(path, r.Filepath+"/") {
+ return &os.PathError{
+ Op: "remove",
+ Path: r.Filepath + "/",
+ Err: fmt.Errorf("directory is not empty"),
+ }
+ }
+ }
+ }
+
delete(fs.files, r.Filepath)
+
case "Mkdir":
_, err := fs.fetch(filepath.Dir(r.Filepath))
if err != nil {
return err
}
fs.files[r.Filepath] = newMemFile(r.Filepath, true)
+ case "Link":
+ file, err := fs.fetch(r.Filepath)
+ if err != nil {
+ return err
+ }
+ if file.IsDir() {
+ return fmt.Errorf("hard link not allowed for directory")
+ }
+ fs.files[r.Target] = file
case "Symlink":
_, err := fs.fetch(r.Filepath)
if err != nil {
@@ -147,15 +181,15 @@ func (fs *root) Filelist(r *Request) (ListerAt, error) {
if !file.IsDir() {
return nil, syscall.ENOTDIR
}
- ordered_names := []string{}
- for fn, _ := range fs.files {
+ orderedNames := []string{}
+ for fn := range fs.files {
if filepath.Dir(fn) == r.Filepath {
- ordered_names = append(ordered_names, fn)
+ orderedNames = append(orderedNames, fn)
}
}
- sort.Strings(ordered_names)
- list := make([]os.FileInfo, len(ordered_names))
- for i, fn := range ordered_names {
+ sort.Strings(orderedNames)
+ list := make([]os.FileInfo, len(orderedNames))
+ for i, fn := range orderedNames {
list[i] = fs.files[fn]
}
return listerat(list), nil
@@ -199,13 +233,15 @@ func (fs *root) fetch(path string) (*memFile, error) {
// Implements os.FileInfo, Reader and Writer interfaces.
// These are the 3 interfaces necessary for the Handlers.
+// Implements the optional interface TransferError.
type memFile struct {
- name string
- modtime time.Time
- symlink string
- isdir bool
- content []byte
- contentLock sync.RWMutex
+ name string
+ modtime time.Time
+ symlink string
+ isdir bool
+ content []byte
+ transferError error
+ contentLock sync.RWMutex
}
// factory to make sure modtime is set
@@ -265,3 +301,7 @@ func (f *memFile) WriteAt(p []byte, off int64) (int, error) {
copy(f.content[off:], p)
return len(p), nil
}
+
+func (f *memFile) TransferError(err error) {
+ f.transferError = err
+}
diff --git a/vendor/github.com/pkg/sftp/request-interfaces.go b/vendor/github.com/pkg/sftp/request-interfaces.go
index f69cedc5c..dd224cdad 100644
--- a/vendor/github.com/pkg/sftp/request-interfaces.go
+++ b/vendor/github.com/pkg/sftp/request-interfaces.go
@@ -25,6 +25,8 @@ type FileReader interface {
// The request server code will call Close() on the returned io.WriterAt
// ojbect if an io.Closer type assertion succeeds.
// Note in cases of an error, the error text will be sent to the client.
+// Note when receiving an Append flag it is important to not open files using
+// O_APPEND if you plan to use WriteAt, as they conflict.
// Called for Methods: Put, Open
type FileWriter interface {
Filewrite(*Request) (io.WriterAt, error)
@@ -32,7 +34,7 @@ type FileWriter interface {
// FileCmder should return an error
// Note in cases of an error, the error text will be sent to the client.
-// Called for Methods: Setstat, Rename, Rmdir, Mkdir, Symlink, Remove
+// Called for Methods: Setstat, Rename, Rmdir, Mkdir, Link, Symlink, Remove
type FileCmder interface {
Filecmd(*Request) error
}
@@ -53,3 +55,10 @@ type FileLister interface {
type ListerAt interface {
ListAt([]os.FileInfo, int64) (int, error)
}
+
+// TransferError is an optional interface that readerAt and writerAt
+// can implement to be notified about the error causing Serve() to exit
+// with the request still open
+type TransferError interface {
+ TransferError(err error)
+}
diff --git a/vendor/github.com/pkg/sftp/request-server.go b/vendor/github.com/pkg/sftp/request-server.go
index 2e99720a9..d15f3a110 100644
--- a/vendor/github.com/pkg/sftp/request-server.go
+++ b/vendor/github.com/pkg/sftp/request-server.go
@@ -116,11 +116,7 @@ func (rs *RequestServer) Serve() error {
if err != nil {
switch errors.Cause(err) {
case errUnknownExtendedPacket:
- if err := rs.serverConn.sendError(pkt, ErrSshFxOpUnsupported); err != nil {
- debug("failed to send err packet: %v", err)
- rs.conn.Close() // shuts down recvPacket
- break
- }
+ // do nothing
default:
debug("makePacket err: %v", err)
rs.conn.Close() // shuts down recvPacket
@@ -137,6 +133,20 @@ func (rs *RequestServer) Serve() error {
// make sure all open requests are properly closed
// (eg. possible on dropped connections, client crashes, etc.)
for handle, req := range rs.openRequests {
+ if err != nil {
+ req.state.RLock()
+ writer := req.state.writerAt
+ reader := req.state.readerAt
+ req.state.RUnlock()
+ if t, ok := writer.(TransferError); ok {
+ debug("notify error: %v to writer: %v\n", err, writer)
+ t.TransferError(err)
+ }
+ if t, ok := reader.(TransferError); ok {
+ debug("notify error: %v to reader: %v\n", err, reader)
+ t.TransferError(err)
+ }
+ }
delete(rs.openRequests, handle)
req.close()
}
@@ -148,10 +158,16 @@ func (rs *RequestServer) packetWorker(
ctx context.Context, pktChan chan orderedRequest,
) error {
for pkt := range pktChan {
+ if epkt, ok := pkt.requestPacket.(*sshFxpExtendedPacket); ok {
+ if epkt.SpecificPacket != nil {
+ pkt.requestPacket = epkt.SpecificPacket
+ }
+ }
+
var rpkt responsePacket
switch pkt := pkt.requestPacket.(type) {
case *sshFxInitPacket:
- rpkt = sshFxVersionPacket{Version: sftpProtocolVersion}
+ rpkt = sshFxVersionPacket{Version: sftpProtocolVersion, Extensions: sftpExtensions}
case *sshFxpClosePacket:
handle := pkt.getHandle()
rpkt = statusFromError(pkt, rs.closeRequest(handle))
@@ -174,6 +190,10 @@ func (rs *RequestServer) packetWorker(
request = NewRequest("Stat", request.Filepath)
rpkt = request.call(rs.Handlers, pkt)
}
+ case *sshFxpExtendedPacketPosixRename:
+ request := NewRequest("Rename", pkt.Oldpath)
+ request.Target = pkt.Newpath
+ rpkt = request.call(rs.Handlers, pkt)
case hasHandle:
handle := pkt.getHandle()
request, ok := rs.getRequest(handle)
@@ -187,11 +207,11 @@ func (rs *RequestServer) packetWorker(
rpkt = request.call(rs.Handlers, pkt)
request.close()
default:
- return errors.Errorf("unexpected packet type %T", pkt)
+ rpkt = statusFromError(pkt, ErrSSHFxOpUnsupported)
}
rs.pktMgr.readyPacket(
- rs.pktMgr.newOrderedResponse(rpkt, pkt.orderId()))
+ rs.pktMgr.newOrderedResponse(rpkt, pkt.orderID()))
}
return nil
}
diff --git a/vendor/github.com/pkg/sftp/request-unix.go b/vendor/github.com/pkg/sftp/request-unix.go
index a71a8980a..e2c586f06 100644
--- a/vendor/github.com/pkg/sftp/request-unix.go
+++ b/vendor/github.com/pkg/sftp/request-unix.go
@@ -14,10 +14,10 @@ func fakeFileInfoSys() interface{} {
func testOsSys(sys interface{}) error {
fstat := sys.(*FileStat)
if fstat.UID != uint32(65534) {
- return errors.New("Uid failed to match.")
+ return errors.New("Uid failed to match")
}
if fstat.GID != uint32(65534) {
- return errors.New("Gid failed to match:")
+ return errors.New("Gid failed to match")
}
return nil
}
diff --git a/vendor/github.com/pkg/sftp/request.go b/vendor/github.com/pkg/sftp/request.go
index e694e5f1b..37864612f 100644
--- a/vendor/github.com/pkg/sftp/request.go
+++ b/vendor/github.com/pkg/sftp/request.go
@@ -18,7 +18,7 @@ var MaxFilelist int64 = 100
// Request contains the data and state for the incoming service request.
type Request struct {
// Get, Put, Setstat, Stat, Rename, Remove
- // Rmdir, Mkdir, List, Readlink, Symlink
+ // Rmdir, Mkdir, List, Readlink, Link, Symlink
Method string
Filepath string
Flags uint32
@@ -56,6 +56,8 @@ func requestFromPacket(ctx context.Context, pkt hasPath) *Request {
request.Target = cleanPath(p.Newpath)
case *sshFxpSymlinkPacket:
request.Target = cleanPath(p.Linkpath)
+ case *sshFxpExtendedPacketHardlink:
+ request.Target = cleanPath(p.Newpath)
}
return request
}
@@ -158,7 +160,7 @@ func (r *Request) call(handlers Handlers, pkt requestPacket) responsePacket {
return fileget(handlers.FileGet, r, pkt)
case "Put":
return fileput(handlers.FilePut, r, pkt)
- case "Setstat", "Rename", "Rmdir", "Mkdir", "Symlink", "Remove":
+ case "Setstat", "Rename", "Rmdir", "Mkdir", "Link", "Symlink", "Remove":
return filecmd(handlers.FileCmd, r, pkt)
case "List":
return filelist(handlers.FileList, r, pkt)
@@ -378,6 +380,8 @@ func requestMethod(p requestPacket) (method string) {
method = "Readlink"
case *sshFxpMkdirPacket:
method = "Mkdir"
+ case *sshFxpExtendedPacketHardlink:
+ method = "Link"
}
return method
}
diff --git a/vendor/github.com/pkg/sftp/server.go b/vendor/github.com/pkg/sftp/server.go
index 0fac1b668..905b75c29 100644
--- a/vendor/github.com/pkg/sftp/server.go
+++ b/vendor/github.com/pkg/sftp/server.go
@@ -18,6 +18,7 @@ import (
)
const (
+ // SftpServerWorkerCount defines the number of workers for the SFTP server
SftpServerWorkerCount = 8
)
@@ -141,7 +142,7 @@ func (svr *Server) sftpServerWorker(pktChan chan orderedRequest) error {
if !readonly && svr.readOnly {
svr.sendPacket(orderedResponse{
responsePacket: statusFromError(pkt, syscall.EPERM),
- orderid: pkt.orderId()})
+ orderid: pkt.orderID()})
continue
}
@@ -156,7 +157,10 @@ func handlePacket(s *Server, p orderedRequest) error {
var rpkt responsePacket
switch p := p.requestPacket.(type) {
case *sshFxInitPacket:
- rpkt = sshFxVersionPacket{Version: sftpProtocolVersion}
+ rpkt = sshFxVersionPacket{
+ Version: sftpProtocolVersion,
+ Extensions: sftpExtensions,
+ }
case *sshFxpStatPacket:
// stat the requested file
info, err := os.Stat(p.Path)
@@ -246,7 +250,7 @@ func handlePacket(s *Server, p orderedRequest) error {
rpkt = sshFxpOpenPacket{
ID: p.ID,
Path: p.Path,
- Pflags: ssh_FXF_READ,
+ Pflags: sshFxfRead,
}.respond(s)
}
case *sshFxpReadPacket:
@@ -276,13 +280,19 @@ func handlePacket(s *Server, p orderedRequest) error {
_, err = f.WriteAt(p.Data, int64(p.Offset))
}
rpkt = statusFromError(p, err)
+ case *sshFxpExtendedPacket:
+ if p.SpecificPacket == nil {
+ rpkt = statusFromError(p, ErrSSHFxOpUnsupported)
+ } else {
+ rpkt = p.respond(s)
+ }
case serverRespondablePacket:
rpkt = p.respond(s)
default:
return errors.Errorf("unexpected packet type %T", p)
}
- s.pktMgr.readyPacket(s.pktMgr.newOrderedResponse(rpkt, p.orderId()))
+ s.pktMgr.readyPacket(s.pktMgr.newOrderedResponse(rpkt, p.orderID()))
return nil
}
@@ -315,11 +325,11 @@ func (svr *Server) Serve() error {
if err != nil {
switch errors.Cause(err) {
case errUnknownExtendedPacket:
- if err := svr.serverConn.sendError(pkt, ErrSshFxOpUnsupported); err != nil {
- debug("failed to send err packet: %v", err)
- svr.conn.Close() // shuts down recvPacket
- break
- }
+ //if err := svr.serverConn.sendError(pkt, ErrSshFxOpUnsupported); err != nil {
+ // debug("failed to send err packet: %v", err)
+ // svr.conn.Close() // shuts down recvPacket
+ // break
+ //}
default:
debug("makePacket err: %v", err)
svr.conn.Close() // shuts down recvPacket
@@ -354,7 +364,7 @@ type sshFxpStatResponse struct {
}
func (p sshFxpStatResponse) MarshalBinary() ([]byte, error) {
- b := []byte{ssh_FXP_ATTRS}
+ b := []byte{sshFxpAttrs}
b = marshalUint32(b, p.ID)
b = marshalFileInfo(b, p.info)
return b, nil
@@ -363,7 +373,7 @@ func (p sshFxpStatResponse) MarshalBinary() ([]byte, error) {
var emptyFileStat = []interface{}{uint32(0)}
func (p sshFxpOpenPacket) readonly() bool {
- return !p.hasPflags(ssh_FXF_WRITE)
+ return !p.hasPflags(sshFxfWrite)
}
func (p sshFxpOpenPacket) hasPflags(flags ...uint32) bool {
@@ -377,27 +387,27 @@ func (p sshFxpOpenPacket) hasPflags(flags ...uint32) bool {
func (p sshFxpOpenPacket) respond(svr *Server) responsePacket {
var osFlags int
- if p.hasPflags(ssh_FXF_READ, ssh_FXF_WRITE) {
+ if p.hasPflags(sshFxfRead, sshFxfWrite) {
osFlags |= os.O_RDWR
- } else if p.hasPflags(ssh_FXF_WRITE) {
+ } else if p.hasPflags(sshFxfWrite) {
osFlags |= os.O_WRONLY
- } else if p.hasPflags(ssh_FXF_READ) {
+ } else if p.hasPflags(sshFxfRead) {
osFlags |= os.O_RDONLY
} else {
// how are they opening?
return statusFromError(p, syscall.EINVAL)
}
- if p.hasPflags(ssh_FXF_APPEND) {
- osFlags |= os.O_APPEND
- }
- if p.hasPflags(ssh_FXF_CREAT) {
+ // Don't use O_APPEND flag as it conflicts with WriteAt.
+ // The sshFxfAppend flag is a no-op here as the client sends the offsets.
+
+ if p.hasPflags(sshFxfCreat) {
osFlags |= os.O_CREATE
}
- if p.hasPflags(ssh_FXF_TRUNC) {
+ if p.hasPflags(sshFxfTrunc) {
osFlags |= os.O_TRUNC
}
- if p.hasPflags(ssh_FXF_EXCL) {
+ if p.hasPflags(sshFxfExcl) {
osFlags |= os.O_EXCL
}
@@ -439,19 +449,19 @@ func (p sshFxpSetstatPacket) respond(svr *Server) responsePacket {
var err error
debug("setstat name \"%s\"", p.Path)
- if (p.Flags & ssh_FILEXFER_ATTR_SIZE) != 0 {
+ if (p.Flags & sshFileXferAttrSize) != 0 {
var size uint64
if size, b, err = unmarshalUint64Safe(b); err == nil {
err = os.Truncate(p.Path, int64(size))
}
}
- if (p.Flags & ssh_FILEXFER_ATTR_PERMISSIONS) != 0 {
+ if (p.Flags & sshFileXferAttrPermissions) != 0 {
var mode uint32
if mode, b, err = unmarshalUint32Safe(b); err == nil {
err = os.Chmod(p.Path, os.FileMode(mode))
}
}
- if (p.Flags & ssh_FILEXFER_ATTR_ACMODTIME) != 0 {
+ if (p.Flags & sshFileXferAttrACmodTime) != 0 {
var atime uint32
var mtime uint32
if atime, b, err = unmarshalUint32Safe(b); err != nil {
@@ -462,7 +472,7 @@ func (p sshFxpSetstatPacket) respond(svr *Server) responsePacket {
err = os.Chtimes(p.Path, atimeT, mtimeT)
}
}
- if (p.Flags & ssh_FILEXFER_ATTR_UIDGID) != 0 {
+ if (p.Flags & sshFileXferAttrUIDGID) != 0 {
var uid uint32
var gid uint32
if uid, b, err = unmarshalUint32Safe(b); err != nil {
@@ -486,19 +496,19 @@ func (p sshFxpFsetstatPacket) respond(svr *Server) responsePacket {
var err error
debug("fsetstat name \"%s\"", f.Name())
- if (p.Flags & ssh_FILEXFER_ATTR_SIZE) != 0 {
+ if (p.Flags & sshFileXferAttrSize) != 0 {
var size uint64
if size, b, err = unmarshalUint64Safe(b); err == nil {
err = f.Truncate(int64(size))
}
}
- if (p.Flags & ssh_FILEXFER_ATTR_PERMISSIONS) != 0 {
+ if (p.Flags & sshFileXferAttrPermissions) != 0 {
var mode uint32
if mode, b, err = unmarshalUint32Safe(b); err == nil {
err = f.Chmod(os.FileMode(mode))
}
}
- if (p.Flags & ssh_FILEXFER_ATTR_ACMODTIME) != 0 {
+ if (p.Flags & sshFileXferAttrACmodTime) != 0 {
var atime uint32
var mtime uint32
if atime, b, err = unmarshalUint32Safe(b); err != nil {
@@ -509,7 +519,7 @@ func (p sshFxpFsetstatPacket) respond(svr *Server) responsePacket {
err = os.Chtimes(f.Name(), atimeT, mtimeT)
}
}
- if (p.Flags & ssh_FILEXFER_ATTR_UIDGID) != 0 {
+ if (p.Flags & sshFileXferAttrUIDGID) != 0 {
var uid uint32
var gid uint32
if uid, b, err = unmarshalUint32Safe(b); err != nil {
@@ -526,30 +536,30 @@ func (p sshFxpFsetstatPacket) respond(svr *Server) responsePacket {
func translateErrno(errno syscall.Errno) uint32 {
switch errno {
case 0:
- return ssh_FX_OK
+ return sshFxOk
case syscall.ENOENT:
- return ssh_FX_NO_SUCH_FILE
+ return sshFxNoSuchFile
case syscall.EPERM:
- return ssh_FX_PERMISSION_DENIED
+ return sshFxPermissionDenied
}
- return ssh_FX_FAILURE
+ return sshFxFailure
}
func statusFromError(p ider, err error) sshFxpStatusPacket {
ret := sshFxpStatusPacket{
ID: p.id(),
StatusError: StatusError{
- // ssh_FX_OK = 0
- // ssh_FX_EOF = 1
- // ssh_FX_NO_SUCH_FILE = 2 ENOENT
- // ssh_FX_PERMISSION_DENIED = 3
- // ssh_FX_FAILURE = 4
- // ssh_FX_BAD_MESSAGE = 5
- // ssh_FX_NO_CONNECTION = 6
- // ssh_FX_CONNECTION_LOST = 7
- // ssh_FX_OP_UNSUPPORTED = 8
- Code: ssh_FX_OK,
+ // sshFXOk = 0
+ // sshFXEOF = 1
+ // sshFXNoSuchFile = 2 ENOENT
+ // sshFXPermissionDenied = 3
+ // sshFXFailure = 4
+ // sshFXBadMessage = 5
+ // sshFXNoConnection = 6
+ // sshFXConnectionLost = 7
+ // sshFXOPUnsupported = 8
+ Code: sshFxOk,
},
}
if err == nil {
@@ -557,7 +567,7 @@ func statusFromError(p ider, err error) sshFxpStatusPacket {
}
debug("statusFromError: error is %T %#v", err, err)
- ret.StatusError.Code = ssh_FX_FAILURE
+ ret.StatusError.Code = sshFxFailure
ret.StatusError.msg = err.Error()
switch e := err.(type) {
@@ -573,9 +583,9 @@ func statusFromError(p ider, err error) sshFxpStatusPacket {
default:
switch e {
case io.EOF:
- ret.StatusError.Code = ssh_FX_EOF
+ ret.StatusError.Code = sshFxEOF
case os.ErrNotExist:
- ret.StatusError.Code = ssh_FX_NO_SUCH_FILE
+ ret.StatusError.Code = sshFxNoSuchFile
}
}
diff --git a/vendor/github.com/pkg/sftp/sftp.go b/vendor/github.com/pkg/sftp/sftp.go
index 3cdb14df8..28b1a08e1 100644
--- a/vendor/github.com/pkg/sftp/sftp.go
+++ b/vendor/github.com/pkg/sftp/sftp.go
@@ -9,139 +9,148 @@ import (
)
const (
- ssh_FXP_INIT = 1
- ssh_FXP_VERSION = 2
- ssh_FXP_OPEN = 3
- ssh_FXP_CLOSE = 4
- ssh_FXP_READ = 5
- ssh_FXP_WRITE = 6
- ssh_FXP_LSTAT = 7
- ssh_FXP_FSTAT = 8
- ssh_FXP_SETSTAT = 9
- ssh_FXP_FSETSTAT = 10
- ssh_FXP_OPENDIR = 11
- ssh_FXP_READDIR = 12
- ssh_FXP_REMOVE = 13
- ssh_FXP_MKDIR = 14
- ssh_FXP_RMDIR = 15
- ssh_FXP_REALPATH = 16
- ssh_FXP_STAT = 17
- ssh_FXP_RENAME = 18
- ssh_FXP_READLINK = 19
- ssh_FXP_SYMLINK = 20
- ssh_FXP_STATUS = 101
- ssh_FXP_HANDLE = 102
- ssh_FXP_DATA = 103
- ssh_FXP_NAME = 104
- ssh_FXP_ATTRS = 105
- ssh_FXP_EXTENDED = 200
- ssh_FXP_EXTENDED_REPLY = 201
+ sshFxpInit = 1
+ sshFxpVersion = 2
+ sshFxpOpen = 3
+ sshFxpClose = 4
+ sshFxpRead = 5
+ sshFxpWrite = 6
+ sshFxpLstat = 7
+ sshFxpFstat = 8
+ sshFxpSetstat = 9
+ sshFxpFsetstat = 10
+ sshFxpOpendir = 11
+ sshFxpReaddir = 12
+ sshFxpRemove = 13
+ sshFxpMkdir = 14
+ sshFxpRmdir = 15
+ sshFxpRealpath = 16
+ sshFxpStat = 17
+ sshFxpRename = 18
+ sshFxpReadlink = 19
+ sshFxpSymlink = 20
+ sshFxpStatus = 101
+ sshFxpHandle = 102
+ sshFxpData = 103
+ sshFxpName = 104
+ sshFxpAttrs = 105
+ sshFxpExtended = 200
+ sshFxpExtendedReply = 201
)
const (
- ssh_FX_OK = 0
- ssh_FX_EOF = 1
- ssh_FX_NO_SUCH_FILE = 2
- ssh_FX_PERMISSION_DENIED = 3
- ssh_FX_FAILURE = 4
- ssh_FX_BAD_MESSAGE = 5
- ssh_FX_NO_CONNECTION = 6
- ssh_FX_CONNECTION_LOST = 7
- ssh_FX_OP_UNSUPPORTED = 8
+ sshFxOk = 0
+ sshFxEOF = 1
+ sshFxNoSuchFile = 2
+ sshFxPermissionDenied = 3
+ sshFxFailure = 4
+ sshFxBadMessage = 5
+ sshFxNoConnection = 6
+ sshFxConnectionLost = 7
+ sshFxOPUnsupported = 8
// see draft-ietf-secsh-filexfer-13
// https://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-9.1
- ssh_FX_INVALID_HANDLE = 9
- ssh_FX_NO_SUCH_PATH = 10
- ssh_FX_FILE_ALREADY_EXISTS = 11
- ssh_FX_WRITE_PROTECT = 12
- ssh_FX_NO_MEDIA = 13
- ssh_FX_NO_SPACE_ON_FILESYSTEM = 14
- ssh_FX_QUOTA_EXCEEDED = 15
- ssh_FX_UNKNOWN_PRINCIPAL = 16
- ssh_FX_LOCK_CONFLICT = 17
- ssh_FX_DIR_NOT_EMPTY = 18
- ssh_FX_NOT_A_DIRECTORY = 19
- ssh_FX_INVALID_FILENAME = 20
- ssh_FX_LINK_LOOP = 21
- ssh_FX_CANNOT_DELETE = 22
- ssh_FX_INVALID_PARAMETER = 23
- ssh_FX_FILE_IS_A_DIRECTORY = 24
- ssh_FX_BYTE_RANGE_LOCK_CONFLICT = 25
- ssh_FX_BYTE_RANGE_LOCK_REFUSED = 26
- ssh_FX_DELETE_PENDING = 27
- ssh_FX_FILE_CORRUPT = 28
- ssh_FX_OWNER_INVALID = 29
- ssh_FX_GROUP_INVALID = 30
- ssh_FX_NO_MATCHING_BYTE_RANGE_LOCK = 31
+ sshFxInvalidHandle = 9
+ sshFxNoSuchPath = 10
+ sshFxFileAlreadyExists = 11
+ sshFxWriteProtect = 12
+ sshFxNoMedia = 13
+ sshFxNoSpaceOnFilesystem = 14
+ sshFxQuotaExceeded = 15
+ sshFxUnlnownPrincipal = 16
+ sshFxLockConflict = 17
+ sshFxDitNotEmpty = 18
+ sshFxNotADirectory = 19
+ sshFxInvalidFilename = 20
+ sshFxLinkLoop = 21
+ sshFxCannotDelete = 22
+ sshFxInvalidParameter = 23
+ sshFxFileIsADirectory = 24
+ sshFxByteRangeLockConflict = 25
+ sshFxByteRangeLockRefused = 26
+ sshFxDeletePending = 27
+ sshFxFileCorrupt = 28
+ sshFxOwnerInvalid = 29
+ sshFxGroupInvalid = 30
+ sshFxNoMatchingByteRangeLock = 31
)
const (
- ssh_FXF_READ = 0x00000001
- ssh_FXF_WRITE = 0x00000002
- ssh_FXF_APPEND = 0x00000004
- ssh_FXF_CREAT = 0x00000008
- ssh_FXF_TRUNC = 0x00000010
- ssh_FXF_EXCL = 0x00000020
+ sshFxfRead = 0x00000001
+ sshFxfWrite = 0x00000002
+ sshFxfAppend = 0x00000004
+ sshFxfCreat = 0x00000008
+ sshFxfTrunc = 0x00000010
+ sshFxfExcl = 0x00000020
+)
+
+var (
+ // supportedSFTPExtensions defines the supported extensions
+ supportedSFTPExtensions = []sshExtensionPair{
+ {"[email protected]", "1"},
+ {"[email protected]", "1"},
+ }
+ sftpExtensions = supportedSFTPExtensions
)
type fxp uint8
func (f fxp) String() string {
switch f {
- case ssh_FXP_INIT:
+ case sshFxpInit:
return "SSH_FXP_INIT"
- case ssh_FXP_VERSION:
+ case sshFxpVersion:
return "SSH_FXP_VERSION"
- case ssh_FXP_OPEN:
+ case sshFxpOpen:
return "SSH_FXP_OPEN"
- case ssh_FXP_CLOSE:
+ case sshFxpClose:
return "SSH_FXP_CLOSE"
- case ssh_FXP_READ:
+ case sshFxpRead:
return "SSH_FXP_READ"
- case ssh_FXP_WRITE:
+ case sshFxpWrite:
return "SSH_FXP_WRITE"
- case ssh_FXP_LSTAT:
+ case sshFxpLstat:
return "SSH_FXP_LSTAT"
- case ssh_FXP_FSTAT:
+ case sshFxpFstat:
return "SSH_FXP_FSTAT"
- case ssh_FXP_SETSTAT:
+ case sshFxpSetstat:
return "SSH_FXP_SETSTAT"
- case ssh_FXP_FSETSTAT:
+ case sshFxpFsetstat:
return "SSH_FXP_FSETSTAT"
- case ssh_FXP_OPENDIR:
+ case sshFxpOpendir:
return "SSH_FXP_OPENDIR"
- case ssh_FXP_READDIR:
+ case sshFxpReaddir:
return "SSH_FXP_READDIR"
- case ssh_FXP_REMOVE:
+ case sshFxpRemove:
return "SSH_FXP_REMOVE"
- case ssh_FXP_MKDIR:
+ case sshFxpMkdir:
return "SSH_FXP_MKDIR"
- case ssh_FXP_RMDIR:
+ case sshFxpRmdir:
return "SSH_FXP_RMDIR"
- case ssh_FXP_REALPATH:
+ case sshFxpRealpath:
return "SSH_FXP_REALPATH"
- case ssh_FXP_STAT:
+ case sshFxpStat:
return "SSH_FXP_STAT"
- case ssh_FXP_RENAME:
+ case sshFxpRename:
return "SSH_FXP_RENAME"
- case ssh_FXP_READLINK:
+ case sshFxpReadlink:
return "SSH_FXP_READLINK"
- case ssh_FXP_SYMLINK:
+ case sshFxpSymlink:
return "SSH_FXP_SYMLINK"
- case ssh_FXP_STATUS:
+ case sshFxpStatus:
return "SSH_FXP_STATUS"
- case ssh_FXP_HANDLE:
+ case sshFxpHandle:
return "SSH_FXP_HANDLE"
- case ssh_FXP_DATA:
+ case sshFxpData:
return "SSH_FXP_DATA"
- case ssh_FXP_NAME:
+ case sshFxpName:
return "SSH_FXP_NAME"
- case ssh_FXP_ATTRS:
+ case sshFxpAttrs:
return "SSH_FXP_ATTRS"
- case ssh_FXP_EXTENDED:
+ case sshFxpExtended:
return "SSH_FXP_EXTENDED"
- case ssh_FXP_EXTENDED_REPLY:
+ case sshFxpExtendedReply:
return "SSH_FXP_EXTENDED_REPLY"
default:
return "unknown"
@@ -152,23 +161,23 @@ type fx uint8
func (f fx) String() string {
switch f {
- case ssh_FX_OK:
+ case sshFxOk:
return "SSH_FX_OK"
- case ssh_FX_EOF:
+ case sshFxEOF:
return "SSH_FX_EOF"
- case ssh_FX_NO_SUCH_FILE:
+ case sshFxNoSuchFile:
return "SSH_FX_NO_SUCH_FILE"
- case ssh_FX_PERMISSION_DENIED:
+ case sshFxPermissionDenied:
return "SSH_FX_PERMISSION_DENIED"
- case ssh_FX_FAILURE:
+ case sshFxFailure:
return "SSH_FX_FAILURE"
- case ssh_FX_BAD_MESSAGE:
+ case sshFxBadMessage:
return "SSH_FX_BAD_MESSAGE"
- case ssh_FX_NO_CONNECTION:
+ case sshFxNoConnection:
return "SSH_FX_NO_CONNECTION"
- case ssh_FX_CONNECTION_LOST:
+ case sshFxConnectionLost:
return "SSH_FX_CONNECTION_LOST"
- case ssh_FX_OP_UNSUPPORTED:
+ case sshFxOPUnsupported:
return "SSH_FX_OP_UNSUPPORTED"
default:
return "unknown"
@@ -214,4 +223,37 @@ type StatusError struct {
msg, lang string
}
-func (s *StatusError) Error() string { return fmt.Sprintf("sftp: %q (%v)", s.msg, fx(s.Code)) }
+func (s *StatusError) Error() string {
+ return fmt.Sprintf("sftp: %q (%v)", s.msg, fx(s.Code))
+}
+
+// FxCode returns the error code typed to match against the exported codes
+func (s *StatusError) FxCode() fxerr {
+ return fxerr(s.Code)
+}
+
+func getSupportedExtensionByName(extensionName string) (sshExtensionPair, error) {
+ for _, supportedExtension := range supportedSFTPExtensions {
+ if supportedExtension.Name == extensionName {
+ return supportedExtension, nil
+ }
+ }
+ return sshExtensionPair{}, fmt.Errorf("Unsupported extension: %v", extensionName)
+}
+
+// SetSFTPExtensions allows to customize the supported server extensions.
+// See the variable supportedSFTPExtensions for supported extensions.
+// This method accepts a slice of sshExtensionPair names for example '[email protected]'.
+// If an invalid extension is given an error will be returned and nothing will be changed
+func SetSFTPExtensions(extensions ...string) error {
+ tempExtensions := []sshExtensionPair{}
+ for _, extension := range extensions {
+ sftpExtension, err := getSupportedExtensionByName(extension)
+ if err != nil {
+ return err
+ }
+ tempExtensions = append(tempExtensions, sftpExtension)
+ }
+ sftpExtensions = tempExtensions
+ return nil
+}
diff --git a/vendor/github.com/pkg/sftp/syscall_fixed.go b/vendor/github.com/pkg/sftp/syscall_fixed.go
new file mode 100644
index 000000000..d40457776
--- /dev/null
+++ b/vendor/github.com/pkg/sftp/syscall_fixed.go
@@ -0,0 +1,9 @@
+// +build plan9 windows js,wasm
+
+// Go defines S_IFMT on windows, plan9 and js/wasm as 0x1f000 instead of
+// 0xf000. None of the the other S_IFxyz values include the "1" (in 0x1f000)
+// which prevents them from matching the bitmask.
+
+package sftp
+
+const S_IFMT = 0xf000
diff --git a/vendor/github.com/pkg/sftp/syscall_good.go b/vendor/github.com/pkg/sftp/syscall_good.go
new file mode 100644
index 000000000..4c2b240cf
--- /dev/null
+++ b/vendor/github.com/pkg/sftp/syscall_good.go
@@ -0,0 +1,8 @@
+// +build !plan9,!windows
+// +build !js !wasm
+
+package sftp
+
+import "syscall"
+
+const S_IFMT = syscall.S_IFMT
diff --git a/vendor/github.com/putdotio/go-putio/LICENSE b/vendor/github.com/putdotio/go-putio/putio/LICENSE
similarity index 100%
rename from vendor/github.com/putdotio/go-putio/LICENSE
rename to vendor/github.com/putdotio/go-putio/putio/LICENSE
diff --git a/vendor/github.com/putdotio/go-putio/putio/client.go b/vendor/github.com/putdotio/go-putio/putio/client.go
index ec0d9d7a8..e6f263a04 100644
--- a/vendor/github.com/putdotio/go-putio/putio/client.go
+++ b/vendor/github.com/putdotio/go-putio/putio/client.go
@@ -3,7 +3,6 @@ package putio
import (
"context"
"encoding/json"
- "fmt"
"io"
"io/ioutil"
"net/http"
@@ -31,6 +30,9 @@ type Client struct {
// User agent for client
UserAgent string
+ // Override host header for API requests
+ Host string
+
// ExtraHeaders are passed to the API server on every request.
ExtraHeaders http.Header
@@ -79,7 +81,8 @@ func (c *Client) ValidateToken(ctx context.Context) (userID *int64, err error) {
var r struct {
UserID *int64 `json:"user_id"`
}
- _, err = c.Do(req, &r)
+ resp, err := c.Do(req, &r)
+ defer resp.Body.Close()
return r.UserID, err
}
@@ -109,6 +112,10 @@ func (c *Client) NewRequest(ctx context.Context, method, relURL string, body io.
req.Header.Set("Accept", defaultMediaType)
req.Header.Set("User-Agent", c.UserAgent)
+ if c.Host != "" {
+ req.Host = c.Host
+ }
+
// merge headers with extra headers
for header, values := range c.ExtraHeaders {
for _, value := range values {
@@ -156,25 +163,22 @@ func (c *Client) Do(r *http.Request, v interface{}) (*http.Response, error) {
// status code is not in success range, it will try to return a structured
// error.
func checkResponse(r *http.Response) error {
- status := r.StatusCode
- switch {
- case status >= 200 && status <= 399:
+ if r.StatusCode >= 200 && r.StatusCode <= 399 {
return nil
- case status >= 400 && status <= 599:
- // server returns json
- default:
- return fmt.Errorf("unexpected status code: %d", status)
}
- errorResponse := &ErrorResponse{Response: r}
- data, err := ioutil.ReadAll(r.Body)
- if err != nil {
- return fmt.Errorf("body read error: %s. status: %v. Details: %v:", err, status, string(data[:250]))
+
+ // server possibly returns json and more details
+ er := &ErrorResponse{Response: r}
+
+ er.Body, er.ParseError = ioutil.ReadAll(r.Body)
+ if er.ParseError != nil {
+ return er
}
- if len(data) > 0 {
- err = json.Unmarshal(data, errorResponse)
- if err != nil {
- return fmt.Errorf("json decode error: %s. status: %v. Details: %v:", err, status, string(data[:250]))
+ if r.Header.Get("content-type") == "application/json" {
+ er.ParseError = json.Unmarshal(er.Body, er)
+ if er.ParseError != nil {
+ return er
}
}
- return errorResponse
+ return er
}
diff --git a/vendor/github.com/putdotio/go-putio/putio/error.go b/vendor/github.com/putdotio/go-putio/putio/error.go
index 659727806..5fbcd60b5 100644
--- a/vendor/github.com/putdotio/go-putio/putio/error.go
+++ b/vendor/github.com/putdotio/go-putio/putio/error.go
@@ -7,19 +7,31 @@ import (
// ErrorResponse reports the error caused by an API request.
type ErrorResponse struct {
+ // Original http.Response
Response *http.Response `json:"-"`
+ // Body read from Response
+ Body []byte `json:"-"`
+
+ // Error while parsing the response
+ ParseError error
+
+ // These fileds are parsed from response if JSON.
Message string `json:"error_message"`
Type string `json:"error_type"`
}
func (e *ErrorResponse) Error() string {
+ if e.ParseError != nil {
+ return fmt.Errorf("cannot parse response. code:%d error:%q body:%q",
+ e.Response.StatusCode, e.ParseError.Error(), string(e.Body[:250])).Error()
+ }
return fmt.Sprintf(
- "Type: %v Message: %q. Original error: %v %v: %v",
+ "putio error. code:%d type:%q message:%q request:%v %v",
+ e.Response.StatusCode,
e.Type,
e.Message,
e.Response.Request.Method,
e.Response.Request.URL,
- e.Response.Status,
)
}
diff --git a/vendor/github.com/putdotio/go-putio/putio/events.go b/vendor/github.com/putdotio/go-putio/putio/events.go
index 0b0db2fe6..b7605a462 100644
--- a/vendor/github.com/putdotio/go-putio/putio/events.go
+++ b/vendor/github.com/putdotio/go-putio/putio/events.go
@@ -24,7 +24,6 @@ func (e *EventsService) List(ctx context.Context) ([]Event, error) {
return nil, err
}
return r.Events, nil
-
}
// Delete Clears all all dashboard events.
diff --git a/vendor/github.com/putdotio/go-putio/putio/files.go b/vendor/github.com/putdotio/go-putio/putio/files.go
index 079ab493b..55c447992 100644
--- a/vendor/github.com/putdotio/go-putio/putio/files.go
+++ b/vendor/github.com/putdotio/go-putio/putio/files.go
@@ -202,7 +202,7 @@ func (f *FilesService) Move(ctx context.Context, parent int64, files ...int64) e
// Upload reads from given io.Reader and uploads the file contents to Put.io
// servers under directory given by parent. If parent is negative, user's
-// prefered folder is used.
+// preferred folder is used.
//
// If the uploaded file is a torrent file, Put.io will interpret it as a
// transfer and Transfer field will be present to represent the status of the
@@ -219,7 +219,7 @@ func (f *FilesService) Upload(ctx context.Context, r io.Reader, filename string,
var buf bytes.Buffer
mw := multipart.NewWriter(&buf)
- // negative parent means use user's prefered download folder.
+ // negative parent means use user's preferred download folder.
if parent >= 0 {
err := mw.WriteField("parent_id", itoa(parent))
if err != nil {
@@ -322,7 +322,7 @@ func (f *FilesService) sharedWith(ctx context.Context, id int64) ([]share, error
return r.Shared, nil
}
-// Subtitles lists available subtitles for the given file for user's prefered
+// Subtitles lists available subtitles for the given file for user's preferred
// subtitle language.
func (f *FilesService) Subtitles(ctx context.Context, id int64) ([]Subtitle, error) {
req, err := f.client.NewRequest(ctx, "GET", "/v2/files/"+itoa(id)+"/subtitles", nil)
diff --git a/vendor/github.com/putdotio/go-putio/putio/go.mod b/vendor/github.com/putdotio/go-putio/putio/go.mod
new file mode 100644
index 000000000..fcd7c2e44
--- /dev/null
+++ b/vendor/github.com/putdotio/go-putio/putio/go.mod
@@ -0,0 +1,3 @@
+module github.com/putdotio/go-putio/putio
+
+go 1.13
diff --git a/vendor/github.com/putdotio/go-putio/putio/zips.go b/vendor/github.com/putdotio/go-putio/putio/zips.go
index 66e33cc84..fced4dcdd 100644
--- a/vendor/github.com/putdotio/go-putio/putio/zips.go
+++ b/vendor/github.com/putdotio/go-putio/putio/zips.go
@@ -26,7 +26,6 @@ func (z *ZipsService) Get(ctx context.Context, id int64) (Zip, error) {
}
return r, nil
-
}
// List lists active zip files.
diff --git a/vendor/github.com/russross/blackfriday/doc.go b/vendor/github.com/russross/blackfriday/doc.go
deleted file mode 100644
index 9656c42a1..000000000
--- a/vendor/github.com/russross/blackfriday/doc.go
+++ /dev/null
@@ -1,32 +0,0 @@
-// Package blackfriday is a Markdown processor.
-//
-// It translates plain text with simple formatting rules into HTML or LaTeX.
-//
-// Sanitized Anchor Names
-//
-// Blackfriday includes an algorithm for creating sanitized anchor names
-// corresponding to a given input text. This algorithm is used to create
-// anchors for headings when EXTENSION_AUTO_HEADER_IDS is enabled. The
-// algorithm is specified below, so that other packages can create
-// compatible anchor names and links to those anchors.
-//
-// The algorithm iterates over the input text, interpreted as UTF-8,
-// one Unicode code point (rune) at a time. All runes that are letters (category L)
-// or numbers (category N) are considered valid characters. They are mapped to
-// lower case, and included in the output. All other runes are considered
-// invalid characters. Invalid characters that preceed the first valid character,
-// as well as invalid character that follow the last valid character
-// are dropped completely. All other sequences of invalid characters
-// between two valid characters are replaced with a single dash character '-'.
-//
-// SanitizedAnchorName exposes this functionality, and can be used to
-// create compatible links to the anchor names generated by blackfriday.
-// This algorithm is also implemented in a small standalone package at
-// github.com/shurcooL/sanitized_anchor_name. It can be useful for clients
-// that want a small package and don't need full functionality of blackfriday.
-package blackfriday
-
-// NOTE: Keep Sanitized Anchor Name algorithm in sync with package
-// github.com/shurcooL/sanitized_anchor_name.
-// Otherwise, users of sanitized_anchor_name will get anchor names
-// that are incompatible with those generated by blackfriday.
diff --git a/vendor/github.com/russross/blackfriday/go.mod b/vendor/github.com/russross/blackfriday/go.mod
deleted file mode 100644
index b05561a06..000000000
--- a/vendor/github.com/russross/blackfriday/go.mod
+++ /dev/null
@@ -1 +0,0 @@
-module github.com/russross/blackfriday
diff --git a/vendor/github.com/russross/blackfriday/html.go b/vendor/github.com/russross/blackfriday/html.go
deleted file mode 100644
index e0a6c69c9..000000000
--- a/vendor/github.com/russross/blackfriday/html.go
+++ /dev/null
@@ -1,938 +0,0 @@
-//
-// Blackfriday Markdown Processor
-// Available at http://github.com/russross/blackfriday
-//
-// Copyright © 2011 Russ Ross <[email protected]>.
-// Distributed under the Simplified BSD License.
-// See README.md for details.
-//
-
-//
-//
-// HTML rendering backend
-//
-//
-
-package blackfriday
-
-import (
- "bytes"
- "fmt"
- "regexp"
- "strconv"
- "strings"
-)
-
-// Html renderer configuration options.
-const (
- HTML_SKIP_HTML = 1 << iota // skip preformatted HTML blocks
- HTML_SKIP_STYLE // skip embedded <style> elements
- HTML_SKIP_IMAGES // skip embedded images
- HTML_SKIP_LINKS // skip all links
- HTML_SAFELINK // only link to trusted protocols
- HTML_NOFOLLOW_LINKS // only link with rel="nofollow"
- HTML_NOREFERRER_LINKS // only link with rel="noreferrer"
- HTML_HREF_TARGET_BLANK // add a blank target
- HTML_TOC // generate a table of contents
- HTML_OMIT_CONTENTS // skip the main contents (for a standalone table of contents)
- HTML_COMPLETE_PAGE // generate a complete HTML page
- HTML_USE_XHTML // generate XHTML output instead of HTML
- HTML_USE_SMARTYPANTS // enable smart punctuation substitutions
- HTML_SMARTYPANTS_FRACTIONS // enable smart fractions (with HTML_USE_SMARTYPANTS)
- HTML_SMARTYPANTS_DASHES // enable smart dashes (with HTML_USE_SMARTYPANTS)
- HTML_SMARTYPANTS_LATEX_DASHES // enable LaTeX-style dashes (with HTML_USE_SMARTYPANTS and HTML_SMARTYPANTS_DASHES)
- HTML_SMARTYPANTS_ANGLED_QUOTES // enable angled double quotes (with HTML_USE_SMARTYPANTS) for double quotes rendering
- HTML_SMARTYPANTS_QUOTES_NBSP // enable "French guillemets" (with HTML_USE_SMARTYPANTS)
- HTML_FOOTNOTE_RETURN_LINKS // generate a link at the end of a footnote to return to the source
-)
-
-var (
- alignments = []string{
- "left",
- "right",
- "center",
- }
-
- // TODO: improve this regexp to catch all possible entities:
- htmlEntity = regexp.MustCompile(`&[a-z]{2,5};`)
-)
-
-type HtmlRendererParameters struct {
- // Prepend this text to each relative URL.
- AbsolutePrefix string
- // Add this text to each footnote anchor, to ensure uniqueness.
- FootnoteAnchorPrefix string
- // Show this text inside the <a> tag for a footnote return link, if the
- // HTML_FOOTNOTE_RETURN_LINKS flag is enabled. If blank, the string
- // <sup>[return]</sup> is used.
- FootnoteReturnLinkContents string
- // If set, add this text to the front of each Header ID, to ensure
- // uniqueness.
- HeaderIDPrefix string
- // If set, add this text to the back of each Header ID, to ensure uniqueness.
- HeaderIDSuffix string
-}
-
-// Html is a type that implements the Renderer interface for HTML output.
-//
-// Do not create this directly, instead use the HtmlRenderer function.
-type Html struct {
- flags int // HTML_* options
- closeTag string // how to end singleton tags: either " />" or ">"
- title string // document title
- css string // optional css file url (used with HTML_COMPLETE_PAGE)
-
- parameters HtmlRendererParameters
-
- // table of contents data
- tocMarker int
- headerCount int
- currentLevel int
- toc *bytes.Buffer
-
- // Track header IDs to prevent ID collision in a single generation.
- headerIDs map[string]int
-
- smartypants *smartypantsRenderer
-}
-
-const (
- xhtmlClose = " />"
- htmlClose = ">"
-)
-
-// HtmlRenderer creates and configures an Html object, which
-// satisfies the Renderer interface.
-//
-// flags is a set of HTML_* options ORed together.
-// title is the title of the document, and css is a URL for the document's
-// stylesheet.
-// title and css are only used when HTML_COMPLETE_PAGE is selected.
-func HtmlRenderer(flags int, title string, css string) Renderer {
- return HtmlRendererWithParameters(flags, title, css, HtmlRendererParameters{})
-}
-
-func HtmlRendererWithParameters(flags int, title string,
- css string, renderParameters HtmlRendererParameters) Renderer {
- // configure the rendering engine
- closeTag := htmlClose
- if flags&HTML_USE_XHTML != 0 {
- closeTag = xhtmlClose
- }
-
- if renderParameters.FootnoteReturnLinkContents == "" {
- renderParameters.FootnoteReturnLinkContents = `<sup>[return]</sup>`
- }
-
- return &Html{
- flags: flags,
- closeTag: closeTag,
- title: title,
- css: css,
- parameters: renderParameters,
-
- headerCount: 0,
- currentLevel: 0,
- toc: new(bytes.Buffer),
-
- headerIDs: make(map[string]int),
-
- smartypants: smartypants(flags),
- }
-}
-
-// Using if statements is a bit faster than a switch statement. As the compiler
-// improves, this should be unnecessary this is only worthwhile because
-// attrEscape is the single largest CPU user in normal use.
-// Also tried using map, but that gave a ~3x slowdown.
-func escapeSingleChar(char byte) (string, bool) {
- if char == '"' {
- return "&quot;", true
- }
- if char == '&' {
- return "&amp;", true
- }
- if char == '<' {
- return "&lt;", true
- }
- if char == '>' {
- return "&gt;", true
- }
- return "", false
-}
-
-func attrEscape(out *bytes.Buffer, src []byte) {
- org := 0
- for i, ch := range src {
- if entity, ok := escapeSingleChar(ch); ok {
- if i > org {
- // copy all the normal characters since the last escape
- out.Write(src[org:i])
- }
- org = i + 1
- out.WriteString(entity)
- }
- }
- if org < len(src) {
- out.Write(src[org:])
- }
-}
-
-func entityEscapeWithSkip(out *bytes.Buffer, src []byte, skipRanges [][]int) {
- end := 0
- for _, rang := range skipRanges {
- attrEscape(out, src[end:rang[0]])
- out.Write(src[rang[0]:rang[1]])
- end = rang[1]
- }
- attrEscape(out, src[end:])
-}
-
-func (options *Html) GetFlags() int {
- return options.flags
-}
-
-func (options *Html) TitleBlock(out *bytes.Buffer, text []byte) {
- text = bytes.TrimPrefix(text, []byte("% "))
- text = bytes.Replace(text, []byte("\n% "), []byte("\n"), -1)
- out.WriteString("<h1 class=\"title\">")
- out.Write(text)
- out.WriteString("\n</h1>")
-}
-
-func (options *Html) Header(out *bytes.Buffer, text func() bool, level int, id string) {
- marker := out.Len()
- doubleSpace(out)
-
- if id == "" && options.flags&HTML_TOC != 0 {
- id = fmt.Sprintf("toc_%d", options.headerCount)
- }
-
- if id != "" {
- id = options.ensureUniqueHeaderID(id)
-
- if options.parameters.HeaderIDPrefix != "" {
- id = options.parameters.HeaderIDPrefix + id
- }
-
- if options.parameters.HeaderIDSuffix != "" {
- id = id + options.parameters.HeaderIDSuffix
- }
-
- out.WriteString(fmt.Sprintf("<h%d id=\"%s\">", level, id))
- } else {
- out.WriteString(fmt.Sprintf("<h%d>", level))
- }
-
- tocMarker := out.Len()
- if !text() {
- out.Truncate(marker)
- return
- }
-
- // are we building a table of contents?
- if options.flags&HTML_TOC != 0 {
- options.TocHeaderWithAnchor(out.Bytes()[tocMarker:], level, id)
- }
-
- out.WriteString(fmt.Sprintf("</h%d>\n", level))
-}
-
-func (options *Html) BlockHtml(out *bytes.Buffer, text []byte) {
- if options.flags&HTML_SKIP_HTML != 0 {
- return
- }
-
- doubleSpace(out)
- out.Write(text)
- out.WriteByte('\n')
-}
-
-func (options *Html) HRule(out *bytes.Buffer) {
- doubleSpace(out)
- out.WriteString("<hr")
- out.WriteString(options.closeTag)
- out.WriteByte('\n')
-}
-
-func (options *Html) BlockCode(out *bytes.Buffer, text []byte, info string) {
- doubleSpace(out)
-
- endOfLang := strings.IndexAny(info, "\t ")
- if endOfLang < 0 {
- endOfLang = len(info)
- }
- lang := info[:endOfLang]
- if len(lang) == 0 || lang == "." {
- out.WriteString("<pre><code>")
- } else {
- out.WriteString("<pre><code class=\"language-")
- attrEscape(out, []byte(lang))
- out.WriteString("\">")
- }
- attrEscape(out, text)
- out.WriteString("</code></pre>\n")
-}
-
-func (options *Html) BlockQuote(out *bytes.Buffer, text []byte) {
- doubleSpace(out)
- out.WriteString("<blockquote>\n")
- out.Write(text)
- out.WriteString("</blockquote>\n")
-}
-
-func (options *Html) Table(out *bytes.Buffer, header []byte, body []byte, columnData []int) {
- doubleSpace(out)
- out.WriteString("<table>\n<thead>\n")
- out.Write(header)
- out.WriteString("</thead>\n\n<tbody>\n")
- out.Write(body)
- out.WriteString("</tbody>\n</table>\n")
-}
-
-func (options *Html) TableRow(out *bytes.Buffer, text []byte) {
- doubleSpace(out)
- out.WriteString("<tr>\n")
- out.Write(text)
- out.WriteString("\n</tr>\n")
-}
-
-func (options *Html) TableHeaderCell(out *bytes.Buffer, text []byte, align int) {
- doubleSpace(out)
- switch align {
- case TABLE_ALIGNMENT_LEFT:
- out.WriteString("<th align=\"left\">")
- case TABLE_ALIGNMENT_RIGHT:
- out.WriteString("<th align=\"right\">")
- case TABLE_ALIGNMENT_CENTER:
- out.WriteString("<th align=\"center\">")
- default:
- out.WriteString("<th>")
- }
-
- out.Write(text)
- out.WriteString("</th>")
-}
-
-func (options *Html) TableCell(out *bytes.Buffer, text []byte, align int) {
- doubleSpace(out)
- switch align {
- case TABLE_ALIGNMENT_LEFT:
- out.WriteString("<td align=\"left\">")
- case TABLE_ALIGNMENT_RIGHT:
- out.WriteString("<td align=\"right\">")
- case TABLE_ALIGNMENT_CENTER:
- out.WriteString("<td align=\"center\">")
- default:
- out.WriteString("<td>")
- }
-
- out.Write(text)
- out.WriteString("</td>")
-}
-
-func (options *Html) Footnotes(out *bytes.Buffer, text func() bool) {
- out.WriteString("<div class=\"footnotes\">\n")
- options.HRule(out)
- options.List(out, text, LIST_TYPE_ORDERED)
- out.WriteString("</div>\n")
-}
-
-func (options *Html) FootnoteItem(out *bytes.Buffer, name, text []byte, flags int) {
- if flags&LIST_ITEM_CONTAINS_BLOCK != 0 || flags&LIST_ITEM_BEGINNING_OF_LIST != 0 {
- doubleSpace(out)
- }
- slug := slugify(name)
- out.WriteString(`<li id="`)
- out.WriteString(`fn:`)
- out.WriteString(options.parameters.FootnoteAnchorPrefix)
- out.Write(slug)
- out.WriteString(`">`)
- out.Write(text)
- if options.flags&HTML_FOOTNOTE_RETURN_LINKS != 0 {
- out.WriteString(` <a class="footnote-return" href="#`)
- out.WriteString(`fnref:`)
- out.WriteString(options.parameters.FootnoteAnchorPrefix)
- out.Write(slug)
- out.WriteString(`">`)
- out.WriteString(options.parameters.FootnoteReturnLinkContents)
- out.WriteString(`</a>`)
- }
- out.WriteString("</li>\n")
-}
-
-func (options *Html) List(out *bytes.Buffer, text func() bool, flags int) {
- marker := out.Len()
- doubleSpace(out)
-
- if flags&LIST_TYPE_DEFINITION != 0 {
- out.WriteString("<dl>")
- } else if flags&LIST_TYPE_ORDERED != 0 {
- out.WriteString("<ol>")
- } else {
- out.WriteString("<ul>")
- }
- if !text() {
- out.Truncate(marker)
- return
- }
- if flags&LIST_TYPE_DEFINITION != 0 {
- out.WriteString("</dl>\n")
- } else if flags&LIST_TYPE_ORDERED != 0 {
- out.WriteString("</ol>\n")
- } else {
- out.WriteString("</ul>\n")
- }
-}
-
-func (options *Html) ListItem(out *bytes.Buffer, text []byte, flags int) {
- if (flags&LIST_ITEM_CONTAINS_BLOCK != 0 && flags&LIST_TYPE_DEFINITION == 0) ||
- flags&LIST_ITEM_BEGINNING_OF_LIST != 0 {
- doubleSpace(out)
- }
- if flags&LIST_TYPE_TERM != 0 {
- out.WriteString("<dt>")
- } else if flags&LIST_TYPE_DEFINITION != 0 {
- out.WriteString("<dd>")
- } else {
- out.WriteString("<li>")
- }
- out.Write(text)
- if flags&LIST_TYPE_TERM != 0 {
- out.WriteString("</dt>\n")
- } else if flags&LIST_TYPE_DEFINITION != 0 {
- out.WriteString("</dd>\n")
- } else {
- out.WriteString("</li>\n")
- }
-}
-
-func (options *Html) Paragraph(out *bytes.Buffer, text func() bool) {
- marker := out.Len()
- doubleSpace(out)
-
- out.WriteString("<p>")
- if !text() {
- out.Truncate(marker)
- return
- }
- out.WriteString("</p>\n")
-}
-
-func (options *Html) AutoLink(out *bytes.Buffer, link []byte, kind int) {
- skipRanges := htmlEntity.FindAllIndex(link, -1)
- if options.flags&HTML_SAFELINK != 0 && !isSafeLink(link) && kind != LINK_TYPE_EMAIL {
- // mark it but don't link it if it is not a safe link: no smartypants
- out.WriteString("<tt>")
- entityEscapeWithSkip(out, link, skipRanges)
- out.WriteString("</tt>")
- return
- }
-
- out.WriteString("<a href=\"")
- if kind == LINK_TYPE_EMAIL {
- out.WriteString("mailto:")
- } else {
- options.maybeWriteAbsolutePrefix(out, link)
- }
-
- entityEscapeWithSkip(out, link, skipRanges)
-
- var relAttrs []string
- if options.flags&HTML_NOFOLLOW_LINKS != 0 && !isRelativeLink(link) {
- relAttrs = append(relAttrs, "nofollow")
- }
- if options.flags&HTML_NOREFERRER_LINKS != 0 && !isRelativeLink(link) {
- relAttrs = append(relAttrs, "noreferrer")
- }
- if len(relAttrs) > 0 {
- out.WriteString(fmt.Sprintf("\" rel=\"%s", strings.Join(relAttrs, " ")))
- }
-
- // blank target only add to external link
- if options.flags&HTML_HREF_TARGET_BLANK != 0 && !isRelativeLink(link) {
- out.WriteString("\" target=\"_blank")
- }
-
- out.WriteString("\">")
-
- // Pretty print: if we get an email address as
- // an actual URI, e.g. `mailto:[email protected]`, we don't
- // want to print the `mailto:` prefix
- switch {
- case bytes.HasPrefix(link, []byte("mailto://")):
- attrEscape(out, link[len("mailto://"):])
- case bytes.HasPrefix(link, []byte("mailto:")):
- attrEscape(out, link[len("mailto:"):])
- default:
- entityEscapeWithSkip(out, link, skipRanges)
- }
-
- out.WriteString("</a>")
-}
-
-func (options *Html) CodeSpan(out *bytes.Buffer, text []byte) {
- out.WriteString("<code>")
- attrEscape(out, text)
- out.WriteString("</code>")
-}
-
-func (options *Html) DoubleEmphasis(out *bytes.Buffer, text []byte) {
- out.WriteString("<strong>")
- out.Write(text)
- out.WriteString("</strong>")
-}
-
-func (options *Html) Emphasis(out *bytes.Buffer, text []byte) {
- if len(text) == 0 {
- return
- }
- out.WriteString("<em>")
- out.Write(text)
- out.WriteString("</em>")
-}
-
-func (options *Html) maybeWriteAbsolutePrefix(out *bytes.Buffer, link []byte) {
- if options.parameters.AbsolutePrefix != "" && isRelativeLink(link) && link[0] != '.' {
- out.WriteString(options.parameters.AbsolutePrefix)
- if link[0] != '/' {
- out.WriteByte('/')
- }
- }
-}
-
-func (options *Html) Image(out *bytes.Buffer, link []byte, title []byte, alt []byte) {
- if options.flags&HTML_SKIP_IMAGES != 0 {
- return
- }
-
- out.WriteString("<img src=\"")
- options.maybeWriteAbsolutePrefix(out, link)
- attrEscape(out, link)
- out.WriteString("\" alt=\"")
- if len(alt) > 0 {
- attrEscape(out, alt)
- }
- if len(title) > 0 {
- out.WriteString("\" title=\"")
- attrEscape(out, title)
- }
-
- out.WriteByte('"')
- out.WriteString(options.closeTag)
-}
-
-func (options *Html) LineBreak(out *bytes.Buffer) {
- out.WriteString("<br")
- out.WriteString(options.closeTag)
- out.WriteByte('\n')
-}
-
-func (options *Html) Link(out *bytes.Buffer, link []byte, title []byte, content []byte) {
- if options.flags&HTML_SKIP_LINKS != 0 {
- // write the link text out but don't link it, just mark it with typewriter font
- out.WriteString("<tt>")
- attrEscape(out, content)
- out.WriteString("</tt>")
- return
- }
-
- if options.flags&HTML_SAFELINK != 0 && !isSafeLink(link) {
- // write the link text out but don't link it, just mark it with typewriter font
- out.WriteString("<tt>")
- attrEscape(out, content)
- out.WriteString("</tt>")
- return
- }
-
- out.WriteString("<a href=\"")
- options.maybeWriteAbsolutePrefix(out, link)
- attrEscape(out, link)
- if len(title) > 0 {
- out.WriteString("\" title=\"")
- attrEscape(out, title)
- }
- var relAttrs []string
- if options.flags&HTML_NOFOLLOW_LINKS != 0 && !isRelativeLink(link) {
- relAttrs = append(relAttrs, "nofollow")
- }
- if options.flags&HTML_NOREFERRER_LINKS != 0 && !isRelativeLink(link) {
- relAttrs = append(relAttrs, "noreferrer")
- }
- if len(relAttrs) > 0 {
- out.WriteString(fmt.Sprintf("\" rel=\"%s", strings.Join(relAttrs, " ")))
- }
-
- // blank target only add to external link
- if options.flags&HTML_HREF_TARGET_BLANK != 0 && !isRelativeLink(link) {
- out.WriteString("\" target=\"_blank")
- }
-
- out.WriteString("\">")
- out.Write(content)
- out.WriteString("</a>")
- return
-}
-
-func (options *Html) RawHtmlTag(out *bytes.Buffer, text []byte) {
- if options.flags&HTML_SKIP_HTML != 0 {
- return
- }
- if options.flags&HTML_SKIP_STYLE != 0 && isHtmlTag(text, "style") {
- return
- }
- if options.flags&HTML_SKIP_LINKS != 0 && isHtmlTag(text, "a") {
- return
- }
- if options.flags&HTML_SKIP_IMAGES != 0 && isHtmlTag(text, "img") {
- return
- }
- out.Write(text)
-}
-
-func (options *Html) TripleEmphasis(out *bytes.Buffer, text []byte) {
- out.WriteString("<strong><em>")
- out.Write(text)
- out.WriteString("</em></strong>")
-}
-
-func (options *Html) StrikeThrough(out *bytes.Buffer, text []byte) {
- out.WriteString("<del>")
- out.Write(text)
- out.WriteString("</del>")
-}
-
-func (options *Html) FootnoteRef(out *bytes.Buffer, ref []byte, id int) {
- slug := slugify(ref)
- out.WriteString(`<sup class="footnote-ref" id="`)
- out.WriteString(`fnref:`)
- out.WriteString(options.parameters.FootnoteAnchorPrefix)
- out.Write(slug)
- out.WriteString(`"><a href="#`)
- out.WriteString(`fn:`)
- out.WriteString(options.parameters.FootnoteAnchorPrefix)
- out.Write(slug)
- out.WriteString(`">`)
- out.WriteString(strconv.Itoa(id))
- out.WriteString(`</a></sup>`)
-}
-
-func (options *Html) Entity(out *bytes.Buffer, entity []byte) {
- out.Write(entity)
-}
-
-func (options *Html) NormalText(out *bytes.Buffer, text []byte) {
- if options.flags&HTML_USE_SMARTYPANTS != 0 {
- options.Smartypants(out, text)
- } else {
- attrEscape(out, text)
- }
-}
-
-func (options *Html) Smartypants(out *bytes.Buffer, text []byte) {
- smrt := smartypantsData{false, false}
-
- // first do normal entity escaping
- var escaped bytes.Buffer
- attrEscape(&escaped, text)
- text = escaped.Bytes()
-
- mark := 0
- for i := 0; i < len(text); i++ {
- if action := options.smartypants[text[i]]; action != nil {
- if i > mark {
- out.Write(text[mark:i])
- }
-
- previousChar := byte(0)
- if i > 0 {
- previousChar = text[i-1]
- }
- i += action(out, &smrt, previousChar, text[i:])
- mark = i + 1
- }
- }
-
- if mark < len(text) {
- out.Write(text[mark:])
- }
-}
-
-func (options *Html) DocumentHeader(out *bytes.Buffer) {
- if options.flags&HTML_COMPLETE_PAGE == 0 {
- return
- }
-
- ending := ""
- if options.flags&HTML_USE_XHTML != 0 {
- out.WriteString("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" ")
- out.WriteString("\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n")
- out.WriteString("<html xmlns=\"http://www.w3.org/1999/xhtml\">\n")
- ending = " /"
- } else {
- out.WriteString("<!DOCTYPE html>\n")
- out.WriteString("<html>\n")
- }
- out.WriteString("<head>\n")
- out.WriteString(" <title>")
- options.NormalText(out, []byte(options.title))
- out.WriteString("</title>\n")
- out.WriteString(" <meta name=\"GENERATOR\" content=\"Blackfriday Markdown Processor v")
- out.WriteString(VERSION)
- out.WriteString("\"")
- out.WriteString(ending)
- out.WriteString(">\n")
- out.WriteString(" <meta charset=\"utf-8\"")
- out.WriteString(ending)
- out.WriteString(">\n")
- if options.css != "" {
- out.WriteString(" <link rel=\"stylesheet\" type=\"text/css\" href=\"")
- attrEscape(out, []byte(options.css))
- out.WriteString("\"")
- out.WriteString(ending)
- out.WriteString(">\n")
- }
- out.WriteString("</head>\n")
- out.WriteString("<body>\n")
-
- options.tocMarker = out.Len()
-}
-
-func (options *Html) DocumentFooter(out *bytes.Buffer) {
- // finalize and insert the table of contents
- if options.flags&HTML_TOC != 0 {
- options.TocFinalize()
-
- // now we have to insert the table of contents into the document
- var temp bytes.Buffer
-
- // start by making a copy of everything after the document header
- temp.Write(out.Bytes()[options.tocMarker:])
-
- // now clear the copied material from the main output buffer
- out.Truncate(options.tocMarker)
-
- // corner case spacing issue
- if options.flags&HTML_COMPLETE_PAGE != 0 {
- out.WriteByte('\n')
- }
-
- // insert the table of contents
- out.WriteString("<nav>\n")
- out.Write(options.toc.Bytes())
- out.WriteString("</nav>\n")
-
- // corner case spacing issue
- if options.flags&HTML_COMPLETE_PAGE == 0 && options.flags&HTML_OMIT_CONTENTS == 0 {
- out.WriteByte('\n')
- }
-
- // write out everything that came after it
- if options.flags&HTML_OMIT_CONTENTS == 0 {
- out.Write(temp.Bytes())
- }
- }
-
- if options.flags&HTML_COMPLETE_PAGE != 0 {
- out.WriteString("\n</body>\n")
- out.WriteString("</html>\n")
- }
-
-}
-
-func (options *Html) TocHeaderWithAnchor(text []byte, level int, anchor string) {
- for level > options.currentLevel {
- switch {
- case bytes.HasSuffix(options.toc.Bytes(), []byte("</li>\n")):
- // this sublist can nest underneath a header
- size := options.toc.Len()
- options.toc.Truncate(size - len("</li>\n"))
-
- case options.currentLevel > 0:
- options.toc.WriteString("<li>")
- }
- if options.toc.Len() > 0 {
- options.toc.WriteByte('\n')
- }
- options.toc.WriteString("<ul>\n")
- options.currentLevel++
- }
-
- for level < options.currentLevel {
- options.toc.WriteString("</ul>")
- if options.currentLevel > 1 {
- options.toc.WriteString("</li>\n")
- }
- options.currentLevel--
- }
-
- options.toc.WriteString("<li><a href=\"#")
- if anchor != "" {
- options.toc.WriteString(anchor)
- } else {
- options.toc.WriteString("toc_")
- options.toc.WriteString(strconv.Itoa(options.headerCount))
- }
- options.toc.WriteString("\">")
- options.headerCount++
-
- options.toc.Write(text)
-
- options.toc.WriteString("</a></li>\n")
-}
-
-func (options *Html) TocHeader(text []byte, level int) {
- options.TocHeaderWithAnchor(text, level, "")
-}
-
-func (options *Html) TocFinalize() {
- for options.currentLevel > 1 {
- options.toc.WriteString("</ul></li>\n")
- options.currentLevel--
- }
-
- if options.currentLevel > 0 {
- options.toc.WriteString("</ul>\n")
- }
-}
-
-func isHtmlTag(tag []byte, tagname string) bool {
- found, _ := findHtmlTagPos(tag, tagname)
- return found
-}
-
-// Look for a character, but ignore it when it's in any kind of quotes, it
-// might be JavaScript
-func skipUntilCharIgnoreQuotes(html []byte, start int, char byte) int {
- inSingleQuote := false
- inDoubleQuote := false
- inGraveQuote := false
- i := start
- for i < len(html) {
- switch {
- case html[i] == char && !inSingleQuote && !inDoubleQuote && !inGraveQuote:
- return i
- case html[i] == '\'':
- inSingleQuote = !inSingleQuote
- case html[i] == '"':
- inDoubleQuote = !inDoubleQuote
- case html[i] == '`':
- inGraveQuote = !inGraveQuote
- }
- i++
- }
- return start
-}
-
-func findHtmlTagPos(tag []byte, tagname string) (bool, int) {
- i := 0
- if i < len(tag) && tag[0] != '<' {
- return false, -1
- }
- i++
- i = skipSpace(tag, i)
-
- if i < len(tag) && tag[i] == '/' {
- i++
- }
-
- i = skipSpace(tag, i)
- j := 0
- for ; i < len(tag); i, j = i+1, j+1 {
- if j >= len(tagname) {
- break
- }
-
- if strings.ToLower(string(tag[i]))[0] != tagname[j] {
- return false, -1
- }
- }
-
- if i == len(tag) {
- return false, -1
- }
-
- rightAngle := skipUntilCharIgnoreQuotes(tag, i, '>')
- if rightAngle > i {
- return true, rightAngle
- }
-
- return false, -1
-}
-
-func skipUntilChar(text []byte, start int, char byte) int {
- i := start
- for i < len(text) && text[i] != char {
- i++
- }
- return i
-}
-
-func skipSpace(tag []byte, i int) int {
- for i < len(tag) && isspace(tag[i]) {
- i++
- }
- return i
-}
-
-func skipChar(data []byte, start int, char byte) int {
- i := start
- for i < len(data) && data[i] == char {
- i++
- }
- return i
-}
-
-func doubleSpace(out *bytes.Buffer) {
- if out.Len() > 0 {
- out.WriteByte('\n')
- }
-}
-
-func isRelativeLink(link []byte) (yes bool) {
- // a tag begin with '#'
- if link[0] == '#' {
- return true
- }
-
- // link begin with '/' but not '//', the second maybe a protocol relative link
- if len(link) >= 2 && link[0] == '/' && link[1] != '/' {
- return true
- }
-
- // only the root '/'
- if len(link) == 1 && link[0] == '/' {
- return true
- }
-
- // current directory : begin with "./"
- if bytes.HasPrefix(link, []byte("./")) {
- return true
- }
-
- // parent directory : begin with "../"
- if bytes.HasPrefix(link, []byte("../")) {
- return true
- }
-
- return false
-}
-
-func (options *Html) ensureUniqueHeaderID(id string) string {
- for count, found := options.headerIDs[id]; found; count, found = options.headerIDs[id] {
- tmp := fmt.Sprintf("%s-%d", id, count+1)
-
- if _, tmpFound := options.headerIDs[tmp]; !tmpFound {
- options.headerIDs[id] = count + 1
- id = tmp
- } else {
- id = id + "-1"
- }
- }
-
- if _, found := options.headerIDs[id]; !found {
- options.headerIDs[id] = 0
- }
-
- return id
-}
diff --git a/vendor/github.com/russross/blackfriday/latex.go b/vendor/github.com/russross/blackfriday/latex.go
deleted file mode 100644
index 3d30d0947..000000000
--- a/vendor/github.com/russross/blackfriday/latex.go
+++ /dev/null
@@ -1,334 +0,0 @@
-//
-// Blackfriday Markdown Processor
-// Available at http://github.com/russross/blackfriday
-//
-// Copyright © 2011 Russ Ross <[email protected]>.
-// Distributed under the Simplified BSD License.
-// See README.md for details.
-//
-
-//
-//
-// LaTeX rendering backend
-//
-//
-
-package blackfriday
-
-import (
- "bytes"
- "strings"
-)
-
-// Latex is a type that implements the Renderer interface for LaTeX output.
-//
-// Do not create this directly, instead use the LatexRenderer function.
-type Latex struct {
-}
-
-// LatexRenderer creates and configures a Latex object, which
-// satisfies the Renderer interface.
-//
-// flags is a set of LATEX_* options ORed together (currently no such options
-// are defined).
-func LatexRenderer(flags int) Renderer {
- return &Latex{}
-}
-
-func (options *Latex) GetFlags() int {
- return 0
-}
-
-// render code chunks using verbatim, or listings if we have a language
-func (options *Latex) BlockCode(out *bytes.Buffer, text []byte, info string) {
- if info == "" {
- out.WriteString("\n\\begin{verbatim}\n")
- } else {
- lang := strings.Fields(info)[0]
- out.WriteString("\n\\begin{lstlisting}[language=")
- out.WriteString(lang)
- out.WriteString("]\n")
- }
- out.Write(text)
- if info == "" {
- out.WriteString("\n\\end{verbatim}\n")
- } else {
- out.WriteString("\n\\end{lstlisting}\n")
- }
-}
-
-func (options *Latex) TitleBlock(out *bytes.Buffer, text []byte) {
-
-}
-
-func (options *Latex) BlockQuote(out *bytes.Buffer, text []byte) {
- out.WriteString("\n\\begin{quotation}\n")
- out.Write(text)
- out.WriteString("\n\\end{quotation}\n")
-}
-
-func (options *Latex) BlockHtml(out *bytes.Buffer, text []byte) {
- // a pretty lame thing to do...
- out.WriteString("\n\\begin{verbatim}\n")
- out.Write(text)
- out.WriteString("\n\\end{verbatim}\n")
-}
-
-func (options *Latex) Header(out *bytes.Buffer, text func() bool, level int, id string) {
- marker := out.Len()
-
- switch level {
- case 1:
- out.WriteString("\n\\section{")
- case 2:
- out.WriteString("\n\\subsection{")
- case 3:
- out.WriteString("\n\\subsubsection{")
- case 4:
- out.WriteString("\n\\paragraph{")
- case 5:
- out.WriteString("\n\\subparagraph{")
- case 6:
- out.WriteString("\n\\textbf{")
- }
- if !text() {
- out.Truncate(marker)
- return
- }
- out.WriteString("}\n")
-}
-
-func (options *Latex) HRule(out *bytes.Buffer) {
- out.WriteString("\n\\HRule\n")
-}
-
-func (options *Latex) List(out *bytes.Buffer, text func() bool, flags int) {
- marker := out.Len()
- if flags&LIST_TYPE_ORDERED != 0 {
- out.WriteString("\n\\begin{enumerate}\n")
- } else {
- out.WriteString("\n\\begin{itemize}\n")
- }
- if !text() {
- out.Truncate(marker)
- return
- }
- if flags&LIST_TYPE_ORDERED != 0 {
- out.WriteString("\n\\end{enumerate}\n")
- } else {
- out.WriteString("\n\\end{itemize}\n")
- }
-}
-
-func (options *Latex) ListItem(out *bytes.Buffer, text []byte, flags int) {
- out.WriteString("\n\\item ")
- out.Write(text)
-}
-
-func (options *Latex) Paragraph(out *bytes.Buffer, text func() bool) {
- marker := out.Len()
- out.WriteString("\n")
- if !text() {
- out.Truncate(marker)
- return
- }
- out.WriteString("\n")
-}
-
-func (options *Latex) Table(out *bytes.Buffer, header []byte, body []byte, columnData []int) {
- out.WriteString("\n\\begin{tabular}{")
- for _, elt := range columnData {
- switch elt {
- case TABLE_ALIGNMENT_LEFT:
- out.WriteByte('l')
- case TABLE_ALIGNMENT_RIGHT:
- out.WriteByte('r')
- default:
- out.WriteByte('c')
- }
- }
- out.WriteString("}\n")
- out.Write(header)
- out.WriteString(" \\\\\n\\hline\n")
- out.Write(body)
- out.WriteString("\n\\end{tabular}\n")
-}
-
-func (options *Latex) TableRow(out *bytes.Buffer, text []byte) {
- if out.Len() > 0 {
- out.WriteString(" \\\\\n")
- }
- out.Write(text)
-}
-
-func (options *Latex) TableHeaderCell(out *bytes.Buffer, text []byte, align int) {
- if out.Len() > 0 {
- out.WriteString(" & ")
- }
- out.Write(text)
-}
-
-func (options *Latex) TableCell(out *bytes.Buffer, text []byte, align int) {
- if out.Len() > 0 {
- out.WriteString(" & ")
- }
- out.Write(text)
-}
-
-// TODO: this
-func (options *Latex) Footnotes(out *bytes.Buffer, text func() bool) {
-
-}
-
-func (options *Latex) FootnoteItem(out *bytes.Buffer, name, text []byte, flags int) {
-
-}
-
-func (options *Latex) AutoLink(out *bytes.Buffer, link []byte, kind int) {
- out.WriteString("\\href{")
- if kind == LINK_TYPE_EMAIL {
- out.WriteString("mailto:")
- }
- out.Write(link)
- out.WriteString("}{")
- out.Write(link)
- out.WriteString("}")
-}
-
-func (options *Latex) CodeSpan(out *bytes.Buffer, text []byte) {
- out.WriteString("\\texttt{")
- escapeSpecialChars(out, text)
- out.WriteString("}")
-}
-
-func (options *Latex) DoubleEmphasis(out *bytes.Buffer, text []byte) {
- out.WriteString("\\textbf{")
- out.Write(text)
- out.WriteString("}")
-}
-
-func (options *Latex) Emphasis(out *bytes.Buffer, text []byte) {
- out.WriteString("\\textit{")
- out.Write(text)
- out.WriteString("}")
-}
-
-func (options *Latex) Image(out *bytes.Buffer, link []byte, title []byte, alt []byte) {
- if bytes.HasPrefix(link, []byte("http://")) || bytes.HasPrefix(link, []byte("https://")) {
- // treat it like a link
- out.WriteString("\\href{")
- out.Write(link)
- out.WriteString("}{")
- out.Write(alt)
- out.WriteString("}")
- } else {
- out.WriteString("\\includegraphics{")
- out.Write(link)
- out.WriteString("}")
- }
-}
-
-func (options *Latex) LineBreak(out *bytes.Buffer) {
- out.WriteString(" \\\\\n")
-}
-
-func (options *Latex) Link(out *bytes.Buffer, link []byte, title []byte, content []byte) {
- out.WriteString("\\href{")
- out.Write(link)
- out.WriteString("}{")
- out.Write(content)
- out.WriteString("}")
-}
-
-func (options *Latex) RawHtmlTag(out *bytes.Buffer, tag []byte) {
-}
-
-func (options *Latex) TripleEmphasis(out *bytes.Buffer, text []byte) {
- out.WriteString("\\textbf{\\textit{")
- out.Write(text)
- out.WriteString("}}")
-}
-
-func (options *Latex) StrikeThrough(out *bytes.Buffer, text []byte) {
- out.WriteString("\\sout{")
- out.Write(text)
- out.WriteString("}")
-}
-
-// TODO: this
-func (options *Latex) FootnoteRef(out *bytes.Buffer, ref []byte, id int) {
-
-}
-
-func needsBackslash(c byte) bool {
- for _, r := range []byte("_{}%$&\\~#") {
- if c == r {
- return true
- }
- }
- return false
-}
-
-func escapeSpecialChars(out *bytes.Buffer, text []byte) {
- for i := 0; i < len(text); i++ {
- // directly copy normal characters
- org := i
-
- for i < len(text) && !needsBackslash(text[i]) {
- i++
- }
- if i > org {
- out.Write(text[org:i])
- }
-
- // escape a character
- if i >= len(text) {
- break
- }
- out.WriteByte('\\')
- out.WriteByte(text[i])
- }
-}
-
-func (options *Latex) Entity(out *bytes.Buffer, entity []byte) {
- // TODO: convert this into a unicode character or something
- out.Write(entity)
-}
-
-func (options *Latex) NormalText(out *bytes.Buffer, text []byte) {
- escapeSpecialChars(out, text)
-}
-
-// header and footer
-func (options *Latex) DocumentHeader(out *bytes.Buffer) {
- out.WriteString("\\documentclass{article}\n")
- out.WriteString("\n")
- out.WriteString("\\usepackage{graphicx}\n")
- out.WriteString("\\usepackage{listings}\n")
- out.WriteString("\\usepackage[margin=1in]{geometry}\n")
- out.WriteString("\\usepackage[utf8]{inputenc}\n")
- out.WriteString("\\usepackage{verbatim}\n")
- out.WriteString("\\usepackage[normalem]{ulem}\n")
- out.WriteString("\\usepackage{hyperref}\n")
- out.WriteString("\n")
- out.WriteString("\\hypersetup{colorlinks,%\n")
- out.WriteString(" citecolor=black,%\n")
- out.WriteString(" filecolor=black,%\n")
- out.WriteString(" linkcolor=black,%\n")
- out.WriteString(" urlcolor=black,%\n")
- out.WriteString(" pdfstartview=FitH,%\n")
- out.WriteString(" breaklinks=true,%\n")
- out.WriteString(" pdfauthor={Blackfriday Markdown Processor v")
- out.WriteString(VERSION)
- out.WriteString("}}\n")
- out.WriteString("\n")
- out.WriteString("\\newcommand{\\HRule}{\\rule{\\linewidth}{0.5mm}}\n")
- out.WriteString("\\addtolength{\\parskip}{0.5\\baselineskip}\n")
- out.WriteString("\\parindent=0pt\n")
- out.WriteString("\n")
- out.WriteString("\\begin{document}\n")
-}
-
-func (options *Latex) DocumentFooter(out *bytes.Buffer) {
- out.WriteString("\n\\end{document}\n")
-}
diff --git a/vendor/github.com/russross/blackfriday/.gitignore b/vendor/github.com/russross/blackfriday/v2/.gitignore
similarity index 100%
rename from vendor/github.com/russross/blackfriday/.gitignore
rename to vendor/github.com/russross/blackfriday/v2/.gitignore
diff --git a/vendor/github.com/russross/blackfriday/.travis.yml b/vendor/github.com/russross/blackfriday/v2/.travis.yml
similarity index 90%
rename from vendor/github.com/russross/blackfriday/.travis.yml
rename to vendor/github.com/russross/blackfriday/v2/.travis.yml
index 2f3351d7a..b0b525a5a 100644
--- a/vendor/github.com/russross/blackfriday/.travis.yml
+++ b/vendor/github.com/russross/blackfriday/v2/.travis.yml
@@ -1,8 +1,8 @@
sudo: false
language: go
go:
- - "1.9.x"
- "1.10.x"
+ - "1.11.x"
- tip
matrix:
fast_finish: true
@@ -14,4 +14,4 @@ script:
- go get -t -v ./...
- diff -u <(echo -n) <(gofmt -d -s .)
- go tool vet .
- - go test -v -race ./...
+ - go test -v ./...
diff --git a/vendor/github.com/russross/blackfriday/LICENSE.txt b/vendor/github.com/russross/blackfriday/v2/LICENSE.txt
similarity index 100%
rename from vendor/github.com/russross/blackfriday/LICENSE.txt
rename to vendor/github.com/russross/blackfriday/v2/LICENSE.txt
diff --git a/vendor/github.com/russross/blackfriday/README.md b/vendor/github.com/russross/blackfriday/v2/README.md
similarity index 67%
rename from vendor/github.com/russross/blackfriday/README.md
rename to vendor/github.com/russross/blackfriday/v2/README.md
index 3c62e1375..d5a8649bd 100644
--- a/vendor/github.com/russross/blackfriday/README.md
+++ b/vendor/github.com/russross/blackfriday/v2/README.md
@@ -1,6 +1,4 @@
-Blackfriday
-[![Build Status][BuildSVG]][BuildURL]
-[![Godoc][GodocV2SVG]][GodocV2URL]
+Blackfriday [![Build Status](https://travis-ci.org/russross/blackfriday.svg?branch=master)](https://travis-ci.org/russross/blackfriday)
===========
Blackfriday is a [Markdown][1] processor implemented in [Go][2]. It
@@ -18,12 +16,18 @@ It started as a translation from C of [Sundown][3].
Installation
------------
-Blackfriday is compatible with any modern Go release. With Go and git installed:
+Blackfriday is compatible with any modern Go release. With Go 1.7 and git
+installed:
- go get -u gopkg.in/russross/blackfriday.v2
+ go get gopkg.in/russross/blackfriday.v2
-will download, compile, and install the package into your `$GOPATH` directory
-hierarchy.
+will download, compile, and install the package into your `$GOPATH`
+directory hierarchy. Alternatively, you can achieve the same if you
+import it into a project:
+
+ import "gopkg.in/russross/blackfriday.v2"
+
+and `go get` without parameters.
Versions
@@ -34,7 +38,7 @@ developed on its own branch: https://github.com/russross/blackfriday/tree/v2 and
documentation is available at
https://godoc.org/gopkg.in/russross/blackfriday.v2.
-It is `go get`-able via [gopkg.in][6] at `gopkg.in/russross/blackfriday.v2`,
+It is `go get`-able via via [gopkg.in][6] at `gopkg.in/russross/blackfriday.v2`,
but we highly recommend using package management tool like [dep][7] or
[Glide][8] and make use of semantic versioning. With package management you
should import `github.com/russross/blackfriday` and specify that you're using
@@ -58,43 +62,9 @@ Potential drawbacks:
v2. See issue [#348](https://github.com/russross/blackfriday/issues/348) for
tracking.
-If you are still interested in the legacy `v1`, you can import it from
-`github.com/russross/blackfriday`. Documentation for the legacy v1 can be found
-here: https://godoc.org/github.com/russross/blackfriday
-
-### Known issue with `dep`
-
-There is a known problem with using Blackfriday v1 _transitively_ and `dep`.
-Currently `dep` prioritizes semver versions over anything else, and picks the
-latest one, plus it does not apply a `[[constraint]]` specifier to transitively
-pulled in packages. So if you're using something that uses Blackfriday v1, but
-that something does not use `dep` yet, you will get Blackfriday v2 pulled in and
-your first dependency will fail to build.
-
-There are couple of fixes for it, documented here:
-https://github.com/golang/dep/blob/master/docs/FAQ.md#how-do-i-constrain-a-transitive-dependencys-version
-
-Meanwhile, `dep` team is working on a more general solution to the constraints
-on transitive dependencies problem: https://github.com/golang/dep/issues/1124.
-
-
Usage
-----
-### v1
-
-For basic usage, it is as simple as getting your input into a byte
-slice and calling:
-
- output := blackfriday.MarkdownBasic(input)
-
-This renders it with no extensions enabled. To get a more useful
-feature set, use this instead:
-
- output := blackfriday.MarkdownCommon(input)
-
-### v2
-
For the most sensible markdown processing, it is as simple as getting your input
into a byte slice and calling:
@@ -121,7 +91,7 @@ Here's an example of simple usage of Blackfriday together with Bluemonday:
```go
import (
"github.com/microcosm-cc/bluemonday"
- "gopkg.in/russross/blackfriday.v2"
+ "github.com/russross/blackfriday"
)
// ...
@@ -129,21 +99,11 @@ unsafe := blackfriday.Run(input)
html := bluemonday.UGCPolicy().SanitizeBytes(unsafe)
```
-### Custom options, v1
-
-If you want to customize the set of options, first get a renderer
-(currently only the HTML output engine), then use it to
-call the more general `Markdown` function. For examples, see the
-implementations of `MarkdownBasic` and `MarkdownCommon` in
-`markdown.go`.
-
-### Custom options, v2
+### Custom options
If you want to customize the set of options, use `blackfriday.WithExtensions`,
`blackfriday.WithRenderer` and `blackfriday.WithRefOverride`.
-### `blackfriday-tool`
-
You can also check out `blackfriday-tool` for a more complete example
of how to use it. Download and install it using:
@@ -163,22 +123,6 @@ installed in `$GOPATH/bin`. This is a statically-linked binary that
can be copied to wherever you need it without worrying about
dependencies and library versions.
-### Sanitized anchor names
-
-Blackfriday includes an algorithm for creating sanitized anchor names
-corresponding to a given input text. This algorithm is used to create
-anchors for headings when `EXTENSION_AUTO_HEADER_IDS` is enabled. The
-algorithm has a specification, so that other packages can create
-compatible anchor names and links to those anchors.
-
-The specification is located at https://godoc.org/github.com/russross/blackfriday#hdr-Sanitized_Anchor_Names.
-
-[`SanitizedAnchorName`](https://godoc.org/github.com/russross/blackfriday#SanitizedAnchorName) exposes this functionality, and can be used to
-create compatible links to the anchor names generated by blackfriday.
-This algorithm is also implemented in a small standalone package at
-[`github.com/shurcooL/sanitized_anchor_name`](https://godoc.org/github.com/shurcooL/sanitized_anchor_name). It can be useful for clients
-that want a small package and don't need full functionality of blackfriday.
-
Features
--------
@@ -246,7 +190,7 @@ implements the following extensions:
and supply a language (to make syntax highlighting simple). Just
mark it like this:
- ``` go
+ ```go
func getTrue() bool {
return true
}
@@ -255,21 +199,12 @@ implements the following extensions:
You can use 3 or more backticks to mark the beginning of the
block, and the same number to mark the end of the block.
- To preserve classes of fenced code blocks while using the bluemonday
- HTML sanitizer, use the following policy:
-
- ``` go
- p := bluemonday.UGCPolicy()
- p.AllowAttrs("class").Matching(regexp.MustCompile("^language-[a-zA-Z0-9]+$")).OnElements("code")
- html := p.SanitizeBytes(unsafe)
- ```
-
* **Definition lists**. A simple definition list is made of a single-line
term followed by a colon and the definition for that term.
Cat
: Fluffy animal everyone likes
-
+
Internet
: Vector of transmission for pictures of cats
@@ -280,7 +215,7 @@ implements the following extensions:
end of the document. A footnote looks like this:
This is a footnote.[^1]
-
+
[^1]: the footnote text.
* **Autolinking**. Blackfriday can find URLs that have not been
@@ -289,10 +224,8 @@ implements the following extensions:
* **Strikethrough**. Use two tildes (`~~`) to mark text that
should be crossed out.
-* **Hard line breaks**. With this extension enabled (it is off by
- default in the `MarkdownBasic` and `MarkdownCommon` convenience
- functions), newlines in the input translate into line breaks in
- the output.
+* **Hard line breaks**. With this extension enabled newlines in the input
+ translate into line breaks in the output. This extension is off by default.
* **Smart quotes**. Smartypants-style punctuation substitution is
supported, turning normal double- and single-quote marks into
@@ -328,24 +261,20 @@ are a few of note:
* [markdownfmt](https://github.com/shurcooL/markdownfmt): like gofmt,
but for markdown.
-* [LaTeX output](https://bitbucket.org/ambrevar/blackfriday-latex):
+* [LaTeX output](https://github.com/Ambrevar/Blackfriday-LaTeX):
renders output as LaTeX.
-* [bfchroma](https://github.com/Depado/bfchroma/): provides convenience
- integration with the [Chroma](https://github.com/alecthomas/chroma) code
- highlighting library. bfchroma is only compatible with v2 of Blackfriday and
- provides a drop-in renderer ready to use with Blackfriday, as well as
- options and means for further customization.
+* [Blackfriday-Confluence](https://github.com/kentaro-m/blackfriday-confluence): provides a [Confluence Wiki Markup](https://confluence.atlassian.com/doc/confluence-wiki-markup-251003035.html) renderer.
-TODO
+Todo
----
* More unit testing
-* Improve Unicode support. It does not understand all Unicode
+* Improve unicode support. It does not understand all unicode
rules (about what constitutes a letter, a punctuation symbol,
etc.), so it may fail to detect word boundaries correctly in
- some instances. It is safe on all UTF-8 input.
+ some instances. It is safe on all utf-8 input.
License
@@ -360,10 +289,3 @@ License
[4]: https://godoc.org/gopkg.in/russross/blackfriday.v2#Parse "Parse func"
[5]: https://github.com/microcosm-cc/bluemonday "Bluemonday"
[6]: https://labix.org/gopkg.in "gopkg.in"
- [7]: https://github.com/golang/dep/ "dep"
- [8]: https://github.com/Masterminds/glide "Glide"
-
- [BuildSVG]: https://travis-ci.org/russross/blackfriday.svg?branch=master
- [BuildURL]: https://travis-ci.org/russross/blackfriday
- [GodocV2SVG]: https://godoc.org/gopkg.in/russross/blackfriday.v2?status.svg
- [GodocV2URL]: https://godoc.org/gopkg.in/russross/blackfriday.v2
diff --git a/vendor/github.com/russross/blackfriday/block.go b/vendor/github.com/russross/blackfriday/v2/block.go
similarity index 56%
rename from vendor/github.com/russross/blackfriday/block.go
rename to vendor/github.com/russross/blackfriday/v2/block.go
index 45c21a6c2..b8607474e 100644
--- a/vendor/github.com/russross/blackfriday/block.go
+++ b/vendor/github.com/russross/blackfriday/v2/block.go
@@ -15,18 +15,27 @@ package blackfriday
import (
"bytes"
+ "html"
+ "regexp"
"strings"
- "unicode"
+
+ "github.com/shurcooL/sanitized_anchor_name"
+)
+
+const (
+ charEntity = "&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});"
+ escapable = "[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"
+)
+
+var (
+ reBackslashOrAmp = regexp.MustCompile("[\\&]")
+ reEntityOrEscapedChar = regexp.MustCompile("(?i)\\\\" + escapable + "|" + charEntity)
)
// Parse block-level data.
// Note: this function and many that it calls assume that
// the input buffer ends with a newline.
-func (p *parser) block(out *bytes.Buffer, data []byte) {
- if len(data) == 0 || data[len(data)-1] != '\n' {
- panic("block input is missing terminating newline")
- }
-
+func (p *Markdown) block(data []byte) {
// this is called recursively: enforce a maximum depth
if p.nesting >= p.maxNesting {
return
@@ -35,14 +44,14 @@ func (p *parser) block(out *bytes.Buffer, data []byte) {
// parse out one block-level construct at a time
for len(data) > 0 {
- // prefixed header:
+ // prefixed heading:
//
- // # Header 1
- // ## Header 2
+ // # Heading 1
+ // ## Heading 2
// ...
- // ###### Header 6
- if p.isPrefixHeader(data) {
- data = data[p.prefixHeader(out, data):]
+ // ###### Heading 6
+ if p.isPrefixHeading(data) {
+ data = data[p.prefixHeading(data):]
continue
}
@@ -52,7 +61,7 @@ func (p *parser) block(out *bytes.Buffer, data []byte) {
// ...
// </div>
if data[0] == '<' {
- if i := p.html(out, data, true); i > 0 {
+ if i := p.html(data, true); i > 0 {
data = data[i:]
continue
}
@@ -63,9 +72,9 @@ func (p *parser) block(out *bytes.Buffer, data []byte) {
// % stuff
// % more stuff
// % even more stuff
- if p.flags&EXTENSION_TITLEBLOCK != 0 {
+ if p.extensions&Titleblock != 0 {
if data[0] == '%' {
- if i := p.titleBlock(out, data, true); i > 0 {
+ if i := p.titleBlock(data, true); i > 0 {
data = data[i:]
continue
}
@@ -87,13 +96,13 @@ func (p *parser) block(out *bytes.Buffer, data []byte) {
// return b
// }
if p.codePrefix(data) > 0 {
- data = data[p.code(out, data):]
+ data = data[p.code(data):]
continue
}
// fenced code block:
//
- // ``` go info string here
+ // ``` go
// func fact(n int) int {
// if n <= 1 {
// return n
@@ -101,8 +110,8 @@ func (p *parser) block(out *bytes.Buffer, data []byte) {
// return n * fact(n-1)
// }
// ```
- if p.flags&EXTENSION_FENCED_CODE != 0 {
- if i := p.fencedCodeBlock(out, data, true); i > 0 {
+ if p.extensions&FencedCode != 0 {
+ if i := p.fencedCodeBlock(data, true); i > 0 {
data = data[i:]
continue
}
@@ -116,9 +125,9 @@ func (p *parser) block(out *bytes.Buffer, data []byte) {
// or
// ______
if p.isHRule(data) {
- p.r.HRule(out)
+ p.addBlock(HorizontalRule, nil)
var i int
- for i = 0; data[i] != '\n'; i++ {
+ for i = 0; i < len(data) && data[i] != '\n'; i++ {
}
data = data[i:]
continue
@@ -129,7 +138,7 @@ func (p *parser) block(out *bytes.Buffer, data []byte) {
// > A big quote I found somewhere
// > on the web
if p.quotePrefix(data) > 0 {
- data = data[p.quote(out, data):]
+ data = data[p.quote(data):]
continue
}
@@ -139,8 +148,8 @@ func (p *parser) block(out *bytes.Buffer, data []byte) {
// ------|-----|---------
// Bob | 31 | 555-1234
// Alice | 27 | 555-4321
- if p.flags&EXTENSION_TABLES != 0 {
- if i := p.table(out, data); i > 0 {
+ if p.extensions&Tables != 0 {
+ if i := p.table(data); i > 0 {
data = data[i:]
continue
}
@@ -153,7 +162,7 @@ func (p *parser) block(out *bytes.Buffer, data []byte) {
//
// also works with + or -
if p.uliPrefix(data) > 0 {
- data = data[p.list(out, data, 0):]
+ data = data[p.list(data, 0):]
continue
}
@@ -162,7 +171,7 @@ func (p *parser) block(out *bytes.Buffer, data []byte) {
// 1. Item 1
// 2. Item 2
if p.oliPrefix(data) > 0 {
- data = data[p.list(out, data, LIST_TYPE_ORDERED):]
+ data = data[p.list(data, ListTypeOrdered):]
continue
}
@@ -174,55 +183,62 @@ func (p *parser) block(out *bytes.Buffer, data []byte) {
//
// Term 2
// : Definition c
- if p.flags&EXTENSION_DEFINITION_LISTS != 0 {
+ if p.extensions&DefinitionLists != 0 {
if p.dliPrefix(data) > 0 {
- data = data[p.list(out, data, LIST_TYPE_DEFINITION):]
+ data = data[p.list(data, ListTypeDefinition):]
continue
}
}
// anything else must look like a normal paragraph
- // note: this finds underlined headers, too
- data = data[p.paragraph(out, data):]
+ // note: this finds underlined headings, too
+ data = data[p.paragraph(data):]
}
p.nesting--
}
-func (p *parser) isPrefixHeader(data []byte) bool {
+func (p *Markdown) addBlock(typ NodeType, content []byte) *Node {
+ p.closeUnmatchedBlocks()
+ container := p.addChild(typ, 0)
+ container.content = content
+ return container
+}
+
+func (p *Markdown) isPrefixHeading(data []byte) bool {
if data[0] != '#' {
return false
}
- if p.flags&EXTENSION_SPACE_HEADERS != 0 {
+ if p.extensions&SpaceHeadings != 0 {
level := 0
- for level < 6 && data[level] == '#' {
+ for level < 6 && level < len(data) && data[level] == '#' {
level++
}
- if data[level] != ' ' {
+ if level == len(data) || data[level] != ' ' {
return false
}
}
return true
}
-func (p *parser) prefixHeader(out *bytes.Buffer, data []byte) int {
+func (p *Markdown) prefixHeading(data []byte) int {
level := 0
- for level < 6 && data[level] == '#' {
+ for level < 6 && level < len(data) && data[level] == '#' {
level++
}
i := skipChar(data, level, ' ')
end := skipUntilChar(data, i, '\n')
skip := end
id := ""
- if p.flags&EXTENSION_HEADER_IDS != 0 {
+ if p.extensions&HeadingIDs != 0 {
j, k := 0, 0
- // find start/end of header id
+ // find start/end of heading id
for j = i; j < end-1 && (data[j] != '{' || data[j+1] != '#'); j++ {
}
for k = j + 1; k < end && data[k] != '}'; k++ {
}
- // extract header id iff found
+ // extract heading id iff found
if j < end && k < end {
id = string(data[j+2 : k])
end = j
@@ -242,45 +258,41 @@ func (p *parser) prefixHeader(out *bytes.Buffer, data []byte) int {
end--
}
if end > i {
- if id == "" && p.flags&EXTENSION_AUTO_HEADER_IDS != 0 {
- id = SanitizedAnchorName(string(data[i:end]))
+ if id == "" && p.extensions&AutoHeadingIDs != 0 {
+ id = sanitized_anchor_name.Create(string(data[i:end]))
}
- work := func() bool {
- p.inline(out, data[i:end])
- return true
- }
- p.r.Header(out, work, level, id)
+ block := p.addBlock(Heading, data[i:end])
+ block.HeadingID = id
+ block.Level = level
}
return skip
}
-func (p *parser) isUnderlinedHeader(data []byte) int {
- // test of level 1 header
+func (p *Markdown) isUnderlinedHeading(data []byte) int {
+ // test of level 1 heading
if data[0] == '=' {
i := skipChar(data, 1, '=')
i = skipChar(data, i, ' ')
- if data[i] == '\n' {
+ if i < len(data) && data[i] == '\n' {
return 1
- } else {
- return 0
}
+ return 0
}
- // test of level 2 header
+ // test of level 2 heading
if data[0] == '-' {
i := skipChar(data, 1, '-')
i = skipChar(data, i, ' ')
- if data[i] == '\n' {
+ if i < len(data) && data[i] == '\n' {
return 2
- } else {
- return 0
}
+ return 0
}
return 0
}
-func (p *parser) titleBlock(out *bytes.Buffer, data []byte, doRender bool) int {
+func (p *Markdown) titleBlock(data []byte, doRender bool) int {
if data[0] != '%' {
return 0
}
@@ -294,12 +306,17 @@ func (p *parser) titleBlock(out *bytes.Buffer, data []byte, doRender bool) int {
}
data = bytes.Join(splitData[0:i], []byte("\n"))
- p.r.TitleBlock(out, data)
-
- return len(data)
+ consumed := len(data)
+ data = bytes.TrimPrefix(data, []byte("% "))
+ data = bytes.Replace(data, []byte("\n% "), []byte("\n"), -1)
+ block := p.addBlock(Heading, data)
+ block.Level = 1
+ block.IsTitleblock = true
+
+ return consumed
}
-func (p *parser) html(out *bytes.Buffer, data []byte, doRender bool) int {
+func (p *Markdown) html(data []byte, doRender bool) int {
var i, j int
// identify the opening tag
@@ -311,17 +328,12 @@ func (p *parser) html(out *bytes.Buffer, data []byte, doRender bool) int {
// handle special cases
if !tagfound {
// check for an HTML comment
- if size := p.htmlComment(out, data, doRender); size > 0 {
+ if size := p.htmlComment(data, doRender); size > 0 {
return size
}
// check for an <hr> tag
- if size := p.htmlHr(out, data, doRender); size > 0 {
- return size
- }
-
- // check for HTML CDATA
- if size := p.htmlCDATA(out, data, doRender); size > 0 {
+ if size := p.htmlHr(data, doRender); size > 0 {
return size
}
@@ -396,60 +408,42 @@ func (p *parser) html(out *bytes.Buffer, data []byte, doRender bool) int {
for end > 0 && data[end-1] == '\n' {
end--
}
- p.r.BlockHtml(out, data[:end])
+ finalizeHTMLBlock(p.addBlock(HTMLBlock, data[:end]))
}
return i
}
-func (p *parser) renderHTMLBlock(out *bytes.Buffer, data []byte, start int, doRender bool) int {
- // html block needs to end with a blank line
- if i := p.isEmpty(data[start:]); i > 0 {
- size := start + i
+func finalizeHTMLBlock(block *Node) {
+ block.Literal = block.content
+ block.content = nil
+}
+
+// HTML comment, lax form
+func (p *Markdown) htmlComment(data []byte, doRender bool) int {
+ i := p.inlineHTMLComment(data)
+ // needs to end with a blank line
+ if j := p.isEmpty(data[i:]); j > 0 {
+ size := i + j
if doRender {
// trim trailing newlines
end := size
for end > 0 && data[end-1] == '\n' {
end--
}
- p.r.BlockHtml(out, data[:end])
+ block := p.addBlock(HTMLBlock, data[:end])
+ finalizeHTMLBlock(block)
}
return size
}
return 0
}
-// HTML comment, lax form
-func (p *parser) htmlComment(out *bytes.Buffer, data []byte, doRender bool) int {
- i := p.inlineHTMLComment(out, data)
- return p.renderHTMLBlock(out, data, i, doRender)
-}
-
-// HTML CDATA section
-func (p *parser) htmlCDATA(out *bytes.Buffer, data []byte, doRender bool) int {
- const cdataTag = "<![cdata["
- const cdataTagLen = len(cdataTag)
- if len(data) < cdataTagLen+1 {
- return 0
- }
- if !bytes.Equal(bytes.ToLower(data[:cdataTagLen]), []byte(cdataTag)) {
- return 0
- }
- i := cdataTagLen
- // scan for an end-of-comment marker, across lines if necessary
- for i < len(data) && !(data[i-2] == ']' && data[i-1] == ']' && data[i] == '>') {
- i++
- }
- i++
- // no end-of-comment marker
- if i >= len(data) {
+// HR, which is the only self-closing block tag considered
+func (p *Markdown) htmlHr(data []byte, doRender bool) int {
+ if len(data) < 4 {
return 0
}
- return p.renderHTMLBlock(out, data, i, doRender)
-}
-
-// HR, which is the only self-closing block tag considered
-func (p *parser) htmlHr(out *bytes.Buffer, data []byte, doRender bool) int {
if data[0] != '<' || (data[1] != 'h' && data[1] != 'H') || (data[2] != 'r' && data[2] != 'R') {
return 0
}
@@ -457,22 +451,31 @@ func (p *parser) htmlHr(out *bytes.Buffer, data []byte, doRender bool) int {
// not an <hr> tag after all; at least not a valid one
return 0
}
-
i := 3
- for data[i] != '>' && data[i] != '\n' {
+ for i < len(data) && data[i] != '>' && data[i] != '\n' {
i++
}
-
- if data[i] == '>' {
- return p.renderHTMLBlock(out, data, i+1, doRender)
+ if i < len(data) && data[i] == '>' {
+ i++
+ if j := p.isEmpty(data[i:]); j > 0 {
+ size := i + j
+ if doRender {
+ // trim newlines
+ end := size
+ for end > 0 && data[end-1] == '\n' {
+ end--
+ }
+ finalizeHTMLBlock(p.addBlock(HTMLBlock, data[:end]))
+ }
+ return size
+ }
}
-
return 0
}
-func (p *parser) htmlFindTag(data []byte) (string, bool) {
+func (p *Markdown) htmlFindTag(data []byte) (string, bool) {
i := 0
- for isalnum(data[i]) {
+ for i < len(data) && isalnum(data[i]) {
i++
}
key := string(data[:i])
@@ -482,9 +485,11 @@ func (p *parser) htmlFindTag(data []byte) (string, bool) {
return "", false
}
-func (p *parser) htmlFindEnd(tag string, data []byte) int {
+func (p *Markdown) htmlFindEnd(tag string, data []byte) int {
// assume data[0] == '<' && data[1] == '/' already tested
-
+ if tag == "hr" {
+ return 2
+ }
// check if tag is a match
closetag := []byte("</" + tag + ">")
if !bytes.HasPrefix(data, closetag) {
@@ -504,7 +509,7 @@ func (p *parser) htmlFindEnd(tag string, data []byte) int {
return i
}
- if p.flags&EXTENSION_LAX_HTML_BLOCKS != 0 {
+ if p.extensions&LaxHTMLBlocks != 0 {
return i
}
if skip = p.isEmpty(data[i:]); skip == 0 {
@@ -515,7 +520,7 @@ func (p *parser) htmlFindEnd(tag string, data []byte) int {
return i + skip
}
-func (*parser) isEmpty(data []byte) int {
+func (*Markdown) isEmpty(data []byte) int {
// it is okay to call isEmpty on an empty buffer
if len(data) == 0 {
return 0
@@ -527,10 +532,13 @@ func (*parser) isEmpty(data []byte) int {
return 0
}
}
- return i + 1
+ if i < len(data) && data[i] == '\n' {
+ i++
+ }
+ return i
}
-func (*parser) isHRule(data []byte) bool {
+func (*Markdown) isHRule(data []byte) bool {
i := 0
// skip up to three spaces
@@ -546,7 +554,7 @@ func (*parser) isHRule(data []byte) bool {
// the whole line must be the char or whitespace
n := 0
- for data[i] != '\n' {
+ for i < len(data) && data[i] != '\n' {
switch {
case data[i] == c:
n++
@@ -561,9 +569,8 @@ func (*parser) isHRule(data []byte) bool {
// isFenceLine checks if there's a fence line (e.g., ``` or ``` go) at the beginning of data,
// and returns the end index if so, or 0 otherwise. It also returns the marker found.
-// If syntax is not nil, it gets set to the syntax specified in the fence line.
-// A final newline is mandatory to recognize the fence line, unless newlineOptional is true.
-func isFenceLine(data []byte, info *string, oldmarker string, newlineOptional bool) (end int, marker string) {
+// If info is not nil, it gets set to the syntax specified in the fence line.
+func isFenceLine(data []byte, info *string, oldmarker string) (end int, marker string) {
i, size := 0, 0
// skip up to three spaces
@@ -605,7 +612,7 @@ func isFenceLine(data []byte, info *string, oldmarker string, newlineOptional bo
i = skipChar(data, i, ' ')
if i >= len(data) {
- if newlineOptional && i == len(data) {
+ if i == len(data) {
return i, marker
}
return 0, ""
@@ -636,8 +643,8 @@ func isFenceLine(data []byte, info *string, oldmarker string, newlineOptional bo
for infoLength > 0 && isspace(data[infoStart+infoLength-1]) {
infoLength--
}
-
i++
+ i = skipChar(data, i, ' ')
} else {
for i < len(data) && !isverticalspace(data[i]) {
infoLength++
@@ -648,35 +655,34 @@ func isFenceLine(data []byte, info *string, oldmarker string, newlineOptional bo
*info = strings.TrimSpace(string(data[infoStart : infoStart+infoLength]))
}
- i = skipChar(data, i, ' ')
- if i >= len(data) || data[i] != '\n' {
- if newlineOptional && i == len(data) {
- return i, marker
- }
+ if i == len(data) {
+ return i, marker
+ }
+ if i > len(data) || data[i] != '\n' {
return 0, ""
}
-
return i + 1, marker // Take newline into account.
}
// fencedCodeBlock returns the end index if data contains a fenced code block at the beginning,
// or 0 otherwise. It writes to out if doRender is true, otherwise it has no side effects.
// If doRender is true, a final newline is mandatory to recognize the fenced code block.
-func (p *parser) fencedCodeBlock(out *bytes.Buffer, data []byte, doRender bool) int {
- var infoString string
- beg, marker := isFenceLine(data, &infoString, "", false)
+func (p *Markdown) fencedCodeBlock(data []byte, doRender bool) int {
+ var info string
+ beg, marker := isFenceLine(data, &info, "")
if beg == 0 || beg >= len(data) {
return 0
}
var work bytes.Buffer
+ work.Write([]byte(info))
+ work.WriteByte('\n')
for {
// safe to assume beg < len(data)
// check for the end of the code block
- newlineOptional := !doRender
- fenceEnd, _ := isFenceLine(data[beg:], nil, marker, newlineOptional)
+ fenceEnd, _ := isFenceLine(data[beg:], nil, marker)
if fenceEnd != 0 {
beg += fenceEnd
break
@@ -698,24 +704,55 @@ func (p *parser) fencedCodeBlock(out *bytes.Buffer, data []byte, doRender bool)
}
if doRender {
- p.r.BlockCode(out, work.Bytes(), infoString)
+ block := p.addBlock(CodeBlock, work.Bytes()) // TODO: get rid of temp buffer
+ block.IsFenced = true
+ finalizeCodeBlock(block)
}
return beg
}
-func (p *parser) table(out *bytes.Buffer, data []byte) int {
- var header bytes.Buffer
- i, columns := p.tableHeader(&header, data)
+func unescapeChar(str []byte) []byte {
+ if str[0] == '\\' {
+ return []byte{str[1]}
+ }
+ return []byte(html.UnescapeString(string(str)))
+}
+
+func unescapeString(str []byte) []byte {
+ if reBackslashOrAmp.Match(str) {
+ return reEntityOrEscapedChar.ReplaceAllFunc(str, unescapeChar)
+ }
+ return str
+}
+
+func finalizeCodeBlock(block *Node) {
+ if block.IsFenced {
+ newlinePos := bytes.IndexByte(block.content, '\n')
+ firstLine := block.content[:newlinePos]
+ rest := block.content[newlinePos+1:]
+ block.Info = unescapeString(bytes.Trim(firstLine, "\n"))
+ block.Literal = rest
+ } else {
+ block.Literal = block.content
+ }
+ block.content = nil
+}
+
+func (p *Markdown) table(data []byte) int {
+ table := p.addBlock(Table, nil)
+ i, columns := p.tableHeader(data)
if i == 0 {
+ p.tip = table.Parent
+ table.Unlink()
return 0
}
- var body bytes.Buffer
+ p.addBlock(TableBody, nil)
for i < len(data) {
pipes, rowStart := 0, i
- for ; data[i] != '\n'; i++ {
+ for ; i < len(data) && data[i] != '\n'; i++ {
if data[i] == '|' {
pipes++
}
@@ -727,12 +764,12 @@ func (p *parser) table(out *bytes.Buffer, data []byte) int {
}
// include the newline in data sent to tableRow
- i++
- p.tableRow(&body, data[rowStart:i], columns, false)
+ if i < len(data) && data[i] == '\n' {
+ i++
+ }
+ p.tableRow(data[rowStart:i], columns, false)
}
- p.r.Table(out, header.Bytes(), body.Bytes(), columns)
-
return i
}
@@ -745,10 +782,10 @@ func isBackslashEscaped(data []byte, i int) bool {
return backslashes&1 == 1
}
-func (p *parser) tableHeader(out *bytes.Buffer, data []byte) (size int, columns []int) {
+func (p *Markdown) tableHeader(data []byte) (size int, columns []CellAlignFlags) {
i := 0
colCount := 1
- for i = 0; data[i] != '\n'; i++ {
+ for i = 0; i < len(data) && data[i] != '\n'; i++ {
if data[i] == '|' && !isBackslashEscaped(data, i) {
colCount++
}
@@ -760,7 +797,11 @@ func (p *parser) tableHeader(out *bytes.Buffer, data []byte) (size int, columns
}
// include the newline in the data sent to tableRow
- header := data[:i+1]
+ j := i
+ if j < len(data) && data[j] == '\n' {
+ j++
+ }
+ header := data[:j]
// column count ignores pipes at beginning or end of line
if data[0] == '|' {
@@ -770,7 +811,7 @@ func (p *parser) tableHeader(out *bytes.Buffer, data []byte) (size int, columns
colCount--
}
- columns = make([]int, colCount)
+ columns = make([]CellAlignFlags, colCount)
// move on to the header underline
i++
@@ -786,27 +827,29 @@ func (p *parser) tableHeader(out *bytes.Buffer, data []byte) (size int, columns
// each column header is of form: / *:?-+:? *|/ with # dashes + # colons >= 3
// and trailing | optional on last column
col := 0
- for data[i] != '\n' {
+ for i < len(data) && data[i] != '\n' {
dashes := 0
if data[i] == ':' {
i++
- columns[col] |= TABLE_ALIGNMENT_LEFT
+ columns[col] |= TableAlignmentLeft
dashes++
}
- for data[i] == '-' {
+ for i < len(data) && data[i] == '-' {
i++
dashes++
}
- if data[i] == ':' {
+ if i < len(data) && data[i] == ':' {
i++
- columns[col] |= TABLE_ALIGNMENT_RIGHT
+ columns[col] |= TableAlignmentRight
dashes++
}
- for data[i] == ' ' {
+ for i < len(data) && data[i] == ' ' {
i++
}
-
+ if i == len(data) {
+ return
+ }
// end of column test is messy
switch {
case dashes < 3:
@@ -817,12 +860,12 @@ func (p *parser) tableHeader(out *bytes.Buffer, data []byte) (size int, columns
// marker found, now skip past trailing whitespace
col++
i++
- for data[i] == ' ' {
+ for i < len(data) && data[i] == ' ' {
i++
}
// trailing junk found after last column
- if col >= colCount && data[i] != '\n' {
+ if col >= colCount && i < len(data) && data[i] != '\n' {
return
}
@@ -843,27 +886,31 @@ func (p *parser) tableHeader(out *bytes.Buffer, data []byte) (size int, columns
return
}
- p.tableRow(out, header, columns, true)
- size = i + 1
+ p.addBlock(TableHead, nil)
+ p.tableRow(header, columns, true)
+ size = i
+ if size < len(data) && data[size] == '\n' {
+ size++
+ }
return
}
-func (p *parser) tableRow(out *bytes.Buffer, data []byte, columns []int, header bool) {
+func (p *Markdown) tableRow(data []byte, columns []CellAlignFlags, header bool) {
+ p.addBlock(TableRow, nil)
i, col := 0, 0
- var rowWork bytes.Buffer
if data[i] == '|' && !isBackslashEscaped(data, i) {
i++
}
for col = 0; col < len(columns) && i < len(data); col++ {
- for data[i] == ' ' {
+ for i < len(data) && data[i] == ' ' {
i++
}
cellStart := i
- for (data[i] != '|' || isBackslashEscaped(data, i)) && data[i] != '\n' {
+ for i < len(data) && (data[i] != '|' || isBackslashEscaped(data, i)) && data[i] != '\n' {
i++
}
@@ -872,42 +919,33 @@ func (p *parser) tableRow(out *bytes.Buffer, data []byte, columns []int, header
// skip the end-of-cell marker, possibly taking us past end of buffer
i++
- for cellEnd > cellStart && data[cellEnd-1] == ' ' {
+ for cellEnd > cellStart && cellEnd-1 < len(data) && data[cellEnd-1] == ' ' {
cellEnd--
}
- var cellWork bytes.Buffer
- p.inline(&cellWork, data[cellStart:cellEnd])
-
- if header {
- p.r.TableHeaderCell(&rowWork, cellWork.Bytes(), columns[col])
- } else {
- p.r.TableCell(&rowWork, cellWork.Bytes(), columns[col])
- }
+ cell := p.addBlock(TableCell, data[cellStart:cellEnd])
+ cell.IsHeader = header
+ cell.Align = columns[col]
}
// pad it out with empty columns to get the right number
for ; col < len(columns); col++ {
- if header {
- p.r.TableHeaderCell(&rowWork, nil, columns[col])
- } else {
- p.r.TableCell(&rowWork, nil, columns[col])
- }
+ cell := p.addBlock(TableCell, nil)
+ cell.IsHeader = header
+ cell.Align = columns[col]
}
// silently ignore rows with too many cells
-
- p.r.TableRow(out, rowWork.Bytes())
}
// returns blockquote prefix length
-func (p *parser) quotePrefix(data []byte) int {
+func (p *Markdown) quotePrefix(data []byte) int {
i := 0
- for i < 3 && data[i] == ' ' {
+ for i < 3 && i < len(data) && data[i] == ' ' {
i++
}
- if data[i] == '>' {
- if data[i+1] == ' ' {
+ if i < len(data) && data[i] == '>' {
+ if i+1 < len(data) && data[i+1] == ' ' {
return i + 2
}
return i + 1
@@ -917,7 +955,7 @@ func (p *parser) quotePrefix(data []byte) int {
// blockquote ends with at least one blank line
// followed by something without a blockquote prefix
-func (p *parser) terminateBlockquote(data []byte, beg, end int) bool {
+func (p *Markdown) terminateBlockquote(data []byte, beg, end int) bool {
if p.isEmpty(data[beg:]) <= 0 {
return false
}
@@ -928,7 +966,8 @@ func (p *parser) terminateBlockquote(data []byte, beg, end int) bool {
}
// parse a blockquote fragment
-func (p *parser) quote(out *bytes.Buffer, data []byte) int {
+func (p *Markdown) quote(data []byte) int {
+ block := p.addBlock(BlockQuote, nil)
var raw bytes.Buffer
beg, end := 0, 0
for beg < len(data) {
@@ -936,9 +975,9 @@ func (p *parser) quote(out *bytes.Buffer, data []byte) int {
// Step over whole lines, collecting them. While doing that, check for
// fenced code and if one's found, incorporate it altogether,
// irregardless of any contents inside it
- for data[end] != '\n' {
- if p.flags&EXTENSION_FENCED_CODE != 0 {
- if i := p.fencedCodeBlock(out, data[end:], false); i > 0 {
+ for end < len(data) && data[end] != '\n' {
+ if p.extensions&FencedCode != 0 {
+ if i := p.fencedCodeBlock(data[end:], false); i > 0 {
// -1 to compensate for the extra end++ after the loop:
end += i - 1
break
@@ -946,44 +985,47 @@ func (p *parser) quote(out *bytes.Buffer, data []byte) int {
}
end++
}
- end++
-
+ if end < len(data) && data[end] == '\n' {
+ end++
+ }
if pre := p.quotePrefix(data[beg:]); pre > 0 {
// skip the prefix
beg += pre
} else if p.terminateBlockquote(data, beg, end) {
break
}
-
// this line is part of the blockquote
raw.Write(data[beg:end])
beg = end
}
-
- var cooked bytes.Buffer
- p.block(&cooked, raw.Bytes())
- p.r.BlockQuote(out, cooked.Bytes())
+ p.block(raw.Bytes())
+ p.finalize(block)
return end
}
// returns prefix length for block code
-func (p *parser) codePrefix(data []byte) int {
- if data[0] == ' ' && data[1] == ' ' && data[2] == ' ' && data[3] == ' ' {
+func (p *Markdown) codePrefix(data []byte) int {
+ if len(data) >= 1 && data[0] == '\t' {
+ return 1
+ }
+ if len(data) >= 4 && data[0] == ' ' && data[1] == ' ' && data[2] == ' ' && data[3] == ' ' {
return 4
}
return 0
}
-func (p *parser) code(out *bytes.Buffer, data []byte) int {
+func (p *Markdown) code(data []byte) int {
var work bytes.Buffer
i := 0
for i < len(data) {
beg := i
- for data[i] != '\n' {
+ for i < len(data) && data[i] != '\n' {
+ i++
+ }
+ if i < len(data) && data[i] == '\n' {
i++
}
- i++
blankline := p.isEmpty(data[beg:i]) > 0
if pre := p.codePrefix(data[beg:i]); pre > 0 {
@@ -994,7 +1036,7 @@ func (p *parser) code(out *bytes.Buffer, data []byte) int {
break
}
- // verbatim copy to the working buffeu
+ // verbatim copy to the working buffer
if blankline {
work.WriteByte('\n')
} else {
@@ -1014,122 +1056,195 @@ func (p *parser) code(out *bytes.Buffer, data []byte) int {
work.WriteByte('\n')
- p.r.BlockCode(out, work.Bytes(), "")
+ block := p.addBlock(CodeBlock, work.Bytes()) // TODO: get rid of temp buffer
+ block.IsFenced = false
+ finalizeCodeBlock(block)
return i
}
// returns unordered list item prefix
-func (p *parser) uliPrefix(data []byte) int {
+func (p *Markdown) uliPrefix(data []byte) int {
i := 0
-
// start with up to 3 spaces
- for i < 3 && data[i] == ' ' {
+ for i < len(data) && i < 3 && data[i] == ' ' {
i++
}
-
- // need a *, +, or - followed by a space
+ if i >= len(data)-1 {
+ return 0
+ }
+ // need one of {'*', '+', '-'} followed by a space or a tab
if (data[i] != '*' && data[i] != '+' && data[i] != '-') ||
- data[i+1] != ' ' {
+ (data[i+1] != ' ' && data[i+1] != '\t') {
return 0
}
return i + 2
}
// returns ordered list item prefix
-func (p *parser) oliPrefix(data []byte) int {
+func (p *Markdown) oliPrefix(data []byte) int {
i := 0
// start with up to 3 spaces
- for i < 3 && data[i] == ' ' {
+ for i < 3 && i < len(data) && data[i] == ' ' {
i++
}
// count the digits
start := i
- for data[i] >= '0' && data[i] <= '9' {
+ for i < len(data) && data[i] >= '0' && data[i] <= '9' {
i++
}
+ if start == i || i >= len(data)-1 {
+ return 0
+ }
- // we need >= 1 digits followed by a dot and a space
- if start == i || data[i] != '.' || data[i+1] != ' ' {
+ // we need >= 1 digits followed by a dot and a space or a tab
+ if data[i] != '.' || !(data[i+1] == ' ' || data[i+1] == '\t') {
return 0
}
return i + 2
}
// returns definition list item prefix
-func (p *parser) dliPrefix(data []byte) int {
+func (p *Markdown) dliPrefix(data []byte) int {
+ if len(data) < 2 {
+ return 0
+ }
i := 0
-
- // need a : followed by a spaces
- if data[i] != ':' || data[i+1] != ' ' {
+ // need a ':' followed by a space or a tab
+ if data[i] != ':' || !(data[i+1] == ' ' || data[i+1] == '\t') {
return 0
}
- for data[i] == ' ' {
+ for i < len(data) && data[i] == ' ' {
i++
}
return i + 2
}
// parse ordered or unordered list block
-func (p *parser) list(out *bytes.Buffer, data []byte, flags int) int {
+func (p *Markdown) list(data []byte, flags ListType) int {
i := 0
- flags |= LIST_ITEM_BEGINNING_OF_LIST
- work := func() bool {
- for i < len(data) {
- skip := p.listItem(out, data[i:], &flags)
- i += skip
+ flags |= ListItemBeginningOfList
+ block := p.addBlock(List, nil)
+ block.ListFlags = flags
+ block.Tight = true
- if skip == 0 || flags&LIST_ITEM_END_OF_LIST != 0 {
- break
- }
- flags &= ^LIST_ITEM_BEGINNING_OF_LIST
+ for i < len(data) {
+ skip := p.listItem(data[i:], &flags)
+ if flags&ListItemContainsBlock != 0 {
+ block.ListData.Tight = false
}
- return true
+ i += skip
+ if skip == 0 || flags&ListItemEndOfList != 0 {
+ break
+ }
+ flags &= ^ListItemBeginningOfList
}
- p.r.List(out, work, flags)
+ above := block.Parent
+ finalizeList(block)
+ p.tip = above
return i
}
+// Returns true if the list item is not the same type as its parent list
+func (p *Markdown) listTypeChanged(data []byte, flags *ListType) bool {
+ if p.dliPrefix(data) > 0 && *flags&ListTypeDefinition == 0 {
+ return true
+ } else if p.oliPrefix(data) > 0 && *flags&ListTypeOrdered == 0 {
+ return true
+ } else if p.uliPrefix(data) > 0 && (*flags&ListTypeOrdered != 0 || *flags&ListTypeDefinition != 0) {
+ return true
+ }
+ return false
+}
+
+// Returns true if block ends with a blank line, descending if needed
+// into lists and sublists.
+func endsWithBlankLine(block *Node) bool {
+ // TODO: figure this out. Always false now.
+ for block != nil {
+ //if block.lastLineBlank {
+ //return true
+ //}
+ t := block.Type
+ if t == List || t == Item {
+ block = block.LastChild
+ } else {
+ break
+ }
+ }
+ return false
+}
+
+func finalizeList(block *Node) {
+ block.open = false
+ item := block.FirstChild
+ for item != nil {
+ // check for non-final list item ending with blank line:
+ if endsWithBlankLine(item) && item.Next != nil {
+ block.ListData.Tight = false
+ break
+ }
+ // recurse into children of list item, to see if there are spaces
+ // between any of them:
+ subItem := item.FirstChild
+ for subItem != nil {
+ if endsWithBlankLine(subItem) && (item.Next != nil || subItem.Next != nil) {
+ block.ListData.Tight = false
+ break
+ }
+ subItem = subItem.Next
+ }
+ item = item.Next
+ }
+}
+
// Parse a single list item.
// Assumes initial prefix is already removed if this is a sublist.
-func (p *parser) listItem(out *bytes.Buffer, data []byte, flags *int) int {
+func (p *Markdown) listItem(data []byte, flags *ListType) int {
// keep track of the indentation of the first line
itemIndent := 0
- for itemIndent < 3 && data[itemIndent] == ' ' {
- itemIndent++
+ if data[0] == '\t' {
+ itemIndent += 4
+ } else {
+ for itemIndent < 3 && data[itemIndent] == ' ' {
+ itemIndent++
+ }
}
+ var bulletChar byte = '*'
i := p.uliPrefix(data)
if i == 0 {
i = p.oliPrefix(data)
+ } else {
+ bulletChar = data[i-2]
}
if i == 0 {
i = p.dliPrefix(data)
// reset definition term flag
if i > 0 {
- *flags &= ^LIST_TYPE_TERM
+ *flags &= ^ListTypeTerm
}
}
if i == 0 {
- // if in defnition list, set term flag and continue
- if *flags&LIST_TYPE_DEFINITION != 0 {
- *flags |= LIST_TYPE_TERM
+ // if in definition list, set term flag and continue
+ if *flags&ListTypeDefinition != 0 {
+ *flags |= ListTypeTerm
} else {
return 0
}
}
// skip leading whitespace on first line
- for data[i] == ' ' {
+ for i < len(data) && data[i] == ' ' {
i++
}
// find the end of the line
line := i
- for i > 0 && data[i-1] != '\n' {
+ for i > 0 && i < len(data) && data[i-1] != '\n' {
i++
}
@@ -1150,7 +1265,7 @@ gatherlines:
i++
// find the end of this line
- for data[i-1] != '\n' {
+ for i < len(data) && data[i-1] != '\n' {
i++
}
@@ -1158,36 +1273,41 @@ gatherlines:
// and move on to the next line
if p.isEmpty(data[line:i]) > 0 {
containsBlankLine = true
- raw.Write(data[line:i])
line = i
continue
}
// calculate the indentation
indent := 0
- for indent < 4 && line+indent < i && data[line+indent] == ' ' {
- indent++
+ indentIndex := 0
+ if data[line] == '\t' {
+ indentIndex++
+ indent += 4
+ } else {
+ for indent < 4 && line+indent < i && data[line+indent] == ' ' {
+ indent++
+ indentIndex++
+ }
}
- chunk := data[line+indent : i]
+ chunk := data[line+indentIndex : i]
- if p.flags&EXTENSION_FENCED_CODE != 0 {
+ if p.extensions&FencedCode != 0 {
// determine if in or out of codeblock
// if in codeblock, ignore normal list processing
- _, marker := isFenceLine(chunk, nil, codeBlockMarker, false)
+ _, marker := isFenceLine(chunk, nil, codeBlockMarker)
if marker != "" {
if codeBlockMarker == "" {
// start of codeblock
codeBlockMarker = marker
} else {
// end of codeblock.
- *flags |= LIST_ITEM_CONTAINS_BLOCK
codeBlockMarker = ""
}
}
// we are in a codeblock, write line, and continue
if codeBlockMarker != "" || marker != "" {
- raw.Write(data[line+indent : i])
+ raw.Write(data[line+indentIndex : i])
line = i
continue gatherlines
}
@@ -1200,116 +1320,111 @@ gatherlines:
p.oliPrefix(chunk) > 0 ||
p.dliPrefix(chunk) > 0:
- if containsBlankLine {
- // end the list if the type changed after a blank line
- if indent <= itemIndent &&
- ((*flags&LIST_TYPE_ORDERED != 0 && p.uliPrefix(chunk) > 0) ||
- (*flags&LIST_TYPE_ORDERED == 0 && p.oliPrefix(chunk) > 0)) {
-
- *flags |= LIST_ITEM_END_OF_LIST
- break gatherlines
- }
- *flags |= LIST_ITEM_CONTAINS_BLOCK
- }
-
// to be a nested list, it must be indented more
- // if not, it is the next item in the same list
+ // if not, it is either a different kind of list
+ // or the next item in the same list
if indent <= itemIndent {
+ if p.listTypeChanged(chunk, flags) {
+ *flags |= ListItemEndOfList
+ } else if containsBlankLine {
+ *flags |= ListItemContainsBlock
+ }
+
break gatherlines
}
+ if containsBlankLine {
+ *flags |= ListItemContainsBlock
+ }
+
// is this the first item in the nested list?
if sublist == 0 {
sublist = raw.Len()
}
- // is this a nested prefix header?
- case p.isPrefixHeader(chunk):
- // if the header is not indented, it is not nested in the list
+ // is this a nested prefix heading?
+ case p.isPrefixHeading(chunk):
+ // if the heading is not indented, it is not nested in the list
// and thus ends the list
if containsBlankLine && indent < 4 {
- *flags |= LIST_ITEM_END_OF_LIST
+ *flags |= ListItemEndOfList
break gatherlines
}
- *flags |= LIST_ITEM_CONTAINS_BLOCK
+ *flags |= ListItemContainsBlock
// anything following an empty line is only part
// of this item if it is indented 4 spaces
// (regardless of the indentation of the beginning of the item)
case containsBlankLine && indent < 4:
- if *flags&LIST_TYPE_DEFINITION != 0 && i < len(data)-1 {
+ if *flags&ListTypeDefinition != 0 && i < len(data)-1 {
// is the next item still a part of this list?
next := i
- for data[next] != '\n' {
+ for next < len(data) && data[next] != '\n' {
next++
}
for next < len(data)-1 && data[next] == '\n' {
next++
}
if i < len(data)-1 && data[i] != ':' && data[next] != ':' {
- *flags |= LIST_ITEM_END_OF_LIST
+ *flags |= ListItemEndOfList
}
} else {
- *flags |= LIST_ITEM_END_OF_LIST
+ *flags |= ListItemEndOfList
}
break gatherlines
// a blank line means this should be parsed as a block
case containsBlankLine:
- *flags |= LIST_ITEM_CONTAINS_BLOCK
+ raw.WriteByte('\n')
+ *flags |= ListItemContainsBlock
}
- containsBlankLine = false
+ // if this line was preceded by one or more blanks,
+ // re-introduce the blank into the buffer
+ if containsBlankLine {
+ containsBlankLine = false
+ raw.WriteByte('\n')
+ }
// add the line into the working buffer without prefix
- raw.Write(data[line+indent : i])
+ raw.Write(data[line+indentIndex : i])
line = i
}
- // If reached end of data, the Renderer.ListItem call we're going to make below
- // is definitely the last in the list.
- if line >= len(data) {
- *flags |= LIST_ITEM_END_OF_LIST
- }
-
rawBytes := raw.Bytes()
+ block := p.addBlock(Item, nil)
+ block.ListFlags = *flags
+ block.Tight = false
+ block.BulletChar = bulletChar
+ block.Delimiter = '.' // Only '.' is possible in Markdown, but ')' will also be possible in CommonMark
+
// render the contents of the list item
- var cooked bytes.Buffer
- if *flags&LIST_ITEM_CONTAINS_BLOCK != 0 && *flags&LIST_TYPE_TERM == 0 {
+ if *flags&ListItemContainsBlock != 0 && *flags&ListTypeTerm == 0 {
// intermediate render of block item, except for definition term
if sublist > 0 {
- p.block(&cooked, rawBytes[:sublist])
- p.block(&cooked, rawBytes[sublist:])
+ p.block(rawBytes[:sublist])
+ p.block(rawBytes[sublist:])
} else {
- p.block(&cooked, rawBytes)
+ p.block(rawBytes)
}
} else {
// intermediate render of inline item
if sublist > 0 {
- p.inline(&cooked, rawBytes[:sublist])
- p.block(&cooked, rawBytes[sublist:])
+ child := p.addChild(Paragraph, 0)
+ child.content = rawBytes[:sublist]
+ p.block(rawBytes[sublist:])
} else {
- p.inline(&cooked, rawBytes)
+ child := p.addChild(Paragraph, 0)
+ child.content = rawBytes
}
}
-
- // render the actual list item
- cookedBytes := cooked.Bytes()
- parsedEnd := len(cookedBytes)
-
- // strip trailing newlines
- for parsedEnd > 0 && cookedBytes[parsedEnd-1] == '\n' {
- parsedEnd--
- }
- p.r.ListItem(out, cookedBytes[:parsedEnd], *flags)
-
return line
}
// render a single paragraph that has already been parsed out
-func (p *parser) renderParagraph(out *bytes.Buffer, data []byte) {
+func (p *Markdown) renderParagraph(data []byte) {
if len(data) == 0 {
return
}
@@ -1320,27 +1435,29 @@ func (p *parser) renderParagraph(out *bytes.Buffer, data []byte) {
beg++
}
+ end := len(data)
// trim trailing newline
- end := len(data) - 1
+ if data[len(data)-1] == '\n' {
+ end--
+ }
// trim trailing spaces
for end > beg && data[end-1] == ' ' {
end--
}
- work := func() bool {
- p.inline(out, data[beg:end])
- return true
- }
- p.r.Paragraph(out, work)
+ p.addBlock(Paragraph, data[beg:end])
}
-func (p *parser) paragraph(out *bytes.Buffer, data []byte) int {
+func (p *Markdown) paragraph(data []byte) int {
// prev: index of 1st char of previous line
// line: index of 1st char of current line
// i: index of cursor/end of current line
var prev, line, i int
-
+ tabSize := TabSizeDefault
+ if p.extensions&TabSizeEight != 0 {
+ tabSize = TabSizeDouble
+ }
// keep going until we find something to mark the end of the paragraph
for i < len(data) {
// mark the beginning of the current line
@@ -1348,24 +1465,32 @@ func (p *parser) paragraph(out *bytes.Buffer, data []byte) int {
current := data[i:]
line = i
+ // did we find a reference or a footnote? If so, end a paragraph
+ // preceding it and report that we have consumed up to the end of that
+ // reference:
+ if refEnd := isReference(p, current, tabSize); refEnd > 0 {
+ p.renderParagraph(data[:i])
+ return i + refEnd
+ }
+
// did we find a blank line marking the end of the paragraph?
if n := p.isEmpty(current); n > 0 {
// did this blank line followed by a definition list item?
- if p.flags&EXTENSION_DEFINITION_LISTS != 0 {
+ if p.extensions&DefinitionLists != 0 {
if i < len(data)-1 && data[i+1] == ':' {
- return p.list(out, data[prev:], LIST_TYPE_DEFINITION)
+ return p.list(data[prev:], ListTypeDefinition)
}
}
- p.renderParagraph(out, data[:i])
+ p.renderParagraph(data[:i])
return i + n
}
- // an underline under some text marks a header, so our paragraph ended on prev line
+ // an underline under some text marks a heading, so our paragraph ended on prev line
if i > 0 {
- if level := p.isUnderlinedHeader(current); level > 0 {
+ if level := p.isUnderlinedHeading(current); level > 0 {
// render the paragraph
- p.renderParagraph(out, data[:prev])
+ p.renderParagraph(data[:prev])
// ignore leading and trailing whitespace
eol := i - 1
@@ -1376,24 +1501,17 @@ func (p *parser) paragraph(out *bytes.Buffer, data []byte) int {
eol--
}
- // render the header
- // this ugly double closure avoids forcing variables onto the heap
- work := func(o *bytes.Buffer, pp *parser, d []byte) func() bool {
- return func() bool {
- pp.inline(o, d)
- return true
- }
- }(out, p, data[prev:eol])
-
id := ""
- if p.flags&EXTENSION_AUTO_HEADER_IDS != 0 {
- id = SanitizedAnchorName(string(data[prev:eol]))
+ if p.extensions&AutoHeadingIDs != 0 {
+ id = sanitized_anchor_name.Create(string(data[prev:eol]))
}
- p.r.Header(out, work, level, id)
+ block := p.addBlock(Heading, data[prev:eol])
+ block.Level = level
+ block.HeadingID = id
// find the end of the underline
- for data[i] != '\n' {
+ for i < len(data) && data[i] != '\n' {
i++
}
return i
@@ -1401,74 +1519,72 @@ func (p *parser) paragraph(out *bytes.Buffer, data []byte) int {
}
// if the next line starts a block of HTML, then the paragraph ends here
- if p.flags&EXTENSION_LAX_HTML_BLOCKS != 0 {
- if data[i] == '<' && p.html(out, current, false) > 0 {
+ if p.extensions&LaxHTMLBlocks != 0 {
+ if data[i] == '<' && p.html(current, false) > 0 {
// rewind to before the HTML block
- p.renderParagraph(out, data[:i])
+ p.renderParagraph(data[:i])
return i
}
}
- // if there's a prefixed header or a horizontal rule after this, paragraph is over
- if p.isPrefixHeader(current) || p.isHRule(current) {
- p.renderParagraph(out, data[:i])
+ // if there's a prefixed heading or a horizontal rule after this, paragraph is over
+ if p.isPrefixHeading(current) || p.isHRule(current) {
+ p.renderParagraph(data[:i])
return i
}
// if there's a fenced code block, paragraph is over
- if p.flags&EXTENSION_FENCED_CODE != 0 {
- if p.fencedCodeBlock(out, current, false) > 0 {
- p.renderParagraph(out, data[:i])
+ if p.extensions&FencedCode != 0 {
+ if p.fencedCodeBlock(current, false) > 0 {
+ p.renderParagraph(data[:i])
return i
}
}
// if there's a definition list item, prev line is a definition term
- if p.flags&EXTENSION_DEFINITION_LISTS != 0 {
+ if p.extensions&DefinitionLists != 0 {
if p.dliPrefix(current) != 0 {
- return p.list(out, data[prev:], LIST_TYPE_DEFINITION)
+ ret := p.list(data[prev:], ListTypeDefinition)
+ return ret
}
}
// if there's a list after this, paragraph is over
- if p.flags&EXTENSION_NO_EMPTY_LINE_BEFORE_BLOCK != 0 {
+ if p.extensions&NoEmptyLineBeforeBlock != 0 {
if p.uliPrefix(current) != 0 ||
p.oliPrefix(current) != 0 ||
p.quotePrefix(current) != 0 ||
p.codePrefix(current) != 0 {
- p.renderParagraph(out, data[:i])
+ p.renderParagraph(data[:i])
return i
}
}
// otherwise, scan to the beginning of the next line
- for data[i] != '\n' {
- i++
+ nl := bytes.IndexByte(data[i:], '\n')
+ if nl >= 0 {
+ i += nl + 1
+ } else {
+ i += len(data[i:])
}
- i++
}
- p.renderParagraph(out, data[:i])
+ p.renderParagraph(data[:i])
return i
}
-// SanitizedAnchorName returns a sanitized anchor name for the given text.
-//
-// It implements the algorithm specified in the package comment.
-func SanitizedAnchorName(text string) string {
- var anchorName []rune
- futureDash := false
- for _, r := range text {
- switch {
- case unicode.IsLetter(r) || unicode.IsNumber(r):
- if futureDash && len(anchorName) > 0 {
- anchorName = append(anchorName, '-')
- }
- futureDash = false
- anchorName = append(anchorName, unicode.ToLower(r))
- default:
- futureDash = true
- }
+func skipChar(data []byte, start int, char byte) int {
+ i := start
+ for i < len(data) && data[i] == char {
+ i++
}
- return string(anchorName)
+ return i
+}
+
+func skipUntilChar(text []byte, start int, char byte) int {
+ i := start
+ for i < len(text) && text[i] != char {
+ i++
+ }
+ return i
}
diff --git a/vendor/github.com/russross/blackfriday/v2/doc.go b/vendor/github.com/russross/blackfriday/v2/doc.go
new file mode 100644
index 000000000..5b3fa9876
--- /dev/null
+++ b/vendor/github.com/russross/blackfriday/v2/doc.go
@@ -0,0 +1,18 @@
+// Package blackfriday is a markdown processor.
+//
+// It translates plain text with simple formatting rules into an AST, which can
+// then be further processed to HTML (provided by Blackfriday itself) or other
+// formats (provided by the community).
+//
+// The simplest way to invoke Blackfriday is to call the Run function. It will
+// take a text input and produce a text output in HTML (or other format).
+//
+// A slightly more sophisticated way to use Blackfriday is to create a Markdown
+// processor and to call Parse, which returns a syntax tree for the input
+// document. You can leverage Blackfriday's parsing for content extraction from
+// markdown documents. You can assign a custom renderer and set various options
+// to the Markdown processor.
+//
+// If you're interested in calling Blackfriday from command line, see
+// https://github.com/russross/blackfriday-tool.
+package blackfriday
diff --git a/vendor/github.com/russross/blackfriday/v2/esc.go b/vendor/github.com/russross/blackfriday/v2/esc.go
new file mode 100644
index 000000000..6385f27cb
--- /dev/null
+++ b/vendor/github.com/russross/blackfriday/v2/esc.go
@@ -0,0 +1,34 @@
+package blackfriday
+
+import (
+ "html"
+ "io"
+)
+
+var htmlEscaper = [256][]byte{
+ '&': []byte("&amp;"),
+ '<': []byte("&lt;"),
+ '>': []byte("&gt;"),
+ '"': []byte("&quot;"),
+}
+
+func escapeHTML(w io.Writer, s []byte) {
+ var start, end int
+ for end < len(s) {
+ escSeq := htmlEscaper[s[end]]
+ if escSeq != nil {
+ w.Write(s[start:end])
+ w.Write(escSeq)
+ start = end + 1
+ }
+ end++
+ }
+ if start < len(s) && end <= len(s) {
+ w.Write(s[start:end])
+ }
+}
+
+func escLink(w io.Writer, text []byte) {
+ unesc := html.UnescapeString(string(text))
+ escapeHTML(w, []byte(unesc))
+}
diff --git a/vendor/github.com/russross/blackfriday/v2/go.mod b/vendor/github.com/russross/blackfriday/v2/go.mod
new file mode 100644
index 000000000..620b74e0a
--- /dev/null
+++ b/vendor/github.com/russross/blackfriday/v2/go.mod
@@ -0,0 +1 @@
+module github.com/russross/blackfriday/v2
diff --git a/vendor/github.com/russross/blackfriday/v2/html.go b/vendor/github.com/russross/blackfriday/v2/html.go
new file mode 100644
index 000000000..284c87184
--- /dev/null
+++ b/vendor/github.com/russross/blackfriday/v2/html.go
@@ -0,0 +1,949 @@
+//
+// Blackfriday Markdown Processor
+// Available at http://github.com/russross/blackfriday
+//
+// Copyright © 2011 Russ Ross <[email protected]>.
+// Distributed under the Simplified BSD License.
+// See README.md for details.
+//
+
+//
+//
+// HTML rendering backend
+//
+//
+
+package blackfriday
+
+import (
+ "bytes"
+ "fmt"
+ "io"
+ "regexp"
+ "strings"
+)
+
+// HTMLFlags control optional behavior of HTML renderer.
+type HTMLFlags int
+
+// HTML renderer configuration options.
+const (
+ HTMLFlagsNone HTMLFlags = 0
+ SkipHTML HTMLFlags = 1 << iota // Skip preformatted HTML blocks
+ SkipImages // Skip embedded images
+ SkipLinks // Skip all links
+ Safelink // Only link to trusted protocols
+ NofollowLinks // Only link with rel="nofollow"
+ NoreferrerLinks // Only link with rel="noreferrer"
+ NoopenerLinks // Only link with rel="noopener"
+ HrefTargetBlank // Add a blank target
+ CompletePage // Generate a complete HTML page
+ UseXHTML // Generate XHTML output instead of HTML
+ FootnoteReturnLinks // Generate a link at the end of a footnote to return to the source
+ Smartypants // Enable smart punctuation substitutions
+ SmartypantsFractions // Enable smart fractions (with Smartypants)
+ SmartypantsDashes // Enable smart dashes (with Smartypants)
+ SmartypantsLatexDashes // Enable LaTeX-style dashes (with Smartypants)
+ SmartypantsAngledQuotes // Enable angled double quotes (with Smartypants) for double quotes rendering
+ SmartypantsQuotesNBSP // Enable « French guillemets » (with Smartypants)
+ TOC // Generate a table of contents
+)
+
+var (
+ htmlTagRe = regexp.MustCompile("(?i)^" + htmlTag)
+)
+
+const (
+ htmlTag = "(?:" + openTag + "|" + closeTag + "|" + htmlComment + "|" +
+ processingInstruction + "|" + declaration + "|" + cdata + ")"
+ closeTag = "</" + tagName + "\\s*[>]"
+ openTag = "<" + tagName + attribute + "*" + "\\s*/?>"
+ attribute = "(?:" + "\\s+" + attributeName + attributeValueSpec + "?)"
+ attributeValue = "(?:" + unquotedValue + "|" + singleQuotedValue + "|" + doubleQuotedValue + ")"
+ attributeValueSpec = "(?:" + "\\s*=" + "\\s*" + attributeValue + ")"
+ attributeName = "[a-zA-Z_:][a-zA-Z0-9:._-]*"
+ cdata = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>"
+ declaration = "<![A-Z]+" + "\\s+[^>]*>"
+ doubleQuotedValue = "\"[^\"]*\""
+ htmlComment = "<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->"
+ processingInstruction = "[<][?].*?[?][>]"
+ singleQuotedValue = "'[^']*'"
+ tagName = "[A-Za-z][A-Za-z0-9-]*"
+ unquotedValue = "[^\"'=<>`\\x00-\\x20]+"
+)
+
+// HTMLRendererParameters is a collection of supplementary parameters tweaking
+// the behavior of various parts of HTML renderer.
+type HTMLRendererParameters struct {
+ // Prepend this text to each relative URL.
+ AbsolutePrefix string
+ // Add this text to each footnote anchor, to ensure uniqueness.
+ FootnoteAnchorPrefix string
+ // Show this text inside the <a> tag for a footnote return link, if the
+ // HTML_FOOTNOTE_RETURN_LINKS flag is enabled. If blank, the string
+ // <sup>[return]</sup> is used.
+ FootnoteReturnLinkContents string
+ // If set, add this text to the front of each Heading ID, to ensure
+ // uniqueness.
+ HeadingIDPrefix string
+ // If set, add this text to the back of each Heading ID, to ensure uniqueness.
+ HeadingIDSuffix string
+ // Increase heading levels: if the offset is 1, <h1> becomes <h2> etc.
+ // Negative offset is also valid.
+ // Resulting levels are clipped between 1 and 6.
+ HeadingLevelOffset int
+
+ Title string // Document title (used if CompletePage is set)
+ CSS string // Optional CSS file URL (used if CompletePage is set)
+ Icon string // Optional icon file URL (used if CompletePage is set)
+
+ Flags HTMLFlags // Flags allow customizing this renderer's behavior
+}
+
+// HTMLRenderer is a type that implements the Renderer interface for HTML output.
+//
+// Do not create this directly, instead use the NewHTMLRenderer function.
+type HTMLRenderer struct {
+ HTMLRendererParameters
+
+ closeTag string // how to end singleton tags: either " />" or ">"
+
+ // Track heading IDs to prevent ID collision in a single generation.
+ headingIDs map[string]int
+
+ lastOutputLen int
+ disableTags int
+
+ sr *SPRenderer
+}
+
+const (
+ xhtmlClose = " />"
+ htmlClose = ">"
+)
+
+// NewHTMLRenderer creates and configures an HTMLRenderer object, which
+// satisfies the Renderer interface.
+func NewHTMLRenderer(params HTMLRendererParameters) *HTMLRenderer {
+ // configure the rendering engine
+ closeTag := htmlClose
+ if params.Flags&UseXHTML != 0 {
+ closeTag = xhtmlClose
+ }
+
+ if params.FootnoteReturnLinkContents == "" {
+ params.FootnoteReturnLinkContents = `<sup>[return]</sup>`
+ }
+
+ return &HTMLRenderer{
+ HTMLRendererParameters: params,
+
+ closeTag: closeTag,
+ headingIDs: make(map[string]int),
+
+ sr: NewSmartypantsRenderer(params.Flags),
+ }
+}
+
+func isHTMLTag(tag []byte, tagname string) bool {
+ found, _ := findHTMLTagPos(tag, tagname)
+ return found
+}
+
+// Look for a character, but ignore it when it's in any kind of quotes, it
+// might be JavaScript
+func skipUntilCharIgnoreQuotes(html []byte, start int, char byte) int {
+ inSingleQuote := false
+ inDoubleQuote := false
+ inGraveQuote := false
+ i := start
+ for i < len(html) {
+ switch {
+ case html[i] == char && !inSingleQuote && !inDoubleQuote && !inGraveQuote:
+ return i
+ case html[i] == '\'':
+ inSingleQuote = !inSingleQuote
+ case html[i] == '"':
+ inDoubleQuote = !inDoubleQuote
+ case html[i] == '`':
+ inGraveQuote = !inGraveQuote
+ }
+ i++
+ }
+ return start
+}
+
+func findHTMLTagPos(tag []byte, tagname string) (bool, int) {
+ i := 0
+ if i < len(tag) && tag[0] != '<' {
+ return false, -1
+ }
+ i++
+ i = skipSpace(tag, i)
+
+ if i < len(tag) && tag[i] == '/' {
+ i++
+ }
+
+ i = skipSpace(tag, i)
+ j := 0
+ for ; i < len(tag); i, j = i+1, j+1 {
+ if j >= len(tagname) {
+ break
+ }
+
+ if strings.ToLower(string(tag[i]))[0] != tagname[j] {
+ return false, -1
+ }
+ }
+
+ if i == len(tag) {
+ return false, -1
+ }
+
+ rightAngle := skipUntilCharIgnoreQuotes(tag, i, '>')
+ if rightAngle >= i {
+ return true, rightAngle
+ }
+
+ return false, -1
+}
+
+func skipSpace(tag []byte, i int) int {
+ for i < len(tag) && isspace(tag[i]) {
+ i++
+ }
+ return i
+}
+
+func isRelativeLink(link []byte) (yes bool) {
+ // a tag begin with '#'
+ if link[0] == '#' {
+ return true
+ }
+
+ // link begin with '/' but not '//', the second maybe a protocol relative link
+ if len(link) >= 2 && link[0] == '/' && link[1] != '/' {
+ return true
+ }
+
+ // only the root '/'
+ if len(link) == 1 && link[0] == '/' {
+ return true
+ }
+
+ // current directory : begin with "./"
+ if bytes.HasPrefix(link, []byte("./")) {
+ return true
+ }
+
+ // parent directory : begin with "../"
+ if bytes.HasPrefix(link, []byte("../")) {
+ return true
+ }
+
+ return false
+}
+
+func (r *HTMLRenderer) ensureUniqueHeadingID(id string) string {
+ for count, found := r.headingIDs[id]; found; count, found = r.headingIDs[id] {
+ tmp := fmt.Sprintf("%s-%d", id, count+1)
+
+ if _, tmpFound := r.headingIDs[tmp]; !tmpFound {
+ r.headingIDs[id] = count + 1
+ id = tmp
+ } else {
+ id = id + "-1"
+ }
+ }
+
+ if _, found := r.headingIDs[id]; !found {
+ r.headingIDs[id] = 0
+ }
+
+ return id
+}
+
+func (r *HTMLRenderer) addAbsPrefix(link []byte) []byte {
+ if r.AbsolutePrefix != "" && isRelativeLink(link) && link[0] != '.' {
+ newDest := r.AbsolutePrefix
+ if link[0] != '/' {
+ newDest += "/"
+ }
+ newDest += string(link)
+ return []byte(newDest)
+ }
+ return link
+}
+
+func appendLinkAttrs(attrs []string, flags HTMLFlags, link []byte) []string {
+ if isRelativeLink(link) {
+ return attrs
+ }
+ val := []string{}
+ if flags&NofollowLinks != 0 {
+ val = append(val, "nofollow")
+ }
+ if flags&NoreferrerLinks != 0 {
+ val = append(val, "noreferrer")
+ }
+ if flags&NoopenerLinks != 0 {
+ val = append(val, "noopener")
+ }
+ if flags&HrefTargetBlank != 0 {
+ attrs = append(attrs, "target=\"_blank\"")
+ }
+ if len(val) == 0 {
+ return attrs
+ }
+ attr := fmt.Sprintf("rel=%q", strings.Join(val, " "))
+ return append(attrs, attr)
+}
+
+func isMailto(link []byte) bool {
+ return bytes.HasPrefix(link, []byte("mailto:"))
+}
+
+func needSkipLink(flags HTMLFlags, dest []byte) bool {
+ if flags&SkipLinks != 0 {
+ return true
+ }
+ return flags&Safelink != 0 && !isSafeLink(dest) && !isMailto(dest)
+}
+
+func isSmartypantable(node *Node) bool {
+ pt := node.Parent.Type
+ return pt != Link && pt != CodeBlock && pt != Code
+}
+
+func appendLanguageAttr(attrs []string, info []byte) []string {
+ if len(info) == 0 {
+ return attrs
+ }
+ endOfLang := bytes.IndexAny(info, "\t ")
+ if endOfLang < 0 {
+ endOfLang = len(info)
+ }
+ return append(attrs, fmt.Sprintf("class=\"language-%s\"", info[:endOfLang]))
+}
+
+func (r *HTMLRenderer) tag(w io.Writer, name []byte, attrs []string) {
+ w.Write(name)
+ if len(attrs) > 0 {
+ w.Write(spaceBytes)
+ w.Write([]byte(strings.Join(attrs, " ")))
+ }
+ w.Write(gtBytes)
+ r.lastOutputLen = 1
+}
+
+func footnoteRef(prefix string, node *Node) []byte {
+ urlFrag := prefix + string(slugify(node.Destination))
+ anchor := fmt.Sprintf(`<a href="#fn:%s">%d</a>`, urlFrag, node.NoteID)
+ return []byte(fmt.Sprintf(`<sup class="footnote-ref" id="fnref:%s">%s</sup>`, urlFrag, anchor))
+}
+
+func footnoteItem(prefix string, slug []byte) []byte {
+ return []byte(fmt.Sprintf(`<li id="fn:%s%s">`, prefix, slug))
+}
+
+func footnoteReturnLink(prefix, returnLink string, slug []byte) []byte {
+ const format = ` <a class="footnote-return" href="#fnref:%s%s">%s</a>`
+ return []byte(fmt.Sprintf(format, prefix, slug, returnLink))
+}
+
+func itemOpenCR(node *Node) bool {
+ if node.Prev == nil {
+ return false
+ }
+ ld := node.Parent.ListData
+ return !ld.Tight && ld.ListFlags&ListTypeDefinition == 0
+}
+
+func skipParagraphTags(node *Node) bool {
+ grandparent := node.Parent.Parent
+ if grandparent == nil || grandparent.Type != List {
+ return false
+ }
+ tightOrTerm := grandparent.Tight || node.Parent.ListFlags&ListTypeTerm != 0
+ return grandparent.Type == List && tightOrTerm
+}
+
+func cellAlignment(align CellAlignFlags) string {
+ switch align {
+ case TableAlignmentLeft:
+ return "left"
+ case TableAlignmentRight:
+ return "right"
+ case TableAlignmentCenter:
+ return "center"
+ default:
+ return ""
+ }
+}
+
+func (r *HTMLRenderer) out(w io.Writer, text []byte) {
+ if r.disableTags > 0 {
+ w.Write(htmlTagRe.ReplaceAll(text, []byte{}))
+ } else {
+ w.Write(text)
+ }
+ r.lastOutputLen = len(text)
+}
+
+func (r *HTMLRenderer) cr(w io.Writer) {
+ if r.lastOutputLen > 0 {
+ r.out(w, nlBytes)
+ }
+}
+
+var (
+ nlBytes = []byte{'\n'}
+ gtBytes = []byte{'>'}
+ spaceBytes = []byte{' '}
+)
+
+var (
+ brTag = []byte("<br>")
+ brXHTMLTag = []byte("<br />")
+ emTag = []byte("<em>")
+ emCloseTag = []byte("</em>")
+ strongTag = []byte("<strong>")
+ strongCloseTag = []byte("</strong>")
+ delTag = []byte("<del>")
+ delCloseTag = []byte("</del>")
+ ttTag = []byte("<tt>")
+ ttCloseTag = []byte("</tt>")
+ aTag = []byte("<a")
+ aCloseTag = []byte("</a>")
+ preTag = []byte("<pre>")
+ preCloseTag = []byte("</pre>")
+ codeTag = []byte("<code>")
+ codeCloseTag = []byte("</code>")
+ pTag = []byte("<p>")
+ pCloseTag = []byte("</p>")
+ blockquoteTag = []byte("<blockquote>")
+ blockquoteCloseTag = []byte("</blockquote>")
+ hrTag = []byte("<hr>")
+ hrXHTMLTag = []byte("<hr />")
+ ulTag = []byte("<ul>")
+ ulCloseTag = []byte("</ul>")
+ olTag = []byte("<ol>")
+ olCloseTag = []byte("</ol>")
+ dlTag = []byte("<dl>")
+ dlCloseTag = []byte("</dl>")
+ liTag = []byte("<li>")
+ liCloseTag = []byte("</li>")
+ ddTag = []byte("<dd>")
+ ddCloseTag = []byte("</dd>")
+ dtTag = []byte("<dt>")
+ dtCloseTag = []byte("</dt>")
+ tableTag = []byte("<table>")
+ tableCloseTag = []byte("</table>")
+ tdTag = []byte("<td")
+ tdCloseTag = []byte("</td>")
+ thTag = []byte("<th")
+ thCloseTag = []byte("</th>")
+ theadTag = []byte("<thead>")
+ theadCloseTag = []byte("</thead>")
+ tbodyTag = []byte("<tbody>")
+ tbodyCloseTag = []byte("</tbody>")
+ trTag = []byte("<tr>")
+ trCloseTag = []byte("</tr>")
+ h1Tag = []byte("<h1")
+ h1CloseTag = []byte("</h1>")
+ h2Tag = []byte("<h2")
+ h2CloseTag = []byte("</h2>")
+ h3Tag = []byte("<h3")
+ h3CloseTag = []byte("</h3>")
+ h4Tag = []byte("<h4")
+ h4CloseTag = []byte("</h4>")
+ h5Tag = []byte("<h5")
+ h5CloseTag = []byte("</h5>")
+ h6Tag = []byte("<h6")
+ h6CloseTag = []byte("</h6>")
+
+ footnotesDivBytes = []byte("\n<div class=\"footnotes\">\n\n")
+ footnotesCloseDivBytes = []byte("\n</div>\n")
+)
+
+func headingTagsFromLevel(level int) ([]byte, []byte) {
+ if level <= 1 {
+ return h1Tag, h1CloseTag
+ }
+ switch level {
+ case 2:
+ return h2Tag, h2CloseTag
+ case 3:
+ return h3Tag, h3CloseTag
+ case 4:
+ return h4Tag, h4CloseTag
+ case 5:
+ return h5Tag, h5CloseTag
+ }
+ return h6Tag, h6CloseTag
+}
+
+func (r *HTMLRenderer) outHRTag(w io.Writer) {
+ if r.Flags&UseXHTML == 0 {
+ r.out(w, hrTag)
+ } else {
+ r.out(w, hrXHTMLTag)
+ }
+}
+
+// RenderNode is a default renderer of a single node of a syntax tree. For
+// block nodes it will be called twice: first time with entering=true, second
+// time with entering=false, so that it could know when it's working on an open
+// tag and when on close. It writes the result to w.
+//
+// The return value is a way to tell the calling walker to adjust its walk
+// pattern: e.g. it can terminate the traversal by returning Terminate. Or it
+// can ask the walker to skip a subtree of this node by returning SkipChildren.
+// The typical behavior is to return GoToNext, which asks for the usual
+// traversal to the next node.
+func (r *HTMLRenderer) RenderNode(w io.Writer, node *Node, entering bool) WalkStatus {
+ attrs := []string{}
+ switch node.Type {
+ case Text:
+ if r.Flags&Smartypants != 0 {
+ var tmp bytes.Buffer
+ escapeHTML(&tmp, node.Literal)
+ r.sr.Process(w, tmp.Bytes())
+ } else {
+ if node.Parent.Type == Link {
+ escLink(w, node.Literal)
+ } else {
+ escapeHTML(w, node.Literal)
+ }
+ }
+ case Softbreak:
+ r.cr(w)
+ // TODO: make it configurable via out(renderer.softbreak)
+ case Hardbreak:
+ if r.Flags&UseXHTML == 0 {
+ r.out(w, brTag)
+ } else {
+ r.out(w, brXHTMLTag)
+ }
+ r.cr(w)
+ case Emph:
+ if entering {
+ r.out(w, emTag)
+ } else {
+ r.out(w, emCloseTag)
+ }
+ case Strong:
+ if entering {
+ r.out(w, strongTag)
+ } else {
+ r.out(w, strongCloseTag)
+ }
+ case Del:
+ if entering {
+ r.out(w, delTag)
+ } else {
+ r.out(w, delCloseTag)
+ }
+ case HTMLSpan:
+ if r.Flags&SkipHTML != 0 {
+ break
+ }
+ r.out(w, node.Literal)
+ case Link:
+ // mark it but don't link it if it is not a safe link: no smartypants
+ dest := node.LinkData.Destination
+ if needSkipLink(r.Flags, dest) {
+ if entering {
+ r.out(w, ttTag)
+ } else {
+ r.out(w, ttCloseTag)
+ }
+ } else {
+ if entering {
+ dest = r.addAbsPrefix(dest)
+ var hrefBuf bytes.Buffer
+ hrefBuf.WriteString("href=\"")
+ escLink(&hrefBuf, dest)
+ hrefBuf.WriteByte('"')
+ attrs = append(attrs, hrefBuf.String())
+ if node.NoteID != 0 {
+ r.out(w, footnoteRef(r.FootnoteAnchorPrefix, node))
+ break
+ }
+ attrs = appendLinkAttrs(attrs, r.Flags, dest)
+ if len(node.LinkData.Title) > 0 {
+ var titleBuff bytes.Buffer
+ titleBuff.WriteString("title=\"")
+ escapeHTML(&titleBuff, node.LinkData.Title)
+ titleBuff.WriteByte('"')
+ attrs = append(attrs, titleBuff.String())
+ }
+ r.tag(w, aTag, attrs)
+ } else {
+ if node.NoteID != 0 {
+ break
+ }
+ r.out(w, aCloseTag)
+ }
+ }
+ case Image:
+ if r.Flags&SkipImages != 0 {
+ return SkipChildren
+ }
+ if entering {
+ dest := node.LinkData.Destination
+ dest = r.addAbsPrefix(dest)
+ if r.disableTags == 0 {
+ //if options.safe && potentiallyUnsafe(dest) {
+ //out(w, `<img src="" alt="`)
+ //} else {
+ r.out(w, []byte(`<img src="`))
+ escLink(w, dest)
+ r.out(w, []byte(`" alt="`))
+ //}
+ }
+ r.disableTags++
+ } else {
+ r.disableTags--
+ if r.disableTags == 0 {
+ if node.LinkData.Title != nil {
+ r.out(w, []byte(`" title="`))
+ escapeHTML(w, node.LinkData.Title)
+ }
+ r.out(w, []byte(`" />`))
+ }
+ }
+ case Code:
+ r.out(w, codeTag)
+ escapeHTML(w, node.Literal)
+ r.out(w, codeCloseTag)
+ case Document:
+ break
+ case Paragraph:
+ if skipParagraphTags(node) {
+ break
+ }
+ if entering {
+ // TODO: untangle this clusterfuck about when the newlines need
+ // to be added and when not.
+ if node.Prev != nil {
+ switch node.Prev.Type {
+ case HTMLBlock, List, Paragraph, Heading, CodeBlock, BlockQuote, HorizontalRule:
+ r.cr(w)
+ }
+ }
+ if node.Parent.Type == BlockQuote && node.Prev == nil {
+ r.cr(w)
+ }
+ r.out(w, pTag)
+ } else {
+ r.out(w, pCloseTag)
+ if !(node.Parent.Type == Item && node.Next == nil) {
+ r.cr(w)
+ }
+ }
+ case BlockQuote:
+ if entering {
+ r.cr(w)
+ r.out(w, blockquoteTag)
+ } else {
+ r.out(w, blockquoteCloseTag)
+ r.cr(w)
+ }
+ case HTMLBlock:
+ if r.Flags&SkipHTML != 0 {
+ break
+ }
+ r.cr(w)
+ r.out(w, node.Literal)
+ r.cr(w)
+ case Heading:
+ headingLevel := r.HTMLRendererParameters.HeadingLevelOffset + node.Level
+ openTag, closeTag := headingTagsFromLevel(headingLevel)
+ if entering {
+ if node.IsTitleblock {
+ attrs = append(attrs, `class="title"`)
+ }
+ if node.HeadingID != "" {
+ id := r.ensureUniqueHeadingID(node.HeadingID)
+ if r.HeadingIDPrefix != "" {
+ id = r.HeadingIDPrefix + id
+ }
+ if r.HeadingIDSuffix != "" {
+ id = id + r.HeadingIDSuffix
+ }
+ attrs = append(attrs, fmt.Sprintf(`id="%s"`, id))
+ }
+ r.cr(w)
+ r.tag(w, openTag, attrs)
+ } else {
+ r.out(w, closeTag)
+ if !(node.Parent.Type == Item && node.Next == nil) {
+ r.cr(w)
+ }
+ }
+ case HorizontalRule:
+ r.cr(w)
+ r.outHRTag(w)
+ r.cr(w)
+ case List:
+ openTag := ulTag
+ closeTag := ulCloseTag
+ if node.ListFlags&ListTypeOrdered != 0 {
+ openTag = olTag
+ closeTag = olCloseTag
+ }
+ if node.ListFlags&ListTypeDefinition != 0 {
+ openTag = dlTag
+ closeTag = dlCloseTag
+ }
+ if entering {
+ if node.IsFootnotesList {
+ r.out(w, footnotesDivBytes)
+ r.outHRTag(w)
+ r.cr(w)
+ }
+ r.cr(w)
+ if node.Parent.Type == Item && node.Parent.Parent.Tight {
+ r.cr(w)
+ }
+ r.tag(w, openTag[:len(openTag)-1], attrs)
+ r.cr(w)
+ } else {
+ r.out(w, closeTag)
+ //cr(w)
+ //if node.parent.Type != Item {
+ // cr(w)
+ //}
+ if node.Parent.Type == Item && node.Next != nil {
+ r.cr(w)
+ }
+ if node.Parent.Type == Document || node.Parent.Type == BlockQuote {
+ r.cr(w)
+ }
+ if node.IsFootnotesList {
+ r.out(w, footnotesCloseDivBytes)
+ }
+ }
+ case Item:
+ openTag := liTag
+ closeTag := liCloseTag
+ if node.ListFlags&ListTypeDefinition != 0 {
+ openTag = ddTag
+ closeTag = ddCloseTag
+ }
+ if node.ListFlags&ListTypeTerm != 0 {
+ openTag = dtTag
+ closeTag = dtCloseTag
+ }
+ if entering {
+ if itemOpenCR(node) {
+ r.cr(w)
+ }
+ if node.ListData.RefLink != nil {
+ slug := slugify(node.ListData.RefLink)
+ r.out(w, footnoteItem(r.FootnoteAnchorPrefix, slug))
+ break
+ }
+ r.out(w, openTag)
+ } else {
+ if node.ListData.RefLink != nil {
+ slug := slugify(node.ListData.RefLink)
+ if r.Flags&FootnoteReturnLinks != 0 {
+ r.out(w, footnoteReturnLink(r.FootnoteAnchorPrefix, r.FootnoteReturnLinkContents, slug))
+ }
+ }
+ r.out(w, closeTag)
+ r.cr(w)
+ }
+ case CodeBlock:
+ attrs = appendLanguageAttr(attrs, node.Info)
+ r.cr(w)
+ r.out(w, preTag)
+ r.tag(w, codeTag[:len(codeTag)-1], attrs)
+ escapeHTML(w, node.Literal)
+ r.out(w, codeCloseTag)
+ r.out(w, preCloseTag)
+ if node.Parent.Type != Item {
+ r.cr(w)
+ }
+ case Table:
+ if entering {
+ r.cr(w)
+ r.out(w, tableTag)
+ } else {
+ r.out(w, tableCloseTag)
+ r.cr(w)
+ }
+ case TableCell:
+ openTag := tdTag
+ closeTag := tdCloseTag
+ if node.IsHeader {
+ openTag = thTag
+ closeTag = thCloseTag
+ }
+ if entering {
+ align := cellAlignment(node.Align)
+ if align != "" {
+ attrs = append(attrs, fmt.Sprintf(`align="%s"`, align))
+ }
+ if node.Prev == nil {
+ r.cr(w)
+ }
+ r.tag(w, openTag, attrs)
+ } else {
+ r.out(w, closeTag)
+ r.cr(w)
+ }
+ case TableHead:
+ if entering {
+ r.cr(w)
+ r.out(w, theadTag)
+ } else {
+ r.out(w, theadCloseTag)
+ r.cr(w)
+ }
+ case TableBody:
+ if entering {
+ r.cr(w)
+ r.out(w, tbodyTag)
+ // XXX: this is to adhere to a rather silly test. Should fix test.
+ if node.FirstChild == nil {
+ r.cr(w)
+ }
+ } else {
+ r.out(w, tbodyCloseTag)
+ r.cr(w)
+ }
+ case TableRow:
+ if entering {
+ r.cr(w)
+ r.out(w, trTag)
+ } else {
+ r.out(w, trCloseTag)
+ r.cr(w)
+ }
+ default:
+ panic("Unknown node type " + node.Type.String())
+ }
+ return GoToNext
+}
+
+// RenderHeader writes HTML document preamble and TOC if requested.
+func (r *HTMLRenderer) RenderHeader(w io.Writer, ast *Node) {
+ r.writeDocumentHeader(w)
+ if r.Flags&TOC != 0 {
+ r.writeTOC(w, ast)
+ }
+}
+
+// RenderFooter writes HTML document footer.
+func (r *HTMLRenderer) RenderFooter(w io.Writer, ast *Node) {
+ if r.Flags&CompletePage == 0 {
+ return
+ }
+ io.WriteString(w, "\n</body>\n</html>\n")
+}
+
+func (r *HTMLRenderer) writeDocumentHeader(w io.Writer) {
+ if r.Flags&CompletePage == 0 {
+ return
+ }
+ ending := ""
+ if r.Flags&UseXHTML != 0 {
+ io.WriteString(w, "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" ")
+ io.WriteString(w, "\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n")
+ io.WriteString(w, "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n")
+ ending = " /"
+ } else {
+ io.WriteString(w, "<!DOCTYPE html>\n")
+ io.WriteString(w, "<html>\n")
+ }
+ io.WriteString(w, "<head>\n")
+ io.WriteString(w, " <title>")
+ if r.Flags&Smartypants != 0 {
+ r.sr.Process(w, []byte(r.Title))
+ } else {
+ escapeHTML(w, []byte(r.Title))
+ }
+ io.WriteString(w, "</title>\n")
+ io.WriteString(w, " <meta name=\"GENERATOR\" content=\"Blackfriday Markdown Processor v")
+ io.WriteString(w, Version)
+ io.WriteString(w, "\"")
+ io.WriteString(w, ending)
+ io.WriteString(w, ">\n")
+ io.WriteString(w, " <meta charset=\"utf-8\"")
+ io.WriteString(w, ending)
+ io.WriteString(w, ">\n")
+ if r.CSS != "" {
+ io.WriteString(w, " <link rel=\"stylesheet\" type=\"text/css\" href=\"")
+ escapeHTML(w, []byte(r.CSS))
+ io.WriteString(w, "\"")
+ io.WriteString(w, ending)
+ io.WriteString(w, ">\n")
+ }
+ if r.Icon != "" {
+ io.WriteString(w, " <link rel=\"icon\" type=\"image/x-icon\" href=\"")
+ escapeHTML(w, []byte(r.Icon))
+ io.WriteString(w, "\"")
+ io.WriteString(w, ending)
+ io.WriteString(w, ">\n")
+ }
+ io.WriteString(w, "</head>\n")
+ io.WriteString(w, "<body>\n\n")
+}
+
+func (r *HTMLRenderer) writeTOC(w io.Writer, ast *Node) {
+ buf := bytes.Buffer{}
+
+ inHeading := false
+ tocLevel := 0
+ headingCount := 0
+
+ ast.Walk(func(node *Node, entering bool) WalkStatus {
+ if node.Type == Heading && !node.HeadingData.IsTitleblock {
+ inHeading = entering
+ if entering {
+ node.HeadingID = fmt.Sprintf("toc_%d", headingCount)
+ if node.Level == tocLevel {
+ buf.WriteString("</li>\n\n<li>")
+ } else if node.Level < tocLevel {
+ for node.Level < tocLevel {
+ tocLevel--
+ buf.WriteString("</li>\n</ul>")
+ }
+ buf.WriteString("</li>\n\n<li>")
+ } else {
+ for node.Level > tocLevel {
+ tocLevel++
+ buf.WriteString("\n<ul>\n<li>")
+ }
+ }
+
+ fmt.Fprintf(&buf, `<a href="#toc_%d">`, headingCount)
+ headingCount++
+ } else {
+ buf.WriteString("</a>")
+ }
+ return GoToNext
+ }
+
+ if inHeading {
+ return r.RenderNode(&buf, node, entering)
+ }
+
+ return GoToNext
+ })
+
+ for ; tocLevel > 0; tocLevel-- {
+ buf.WriteString("</li>\n</ul>")
+ }
+
+ if buf.Len() > 0 {
+ io.WriteString(w, "<nav>\n")
+ w.Write(buf.Bytes())
+ io.WriteString(w, "\n\n</nav>\n")
+ }
+ r.lastOutputLen = buf.Len()
+}
diff --git a/vendor/github.com/russross/blackfriday/inline.go b/vendor/github.com/russross/blackfriday/v2/inline.go
similarity index 63%
rename from vendor/github.com/russross/blackfriday/inline.go
rename to vendor/github.com/russross/blackfriday/v2/inline.go
index 4483b8f19..4ed290792 100644
--- a/vendor/github.com/russross/blackfriday/inline.go
+++ b/vendor/github.com/russross/blackfriday/v2/inline.go
@@ -22,6 +22,23 @@ import (
var (
urlRe = `((https?|ftp):\/\/|\/)[-A-Za-z0-9+&@#\/%?=~_|!:,.;\(\)]+`
anchorRe = regexp.MustCompile(`^(<a\shref="` + urlRe + `"(\stitle="[^"<>]+")?\s?>` + urlRe + `<\/a>)`)
+
+ // https://www.w3.org/TR/html5/syntax.html#character-references
+ // highest unicode code point in 17 planes (2^20): 1,114,112d =
+ // 7 dec digits or 6 hex digits
+ // named entity references can be 2-31 characters with stuff like &lt;
+ // at one end and &CounterClockwiseContourIntegral; at the other. There
+ // are also sometimes numbers at the end, although this isn't inherent
+ // in the specification; there are never numbers anywhere else in
+ // current character references, though; see &frac34; and &blk12;, etc.
+ // https://www.w3.org/TR/html5/syntax.html#named-character-references
+ //
+ // entity := "&" (named group | number ref) ";"
+ // named group := [a-zA-Z]{2,31}[0-9]{0,2}
+ // number ref := "#" (dec ref | hex ref)
+ // dec ref := [0-9]{1,7}
+ // hex ref := ("x" | "X") [0-9a-fA-F]{1,6}
+ htmlEntityRe = regexp.MustCompile(`&([a-zA-Z]{2,31}[0-9]{0,2}|#([0-9]{1,7}|[xX][0-9a-fA-F]{1,6}));`)
)
// Functions to parse text within a block
@@ -29,87 +46,89 @@ var (
// data is the complete block being rendered
// offset is the number of valid chars before the current cursor
-func (p *parser) inline(out *bytes.Buffer, data []byte) {
- // this is called recursively: enforce a maximum depth
- if p.nesting >= p.maxNesting {
+func (p *Markdown) inline(currBlock *Node, data []byte) {
+ // handlers might call us recursively: enforce a maximum depth
+ if p.nesting >= p.maxNesting || len(data) == 0 {
return
}
p.nesting++
-
- i, end := 0, 0
- for i < len(data) {
- // copy inactive chars into the output
- for end < len(data) && p.inlineCallback[data[end]] == nil {
- end++
- }
-
- p.r.NormalText(out, data[i:end])
-
- if end >= len(data) {
- break
- }
- i = end
-
- // call the trigger
+ beg, end := 0, 0
+ for end < len(data) {
handler := p.inlineCallback[data[end]]
- if consumed := handler(p, out, data, i); consumed == 0 {
- // no action from the callback; buffer the byte for later
- end = i + 1
+ if handler != nil {
+ if consumed, node := handler(p, data, end); consumed == 0 {
+ // No action from the callback.
+ end++
+ } else {
+ // Copy inactive chars into the output.
+ currBlock.AppendChild(text(data[beg:end]))
+ if node != nil {
+ currBlock.AppendChild(node)
+ }
+ // Skip past whatever the callback used.
+ beg = end + consumed
+ end = beg
+ }
} else {
- // skip past whatever the callback used
- i += consumed
- end = i
+ end++
}
}
-
+ if beg < len(data) {
+ if data[end-1] == '\n' {
+ end--
+ }
+ currBlock.AppendChild(text(data[beg:end]))
+ }
p.nesting--
}
// single and double emphasis parsing
-func emphasis(p *parser, out *bytes.Buffer, data []byte, offset int) int {
+func emphasis(p *Markdown, data []byte, offset int) (int, *Node) {
data = data[offset:]
c := data[0]
- ret := 0
if len(data) > 2 && data[1] != c {
// whitespace cannot follow an opening emphasis;
// strikethrough only takes two characters '~~'
if c == '~' || isspace(data[1]) {
- return 0
+ return 0, nil
}
- if ret = helperEmphasis(p, out, data[1:], c); ret == 0 {
- return 0
+ ret, node := helperEmphasis(p, data[1:], c)
+ if ret == 0 {
+ return 0, nil
}
- return ret + 1
+ return ret + 1, node
}
if len(data) > 3 && data[1] == c && data[2] != c {
if isspace(data[2]) {
- return 0
+ return 0, nil
}
- if ret = helperDoubleEmphasis(p, out, data[2:], c); ret == 0 {
- return 0
+ ret, node := helperDoubleEmphasis(p, data[2:], c)
+ if ret == 0 {
+ return 0, nil
}
- return ret + 2
+ return ret + 2, node
}
if len(data) > 4 && data[1] == c && data[2] == c && data[3] != c {
if c == '~' || isspace(data[3]) {
- return 0
+ return 0, nil
}
- if ret = helperTripleEmphasis(p, out, data, 3, c); ret == 0 {
- return 0
+ ret, node := helperTripleEmphasis(p, data, 3, c)
+ if ret == 0 {
+ return 0, nil
}
- return ret + 3
+ return ret + 3, node
}
- return 0
+ return 0, nil
}
-func codeSpan(p *parser, out *bytes.Buffer, data []byte, offset int) int {
+func codeSpan(p *Markdown, data []byte, offset int) (int, *Node) {
data = data[offset:]
nb := 0
@@ -131,7 +150,7 @@ func codeSpan(p *parser, out *bytes.Buffer, data []byte, offset int) int {
// no matching delimiter?
if i < nb && end >= len(data) {
- return 0
+ return 0, nil
}
// trim outside whitespace
@@ -147,43 +166,36 @@ func codeSpan(p *parser, out *bytes.Buffer, data []byte, offset int) int {
// render the code span
if fBegin != fEnd {
- p.r.CodeSpan(out, data[fBegin:fEnd])
+ code := NewNode(Code)
+ code.Literal = data[fBegin:fEnd]
+ return end, code
}
- return end
-
+ return end, nil
}
// newline preceded by two spaces becomes <br>
-// newline without two spaces works when EXTENSION_HARD_LINE_BREAK is enabled
-func lineBreak(p *parser, out *bytes.Buffer, data []byte, offset int) int {
- // remove trailing spaces from out
- outBytes := out.Bytes()
- end := len(outBytes)
- eol := end
- for eol > 0 && outBytes[eol-1] == ' ' {
- eol--
- }
- out.Truncate(eol)
-
- precededByTwoSpaces := offset >= 2 && data[offset-2] == ' ' && data[offset-1] == ' '
- precededByBackslash := offset >= 1 && data[offset-1] == '\\' // see http://spec.commonmark.org/0.18/#example-527
- precededByBackslash = precededByBackslash && p.flags&EXTENSION_BACKSLASH_LINE_BREAK != 0
-
- if p.flags&EXTENSION_JOIN_LINES != 0 {
- return 1
+func maybeLineBreak(p *Markdown, data []byte, offset int) (int, *Node) {
+ origOffset := offset
+ for offset < len(data) && data[offset] == ' ' {
+ offset++
}
- // should there be a hard line break here?
- if p.flags&EXTENSION_HARD_LINE_BREAK == 0 && !precededByTwoSpaces && !precededByBackslash {
- return 0
+ if offset < len(data) && data[offset] == '\n' {
+ if offset-origOffset >= 2 {
+ return offset - origOffset + 1, NewNode(Hardbreak)
+ }
+ return offset - origOffset, nil
}
+ return 0, nil
+}
- if precededByBackslash && eol > 0 {
- out.Truncate(eol - 1)
+// newline without two spaces works when HardLineBreak is enabled
+func lineBreak(p *Markdown, data []byte, offset int) (int, *Node) {
+ if p.extensions&HardLineBreak != 0 {
+ return 1, NewNode(Hardbreak)
}
- p.r.LineBreak(out)
- return 1
+ return 0, nil
}
type linkType int
@@ -202,27 +214,43 @@ func isReferenceStyleLink(data []byte, pos int, t linkType) bool {
return pos < len(data)-1 && data[pos] == '[' && data[pos+1] != '^'
}
+func maybeImage(p *Markdown, data []byte, offset int) (int, *Node) {
+ if offset < len(data)-1 && data[offset+1] == '[' {
+ return link(p, data, offset)
+ }
+ return 0, nil
+}
+
+func maybeInlineFootnote(p *Markdown, data []byte, offset int) (int, *Node) {
+ if offset < len(data)-1 && data[offset+1] == '[' {
+ return link(p, data, offset)
+ }
+ return 0, nil
+}
+
// '[': parse a link or an image or a footnote
-func link(p *parser, out *bytes.Buffer, data []byte, offset int) int {
+func link(p *Markdown, data []byte, offset int) (int, *Node) {
// no links allowed inside regular links, footnote, and deferred footnotes
if p.insideLink && (offset > 0 && data[offset-1] == '[' || len(data)-1 > offset && data[offset+1] == '^') {
- return 0
+ return 0, nil
}
var t linkType
switch {
// special case: ![^text] == deferred footnote (that follows something with
// an exclamation point)
- case p.flags&EXTENSION_FOOTNOTES != 0 && len(data)-1 > offset && data[offset+1] == '^':
+ case p.extensions&Footnotes != 0 && len(data)-1 > offset && data[offset+1] == '^':
t = linkDeferredFootnote
// ![alt] == image
- case offset > 0 && data[offset-1] == '!':
+ case offset >= 0 && data[offset] == '!':
t = linkImg
+ offset++
// ^[text] == inline footnote
// [^refId] == deferred footnote
- case p.flags&EXTENSION_FOOTNOTES != 0:
- if offset > 0 && data[offset-1] == '^' {
+ case p.extensions&Footnotes != 0:
+ if offset >= 0 && data[offset] == '^' {
t = linkInlineFootnote
+ offset++
} else if len(data)-1 > offset && data[offset+1] == '^' {
t = linkDeferredFootnote
}
@@ -235,7 +263,7 @@ func link(p *parser, out *bytes.Buffer, data []byte, offset int) int {
var (
i = 1
- noteId int
+ noteID int
title, link, altContent []byte
textHasNl = false
)
@@ -244,8 +272,6 @@ func link(p *parser, out *bytes.Buffer, data []byte, offset int) int {
i++
}
- brace := 0
-
// look for the matching closing bracket
for level := 1; level > 0 && i < len(data); i++ {
switch {
@@ -267,11 +293,12 @@ func link(p *parser, out *bytes.Buffer, data []byte, offset int) int {
}
if i >= len(data) {
- return 0
+ return 0, nil
}
txtE := i
i++
+ var footnoteNode *Node
// skip any amount of whitespace or newline
// (this is much more lax than original markdown syntax)
@@ -279,8 +306,8 @@ func link(p *parser, out *bytes.Buffer, data []byte, offset int) int {
i++
}
- switch {
// inline style link
+ switch {
case i < len(data) && data[i] == '(':
// skip initial whitespace
i++
@@ -291,27 +318,14 @@ func link(p *parser, out *bytes.Buffer, data []byte, offset int) int {
linkB := i
- // look for link end: ' " ), check for new opening braces and take this
- // into account, this may lead for overshooting and probably will require
- // some fine-tuning.
+ // look for link end: ' " )
findlinkend:
for i < len(data) {
switch {
case data[i] == '\\':
i += 2
- case data[i] == '(':
- brace++
- i++
-
- case data[i] == ')':
- if brace <= 0 {
- break findlinkend
- }
- brace--
- i++
-
- case data[i] == '\'' || data[i] == '"':
+ case data[i] == ')' || data[i] == '\'' || data[i] == '"':
break findlinkend
default:
@@ -320,7 +334,7 @@ func link(p *parser, out *bytes.Buffer, data []byte, offset int) int {
}
if i >= len(data) {
- return 0
+ return 0, nil
}
linkE := i
@@ -345,7 +359,7 @@ func link(p *parser, out *bytes.Buffer, data []byte, offset int) int {
}
if i >= len(data) {
- return 0
+ return 0, nil
}
// skip whitespace after title
@@ -397,7 +411,7 @@ func link(p *parser, out *bytes.Buffer, data []byte, offset int) int {
i++
}
if i >= len(data) {
- return 0
+ return 0, nil
}
linkE := i
@@ -427,7 +441,7 @@ func link(p *parser, out *bytes.Buffer, data []byte, offset int) int {
// find the reference with matching id
lr, ok := p.getRef(string(id))
if !ok {
- return 0
+ return 0, nil
}
// keep link and title from reference
@@ -464,9 +478,10 @@ func link(p *parser, out *bytes.Buffer, data []byte, offset int) int {
}
}
+ footnoteNode = NewNode(Item)
if t == linkInlineFootnote {
// create a new reference
- noteId = len(p.notes) + 1
+ noteID = len(p.notes) + 1
var fragment []byte
if len(id) > 0 {
@@ -477,18 +492,18 @@ func link(p *parser, out *bytes.Buffer, data []byte, offset int) int {
}
copy(fragment, slugify(id))
} else {
- fragment = append([]byte("footnote-"), []byte(strconv.Itoa(noteId))...)
+ fragment = append([]byte("footnote-"), []byte(strconv.Itoa(noteID))...)
}
ref := &reference{
- noteId: noteId,
+ noteID: noteID,
hasBlock: false,
link: fragment,
title: id,
+ footnote: footnoteNode,
}
p.notes = append(p.notes, ref)
- p.notesRecord[string(ref.link)] = struct{}{}
link = ref.link
title = ref.title
@@ -496,40 +511,26 @@ func link(p *parser, out *bytes.Buffer, data []byte, offset int) int {
// find the reference with matching id
lr, ok := p.getRef(string(id))
if !ok {
- return 0
+ return 0, nil
}
- if t == linkDeferredFootnote && !p.isFootnote(lr) {
- lr.noteId = len(p.notes) + 1
+ if t == linkDeferredFootnote {
+ lr.noteID = len(p.notes) + 1
+ lr.footnote = footnoteNode
p.notes = append(p.notes, lr)
- p.notesRecord[string(lr.link)] = struct{}{}
}
// keep link and title from reference
link = lr.link
// if inline footnote, title == footnote contents
title = lr.title
- noteId = lr.noteId
+ noteID = lr.noteID
}
// rewind the whitespace
i = txtE + 1
}
- // build content: img alt is escaped, link content is parsed
- var content bytes.Buffer
- if txtE > 1 {
- if t == linkImg {
- content.Write(data[1:txtE])
- } else {
- // links cannot contain other links, so turn off link parsing temporarily
- insideLink := p.insideLink
- p.insideLink = true
- p.inline(&content, data[1:txtE])
- p.insideLink = insideLink
- }
- }
-
var uLink []byte
if t == linkNormal || t == linkImg {
if len(link) > 0 {
@@ -539,49 +540,54 @@ func link(p *parser, out *bytes.Buffer, data []byte, offset int) int {
}
// links need something to click on and somewhere to go
- if len(uLink) == 0 || (t == linkNormal && content.Len() == 0) {
- return 0
+ if len(uLink) == 0 || (t == linkNormal && txtE <= 1) {
+ return 0, nil
}
}
// call the relevant rendering function
+ var linkNode *Node
switch t {
case linkNormal:
+ linkNode = NewNode(Link)
+ linkNode.Destination = normalizeURI(uLink)
+ linkNode.Title = title
if len(altContent) > 0 {
- p.r.Link(out, uLink, title, altContent)
+ linkNode.AppendChild(text(altContent))
} else {
- p.r.Link(out, uLink, title, content.Bytes())
+ // links cannot contain other links, so turn off link parsing
+ // temporarily and recurse
+ insideLink := p.insideLink
+ p.insideLink = true
+ p.inline(linkNode, data[1:txtE])
+ p.insideLink = insideLink
}
case linkImg:
- outSize := out.Len()
- outBytes := out.Bytes()
- if outSize > 0 && outBytes[outSize-1] == '!' {
- out.Truncate(outSize - 1)
- }
-
- p.r.Image(out, uLink, title, content.Bytes())
+ linkNode = NewNode(Image)
+ linkNode.Destination = uLink
+ linkNode.Title = title
+ linkNode.AppendChild(text(data[1:txtE]))
+ i++
- case linkInlineFootnote:
- outSize := out.Len()
- outBytes := out.Bytes()
- if outSize > 0 && outBytes[outSize-1] == '^' {
- out.Truncate(outSize - 1)
+ case linkInlineFootnote, linkDeferredFootnote:
+ linkNode = NewNode(Link)
+ linkNode.Destination = link
+ linkNode.Title = title
+ linkNode.NoteID = noteID
+ linkNode.Footnote = footnoteNode
+ if t == linkInlineFootnote {
+ i++
}
- p.r.FootnoteRef(out, link, noteId)
-
- case linkDeferredFootnote:
- p.r.FootnoteRef(out, link, noteId)
-
default:
- return 0
+ return 0, nil
}
- return i
+ return i, linkNode
}
-func (p *parser) inlineHTMLComment(out *bytes.Buffer, data []byte) int {
+func (p *Markdown) inlineHTMLComment(data []byte) int {
if len(data) < 5 {
return 0
}
@@ -600,44 +606,75 @@ func (p *parser) inlineHTMLComment(out *bytes.Buffer, data []byte) int {
return i + 1
}
+func stripMailto(link []byte) []byte {
+ if bytes.HasPrefix(link, []byte("mailto://")) {
+ return link[9:]
+ } else if bytes.HasPrefix(link, []byte("mailto:")) {
+ return link[7:]
+ } else {
+ return link
+ }
+}
+
+// autolinkType specifies a kind of autolink that gets detected.
+type autolinkType int
+
+// These are the possible flag values for the autolink renderer.
+const (
+ notAutolink autolinkType = iota
+ normalAutolink
+ emailAutolink
+)
+
// '<' when tags or autolinks are allowed
-func leftAngle(p *parser, out *bytes.Buffer, data []byte, offset int) int {
+func leftAngle(p *Markdown, data []byte, offset int) (int, *Node) {
data = data[offset:]
- altype := LINK_TYPE_NOT_AUTOLINK
- end := tagLength(data, &altype)
- if size := p.inlineHTMLComment(out, data); size > 0 {
+ altype, end := tagLength(data)
+ if size := p.inlineHTMLComment(data); size > 0 {
end = size
}
if end > 2 {
- if altype != LINK_TYPE_NOT_AUTOLINK {
+ if altype != notAutolink {
var uLink bytes.Buffer
unescapeText(&uLink, data[1:end+1-2])
if uLink.Len() > 0 {
- p.r.AutoLink(out, uLink.Bytes(), altype)
+ link := uLink.Bytes()
+ node := NewNode(Link)
+ node.Destination = link
+ if altype == emailAutolink {
+ node.Destination = append([]byte("mailto:"), link...)
+ }
+ node.AppendChild(text(stripMailto(link)))
+ return end, node
}
} else {
- p.r.RawHtmlTag(out, data[:end])
+ htmlTag := NewNode(HTMLSpan)
+ htmlTag.Literal = data[:end]
+ return end, htmlTag
}
}
- return end
+ return end, nil
}
// '\\' backslash escape
var escapeChars = []byte("\\`*_{}[]()#+-.!:|&<>~")
-func escape(p *parser, out *bytes.Buffer, data []byte, offset int) int {
+func escape(p *Markdown, data []byte, offset int) (int, *Node) {
data = data[offset:]
if len(data) > 1 {
+ if p.extensions&BackslashLineBreak != 0 && data[1] == '\n' {
+ return 2, NewNode(Hardbreak)
+ }
if bytes.IndexByte(escapeChars, data[1]) < 0 {
- return 0
+ return 0, nil
}
- p.r.NormalText(out, data[1:2])
+ return 2, text(data[1:2])
}
- return 2
+ return 2, nil
}
func unescapeText(ob *bytes.Buffer, src []byte) {
@@ -663,7 +700,7 @@ func unescapeText(ob *bytes.Buffer, src []byte) {
// '&' escaped when it doesn't belong to an entity
// valid entities are assumed to be anything matching &#?[A-Za-z0-9]+;
-func entity(p *parser, out *bytes.Buffer, data []byte, offset int) int {
+func entity(p *Markdown, data []byte, offset int) (int, *Node) {
data = data[offset:]
end := 1
@@ -679,25 +716,70 @@ func entity(p *parser, out *bytes.Buffer, data []byte, offset int) int {
if end < len(data) && data[end] == ';' {
end++ // real entity
} else {
- return 0 // lone '&'
+ return 0, nil // lone '&'
}
- p.r.Entity(out, data[:end])
+ ent := data[:end]
+ // undo &amp; escaping or it will be converted to &amp;amp; by another
+ // escaper in the renderer
+ if bytes.Equal(ent, []byte("&amp;")) {
+ ent = []byte{'&'}
+ }
- return end
+ return end, text(ent)
}
func linkEndsWithEntity(data []byte, linkEnd int) bool {
- entityRanges := htmlEntity.FindAllIndex(data[:linkEnd], -1)
+ entityRanges := htmlEntityRe.FindAllIndex(data[:linkEnd], -1)
return entityRanges != nil && entityRanges[len(entityRanges)-1][1] == linkEnd
}
-func autoLink(p *parser, out *bytes.Buffer, data []byte, offset int) int {
- // quick check to rule out most false hits on ':'
- if p.insideLink || len(data) < offset+3 || data[offset+1] != '/' || data[offset+2] != '/' {
- return 0
+// hasPrefixCaseInsensitive is a custom implementation of
+// strings.HasPrefix(strings.ToLower(s), prefix)
+// we rolled our own because ToLower pulls in a huge machinery of lowercasing
+// anything from Unicode and that's very slow. Since this func will only be
+// used on ASCII protocol prefixes, we can take shortcuts.
+func hasPrefixCaseInsensitive(s, prefix []byte) bool {
+ if len(s) < len(prefix) {
+ return false
+ }
+ delta := byte('a' - 'A')
+ for i, b := range prefix {
+ if b != s[i] && b != s[i]+delta {
+ return false
+ }
}
+ return true
+}
+var protocolPrefixes = [][]byte{
+ []byte("http://"),
+ []byte("https://"),
+ []byte("ftp://"),
+ []byte("file://"),
+ []byte("mailto:"),
+}
+
+const shortestPrefix = 6 // len("ftp://"), the shortest of the above
+
+func maybeAutoLink(p *Markdown, data []byte, offset int) (int, *Node) {
+ // quick check to rule out most false hits
+ if p.insideLink || len(data) < offset+shortestPrefix {
+ return 0, nil
+ }
+ for _, prefix := range protocolPrefixes {
+ endOfHead := offset + 8 // 8 is the len() of the longest prefix
+ if endOfHead > len(data) {
+ endOfHead = len(data)
+ }
+ if hasPrefixCaseInsensitive(data[offset:endOfHead], prefix) {
+ return autoLink(p, data, offset)
+ }
+ }
+ return 0, nil
+}
+
+func autoLink(p *Markdown, data []byte, offset int) (int, *Node) {
// Now a more expensive check to see if we're not inside an anchor element
anchorStart := offset
offsetFromAnchor := 0
@@ -708,8 +790,9 @@ func autoLink(p *parser, out *bytes.Buffer, data []byte, offset int) int {
anchorStr := anchorRe.Find(data[anchorStart:])
if anchorStr != nil {
- out.Write(anchorStr[offsetFromAnchor:])
- return len(anchorStr) - offsetFromAnchor
+ anchorClose := NewNode(HTMLSpan)
+ anchorClose.Literal = anchorStr[offsetFromAnchor:]
+ return len(anchorStr) - offsetFromAnchor, anchorClose
}
// scan backward for a word boundary
@@ -718,14 +801,14 @@ func autoLink(p *parser, out *bytes.Buffer, data []byte, offset int) int {
rewind++
}
if rewind > 6 { // longest supported protocol is "mailto" which has 6 letters
- return 0
+ return 0, nil
}
origData := data
data = data[offset-rewind:]
if !isSafeLink(data) {
- return 0
+ return 0, nil
}
linkEnd := 0
@@ -802,19 +885,17 @@ func autoLink(p *parser, out *bytes.Buffer, data []byte, offset int) int {
}
}
- // we were triggered on the ':', so we need to rewind the output a bit
- if out.Len() >= rewind {
- out.Truncate(len(out.Bytes()) - rewind)
- }
-
var uLink bytes.Buffer
unescapeText(&uLink, data[:linkEnd])
if uLink.Len() > 0 {
- p.r.AutoLink(out, uLink.Bytes(), LINK_TYPE_NORMAL)
+ node := NewNode(Link)
+ node.Destination = uLink.Bytes()
+ node.AppendChild(text(uLink.Bytes()))
+ return linkEnd, node
}
- return linkEnd - rewind
+ return linkEnd, nil
}
func isEndOfLink(char byte) bool {
@@ -847,17 +928,17 @@ func isSafeLink(link []byte) bool {
}
// return the length of the given tag, or 0 is it's not valid
-func tagLength(data []byte, autolink *int) int {
+func tagLength(data []byte) (autolink autolinkType, end int) {
var i, j int
// a valid tag can't be shorter than 3 chars
if len(data) < 3 {
- return 0
+ return notAutolink, 0
}
// begins with a '<' optionally followed by '/', followed by letter or number
if data[0] != '<' {
- return 0
+ return notAutolink, 0
}
if data[1] == '/' {
i = 2
@@ -866,11 +947,11 @@ func tagLength(data []byte, autolink *int) int {
}
if !isalnum(data[i]) {
- return 0
+ return notAutolink, 0
}
// scheme test
- *autolink = LINK_TYPE_NOT_AUTOLINK
+ autolink = notAutolink
// try to find the beginning of an URI
for i < len(data) && (isalnum(data[i]) || data[i] == '.' || data[i] == '+' || data[i] == '-') {
@@ -879,21 +960,20 @@ func tagLength(data []byte, autolink *int) int {
if i > 1 && i < len(data) && data[i] == '@' {
if j = isMailtoAutoLink(data[i:]); j != 0 {
- *autolink = LINK_TYPE_EMAIL
- return i + j
+ return emailAutolink, i + j
}
}
if i > 2 && i < len(data) && data[i] == ':' {
- *autolink = LINK_TYPE_NORMAL
+ autolink = normalAutolink
i++
}
// complete autolink test: no whitespace or ' or "
switch {
case i >= len(data):
- *autolink = LINK_TYPE_NOT_AUTOLINK
- case *autolink != 0:
+ autolink = notAutolink
+ case autolink != notAutolink:
j = i
for i < len(data) {
@@ -908,24 +988,20 @@ func tagLength(data []byte, autolink *int) int {
}
if i >= len(data) {
- return 0
+ return autolink, 0
}
if i > j && data[i] == '>' {
- return i + 1
+ return autolink, i + 1
}
// one of the forbidden chars has been found
- *autolink = LINK_TYPE_NOT_AUTOLINK
+ autolink = notAutolink
}
-
- // look for something looking like a tag end
- for i < len(data) && data[i] != '>' {
- i++
- }
- if i >= len(data) {
- return 0
+ i += bytes.IndexByte(data[i:], '>')
+ if i < 0 {
+ return autolink, 0
}
- return i + 1
+ return autolink, i + 1
}
// look for the address part of a mail autolink and '>'
@@ -944,14 +1020,13 @@ func isMailtoAutoLink(data []byte) int {
nb++
case '-', '.', '_':
- // Do nothing.
+ break
case '>':
if nb == 1 {
return i + 1
- } else {
- return 0
}
+ return 0
default:
return 0
}
@@ -1014,9 +1089,8 @@ func helperFindEmphChar(data []byte, c byte) int {
if data[i] != '[' && data[i] != '(' { // not a link
if tmpI > 0 {
return tmpI
- } else {
- continue
}
+ continue
}
cc := data[i]
i++
@@ -1035,7 +1109,7 @@ func helperFindEmphChar(data []byte, c byte) int {
return 0
}
-func helperEmphasis(p *parser, out *bytes.Buffer, data []byte, c byte) int {
+func helperEmphasis(p *Markdown, data []byte, c byte) (int, *Node) {
i := 0
// skip one symbol if coming from emph3
@@ -1046,11 +1120,11 @@ func helperEmphasis(p *parser, out *bytes.Buffer, data []byte, c byte) int {
for i < len(data) {
length := helperFindEmphChar(data[i:], c)
if length == 0 {
- return 0
+ return 0, nil
}
i += length
if i >= len(data) {
- return 0
+ return 0, nil
}
if i+1 < len(data) && data[i+1] == c {
@@ -1060,52 +1134,46 @@ func helperEmphasis(p *parser, out *bytes.Buffer, data []byte, c byte) int {
if data[i] == c && !isspace(data[i-1]) {
- if p.flags&EXTENSION_NO_INTRA_EMPHASIS != 0 {
+ if p.extensions&NoIntraEmphasis != 0 {
if !(i+1 == len(data) || isspace(data[i+1]) || ispunct(data[i+1])) {
continue
}
}
- var work bytes.Buffer
- p.inline(&work, data[:i])
- p.r.Emphasis(out, work.Bytes())
- return i + 1
+ emph := NewNode(Emph)
+ p.inline(emph, data[:i])
+ return i + 1, emph
}
}
- return 0
+ return 0, nil
}
-func helperDoubleEmphasis(p *parser, out *bytes.Buffer, data []byte, c byte) int {
+func helperDoubleEmphasis(p *Markdown, data []byte, c byte) (int, *Node) {
i := 0
for i < len(data) {
length := helperFindEmphChar(data[i:], c)
if length == 0 {
- return 0
+ return 0, nil
}
i += length
if i+1 < len(data) && data[i] == c && data[i+1] == c && i > 0 && !isspace(data[i-1]) {
- var work bytes.Buffer
- p.inline(&work, data[:i])
-
- if work.Len() > 0 {
- // pick the right renderer
- if c == '~' {
- p.r.StrikeThrough(out, work.Bytes())
- } else {
- p.r.DoubleEmphasis(out, work.Bytes())
- }
+ nodeType := Strong
+ if c == '~' {
+ nodeType = Del
}
- return i + 2
+ node := NewNode(nodeType)
+ p.inline(node, data[:i])
+ return i + 2, node
}
i++
}
- return 0
+ return 0, nil
}
-func helperTripleEmphasis(p *parser, out *bytes.Buffer, data []byte, offset int, c byte) int {
+func helperTripleEmphasis(p *Markdown, data []byte, offset int, c byte) (int, *Node) {
i := 0
origData := data
data = data[offset:]
@@ -1113,7 +1181,7 @@ func helperTripleEmphasis(p *parser, out *bytes.Buffer, data []byte, offset int,
for i < len(data) {
length := helperFindEmphChar(data[i:], c)
if length == 0 {
- return 0
+ return 0, nil
}
i += length
@@ -1125,30 +1193,36 @@ func helperTripleEmphasis(p *parser, out *bytes.Buffer, data []byte, offset int,
switch {
case i+2 < len(data) && data[i+1] == c && data[i+2] == c:
// triple symbol found
- var work bytes.Buffer
-
- p.inline(&work, data[:i])
- if work.Len() > 0 {
- p.r.TripleEmphasis(out, work.Bytes())
- }
- return i + 3
+ strong := NewNode(Strong)
+ em := NewNode(Emph)
+ strong.AppendChild(em)
+ p.inline(em, data[:i])
+ return i + 3, strong
case (i+1 < len(data) && data[i+1] == c):
// double symbol found, hand over to emph1
- length = helperEmphasis(p, out, origData[offset-2:], c)
+ length, node := helperEmphasis(p, origData[offset-2:], c)
if length == 0 {
- return 0
- } else {
- return length - 2
+ return 0, nil
}
+ return length - 2, node
default:
// single symbol found, hand over to emph2
- length = helperDoubleEmphasis(p, out, origData[offset-1:], c)
+ length, node := helperDoubleEmphasis(p, origData[offset-1:], c)
if length == 0 {
- return 0
- } else {
- return length - 1
+ return 0, nil
}
+ return length - 1, node
}
}
- return 0
+ return 0, nil
+}
+
+func text(s []byte) *Node {
+ node := NewNode(Text)
+ node.Literal = s
+ return node
+}
+
+func normalizeURI(s []byte) []byte {
+ return s // TODO: implement
}
diff --git a/vendor/github.com/russross/blackfriday/markdown.go b/vendor/github.com/russross/blackfriday/v2/markdown.go
similarity index 50%
rename from vendor/github.com/russross/blackfriday/markdown.go
rename to vendor/github.com/russross/blackfriday/v2/markdown.go
index 41595d62d..58d2e4538 100644
--- a/vendor/github.com/russross/blackfriday/markdown.go
+++ b/vendor/github.com/russross/blackfriday/v2/markdown.go
@@ -1,103 +1,93 @@
-//
// Blackfriday Markdown Processor
// Available at http://github.com/russross/blackfriday
//
// Copyright © 2011 Russ Ross <[email protected]>.
// Distributed under the Simplified BSD License.
// See README.md for details.
-//
-
-//
-//
-// Markdown parsing and processing
-//
-//
package blackfriday
import (
"bytes"
"fmt"
+ "io"
"strings"
"unicode/utf8"
)
-const VERSION = "1.5"
+//
+// Markdown parsing and processing
+//
+
+// Version string of the package. Appears in the rendered document when
+// CompletePage flag is on.
+const Version = "2.0"
+
+// Extensions is a bitwise or'ed collection of enabled Blackfriday's
+// extensions.
+type Extensions int
// These are the supported markdown parsing extensions.
// OR these values together to select multiple extensions.
const (
- EXTENSION_NO_INTRA_EMPHASIS = 1 << iota // ignore emphasis markers inside words
- EXTENSION_TABLES // render tables
- EXTENSION_FENCED_CODE // render fenced code blocks
- EXTENSION_AUTOLINK // detect embedded URLs that are not explicitly marked
- EXTENSION_STRIKETHROUGH // strikethrough text using ~~test~~
- EXTENSION_LAX_HTML_BLOCKS // loosen up HTML block parsing rules
- EXTENSION_SPACE_HEADERS // be strict about prefix header rules
- EXTENSION_HARD_LINE_BREAK // translate newlines into line breaks
- EXTENSION_TAB_SIZE_EIGHT // expand tabs to eight spaces instead of four
- EXTENSION_FOOTNOTES // Pandoc-style footnotes
- EXTENSION_NO_EMPTY_LINE_BEFORE_BLOCK // No need to insert an empty line to start a (code, quote, ordered list, unordered list) block
- EXTENSION_HEADER_IDS // specify header IDs with {#id}
- EXTENSION_TITLEBLOCK // Titleblock ala pandoc
- EXTENSION_AUTO_HEADER_IDS // Create the header ID from the text
- EXTENSION_BACKSLASH_LINE_BREAK // translate trailing backslashes into line breaks
- EXTENSION_DEFINITION_LISTS // render definition lists
- EXTENSION_JOIN_LINES // delete newline and join lines
-
- commonHtmlFlags = 0 |
- HTML_USE_XHTML |
- HTML_USE_SMARTYPANTS |
- HTML_SMARTYPANTS_FRACTIONS |
- HTML_SMARTYPANTS_DASHES |
- HTML_SMARTYPANTS_LATEX_DASHES
-
- commonExtensions = 0 |
- EXTENSION_NO_INTRA_EMPHASIS |
- EXTENSION_TABLES |
- EXTENSION_FENCED_CODE |
- EXTENSION_AUTOLINK |
- EXTENSION_STRIKETHROUGH |
- EXTENSION_SPACE_HEADERS |
- EXTENSION_HEADER_IDS |
- EXTENSION_BACKSLASH_LINE_BREAK |
- EXTENSION_DEFINITION_LISTS
+ NoExtensions Extensions = 0
+ NoIntraEmphasis Extensions = 1 << iota // Ignore emphasis markers inside words
+ Tables // Render tables
+ FencedCode // Render fenced code blocks
+ Autolink // Detect embedded URLs that are not explicitly marked
+ Strikethrough // Strikethrough text using ~~test~~
+ LaxHTMLBlocks // Loosen up HTML block parsing rules
+ SpaceHeadings // Be strict about prefix heading rules
+ HardLineBreak // Translate newlines into line breaks
+ TabSizeEight // Expand tabs to eight spaces instead of four
+ Footnotes // Pandoc-style footnotes
+ NoEmptyLineBeforeBlock // No need to insert an empty line to start a (code, quote, ordered list, unordered list) block
+ HeadingIDs // specify heading IDs with {#id}
+ Titleblock // Titleblock ala pandoc
+ AutoHeadingIDs // Create the heading ID from the text
+ BackslashLineBreak // Translate trailing backslashes into line breaks
+ DefinitionLists // Render definition lists
+
+ CommonHTMLFlags HTMLFlags = UseXHTML | Smartypants |
+ SmartypantsFractions | SmartypantsDashes | SmartypantsLatexDashes
+
+ CommonExtensions Extensions = NoIntraEmphasis | Tables | FencedCode |
+ Autolink | Strikethrough | SpaceHeadings | HeadingIDs |
+ BackslashLineBreak | DefinitionLists
)
-// These are the possible flag values for the link renderer.
-// Only a single one of these values will be used; they are not ORed together.
-// These are mostly of interest if you are writing a new output format.
-const (
- LINK_TYPE_NOT_AUTOLINK = iota
- LINK_TYPE_NORMAL
- LINK_TYPE_EMAIL
-)
+// ListType contains bitwise or'ed flags for list and list item objects.
+type ListType int
// These are the possible flag values for the ListItem renderer.
// Multiple flag values may be ORed together.
// These are mostly of interest if you are writing a new output format.
const (
- LIST_TYPE_ORDERED = 1 << iota
- LIST_TYPE_DEFINITION
- LIST_TYPE_TERM
- LIST_ITEM_CONTAINS_BLOCK
- LIST_ITEM_BEGINNING_OF_LIST
- LIST_ITEM_END_OF_LIST
+ ListTypeOrdered ListType = 1 << iota
+ ListTypeDefinition
+ ListTypeTerm
+
+ ListItemContainsBlock
+ ListItemBeginningOfList // TODO: figure out if this is of any use now
+ ListItemEndOfList
)
+// CellAlignFlags holds a type of alignment in a table cell.
+type CellAlignFlags int
+
// These are the possible flag values for the table cell renderer.
// Only a single one of these values will be used; they are not ORed together.
// These are mostly of interest if you are writing a new output format.
const (
- TABLE_ALIGNMENT_LEFT = 1 << iota
- TABLE_ALIGNMENT_RIGHT
- TABLE_ALIGNMENT_CENTER = (TABLE_ALIGNMENT_LEFT | TABLE_ALIGNMENT_RIGHT)
+ TableAlignmentLeft CellAlignFlags = 1 << iota
+ TableAlignmentRight
+ TableAlignmentCenter = (TableAlignmentLeft | TableAlignmentRight)
)
// The size of a tab stop.
const (
- TAB_SIZE_DEFAULT = 4
- TAB_SIZE_EIGHT = 8
+ TabSizeDefault = 4
+ TabSizeDouble = 8
)
// blockTags is a set of tags that are recognized as HTML block tags.
@@ -145,86 +135,66 @@ var blockTags = map[string]struct{}{
"video": {},
}
-// Renderer is the rendering interface.
-// This is mostly of interest if you are implementing a new rendering format.
+// Renderer is the rendering interface. This is mostly of interest if you are
+// implementing a new rendering format.
//
-// When a byte slice is provided, it contains the (rendered) contents of the
-// element.
-//
-// When a callback is provided instead, it will write the contents of the
-// respective element directly to the output buffer and return true on success.
-// If the callback returns false, the rendering function should reset the
-// output buffer as though it had never been called.
-//
-// Currently Html and Latex implementations are provided
+// Only an HTML implementation is provided in this repository, see the README
+// for external implementations.
type Renderer interface {
- // block-level callbacks
- BlockCode(out *bytes.Buffer, text []byte, infoString string)
- BlockQuote(out *bytes.Buffer, text []byte)
- BlockHtml(out *bytes.Buffer, text []byte)
- Header(out *bytes.Buffer, text func() bool, level int, id string)
- HRule(out *bytes.Buffer)
- List(out *bytes.Buffer, text func() bool, flags int)
- ListItem(out *bytes.Buffer, text []byte, flags int)
- Paragraph(out *bytes.Buffer, text func() bool)
- Table(out *bytes.Buffer, header []byte, body []byte, columnData []int)
- TableRow(out *bytes.Buffer, text []byte)
- TableHeaderCell(out *bytes.Buffer, text []byte, flags int)
- TableCell(out *bytes.Buffer, text []byte, flags int)
- Footnotes(out *bytes.Buffer, text func() bool)
- FootnoteItem(out *bytes.Buffer, name, text []byte, flags int)
- TitleBlock(out *bytes.Buffer, text []byte)
-
- // Span-level callbacks
- AutoLink(out *bytes.Buffer, link []byte, kind int)
- CodeSpan(out *bytes.Buffer, text []byte)
- DoubleEmphasis(out *bytes.Buffer, text []byte)
- Emphasis(out *bytes.Buffer, text []byte)
- Image(out *bytes.Buffer, link []byte, title []byte, alt []byte)
- LineBreak(out *bytes.Buffer)
- Link(out *bytes.Buffer, link []byte, title []byte, content []byte)
- RawHtmlTag(out *bytes.Buffer, tag []byte)
- TripleEmphasis(out *bytes.Buffer, text []byte)
- StrikeThrough(out *bytes.Buffer, text []byte)
- FootnoteRef(out *bytes.Buffer, ref []byte, id int)
-
- // Low-level callbacks
- Entity(out *bytes.Buffer, entity []byte)
- NormalText(out *bytes.Buffer, text []byte)
-
- // Header and footer
- DocumentHeader(out *bytes.Buffer)
- DocumentFooter(out *bytes.Buffer)
-
- GetFlags() int
+ // RenderNode is the main rendering method. It will be called once for
+ // every leaf node and twice for every non-leaf node (first with
+ // entering=true, then with entering=false). The method should write its
+ // rendition of the node to the supplied writer w.
+ RenderNode(w io.Writer, node *Node, entering bool) WalkStatus
+
+ // RenderHeader is a method that allows the renderer to produce some
+ // content preceding the main body of the output document. The header is
+ // understood in the broad sense here. For example, the default HTML
+ // renderer will write not only the HTML document preamble, but also the
+ // table of contents if it was requested.
+ //
+ // The method will be passed an entire document tree, in case a particular
+ // implementation needs to inspect it to produce output.
+ //
+ // The output should be written to the supplied writer w. If your
+ // implementation has no header to write, supply an empty implementation.
+ RenderHeader(w io.Writer, ast *Node)
+
+ // RenderFooter is a symmetric counterpart of RenderHeader.
+ RenderFooter(w io.Writer, ast *Node)
}
// Callback functions for inline parsing. One such function is defined
// for each character that triggers a response when parsing inline data.
-type inlineParser func(p *parser, out *bytes.Buffer, data []byte, offset int) int
-
-// Parser holds runtime state used by the parser.
-// This is constructed by the Markdown function.
-type parser struct {
- r Renderer
- refOverride ReferenceOverrideFunc
- refs map[string]*reference
- inlineCallback [256]inlineParser
- flags int
- nesting int
- maxNesting int
- insideLink bool
+type inlineParser func(p *Markdown, data []byte, offset int) (int, *Node)
+
+// Markdown is a type that holds extensions and the runtime state used by
+// Parse, and the renderer. You can not use it directly, construct it with New.
+type Markdown struct {
+ renderer Renderer
+ referenceOverride ReferenceOverrideFunc
+ refs map[string]*reference
+ inlineCallback [256]inlineParser
+ extensions Extensions
+ nesting int
+ maxNesting int
+ insideLink bool
// Footnotes need to be ordered as well as available to quickly check for
// presence. If a ref is also a footnote, it's stored both in refs and here
// in notes. Slice is nil if footnotes not enabled.
- notes []*reference
- notesRecord map[string]struct{}
+ notes []*reference
+
+ doc *Node
+ tip *Node // = doc
+ oldTip *Node
+ lastMatchedContainer *Node // = doc
+ allClosed bool
}
-func (p *parser) getRef(refid string) (ref *reference, found bool) {
- if p.refOverride != nil {
- r, overridden := p.refOverride(refid)
+func (p *Markdown) getRef(refid string) (ref *reference, found bool) {
+ if p.referenceOverride != nil {
+ r, overridden := p.referenceOverride(refid)
if overridden {
if r == nil {
return nil, false
@@ -232,7 +202,7 @@ func (p *parser) getRef(refid string) (ref *reference, found bool) {
return &reference{
link: []byte(r.Link),
title: []byte(r.Title),
- noteId: 0,
+ noteID: 0,
hasBlock: false,
text: []byte(r.Text)}, true
}
@@ -242,9 +212,34 @@ func (p *parser) getRef(refid string) (ref *reference, found bool) {
return ref, found
}
-func (p *parser) isFootnote(ref *reference) bool {
- _, ok := p.notesRecord[string(ref.link)]
- return ok
+func (p *Markdown) finalize(block *Node) {
+ above := block.Parent
+ block.open = false
+ p.tip = above
+}
+
+func (p *Markdown) addChild(node NodeType, offset uint32) *Node {
+ return p.addExistingChild(NewNode(node), offset)
+}
+
+func (p *Markdown) addExistingChild(node *Node, offset uint32) *Node {
+ for !p.tip.canContain(node.Type) {
+ p.finalize(p.tip)
+ }
+ p.tip.AppendChild(node)
+ p.tip = node
+ return node
+}
+
+func (p *Markdown) closeUnmatchedBlocks() {
+ if !p.allClosed {
+ for p.oldTip != p.lastMatchedContainer {
+ parent := p.oldTip.Parent
+ p.finalize(p.oldTip)
+ p.oldTip = parent
+ }
+ p.allClosed = true
+ }
}
//
@@ -271,102 +266,27 @@ type Reference struct {
// See the documentation in Options for more details on use-case.
type ReferenceOverrideFunc func(reference string) (ref *Reference, overridden bool)
-// Options represents configurable overrides and callbacks (in addition to the
-// extension flag set) for configuring a Markdown parse.
-type Options struct {
- // Extensions is a flag set of bit-wise ORed extension bits. See the
- // EXTENSION_* flags defined in this package.
- Extensions int
-
- // ReferenceOverride is an optional function callback that is called every
- // time a reference is resolved.
- //
- // In Markdown, the link reference syntax can be made to resolve a link to
- // a reference instead of an inline URL, in one of the following ways:
- //
- // * [link text][refid]
- // * [refid][]
- //
- // Usually, the refid is defined at the bottom of the Markdown document. If
- // this override function is provided, the refid is passed to the override
- // function first, before consulting the defined refids at the bottom. If
- // the override function indicates an override did not occur, the refids at
- // the bottom will be used to fill in the link details.
- ReferenceOverride ReferenceOverrideFunc
-}
-
-// MarkdownBasic is a convenience function for simple rendering.
-// It processes markdown input with no extensions enabled.
-func MarkdownBasic(input []byte) []byte {
- // set up the HTML renderer
- htmlFlags := HTML_USE_XHTML
- renderer := HtmlRenderer(htmlFlags, "", "")
-
- // set up the parser
- return MarkdownOptions(input, renderer, Options{Extensions: 0})
-}
-
-// Call Markdown with most useful extensions enabled
-// MarkdownCommon is a convenience function for simple rendering.
-// It processes markdown input with common extensions enabled, including:
-//
-// * Smartypants processing with smart fractions and LaTeX dashes
-//
-// * Intra-word emphasis suppression
-//
-// * Tables
-//
-// * Fenced code blocks
-//
-// * Autolinking
-//
-// * Strikethrough support
-//
-// * Strict header parsing
-//
-// * Custom Header IDs
-func MarkdownCommon(input []byte) []byte {
- // set up the HTML renderer
- renderer := HtmlRenderer(commonHtmlFlags, "", "")
- return MarkdownOptions(input, renderer, Options{
- Extensions: commonExtensions})
-}
-
-// Markdown is the main rendering function.
-// It parses and renders a block of markdown-encoded text.
-// The supplied Renderer is used to format the output, and extensions dictates
-// which non-standard extensions are enabled.
-//
-// To use the supplied Html or LaTeX renderers, see HtmlRenderer and
-// LatexRenderer, respectively.
-func Markdown(input []byte, renderer Renderer, extensions int) []byte {
- return MarkdownOptions(input, renderer, Options{
- Extensions: extensions})
-}
-
-// MarkdownOptions is just like Markdown but takes additional options through
-// the Options struct.
-func MarkdownOptions(input []byte, renderer Renderer, opts Options) []byte {
- // no point in parsing if we can't render
- if renderer == nil {
- return nil
+// New constructs a Markdown processor. You can use the same With* functions as
+// for Run() to customize parser's behavior and the renderer.
+func New(opts ...Option) *Markdown {
+ var p Markdown
+ for _, opt := range opts {
+ opt(&p)
}
-
- extensions := opts.Extensions
-
- // fill in the render structure
- p := new(parser)
- p.r = renderer
- p.flags = extensions
- p.refOverride = opts.ReferenceOverride
p.refs = make(map[string]*reference)
p.maxNesting = 16
p.insideLink = false
-
+ docNode := NewNode(Document)
+ p.doc = docNode
+ p.tip = docNode
+ p.oldTip = docNode
+ p.lastMatchedContainer = docNode
+ p.allClosed = true
// register inline parsers
+ p.inlineCallback[' '] = maybeLineBreak
p.inlineCallback['*'] = emphasis
p.inlineCallback['_'] = emphasis
- if extensions&EXTENSION_STRIKETHROUGH != 0 {
+ if p.extensions&Strikethrough != 0 {
p.inlineCallback['~'] = emphasis
}
p.inlineCallback['`'] = codeSpan
@@ -375,116 +295,166 @@ func MarkdownOptions(input []byte, renderer Renderer, opts Options) []byte {
p.inlineCallback['<'] = leftAngle
p.inlineCallback['\\'] = escape
p.inlineCallback['&'] = entity
-
- if extensions&EXTENSION_AUTOLINK != 0 {
- p.inlineCallback[':'] = autoLink
- }
-
- if extensions&EXTENSION_FOOTNOTES != 0 {
+ p.inlineCallback['!'] = maybeImage
+ p.inlineCallback['^'] = maybeInlineFootnote
+ if p.extensions&Autolink != 0 {
+ p.inlineCallback['h'] = maybeAutoLink
+ p.inlineCallback['m'] = maybeAutoLink
+ p.inlineCallback['f'] = maybeAutoLink
+ p.inlineCallback['H'] = maybeAutoLink
+ p.inlineCallback['M'] = maybeAutoLink
+ p.inlineCallback['F'] = maybeAutoLink
+ }
+ if p.extensions&Footnotes != 0 {
p.notes = make([]*reference, 0)
- p.notesRecord = make(map[string]struct{})
}
-
- first := firstPass(p, input)
- second := secondPass(p, first)
- return second
+ return &p
}
-// first pass:
-// - normalize newlines
-// - extract references (outside of fenced code blocks)
-// - expand tabs (outside of fenced code blocks)
-// - copy everything else
-func firstPass(p *parser, input []byte) []byte {
- var out bytes.Buffer
- tabSize := TAB_SIZE_DEFAULT
- if p.flags&EXTENSION_TAB_SIZE_EIGHT != 0 {
- tabSize = TAB_SIZE_EIGHT
- }
- beg := 0
- lastFencedCodeBlockEnd := 0
- for beg < len(input) {
- // Find end of this line, then process the line.
- end := beg
- for end < len(input) && input[end] != '\n' && input[end] != '\r' {
- end++
- }
+// Option customizes the Markdown processor's default behavior.
+type Option func(*Markdown)
- if p.flags&EXTENSION_FENCED_CODE != 0 {
- // track fenced code block boundaries to suppress tab expansion
- // and reference extraction inside them:
- if beg >= lastFencedCodeBlockEnd {
- if i := p.fencedCodeBlock(&out, input[beg:], false); i > 0 {
- lastFencedCodeBlockEnd = beg + i
- }
- }
- }
-
- // add the line body if present
- if end > beg {
- if end < lastFencedCodeBlockEnd { // Do not expand tabs while inside fenced code blocks.
- out.Write(input[beg:end])
- } else if refEnd := isReference(p, input[beg:], tabSize); refEnd > 0 {
- beg += refEnd
- continue
- } else {
- expandTabs(&out, input[beg:end], tabSize)
- }
- }
-
- if end < len(input) && input[end] == '\r' {
- end++
- }
- if end < len(input) && input[end] == '\n' {
- end++
- }
- out.WriteByte('\n')
-
- beg = end
+// WithRenderer allows you to override the default renderer.
+func WithRenderer(r Renderer) Option {
+ return func(p *Markdown) {
+ p.renderer = r
}
+}
- // empty input?
- if out.Len() == 0 {
- out.WriteByte('\n')
+// WithExtensions allows you to pick some of the many extensions provided by
+// Blackfriday. You can bitwise OR them.
+func WithExtensions(e Extensions) Option {
+ return func(p *Markdown) {
+ p.extensions = e
}
-
- return out.Bytes()
}
-// second pass: actual rendering
-func secondPass(p *parser, input []byte) []byte {
- var output bytes.Buffer
-
- p.r.DocumentHeader(&output)
- p.block(&output, input)
-
- if p.flags&EXTENSION_FOOTNOTES != 0 && len(p.notes) > 0 {
- p.r.Footnotes(&output, func() bool {
- flags := LIST_ITEM_BEGINNING_OF_LIST
- for i := 0; i < len(p.notes); i += 1 {
- ref := p.notes[i]
- var buf bytes.Buffer
- if ref.hasBlock {
- flags |= LIST_ITEM_CONTAINS_BLOCK
- p.block(&buf, ref.title)
- } else {
- p.inline(&buf, ref.title)
- }
- p.r.FootnoteItem(&output, ref.link, buf.Bytes(), flags)
- flags &^= LIST_ITEM_BEGINNING_OF_LIST | LIST_ITEM_CONTAINS_BLOCK
- }
-
- return true
+// WithNoExtensions turns off all extensions and custom behavior.
+func WithNoExtensions() Option {
+ return func(p *Markdown) {
+ p.extensions = NoExtensions
+ p.renderer = NewHTMLRenderer(HTMLRendererParameters{
+ Flags: HTMLFlagsNone,
})
}
+}
- p.r.DocumentFooter(&output)
-
- if p.nesting != 0 {
- panic("Nesting level did not end at zero")
+// WithRefOverride sets an optional function callback that is called every
+// time a reference is resolved.
+//
+// In Markdown, the link reference syntax can be made to resolve a link to
+// a reference instead of an inline URL, in one of the following ways:
+//
+// * [link text][refid]
+// * [refid][]
+//
+// Usually, the refid is defined at the bottom of the Markdown document. If
+// this override function is provided, the refid is passed to the override
+// function first, before consulting the defined refids at the bottom. If
+// the override function indicates an override did not occur, the refids at
+// the bottom will be used to fill in the link details.
+func WithRefOverride(o ReferenceOverrideFunc) Option {
+ return func(p *Markdown) {
+ p.referenceOverride = o
}
+}
- return output.Bytes()
+// Run is the main entry point to Blackfriday. It parses and renders a
+// block of markdown-encoded text.
+//
+// The simplest invocation of Run takes one argument, input:
+// output := Run(input)
+// This will parse the input with CommonExtensions enabled and render it with
+// the default HTMLRenderer (with CommonHTMLFlags).
+//
+// Variadic arguments opts can customize the default behavior. Since Markdown
+// type does not contain exported fields, you can not use it directly. Instead,
+// use the With* functions. For example, this will call the most basic
+// functionality, with no extensions:
+// output := Run(input, WithNoExtensions())
+//
+// You can use any number of With* arguments, even contradicting ones. They
+// will be applied in order of appearance and the latter will override the
+// former:
+// output := Run(input, WithNoExtensions(), WithExtensions(exts),
+// WithRenderer(yourRenderer))
+func Run(input []byte, opts ...Option) []byte {
+ r := NewHTMLRenderer(HTMLRendererParameters{
+ Flags: CommonHTMLFlags,
+ })
+ optList := []Option{WithRenderer(r), WithExtensions(CommonExtensions)}
+ optList = append(optList, opts...)
+ parser := New(optList...)
+ ast := parser.Parse(input)
+ var buf bytes.Buffer
+ parser.renderer.RenderHeader(&buf, ast)
+ ast.Walk(func(node *Node, entering bool) WalkStatus {
+ return parser.renderer.RenderNode(&buf, node, entering)
+ })
+ parser.renderer.RenderFooter(&buf, ast)
+ return buf.Bytes()
+}
+
+// Parse is an entry point to the parsing part of Blackfriday. It takes an
+// input markdown document and produces a syntax tree for its contents. This
+// tree can then be rendered with a default or custom renderer, or
+// analyzed/transformed by the caller to whatever non-standard needs they have.
+// The return value is the root node of the syntax tree.
+func (p *Markdown) Parse(input []byte) *Node {
+ p.block(input)
+ // Walk the tree and finish up some of unfinished blocks
+ for p.tip != nil {
+ p.finalize(p.tip)
+ }
+ // Walk the tree again and process inline markdown in each block
+ p.doc.Walk(func(node *Node, entering bool) WalkStatus {
+ if node.Type == Paragraph || node.Type == Heading || node.Type == TableCell {
+ p.inline(node, node.content)
+ node.content = nil
+ }
+ return GoToNext
+ })
+ p.parseRefsToAST()
+ return p.doc
+}
+
+func (p *Markdown) parseRefsToAST() {
+ if p.extensions&Footnotes == 0 || len(p.notes) == 0 {
+ return
+ }
+ p.tip = p.doc
+ block := p.addBlock(List, nil)
+ block.IsFootnotesList = true
+ block.ListFlags = ListTypeOrdered
+ flags := ListItemBeginningOfList
+ // Note: this loop is intentionally explicit, not range-form. This is
+ // because the body of the loop will append nested footnotes to p.notes and
+ // we need to process those late additions. Range form would only walk over
+ // the fixed initial set.
+ for i := 0; i < len(p.notes); i++ {
+ ref := p.notes[i]
+ p.addExistingChild(ref.footnote, 0)
+ block := ref.footnote
+ block.ListFlags = flags | ListTypeOrdered
+ block.RefLink = ref.link
+ if ref.hasBlock {
+ flags |= ListItemContainsBlock
+ p.block(ref.title)
+ } else {
+ p.inline(block, ref.title)
+ }
+ flags &^= ListItemBeginningOfList | ListItemContainsBlock
+ }
+ above := block.Parent
+ finalizeList(block)
+ p.tip = above
+ block.Walk(func(node *Node, entering bool) WalkStatus {
+ if node.Type == Paragraph || node.Type == Heading {
+ p.inline(node, node.content)
+ node.content = nil
+ }
+ return GoToNext
+ })
}
//
@@ -510,24 +480,62 @@ func secondPass(p *parser, input []byte) []byte {
// [^note]: This is the explanation.
//
// Footnotes should be placed at the end of the document in an ordered list.
-// Inline footnotes such as:
+// Finally, there are inline footnotes such as:
//
-// Inline footnotes^[Not supported.] also exist.
+// Inline footnotes^[Also supported.] provide a quick inline explanation,
+// but are rendered at the bottom of the document.
//
-// are not yet supported.
-// References are parsed and stored in this struct.
+// reference holds all information necessary for a reference-style links or
+// footnotes.
+//
+// Consider this markdown with reference-style links:
+//
+// [link][ref]
+//
+// [ref]: /url/ "tooltip title"
+//
+// It will be ultimately converted to this HTML:
+//
+// <p><a href=\"/url/\" title=\"title\">link</a></p>
+//
+// And a reference structure will be populated as follows:
+//
+// p.refs["ref"] = &reference{
+// link: "/url/",
+// title: "tooltip title",
+// }
+//
+// Alternatively, reference can contain information about a footnote. Consider
+// this markdown:
+//
+// Text needing a footnote.[^a]
+//
+// [^a]: This is the note
+//
+// A reference structure will be populated as follows:
+//
+// p.refs["a"] = &reference{
+// link: "a",
+// title: "This is the note",
+// noteID: <some positive int>,
+// }
+//
+// TODO: As you can see, it begs for splitting into two dedicated structures
+// for refs and for footnotes.
type reference struct {
link []byte
title []byte
- noteId int // 0 if not a footnote ref
+ noteID int // 0 if not a footnote ref
hasBlock bool
- text []byte
+ footnote *Node // a link to the Item node within a list of footnotes
+
+ text []byte // only gets populated by refOverride feature with Reference.Text
}
func (r *reference) String() string {
- return fmt.Sprintf("{link: %q, title: %q, text: %q, noteId: %d, hasBlock: %v}",
- r.link, r.title, r.text, r.noteId, r.hasBlock)
+ return fmt.Sprintf("{link: %q, title: %q, text: %q, noteID: %d, hasBlock: %v}",
+ r.link, r.title, r.text, r.noteID, r.hasBlock)
}
// Check whether or not data starts with a reference link.
@@ -535,7 +543,7 @@ func (r *reference) String() string {
// (in the render struct).
// Returns the number of bytes to skip to move past it,
// or zero if the first line is not a reference.
-func isReference(p *parser, data []byte, tabSize int) int {
+func isReference(p *Markdown, data []byte, tabSize int) int {
// up to 3 optional leading spaces
if len(data) < 4 {
return 0
@@ -545,18 +553,18 @@ func isReference(p *parser, data []byte, tabSize int) int {
i++
}
- noteId := 0
+ noteID := 0
// id part: anything but a newline between brackets
if data[i] != '[' {
return 0
}
i++
- if p.flags&EXTENSION_FOOTNOTES != 0 {
+ if p.extensions&Footnotes != 0 {
if i < len(data) && data[i] == '^' {
// we can set it to anything here because the proper noteIds will
// be assigned later during the second pass. It just has to be != 0
- noteId = 1
+ noteID = 1
i++
}
}
@@ -568,7 +576,11 @@ func isReference(p *parser, data []byte, tabSize int) int {
return 0
}
idEnd := i
-
+ // footnotes can have empty ID, like this: [^], but a reference can not be
+ // empty like this: []. Break early if it's not a footnote and there's no ID
+ if noteID == 0 && idOffset == idEnd {
+ return 0
+ }
// spacer: colon (space | tab)* newline? (space | tab)*
i++
if i >= len(data) || data[i] != ':' {
@@ -599,7 +611,7 @@ func isReference(p *parser, data []byte, tabSize int) int {
hasBlock bool
)
- if p.flags&EXTENSION_FOOTNOTES != 0 && noteId != 0 {
+ if p.extensions&Footnotes != 0 && noteID != 0 {
linkOffset, linkEnd, raw, hasBlock = scanFootnote(p, data, i, tabSize)
lineEnd = linkEnd
} else {
@@ -612,11 +624,11 @@ func isReference(p *parser, data []byte, tabSize int) int {
// a valid ref has been found
ref := &reference{
- noteId: noteId,
+ noteID: noteID,
hasBlock: hasBlock,
}
- if noteId > 0 {
+ if noteID > 0 {
// reusing the link field for the id since footnotes don't have links
ref.link = data[idOffset:idEnd]
// if footnote, it's not really a title, it's the contained text
@@ -634,15 +646,12 @@ func isReference(p *parser, data []byte, tabSize int) int {
return lineEnd
}
-func scanLinkRef(p *parser, data []byte, i int) (linkOffset, linkEnd, titleOffset, titleEnd, lineEnd int) {
+func scanLinkRef(p *Markdown, data []byte, i int) (linkOffset, linkEnd, titleOffset, titleEnd, lineEnd int) {
// link: whitespace-free sequence, optionally between angle brackets
if data[i] == '<' {
i++
}
linkOffset = i
- if i == len(data) {
- return
- }
for i < len(data) && data[i] != ' ' && data[i] != '\t' && data[i] != '\n' && data[i] != '\r' {
i++
}
@@ -705,13 +714,13 @@ func scanLinkRef(p *parser, data []byte, i int) (linkOffset, linkEnd, titleOffse
return
}
-// The first bit of this logic is the same as (*parser).listItem, but the rest
+// The first bit of this logic is the same as Parser.listItem, but the rest
// is much simpler. This function simply finds the entire block and shifts it
// over by one tab if it is indeed a block (just returns the line if it's not).
// blockEnd is the end of the section in the input buffer, and contents is the
// extracted text that was shifted over one tab. It will need to be rendered at
// the end of the document.
-func scanFootnote(p *parser, data []byte, i, indentSize int) (blockStart, blockEnd int, contents []byte, hasBlock bool) {
+func scanFootnote(p *Markdown, data []byte, i, indentSize int) (blockStart, blockEnd int, contents []byte, hasBlock bool) {
if i == 0 || len(data) == 0 {
return
}
@@ -812,7 +821,7 @@ func ishorizontalspace(c byte) bool {
return c == ' ' || c == '\t'
}
-// Test if a character is a vertical whitespace character.
+// Test if a character is a vertical character.
func isverticalspace(c byte) bool {
return c == '\n' || c == '\r' || c == '\f' || c == '\v'
}
diff --git a/vendor/github.com/russross/blackfriday/v2/node.go b/vendor/github.com/russross/blackfriday/v2/node.go
new file mode 100644
index 000000000..51b9e8c1b
--- /dev/null
+++ b/vendor/github.com/russross/blackfriday/v2/node.go
@@ -0,0 +1,354 @@
+package blackfriday
+
+import (
+ "bytes"
+ "fmt"
+)
+
+// NodeType specifies a type of a single node of a syntax tree. Usually one
+// node (and its type) corresponds to a single markdown feature, e.g. emphasis
+// or code block.
+type NodeType int
+
+// Constants for identifying different types of nodes. See NodeType.
+const (
+ Document NodeType = iota
+ BlockQuote
+ List
+ Item
+ Paragraph
+ Heading
+ HorizontalRule
+ Emph
+ Strong
+ Del
+ Link
+ Image
+ Text
+ HTMLBlock
+ CodeBlock
+ Softbreak
+ Hardbreak
+ Code
+ HTMLSpan
+ Table
+ TableCell
+ TableHead
+ TableBody
+ TableRow
+)
+
+var nodeTypeNames = []string{
+ Document: "Document",
+ BlockQuote: "BlockQuote",
+ List: "List",
+ Item: "Item",
+ Paragraph: "Paragraph",
+ Heading: "Heading",
+ HorizontalRule: "HorizontalRule",
+ Emph: "Emph",
+ Strong: "Strong",
+ Del: "Del",
+ Link: "Link",
+ Image: "Image",
+ Text: "Text",
+ HTMLBlock: "HTMLBlock",
+ CodeBlock: "CodeBlock",
+ Softbreak: "Softbreak",
+ Hardbreak: "Hardbreak",
+ Code: "Code",
+ HTMLSpan: "HTMLSpan",
+ Table: "Table",
+ TableCell: "TableCell",
+ TableHead: "TableHead",
+ TableBody: "TableBody",
+ TableRow: "TableRow",
+}
+
+func (t NodeType) String() string {
+ return nodeTypeNames[t]
+}
+
+// ListData contains fields relevant to a List and Item node type.
+type ListData struct {
+ ListFlags ListType
+ Tight bool // Skip <p>s around list item data if true
+ BulletChar byte // '*', '+' or '-' in bullet lists
+ Delimiter byte // '.' or ')' after the number in ordered lists
+ RefLink []byte // If not nil, turns this list item into a footnote item and triggers different rendering
+ IsFootnotesList bool // This is a list of footnotes
+}
+
+// LinkData contains fields relevant to a Link node type.
+type LinkData struct {
+ Destination []byte // Destination is what goes into a href
+ Title []byte // Title is the tooltip thing that goes in a title attribute
+ NoteID int // NoteID contains a serial number of a footnote, zero if it's not a footnote
+ Footnote *Node // If it's a footnote, this is a direct link to the footnote Node. Otherwise nil.
+}
+
+// CodeBlockData contains fields relevant to a CodeBlock node type.
+type CodeBlockData struct {
+ IsFenced bool // Specifies whether it's a fenced code block or an indented one
+ Info []byte // This holds the info string
+ FenceChar byte
+ FenceLength int
+ FenceOffset int
+}
+
+// TableCellData contains fields relevant to a TableCell node type.
+type TableCellData struct {
+ IsHeader bool // This tells if it's under the header row
+ Align CellAlignFlags // This holds the value for align attribute
+}
+
+// HeadingData contains fields relevant to a Heading node type.
+type HeadingData struct {
+ Level int // This holds the heading level number
+ HeadingID string // This might hold heading ID, if present
+ IsTitleblock bool // Specifies whether it's a title block
+}
+
+// Node is a single element in the abstract syntax tree of the parsed document.
+// It holds connections to the structurally neighboring nodes and, for certain
+// types of nodes, additional information that might be needed when rendering.
+type Node struct {
+ Type NodeType // Determines the type of the node
+ Parent *Node // Points to the parent
+ FirstChild *Node // Points to the first child, if any
+ LastChild *Node // Points to the last child, if any
+ Prev *Node // Previous sibling; nil if it's the first child
+ Next *Node // Next sibling; nil if it's the last child
+
+ Literal []byte // Text contents of the leaf nodes
+
+ HeadingData // Populated if Type is Heading
+ ListData // Populated if Type is List
+ CodeBlockData // Populated if Type is CodeBlock
+ LinkData // Populated if Type is Link
+ TableCellData // Populated if Type is TableCell
+
+ content []byte // Markdown content of the block nodes
+ open bool // Specifies an open block node that has not been finished to process yet
+}
+
+// NewNode allocates a node of a specified type.
+func NewNode(typ NodeType) *Node {
+ return &Node{
+ Type: typ,
+ open: true,
+ }
+}
+
+func (n *Node) String() string {
+ ellipsis := ""
+ snippet := n.Literal
+ if len(snippet) > 16 {
+ snippet = snippet[:16]
+ ellipsis = "..."
+ }
+ return fmt.Sprintf("%s: '%s%s'", n.Type, snippet, ellipsis)
+}
+
+// Unlink removes node 'n' from the tree.
+// It panics if the node is nil.
+func (n *Node) Unlink() {
+ if n.Prev != nil {
+ n.Prev.Next = n.Next
+ } else if n.Parent != nil {
+ n.Parent.FirstChild = n.Next
+ }
+ if n.Next != nil {
+ n.Next.Prev = n.Prev
+ } else if n.Parent != nil {
+ n.Parent.LastChild = n.Prev
+ }
+ n.Parent = nil
+ n.Next = nil
+ n.Prev = nil
+}
+
+// AppendChild adds a node 'child' as a child of 'n'.
+// It panics if either node is nil.
+func (n *Node) AppendChild(child *Node) {
+ child.Unlink()
+ child.Parent = n
+ if n.LastChild != nil {
+ n.LastChild.Next = child
+ child.Prev = n.LastChild
+ n.LastChild = child
+ } else {
+ n.FirstChild = child
+ n.LastChild = child
+ }
+}
+
+// InsertBefore inserts 'sibling' immediately before 'n'.
+// It panics if either node is nil.
+func (n *Node) InsertBefore(sibling *Node) {
+ sibling.Unlink()
+ sibling.Prev = n.Prev
+ if sibling.Prev != nil {
+ sibling.Prev.Next = sibling
+ }
+ sibling.Next = n
+ n.Prev = sibling
+ sibling.Parent = n.Parent
+ if sibling.Prev == nil {
+ sibling.Parent.FirstChild = sibling
+ }
+}
+
+func (n *Node) isContainer() bool {
+ switch n.Type {
+ case Document:
+ fallthrough
+ case BlockQuote:
+ fallthrough
+ case List:
+ fallthrough
+ case Item:
+ fallthrough
+ case Paragraph:
+ fallthrough
+ case Heading:
+ fallthrough
+ case Emph:
+ fallthrough
+ case Strong:
+ fallthrough
+ case Del:
+ fallthrough
+ case Link:
+ fallthrough
+ case Image:
+ fallthrough
+ case Table:
+ fallthrough
+ case TableHead:
+ fallthrough
+ case TableBody:
+ fallthrough
+ case TableRow:
+ fallthrough
+ case TableCell:
+ return true
+ default:
+ return false
+ }
+}
+
+func (n *Node) canContain(t NodeType) bool {
+ if n.Type == List {
+ return t == Item
+ }
+ if n.Type == Document || n.Type == BlockQuote || n.Type == Item {
+ return t != Item
+ }
+ if n.Type == Table {
+ return t == TableHead || t == TableBody
+ }
+ if n.Type == TableHead || n.Type == TableBody {
+ return t == TableRow
+ }
+ if n.Type == TableRow {
+ return t == TableCell
+ }
+ return false
+}
+
+// WalkStatus allows NodeVisitor to have some control over the tree traversal.
+// It is returned from NodeVisitor and different values allow Node.Walk to
+// decide which node to go to next.
+type WalkStatus int
+
+const (
+ // GoToNext is the default traversal of every node.
+ GoToNext WalkStatus = iota
+ // SkipChildren tells walker to skip all children of current node.
+ SkipChildren
+ // Terminate tells walker to terminate the traversal.
+ Terminate
+)
+
+// NodeVisitor is a callback to be called when traversing the syntax tree.
+// Called twice for every node: once with entering=true when the branch is
+// first visited, then with entering=false after all the children are done.
+type NodeVisitor func(node *Node, entering bool) WalkStatus
+
+// Walk is a convenience method that instantiates a walker and starts a
+// traversal of subtree rooted at n.
+func (n *Node) Walk(visitor NodeVisitor) {
+ w := newNodeWalker(n)
+ for w.current != nil {
+ status := visitor(w.current, w.entering)
+ switch status {
+ case GoToNext:
+ w.next()
+ case SkipChildren:
+ w.entering = false
+ w.next()
+ case Terminate:
+ return
+ }
+ }
+}
+
+type nodeWalker struct {
+ current *Node
+ root *Node
+ entering bool
+}
+
+func newNodeWalker(root *Node) *nodeWalker {
+ return &nodeWalker{
+ current: root,
+ root: root,
+ entering: true,
+ }
+}
+
+func (nw *nodeWalker) next() {
+ if (!nw.current.isContainer() || !nw.entering) && nw.current == nw.root {
+ nw.current = nil
+ return
+ }
+ if nw.entering && nw.current.isContainer() {
+ if nw.current.FirstChild != nil {
+ nw.current = nw.current.FirstChild
+ nw.entering = true
+ } else {
+ nw.entering = false
+ }
+ } else if nw.current.Next == nil {
+ nw.current = nw.current.Parent
+ nw.entering = false
+ } else {
+ nw.current = nw.current.Next
+ nw.entering = true
+ }
+}
+
+func dump(ast *Node) {
+ fmt.Println(dumpString(ast))
+}
+
+func dumpR(ast *Node, depth int) string {
+ if ast == nil {
+ return ""
+ }
+ indent := bytes.Repeat([]byte("\t"), depth)
+ content := ast.Literal
+ if content == nil {
+ content = ast.content
+ }
+ result := fmt.Sprintf("%s%s(%q)\n", indent, ast.Type, content)
+ for n := ast.FirstChild; n != nil; n = n.Next {
+ result += dumpR(n, depth+1)
+ }
+ return result
+}
+
+func dumpString(ast *Node) string {
+ return dumpR(ast, 0)
+}
diff --git a/vendor/github.com/russross/blackfriday/smartypants.go b/vendor/github.com/russross/blackfriday/v2/smartypants.go
similarity index 66%
rename from vendor/github.com/russross/blackfriday/smartypants.go
rename to vendor/github.com/russross/blackfriday/v2/smartypants.go
index f25bd07d9..3a220e942 100644
--- a/vendor/github.com/russross/blackfriday/smartypants.go
+++ b/vendor/github.com/russross/blackfriday/v2/smartypants.go
@@ -17,11 +17,14 @@ package blackfriday
import (
"bytes"
+ "io"
)
-type smartypantsData struct {
+// SPRenderer is a struct containing state of a Smartypants renderer.
+type SPRenderer struct {
inSingleQuote bool
inDoubleQuote bool
+ callbacks [256]smartCallback
}
func wordBoundary(c byte) bool {
@@ -118,7 +121,7 @@ func smartQuoteHelper(out *bytes.Buffer, previousChar byte, nextChar byte, quote
return true
}
-func smartSingleQuote(out *bytes.Buffer, smrt *smartypantsData, previousChar byte, text []byte) int {
+func (r *SPRenderer) smartSingleQuote(out *bytes.Buffer, previousChar byte, text []byte) int {
if len(text) >= 2 {
t1 := tolower(text[1])
@@ -127,7 +130,7 @@ func smartSingleQuote(out *bytes.Buffer, smrt *smartypantsData, previousChar byt
if len(text) >= 3 {
nextChar = text[2]
}
- if smartQuoteHelper(out, previousChar, nextChar, 'd', &smrt.inDoubleQuote, false) {
+ if smartQuoteHelper(out, previousChar, nextChar, 'd', &r.inDoubleQuote, false) {
return 1
}
}
@@ -152,7 +155,7 @@ func smartSingleQuote(out *bytes.Buffer, smrt *smartypantsData, previousChar byt
if len(text) > 1 {
nextChar = text[1]
}
- if smartQuoteHelper(out, previousChar, nextChar, 's', &smrt.inSingleQuote, false) {
+ if smartQuoteHelper(out, previousChar, nextChar, 's', &r.inSingleQuote, false) {
return 0
}
@@ -160,7 +163,7 @@ func smartSingleQuote(out *bytes.Buffer, smrt *smartypantsData, previousChar byt
return 0
}
-func smartParens(out *bytes.Buffer, smrt *smartypantsData, previousChar byte, text []byte) int {
+func (r *SPRenderer) smartParens(out *bytes.Buffer, previousChar byte, text []byte) int {
if len(text) >= 3 {
t1 := tolower(text[1])
t2 := tolower(text[2])
@@ -185,7 +188,7 @@ func smartParens(out *bytes.Buffer, smrt *smartypantsData, previousChar byte, te
return 0
}
-func smartDash(out *bytes.Buffer, smrt *smartypantsData, previousChar byte, text []byte) int {
+func (r *SPRenderer) smartDash(out *bytes.Buffer, previousChar byte, text []byte) int {
if len(text) >= 2 {
if text[1] == '-' {
out.WriteString("&mdash;")
@@ -202,7 +205,7 @@ func smartDash(out *bytes.Buffer, smrt *smartypantsData, previousChar byte, text
return 0
}
-func smartDashLatex(out *bytes.Buffer, smrt *smartypantsData, previousChar byte, text []byte) int {
+func (r *SPRenderer) smartDashLatex(out *bytes.Buffer, previousChar byte, text []byte) int {
if len(text) >= 3 && text[1] == '-' && text[2] == '-' {
out.WriteString("&mdash;")
return 2
@@ -216,13 +219,13 @@ func smartDashLatex(out *bytes.Buffer, smrt *smartypantsData, previousChar byte,
return 0
}
-func smartAmpVariant(out *bytes.Buffer, smrt *smartypantsData, previousChar byte, text []byte, quote byte, addNBSP bool) int {
+func (r *SPRenderer) smartAmpVariant(out *bytes.Buffer, previousChar byte, text []byte, quote byte, addNBSP bool) int {
if bytes.HasPrefix(text, []byte("&quot;")) {
nextChar := byte(0)
if len(text) >= 7 {
nextChar = text[6]
}
- if smartQuoteHelper(out, previousChar, nextChar, quote, &smrt.inDoubleQuote, addNBSP) {
+ if smartQuoteHelper(out, previousChar, nextChar, quote, &r.inDoubleQuote, addNBSP) {
return 5
}
}
@@ -235,18 +238,18 @@ func smartAmpVariant(out *bytes.Buffer, smrt *smartypantsData, previousChar byte
return 0
}
-func smartAmp(angledQuotes, addNBSP bool) func(out *bytes.Buffer, smrt *smartypantsData, previousChar byte, text []byte) int {
+func (r *SPRenderer) smartAmp(angledQuotes, addNBSP bool) func(*bytes.Buffer, byte, []byte) int {
var quote byte = 'd'
if angledQuotes {
quote = 'a'
}
- return func(out *bytes.Buffer, smrt *smartypantsData, previousChar byte, text []byte) int {
- return smartAmpVariant(out, smrt, previousChar, text, quote, addNBSP)
+ return func(out *bytes.Buffer, previousChar byte, text []byte) int {
+ return r.smartAmpVariant(out, previousChar, text, quote, addNBSP)
}
}
-func smartPeriod(out *bytes.Buffer, smrt *smartypantsData, previousChar byte, text []byte) int {
+func (r *SPRenderer) smartPeriod(out *bytes.Buffer, previousChar byte, text []byte) int {
if len(text) >= 3 && text[1] == '.' && text[2] == '.' {
out.WriteString("&hellip;")
return 2
@@ -261,13 +264,13 @@ func smartPeriod(out *bytes.Buffer, smrt *smartypantsData, previousChar byte, te
return 0
}
-func smartBacktick(out *bytes.Buffer, smrt *smartypantsData, previousChar byte, text []byte) int {
+func (r *SPRenderer) smartBacktick(out *bytes.Buffer, previousChar byte, text []byte) int {
if len(text) >= 2 && text[1] == '`' {
nextChar := byte(0)
if len(text) >= 3 {
nextChar = text[2]
}
- if smartQuoteHelper(out, previousChar, nextChar, 'd', &smrt.inDoubleQuote, false) {
+ if smartQuoteHelper(out, previousChar, nextChar, 'd', &r.inDoubleQuote, false) {
return 1
}
}
@@ -276,7 +279,7 @@ func smartBacktick(out *bytes.Buffer, smrt *smartypantsData, previousChar byte,
return 0
}
-func smartNumberGeneric(out *bytes.Buffer, smrt *smartypantsData, previousChar byte, text []byte) int {
+func (r *SPRenderer) smartNumberGeneric(out *bytes.Buffer, previousChar byte, text []byte) int {
if wordBoundary(previousChar) && previousChar != '/' && len(text) >= 3 {
// is it of the form digits/digits(word boundary)?, i.e., \d+/\d+\b
// note: check for regular slash (/) or fraction slash (⁄, 0x2044, or 0xe2 81 84 in utf-8)
@@ -318,7 +321,7 @@ func smartNumberGeneric(out *bytes.Buffer, smrt *smartypantsData, previousChar b
return 0
}
-func smartNumber(out *bytes.Buffer, smrt *smartypantsData, previousChar byte, text []byte) int {
+func (r *SPRenderer) smartNumber(out *bytes.Buffer, previousChar byte, text []byte) int {
if wordBoundary(previousChar) && previousChar != '/' && len(text) >= 3 {
if text[0] == '1' && text[1] == '/' && text[2] == '2' {
if len(text) < 4 || wordBoundary(text[3]) && text[3] != '/' {
@@ -346,27 +349,27 @@ func smartNumber(out *bytes.Buffer, smrt *smartypantsData, previousChar byte, te
return 0
}
-func smartDoubleQuoteVariant(out *bytes.Buffer, smrt *smartypantsData, previousChar byte, text []byte, quote byte) int {
+func (r *SPRenderer) smartDoubleQuoteVariant(out *bytes.Buffer, previousChar byte, text []byte, quote byte) int {
nextChar := byte(0)
if len(text) > 1 {
nextChar = text[1]
}
- if !smartQuoteHelper(out, previousChar, nextChar, quote, &smrt.inDoubleQuote, false) {
+ if !smartQuoteHelper(out, previousChar, nextChar, quote, &r.inDoubleQuote, false) {
out.WriteString("&quot;")
}
return 0
}
-func smartDoubleQuote(out *bytes.Buffer, smrt *smartypantsData, previousChar byte, text []byte) int {
- return smartDoubleQuoteVariant(out, smrt, previousChar, text, 'd')
+func (r *SPRenderer) smartDoubleQuote(out *bytes.Buffer, previousChar byte, text []byte) int {
+ return r.smartDoubleQuoteVariant(out, previousChar, text, 'd')
}
-func smartAngledDoubleQuote(out *bytes.Buffer, smrt *smartypantsData, previousChar byte, text []byte) int {
- return smartDoubleQuoteVariant(out, smrt, previousChar, text, 'a')
+func (r *SPRenderer) smartAngledDoubleQuote(out *bytes.Buffer, previousChar byte, text []byte) int {
+ return r.smartDoubleQuoteVariant(out, previousChar, text, 'a')
}
-func smartLeftAngle(out *bytes.Buffer, smrt *smartypantsData, previousChar byte, text []byte) int {
+func (r *SPRenderer) smartLeftAngle(out *bytes.Buffer, previousChar byte, text []byte) int {
i := 0
for i < len(text) && text[i] != '>' {
@@ -377,54 +380,78 @@ func smartLeftAngle(out *bytes.Buffer, smrt *smartypantsData, previousChar byte,
return i
}
-type smartCallback func(out *bytes.Buffer, smrt *smartypantsData, previousChar byte, text []byte) int
+type smartCallback func(out *bytes.Buffer, previousChar byte, text []byte) int
-type smartypantsRenderer [256]smartCallback
+// NewSmartypantsRenderer constructs a Smartypants renderer object.
+func NewSmartypantsRenderer(flags HTMLFlags) *SPRenderer {
+ var (
+ r SPRenderer
-var (
- smartAmpAngled = smartAmp(true, false)
- smartAmpAngledNBSP = smartAmp(true, true)
- smartAmpRegular = smartAmp(false, false)
- smartAmpRegularNBSP = smartAmp(false, true)
-)
+ smartAmpAngled = r.smartAmp(true, false)
+ smartAmpAngledNBSP = r.smartAmp(true, true)
+ smartAmpRegular = r.smartAmp(false, false)
+ smartAmpRegularNBSP = r.smartAmp(false, true)
+
+ addNBSP = flags&SmartypantsQuotesNBSP != 0
+ )
-func smartypants(flags int) *smartypantsRenderer {
- r := new(smartypantsRenderer)
- addNBSP := flags&HTML_SMARTYPANTS_QUOTES_NBSP != 0
- if flags&HTML_SMARTYPANTS_ANGLED_QUOTES == 0 {
- r['"'] = smartDoubleQuote
+ if flags&SmartypantsAngledQuotes == 0 {
+ r.callbacks['"'] = r.smartDoubleQuote
if !addNBSP {
- r['&'] = smartAmpRegular
+ r.callbacks['&'] = smartAmpRegular
} else {
- r['&'] = smartAmpRegularNBSP
+ r.callbacks['&'] = smartAmpRegularNBSP
}
} else {
- r['"'] = smartAngledDoubleQuote
+ r.callbacks['"'] = r.smartAngledDoubleQuote
if !addNBSP {
- r['&'] = smartAmpAngled
+ r.callbacks['&'] = smartAmpAngled
} else {
- r['&'] = smartAmpAngledNBSP
+ r.callbacks['&'] = smartAmpAngledNBSP
}
}
- r['\''] = smartSingleQuote
- r['('] = smartParens
- if flags&HTML_SMARTYPANTS_DASHES != 0 {
- if flags&HTML_SMARTYPANTS_LATEX_DASHES == 0 {
- r['-'] = smartDash
+ r.callbacks['\''] = r.smartSingleQuote
+ r.callbacks['('] = r.smartParens
+ if flags&SmartypantsDashes != 0 {
+ if flags&SmartypantsLatexDashes == 0 {
+ r.callbacks['-'] = r.smartDash
} else {
- r['-'] = smartDashLatex
+ r.callbacks['-'] = r.smartDashLatex
}
}
- r['.'] = smartPeriod
- if flags&HTML_SMARTYPANTS_FRACTIONS == 0 {
- r['1'] = smartNumber
- r['3'] = smartNumber
+ r.callbacks['.'] = r.smartPeriod
+ if flags&SmartypantsFractions == 0 {
+ r.callbacks['1'] = r.smartNumber
+ r.callbacks['3'] = r.smartNumber
} else {
for ch := '1'; ch <= '9'; ch++ {
- r[ch] = smartNumberGeneric
+ r.callbacks[ch] = r.smartNumberGeneric
}
}
- r['<'] = smartLeftAngle
- r['`'] = smartBacktick
- return r
+ r.callbacks['<'] = r.smartLeftAngle
+ r.callbacks['`'] = r.smartBacktick
+ return &r
+}
+
+// Process is the entry point of the Smartypants renderer.
+func (r *SPRenderer) Process(w io.Writer, text []byte) {
+ mark := 0
+ for i := 0; i < len(text); i++ {
+ if action := r.callbacks[text[i]]; action != nil {
+ if i > mark {
+ w.Write(text[mark:i])
+ }
+ previousChar := byte(0)
+ if i > 0 {
+ previousChar = text[i-1]
+ }
+ var tmp bytes.Buffer
+ i += action(&tmp, previousChar, text[i:])
+ w.Write(tmp.Bytes())
+ mark = i + 1
+ }
+ }
+ if mark < len(text) {
+ w.Write(text[mark:])
+ }
}
diff --git a/vendor/github.com/shurcooL/sanitized_anchor_name/.travis.yml b/vendor/github.com/shurcooL/sanitized_anchor_name/.travis.yml
new file mode 100644
index 000000000..93b1fcdb3
--- /dev/null
+++ b/vendor/github.com/shurcooL/sanitized_anchor_name/.travis.yml
@@ -0,0 +1,16 @@
+sudo: false
+language: go
+go:
+ - 1.x
+ - master
+matrix:
+ allow_failures:
+ - go: master
+ fast_finish: true
+install:
+ - # Do nothing. This is needed to prevent default install action "go get -t -v ./..." from happening here (we want it to happen inside script step).
+script:
+ - go get -t -v ./...
+ - diff -u <(echo -n) <(gofmt -d -s .)
+ - go tool vet .
+ - go test -v -race ./...
diff --git a/vendor/github.com/shurcooL/sanitized_anchor_name/LICENSE b/vendor/github.com/shurcooL/sanitized_anchor_name/LICENSE
new file mode 100644
index 000000000..c35c17af9
--- /dev/null
+++ b/vendor/github.com/shurcooL/sanitized_anchor_name/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2015 Dmitri Shuralyov
+
+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/shurcooL/sanitized_anchor_name/README.md b/vendor/github.com/shurcooL/sanitized_anchor_name/README.md
new file mode 100644
index 000000000..670bf0fe6
--- /dev/null
+++ b/vendor/github.com/shurcooL/sanitized_anchor_name/README.md
@@ -0,0 +1,36 @@
+sanitized_anchor_name
+=====================
+
+[![Build Status](https://travis-ci.org/shurcooL/sanitized_anchor_name.svg?branch=master)](https://travis-ci.org/shurcooL/sanitized_anchor_name) [![GoDoc](https://godoc.org/github.com/shurcooL/sanitized_anchor_name?status.svg)](https://godoc.org/github.com/shurcooL/sanitized_anchor_name)
+
+Package sanitized_anchor_name provides a func to create sanitized anchor names.
+
+Its logic can be reused by multiple packages to create interoperable anchor names
+and links to those anchors.
+
+At this time, it does not try to ensure that generated anchor names
+are unique, that responsibility falls on the caller.
+
+Installation
+------------
+
+```bash
+go get -u github.com/shurcooL/sanitized_anchor_name
+```
+
+Example
+-------
+
+```Go
+anchorName := sanitized_anchor_name.Create("This is a header")
+
+fmt.Println(anchorName)
+
+// Output:
+// this-is-a-header
+```
+
+License
+-------
+
+- [MIT License](LICENSE)
diff --git a/vendor/github.com/shurcooL/sanitized_anchor_name/go.mod b/vendor/github.com/shurcooL/sanitized_anchor_name/go.mod
new file mode 100644
index 000000000..1e2553475
--- /dev/null
+++ b/vendor/github.com/shurcooL/sanitized_anchor_name/go.mod
@@ -0,0 +1 @@
+module github.com/shurcooL/sanitized_anchor_name
diff --git a/vendor/github.com/shurcooL/sanitized_anchor_name/main.go b/vendor/github.com/shurcooL/sanitized_anchor_name/main.go
new file mode 100644
index 000000000..6a77d1243
--- /dev/null
+++ b/vendor/github.com/shurcooL/sanitized_anchor_name/main.go
@@ -0,0 +1,29 @@
+// Package sanitized_anchor_name provides a func to create sanitized anchor names.
+//
+// Its logic can be reused by multiple packages to create interoperable anchor names
+// and links to those anchors.
+//
+// At this time, it does not try to ensure that generated anchor names
+// are unique, that responsibility falls on the caller.
+package sanitized_anchor_name // import "github.com/shurcooL/sanitized_anchor_name"
+
+import "unicode"
+
+// Create returns a sanitized anchor name for the given text.
+func Create(text string) string {
+ var anchorName []rune
+ var futureDash = false
+ for _, r := range text {
+ switch {
+ case unicode.IsLetter(r) || unicode.IsNumber(r):
+ if futureDash && len(anchorName) > 0 {
+ anchorName = append(anchorName, '-')
+ }
+ futureDash = false
+ anchorName = append(anchorName, unicode.ToLower(r))
+ default:
+ futureDash = true
+ }
+ }
+ return string(anchorName)
+}
diff --git a/vendor/github.com/skratchdot/open-golang/LICENSE-MIT b/vendor/github.com/skratchdot/open-golang/LICENSE
similarity index 100%
rename from vendor/github.com/skratchdot/open-golang/LICENSE-MIT
rename to vendor/github.com/skratchdot/open-golang/LICENSE
diff --git a/vendor/github.com/spf13/cobra/.gitignore b/vendor/github.com/spf13/cobra/.gitignore
index 3b053c59e..b2b848e77 100644
--- a/vendor/github.com/spf13/cobra/.gitignore
+++ b/vendor/github.com/spf13/cobra/.gitignore
@@ -32,7 +32,8 @@ Session.vim
tags
*.exe
-
+cobra
cobra.test
-.idea/*
+.idea/
+*.iml
diff --git a/vendor/github.com/spf13/cobra/.travis.yml b/vendor/github.com/spf13/cobra/.travis.yml
index 38b85f499..fca1e6948 100644
--- a/vendor/github.com/spf13/cobra/.travis.yml
+++ b/vendor/github.com/spf13/cobra/.travis.yml
@@ -18,13 +18,10 @@ matrix:
go: 1.12.x
script: diff -u <(echo -n) <(gofmt -d -s .)
-before_install:
- - mkdir -p bin
- - curl -Lso bin/shellcheck https://github.com/caarlos0/shellcheck-docker/releases/download/v0.6.0/shellcheck
- - chmod +x bin/shellcheck
- - go get -u github.com/kyoh86/richgo
+before_install: go get -u github.com/kyoh86/richgo
+
script:
- - PATH=$PATH:$PWD/bin richgo test -v ./...
+ - richgo test -v ./...
- go build
- if [ -z $NOVET ]; then
diff -u <(echo -n) <(go vet . 2>&1 | grep -vE 'ExampleCommand|bash_completions.*Fprint');
diff --git a/vendor/github.com/spf13/cobra/README.md b/vendor/github.com/spf13/cobra/README.md
index 60c5a425b..2f8175bc2 100644
--- a/vendor/github.com/spf13/cobra/README.md
+++ b/vendor/github.com/spf13/cobra/README.md
@@ -24,11 +24,13 @@ Many of the most widely used Go projects are built using Cobra, such as:
[Prototool](https://github.com/uber/prototool),
[mattermost-server](https://github.com/mattermost/mattermost-server),
[Gardener](https://github.com/gardener/gardenctl),
+[Linkerd](https://linkerd.io/),
etc.
[![Build Status](https://travis-ci.org/spf13/cobra.svg "Travis CI status")](https://travis-ci.org/spf13/cobra)
[![CircleCI status](https://circleci.com/gh/spf13/cobra.png?circle-token=:circle-token "CircleCI status")](https://circleci.com/gh/spf13/cobra)
[![GoDoc](https://godoc.org/github.com/spf13/cobra?status.svg)](https://godoc.org/github.com/spf13/cobra)
+[![Go Report Card](https://goreportcard.com/badge/github.com/spf13/cobra)](https://goreportcard.com/report/github.com/spf13/cobra)
# Table of Contents
@@ -208,51 +210,78 @@ You will additionally define flags and handle configuration in your init() funct
For example cmd/root.go:
```go
+package cmd
+
import (
- "fmt"
- "os"
+ "fmt"
+ "os"
- homedir "github.com/mitchellh/go-homedir"
- "github.com/spf13/cobra"
- "github.com/spf13/viper"
+ homedir "github.com/mitchellh/go-homedir"
+ "github.com/spf13/cobra"
+ "github.com/spf13/viper"
)
-func init() {
- cobra.OnInitialize(initConfig)
- rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.cobra.yaml)")
- rootCmd.PersistentFlags().StringVarP(&projectBase, "projectbase", "b", "", "base project directory eg. github.com/spf13/")
- rootCmd.PersistentFlags().StringP("author", "a", "YOUR NAME", "Author name for copyright attribution")
- rootCmd.PersistentFlags().StringVarP(&userLicense, "license", "l", "", "Name of license for the project (can provide `licensetext` in config)")
- rootCmd.PersistentFlags().Bool("viper", true, "Use Viper for configuration")
- viper.BindPFlag("author", rootCmd.PersistentFlags().Lookup("author"))
- viper.BindPFlag("projectbase", rootCmd.PersistentFlags().Lookup("projectbase"))
- viper.BindPFlag("useViper", rootCmd.PersistentFlags().Lookup("viper"))
- viper.SetDefault("author", "NAME HERE <EMAIL ADDRESS>")
- viper.SetDefault("license", "apache")
+var (
+ // Used for flags.
+ cfgFile string
+ userLicense string
+
+ rootCmd = &cobra.Command{
+ Use: "cobra",
+ Short: "A generator for Cobra based Applications",
+ Long: `Cobra is a CLI library for Go that empowers applications.
+This application is a tool to generate the needed files
+to quickly create a Cobra application.`,
+ }
+)
+
+// Execute executes the root command.
+func Execute() error {
+ return rootCmd.Execute()
}
-func initConfig() {
- // Don't forget to read config either from cfgFile or from home directory!
- if cfgFile != "" {
- // Use config file from the flag.
- viper.SetConfigFile(cfgFile)
- } else {
- // Find home directory.
- home, err := homedir.Dir()
- if err != nil {
- fmt.Println(err)
- os.Exit(1)
- }
+func init() {
+ cobra.OnInitialize(initConfig)
+
+ rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.cobra.yaml)")
+ rootCmd.PersistentFlags().StringP("author", "a", "YOUR NAME", "author name for copyright attribution")
+ rootCmd.PersistentFlags().StringVarP(&userLicense, "license", "l", "", "name of license for the project")
+ rootCmd.PersistentFlags().Bool("viper", true, "use Viper for configuration")
+ viper.BindPFlag("author", rootCmd.PersistentFlags().Lookup("author"))
+ viper.BindPFlag("useViper", rootCmd.PersistentFlags().Lookup("viper"))
+ viper.SetDefault("author", "NAME HERE <EMAIL ADDRESS>")
+ viper.SetDefault("license", "apache")
+
+ rootCmd.AddCommand(addCmd)
+ rootCmd.AddCommand(initCmd)
+}
- // Search config in home directory with name ".cobra" (without extension).
- viper.AddConfigPath(home)
- viper.SetConfigName(".cobra")
- }
+func er(msg interface{}) {
+ fmt.Println("Error:", msg)
+ os.Exit(1)
+}
- if err := viper.ReadInConfig(); err != nil {
- fmt.Println("Can't read config:", err)
- os.Exit(1)
- }
+func initConfig() {
+ if cfgFile != "" {
+ // Use config file from the flag.
+ viper.SetConfigFile(cfgFile)
+ } else {
+ // Find home directory.
+ home, err := homedir.Dir()
+ if err != nil {
+ er(err)
+ }
+
+ // Search config in home directory with name ".cobra" (without extension).
+ viper.AddConfigPath(home)
+ viper.SetConfigName(".cobra")
+ }
+
+ viper.AutomaticEnv()
+
+ if err := viper.ReadInConfig(); err == nil {
+ fmt.Println("Using config file:", viper.ConfigFileUsed())
+ }
}
```
@@ -459,7 +488,7 @@ For many years people have printed back to the screen.`,
Echo works a lot like print, except it has a child command.`,
Args: cobra.MinimumNArgs(1),
Run: func(cmd *cobra.Command, args []string) {
- fmt.Println("Print: " + strings.Join(args, " "))
+ fmt.Println("Echo: " + strings.Join(args, " "))
},
}
diff --git a/vendor/github.com/spf13/cobra/bash_completions.go b/vendor/github.com/spf13/cobra/bash_completions.go
index 57bb8e1b3..1e0e25cf6 100644
--- a/vendor/github.com/spf13/cobra/bash_completions.go
+++ b/vendor/github.com/spf13/cobra/bash_completions.go
@@ -61,6 +61,7 @@ __%[1]s_contains_word()
__%[1]s_handle_reply()
{
__%[1]s_debug "${FUNCNAME[0]}"
+ local comp
case $cur in
-*)
if [[ $(type -t compopt) = "builtin" ]]; then
@@ -72,7 +73,9 @@ __%[1]s_handle_reply()
else
allflags=("${flags[*]} ${two_word_flags[*]}")
fi
- COMPREPLY=( $(compgen -W "${allflags[*]}" -- "$cur") )
+ while IFS='' read -r comp; do
+ COMPREPLY+=("$comp")
+ done < <(compgen -W "${allflags[*]}" -- "$cur")
if [[ $(type -t compopt) = "builtin" ]]; then
[[ "${COMPREPLY[0]}" == *= ]] || compopt +o nospace
fi
@@ -122,10 +125,14 @@ __%[1]s_handle_reply()
if [[ ${#must_have_one_flag[@]} -ne 0 ]]; then
completions+=("${must_have_one_flag[@]}")
fi
- COMPREPLY=( $(compgen -W "${completions[*]}" -- "$cur") )
+ while IFS='' read -r comp; do
+ COMPREPLY+=("$comp")
+ done < <(compgen -W "${completions[*]}" -- "$cur")
if [[ ${#COMPREPLY[@]} -eq 0 && ${#noun_aliases[@]} -gt 0 && ${#must_have_one_noun[@]} -ne 0 ]]; then
- COMPREPLY=( $(compgen -W "${noun_aliases[*]}" -- "$cur") )
+ while IFS='' read -r comp; do
+ COMPREPLY+=("$comp")
+ done < <(compgen -W "${noun_aliases[*]}" -- "$cur")
fi
if [[ ${#COMPREPLY[@]} -eq 0 ]]; then
@@ -160,7 +167,7 @@ __%[1]s_handle_filename_extension_flag()
__%[1]s_handle_subdirs_in_dir_flag()
{
local dir="$1"
- pushd "${dir}" >/dev/null 2>&1 && _filedir -d && popd >/dev/null 2>&1
+ pushd "${dir}" >/dev/null 2>&1 && _filedir -d && popd >/dev/null 2>&1 || return
}
__%[1]s_handle_flag()
diff --git a/vendor/github.com/spf13/cobra/cobra.go b/vendor/github.com/spf13/cobra/cobra.go
index 6505c070b..d01becc8f 100644
--- a/vendor/github.com/spf13/cobra/cobra.go
+++ b/vendor/github.com/spf13/cobra/cobra.go
@@ -52,7 +52,7 @@ var EnableCommandSorting = true
// if the CLI is started from explorer.exe.
// To disable the mousetrap, just set this variable to blank string ("").
// Works only on Microsoft Windows.
-var MousetrapHelpText string = `This is a command line tool.
+var MousetrapHelpText = `This is a command line tool.
You need to open cmd.exe and run it from there.
`
@@ -61,7 +61,7 @@ You need to open cmd.exe and run it from there.
// if the CLI is started from explorer.exe. Set to 0 to wait for the return key to be pressed.
// To disable the mousetrap, just set MousetrapHelpText to blank string ("").
// Works only on Microsoft Windows.
-var MousetrapDisplayDuration time.Duration = 5 * time.Second
+var MousetrapDisplayDuration = 5 * time.Second
// AddTemplateFunc adds a template function that's available to Usage and Help
// template generation.
diff --git a/vendor/github.com/spf13/cobra/command.go b/vendor/github.com/spf13/cobra/command.go
index c7e898303..fb60ebd93 100644
--- a/vendor/github.com/spf13/cobra/command.go
+++ b/vendor/github.com/spf13/cobra/command.go
@@ -17,6 +17,8 @@ package cobra
import (
"bytes"
+ "context"
+ "errors"
"fmt"
"io"
"os"
@@ -27,6 +29,8 @@ import (
flag "github.com/spf13/pflag"
)
+var ErrSubCommandRequired = errors.New("subcommand is required")
+
// FParseErrWhitelist configures Flag parse errors to be ignored
type FParseErrWhitelist flag.ParseErrorsWhitelist
@@ -140,9 +144,11 @@ type Command struct {
// TraverseChildren parses flags on all parents before executing child command.
TraverseChildren bool
- //FParseErrWhitelist flag parse errors to be ignored
+ // FParseErrWhitelist flag parse errors to be ignored
FParseErrWhitelist FParseErrWhitelist
+ ctx context.Context
+
// commands is the list of commands supported by this program.
commands []*Command
// parent is a parent command for this command.
@@ -202,6 +208,12 @@ type Command struct {
errWriter io.Writer
}
+// Context returns underlying command context. If command wasn't
+// executed with ExecuteContext Context returns Background context.
+func (c *Command) Context() context.Context {
+ return c.ctx
+}
+
// SetArgs sets arguments for the command. It is set to os.Args[1:] by default, if desired, can be overridden
// particularly useful when testing.
func (c *Command) SetArgs(a []string) {
@@ -228,7 +240,7 @@ func (c *Command) SetErr(newErr io.Writer) {
c.errWriter = newErr
}
-// SetOut sets the source for input data
+// SetIn sets the source for input data
// If newIn is nil, os.Stdin is used.
func (c *Command) SetIn(newIn io.Reader) {
c.inReader = newIn
@@ -297,7 +309,7 @@ func (c *Command) ErrOrStderr() io.Writer {
return c.getErr(os.Stderr)
}
-// ErrOrStderr returns output to stderr
+// InOrStdin returns output to stderr
func (c *Command) InOrStdin() io.Reader {
return c.getIn(os.Stdin)
}
@@ -369,6 +381,8 @@ func (c *Command) HelpFunc() func(*Command, []string) {
}
return func(c *Command, a []string) {
c.mergePersistentFlags()
+ // The help should be sent to stdout
+ // See https://github.com/spf13/cobra/issues/1002
err := tmpl(c.OutOrStdout(), c.HelpTemplate(), c)
if err != nil {
c.Println(err)
@@ -786,7 +800,7 @@ func (c *Command) execute(a []string) (err error) {
}
if !c.Runnable() {
- return flag.ErrHelp
+ return ErrSubCommandRequired
}
c.preRun()
@@ -857,6 +871,13 @@ func (c *Command) preRun() {
}
}
+// ExecuteContext is the same as Execute(), but sets the ctx on the command.
+// Retrieve ctx by calling cmd.Context() inside your *Run lifecycle functions.
+func (c *Command) ExecuteContext(ctx context.Context) error {
+ c.ctx = ctx
+ return c.Execute()
+}
+
// Execute uses the args (os.Args[1:] by default)
// and run through the command tree finding appropriate matches
// for commands and then corresponding flags.
@@ -867,6 +888,10 @@ func (c *Command) Execute() error {
// ExecuteC executes the command.
func (c *Command) ExecuteC() (cmd *Command, err error) {
+ if c.ctx == nil {
+ c.ctx = context.Background()
+ }
+
// Regardless of what command execute is called on, run on Root only
if c.HasParent() {
return c.Root().ExecuteC()
@@ -911,6 +936,12 @@ func (c *Command) ExecuteC() (cmd *Command, err error) {
cmd.commandCalledAs.name = cmd.Name()
}
+ // We have to pass global context to children command
+ // if context is present on the parent command.
+ if cmd.ctx == nil {
+ cmd.ctx = c.ctx
+ }
+
err = cmd.execute(flags)
if err != nil {
// Always show help if requested, even if SilenceErrors is in
@@ -920,6 +951,14 @@ func (c *Command) ExecuteC() (cmd *Command, err error) {
return cmd, nil
}
+ // If command wasn't runnable, show full help, but do return the error.
+ // This will result in apps by default returning a non-success exit code, but also gives them the option to
+ // handle specially.
+ if err == ErrSubCommandRequired {
+ cmd.HelpFunc()(cmd, args)
+ return cmd, err
+ }
+
// If root command has SilentErrors flagged,
// all subcommands should respect it
if !cmd.SilenceErrors && !c.SilenceErrors {
@@ -1547,7 +1586,7 @@ func (c *Command) ParseFlags(args []string) error {
beforeErrorBufLen := c.flagErrorBuf.Len()
c.mergePersistentFlags()
- //do it here after merging all flags and just before parse
+ // do it here after merging all flags and just before parse
c.Flags().ParseErrorsWhitelist = flag.ParseErrorsWhitelist(c.FParseErrWhitelist)
err := c.Flags().Parse(args)
diff --git a/vendor/github.com/spf13/cobra/doc/man_docs.go b/vendor/github.com/spf13/cobra/doc/man_docs.go
index 4a0623393..8c7fba44a 100644
--- a/vendor/github.com/spf13/cobra/doc/man_docs.go
+++ b/vendor/github.com/spf13/cobra/doc/man_docs.go
@@ -24,7 +24,7 @@ import (
"strings"
"time"
- "github.com/cpuguy83/go-md2man/md2man"
+ "github.com/cpuguy83/go-md2man/v2/md2man"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
)
diff --git a/vendor/github.com/spf13/cobra/doc/md_docs.md b/vendor/github.com/spf13/cobra/doc/md_docs.md
index 56ce9fe81..5c870625f 100644
--- a/vendor/github.com/spf13/cobra/doc/md_docs.md
+++ b/vendor/github.com/spf13/cobra/doc/md_docs.md
@@ -1,6 +1,6 @@
# Generating Markdown Docs For Your Own cobra.Command
-Generating man pages from a cobra command is incredibly easy. An example is as follows:
+Generating Markdown pages from a cobra command is incredibly easy. An example is as follows:
```go
package main
diff --git a/vendor/github.com/spf13/cobra/go.mod b/vendor/github.com/spf13/cobra/go.mod
index 9a9eb65a3..dea1030ba 100644
--- a/vendor/github.com/spf13/cobra/go.mod
+++ b/vendor/github.com/spf13/cobra/go.mod
@@ -3,11 +3,10 @@ module github.com/spf13/cobra
go 1.12
require (
- github.com/BurntSushi/toml v0.3.1 // indirect
- github.com/cpuguy83/go-md2man v1.0.10
+ github.com/cpuguy83/go-md2man/v2 v2.0.0
github.com/inconshreveable/mousetrap v1.0.0
github.com/mitchellh/go-homedir v1.1.0
github.com/spf13/pflag v1.0.3
- github.com/spf13/viper v1.3.2
+ github.com/spf13/viper v1.4.0
gopkg.in/yaml.v2 v2.2.2
)
diff --git a/vendor/github.com/spf13/cobra/go.sum b/vendor/github.com/spf13/cobra/go.sum
index 9761f4d03..3aaa2ac0f 100644
--- a/vendor/github.com/spf13/cobra/go.sum
+++ b/vendor/github.com/spf13/cobra/go.sum
@@ -1,31 +1,91 @@
+cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
+github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
+github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
+github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
+github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
+github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
+github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
+github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
+github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk=
github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
-github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk=
github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
-github.com/cpuguy83/go-md2man v1.0.10 h1:BSKMNlYxDvnunlTymqtgONjNnaRV1sTpcovwwjF22jk=
-github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE=
+github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
+github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
+github.com/cpuguy83/go-md2man/v2 v2.0.0 h1:EoUDS0afbrsXAZ9YQ9jdu/mZ2sXgT1/2yyNng4PGlyM=
+github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
+github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no=
github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I=
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
+github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
+github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
+github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
+github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=
+github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
+github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
+github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4=
+github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
+github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
+github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
+github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
+github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
+github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
+github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
+github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ=
+github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs=
+github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk=
+github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY=
github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
+github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo=
+github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
+github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q=
+github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
+github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
+github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
+github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
+github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
+github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
+github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
+github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/magiconair/properties v1.8.0 h1:LLgXmsheXeRoUOBOjtwPQCWIYqM/LU1ayDtDePerRcY=
github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=
+github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
github.com/mitchellh/mapstructure v1.1.2 h1:fmNYVwqnSfB9mZU6OS2O6GsXM+wcskZDuKQzvN1EDeE=
github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
+github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
+github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U=
github.com/pelletier/go-toml v1.2.0 h1:T5zMGML61Wp+FlcbWjRDT7yAxhJNAiPPLOFECq181zc=
github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic=
+github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
-github.com/russross/blackfriday v1.5.2 h1:HyvC0ARfnZBqnXwABFeSZHpKvJHJJfPz81GNueLj0oo=
-github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
+github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
+github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso=
+github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
+github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
+github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro=
+github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4=
+github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
+github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
+github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU=
+github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg=
+github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q=
+github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
+github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo=
+github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
+github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
+github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM=
+github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA=
github.com/spf13/afero v1.1.2 h1:m8/z1t7/fwjysjQRYbP0RD+bUIF/8tJwPdEZsI83ACI=
github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ=
github.com/spf13/cast v1.3.0 h1:oget//CVOEoFewqQxwr0Ej5yjygnqGkvggSE/gB35Q8=
@@ -34,18 +94,56 @@ github.com/spf13/jwalterweatherman v1.0.0 h1:XHEdyB+EcvlqZamSM4ZOMGlc93t6AcsBEu9
github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo=
github.com/spf13/pflag v1.0.3 h1:zPAT6CGy6wXeQ7NtTnaTerfKOsV6V6F8agHXFiazDkg=
github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
-github.com/spf13/viper v1.3.2 h1:VUFqw5KcqRf7i70GOzW7N+Q7+gxVBkSSqiXB12+JQ4M=
-github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s=
+github.com/spf13/viper v1.4.0 h1:yXHLWeravcrgGyFSyCgdYpXQ9dR9c/WED3pg1RhxqEU=
+github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE=
+github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
-github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0=
+github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
+github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc=
+github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=
github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q=
-golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
-golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a h1:1n5lsVfiQW3yfsRGu98756EH1YthsFqr/5mxHduZW2A=
-golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
+go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
+go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=
+go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q=
+golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
+golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
+golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
+golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
+golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
+golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
+golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a h1:1BGLXjeY4akVXGgbC9HugT3Jv3hCI0z56oJR5vAMgBU=
+golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
+golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
+golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
+golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
+golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
+google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
+google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
+google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
+google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
+gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
+gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo=
+gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74=
+gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
diff --git a/vendor/github.com/stretchr/testify/assert/assertion_format.go b/vendor/github.com/stretchr/testify/assert/assertion_format.go
index e0364e9e7..bf89ecd21 100644
--- a/vendor/github.com/stretchr/testify/assert/assertion_format.go
+++ b/vendor/github.com/stretchr/testify/assert/assertion_format.go
@@ -32,7 +32,8 @@ func Containsf(t TestingT, s interface{}, contains interface{}, msg string, args
return Contains(t, s, contains, append([]interface{}{msg}, args...)...)
}
-// DirExistsf checks whether a directory exists in the given path. It also fails if the path is a file rather a directory or there is an error checking whether it exists.
+// DirExistsf checks whether a directory exists in the given path. It also fails
+// if the path is a file rather a directory or there is an error checking whether it exists.
func DirExistsf(t TestingT, path string, msg string, args ...interface{}) bool {
if h, ok := t.(tHelper); ok {
h.Helper()
@@ -160,7 +161,8 @@ func Falsef(t TestingT, value bool, msg string, args ...interface{}) bool {
return False(t, value, append([]interface{}{msg}, args...)...)
}
-// FileExistsf checks whether a file exists in the given path. It also fails if the path points to a directory or there is an error when trying to check the file.
+// FileExistsf checks whether a file exists in the given path. It also fails if
+// the path points to a directory or there is an error when trying to check the file.
func FileExistsf(t TestingT, path string, msg string, args ...interface{}) bool {
if h, ok := t.(tHelper); ok {
h.Helper()
@@ -267,7 +269,7 @@ func Implementsf(t TestingT, interfaceObject interface{}, object interface{}, ms
// InDeltaf asserts that the two numerals are within delta of each other.
//
-// assert.InDeltaf(t, math.Pi, (22 / 7.0, "error message %s", "formatted"), 0.01)
+// assert.InDeltaf(t, math.Pi, 22/7.0, 0.01, "error message %s", "formatted")
func InDeltaf(t TestingT, expected interface{}, actual interface{}, delta float64, msg string, args ...interface{}) bool {
if h, ok := t.(tHelper); ok {
h.Helper()
@@ -325,14 +327,6 @@ func JSONEqf(t TestingT, expected string, actual string, msg string, args ...int
return JSONEq(t, expected, actual, append([]interface{}{msg}, args...)...)
}
-// YAMLEqf asserts that two YAML strings are equivalent.
-func YAMLEqf(t TestingT, expected string, actual string, msg string, args ...interface{}) bool {
- if h, ok := t.(tHelper); ok {
- h.Helper()
- }
- return YAMLEq(t, expected, actual, append([]interface{}{msg}, args...)...)
-}
-
// Lenf asserts that the specified object has specific length.
// Lenf also fails if the object has a type that len() not accept.
//
@@ -369,6 +363,17 @@ func LessOrEqualf(t TestingT, e1 interface{}, e2 interface{}, msg string, args .
return LessOrEqual(t, e1, e2, append([]interface{}{msg}, args...)...)
}
+// Neverf asserts that the given condition doesn't satisfy in waitFor time,
+// periodically checking the target function each tick.
+//
+// assert.Neverf(t, func() bool { return false; }, time.Second, 10*time.Millisecond, "error message %s", "formatted")
+func Neverf(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) bool {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+ return Never(t, condition, waitFor, tick, append([]interface{}{msg}, args...)...)
+}
+
// Nilf asserts that the specified object is nil.
//
// assert.Nilf(t, err, "error message %s", "formatted")
@@ -379,6 +384,15 @@ func Nilf(t TestingT, object interface{}, msg string, args ...interface{}) bool
return Nil(t, object, append([]interface{}{msg}, args...)...)
}
+// NoDirExistsf checks whether a directory does not exist in the given path.
+// It fails if the path points to an existing _directory_ only.
+func NoDirExistsf(t TestingT, path string, msg string, args ...interface{}) bool {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+ return NoDirExists(t, path, append([]interface{}{msg}, args...)...)
+}
+
// NoErrorf asserts that a function returned no error (i.e. `nil`).
//
// actualObj, err := SomeFunction()
@@ -392,6 +406,15 @@ func NoErrorf(t TestingT, err error, msg string, args ...interface{}) bool {
return NoError(t, err, append([]interface{}{msg}, args...)...)
}
+// NoFileExistsf checks whether a file does not exist in a given path. It fails
+// if the path points to an existing _file_ only.
+func NoFileExistsf(t TestingT, path string, msg string, args ...interface{}) bool {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+ return NoFileExists(t, path, append([]interface{}{msg}, args...)...)
+}
+
// NotContainsf asserts that the specified string, list(array, slice...) or map does NOT contain the
// specified substring or element.
//
@@ -462,6 +485,19 @@ func NotRegexpf(t TestingT, rx interface{}, str interface{}, msg string, args ..
return NotRegexp(t, rx, str, append([]interface{}{msg}, args...)...)
}
+// NotSamef asserts that two pointers do not reference the same object.
+//
+// assert.NotSamef(t, ptr1, ptr2, "error message %s", "formatted")
+//
+// Both arguments must be pointer variables. Pointer variable sameness is
+// determined based on the equality of both type and value.
+func NotSamef(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{}) bool {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+ return NotSame(t, expected, actual, append([]interface{}{msg}, args...)...)
+}
+
// NotSubsetf asserts that the specified list(array, slice...) contains not all
// elements given in the specified subset(array, slice...).
//
@@ -491,6 +527,18 @@ func Panicsf(t TestingT, f PanicTestFunc, msg string, args ...interface{}) bool
return Panics(t, f, append([]interface{}{msg}, args...)...)
}
+// PanicsWithErrorf asserts that the code inside the specified PanicTestFunc
+// panics, and that the recovered panic value is an error that satisfies the
+// EqualError comparison.
+//
+// assert.PanicsWithErrorf(t, "crazy error", func(){ GoCrazy() }, "error message %s", "formatted")
+func PanicsWithErrorf(t TestingT, errString string, f PanicTestFunc, msg string, args ...interface{}) bool {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+ return PanicsWithError(t, errString, f, append([]interface{}{msg}, args...)...)
+}
+
// PanicsWithValuef asserts that the code inside the specified PanicTestFunc panics, and that
// the recovered panic value equals the expected panic value.
//
@@ -557,6 +605,14 @@ func WithinDurationf(t TestingT, expected time.Time, actual time.Time, delta tim
return WithinDuration(t, expected, actual, delta, append([]interface{}{msg}, args...)...)
}
+// YAMLEqf asserts that two YAML strings are equivalent.
+func YAMLEqf(t TestingT, expected string, actual string, msg string, args ...interface{}) bool {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+ return YAMLEq(t, expected, actual, append([]interface{}{msg}, args...)...)
+}
+
// Zerof asserts that i is the zero value for its type.
func Zerof(t TestingT, i interface{}, msg string, args ...interface{}) bool {
if h, ok := t.(tHelper); ok {
diff --git a/vendor/github.com/stretchr/testify/assert/assertion_forward.go b/vendor/github.com/stretchr/testify/assert/assertion_forward.go
index 26830403a..75ecdcaa2 100644
--- a/vendor/github.com/stretchr/testify/assert/assertion_forward.go
+++ b/vendor/github.com/stretchr/testify/assert/assertion_forward.go
@@ -53,7 +53,8 @@ func (a *Assertions) Containsf(s interface{}, contains interface{}, msg string,
return Containsf(a.t, s, contains, msg, args...)
}
-// DirExists checks whether a directory exists in the given path. It also fails if the path is a file rather a directory or there is an error checking whether it exists.
+// DirExists checks whether a directory exists in the given path. It also fails
+// if the path is a file rather a directory or there is an error checking whether it exists.
func (a *Assertions) DirExists(path string, msgAndArgs ...interface{}) bool {
if h, ok := a.t.(tHelper); ok {
h.Helper()
@@ -61,7 +62,8 @@ func (a *Assertions) DirExists(path string, msgAndArgs ...interface{}) bool {
return DirExists(a.t, path, msgAndArgs...)
}
-// DirExistsf checks whether a directory exists in the given path. It also fails if the path is a file rather a directory or there is an error checking whether it exists.
+// DirExistsf checks whether a directory exists in the given path. It also fails
+// if the path is a file rather a directory or there is an error checking whether it exists.
func (a *Assertions) DirExistsf(path string, msg string, args ...interface{}) bool {
if h, ok := a.t.(tHelper); ok {
h.Helper()
@@ -309,7 +311,8 @@ func (a *Assertions) Falsef(value bool, msg string, args ...interface{}) bool {
return Falsef(a.t, value, msg, args...)
}
-// FileExists checks whether a file exists in the given path. It also fails if the path points to a directory or there is an error when trying to check the file.
+// FileExists checks whether a file exists in the given path. It also fails if
+// the path points to a directory or there is an error when trying to check the file.
func (a *Assertions) FileExists(path string, msgAndArgs ...interface{}) bool {
if h, ok := a.t.(tHelper); ok {
h.Helper()
@@ -317,7 +320,8 @@ func (a *Assertions) FileExists(path string, msgAndArgs ...interface{}) bool {
return FileExists(a.t, path, msgAndArgs...)
}
-// FileExistsf checks whether a file exists in the given path. It also fails if the path points to a directory or there is an error when trying to check the file.
+// FileExistsf checks whether a file exists in the given path. It also fails if
+// the path points to a directory or there is an error when trying to check the file.
func (a *Assertions) FileExistsf(path string, msg string, args ...interface{}) bool {
if h, ok := a.t.(tHelper); ok {
h.Helper()
@@ -521,7 +525,7 @@ func (a *Assertions) Implementsf(interfaceObject interface{}, object interface{}
// InDelta asserts that the two numerals are within delta of each other.
//
-// a.InDelta(math.Pi, (22 / 7.0), 0.01)
+// a.InDelta(math.Pi, 22/7.0, 0.01)
func (a *Assertions) InDelta(expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) bool {
if h, ok := a.t.(tHelper); ok {
h.Helper()
@@ -563,7 +567,7 @@ func (a *Assertions) InDeltaSlicef(expected interface{}, actual interface{}, del
// InDeltaf asserts that the two numerals are within delta of each other.
//
-// a.InDeltaf(math.Pi, (22 / 7.0, "error message %s", "formatted"), 0.01)
+// a.InDeltaf(math.Pi, 22/7.0, 0.01, "error message %s", "formatted")
func (a *Assertions) InDeltaf(expected interface{}, actual interface{}, delta float64, msg string, args ...interface{}) bool {
if h, ok := a.t.(tHelper); ok {
h.Helper()
@@ -639,22 +643,6 @@ func (a *Assertions) JSONEqf(expected string, actual string, msg string, args ..
return JSONEqf(a.t, expected, actual, msg, args...)
}
-// YAMLEq asserts that two YAML strings are equivalent.
-func (a *Assertions) YAMLEq(expected string, actual string, msgAndArgs ...interface{}) bool {
- if h, ok := a.t.(tHelper); ok {
- h.Helper()
- }
- return YAMLEq(a.t, expected, actual, msgAndArgs...)
-}
-
-// YAMLEqf asserts that two YAML strings are equivalent.
-func (a *Assertions) YAMLEqf(expected string, actual string, msg string, args ...interface{}) bool {
- if h, ok := a.t.(tHelper); ok {
- h.Helper()
- }
- return YAMLEqf(a.t, expected, actual, msg, args...)
-}
-
// Len asserts that the specified object has specific length.
// Len also fails if the object has a type that len() not accept.
//
@@ -727,6 +715,28 @@ func (a *Assertions) Lessf(e1 interface{}, e2 interface{}, msg string, args ...i
return Lessf(a.t, e1, e2, msg, args...)
}
+// Never asserts that the given condition doesn't satisfy in waitFor time,
+// periodically checking the target function each tick.
+//
+// a.Never(func() bool { return false; }, time.Second, 10*time.Millisecond)
+func (a *Assertions) Never(condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{}) bool {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ return Never(a.t, condition, waitFor, tick, msgAndArgs...)
+}
+
+// Neverf asserts that the given condition doesn't satisfy in waitFor time,
+// periodically checking the target function each tick.
+//
+// a.Neverf(func() bool { return false; }, time.Second, 10*time.Millisecond, "error message %s", "formatted")
+func (a *Assertions) Neverf(condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) bool {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ return Neverf(a.t, condition, waitFor, tick, msg, args...)
+}
+
// Nil asserts that the specified object is nil.
//
// a.Nil(err)
@@ -747,6 +757,24 @@ func (a *Assertions) Nilf(object interface{}, msg string, args ...interface{}) b
return Nilf(a.t, object, msg, args...)
}
+// NoDirExists checks whether a directory does not exist in the given path.
+// It fails if the path points to an existing _directory_ only.
+func (a *Assertions) NoDirExists(path string, msgAndArgs ...interface{}) bool {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ return NoDirExists(a.t, path, msgAndArgs...)
+}
+
+// NoDirExistsf checks whether a directory does not exist in the given path.
+// It fails if the path points to an existing _directory_ only.
+func (a *Assertions) NoDirExistsf(path string, msg string, args ...interface{}) bool {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ return NoDirExistsf(a.t, path, msg, args...)
+}
+
// NoError asserts that a function returned no error (i.e. `nil`).
//
// actualObj, err := SomeFunction()
@@ -773,6 +801,24 @@ func (a *Assertions) NoErrorf(err error, msg string, args ...interface{}) bool {
return NoErrorf(a.t, err, msg, args...)
}
+// NoFileExists checks whether a file does not exist in a given path. It fails
+// if the path points to an existing _file_ only.
+func (a *Assertions) NoFileExists(path string, msgAndArgs ...interface{}) bool {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ return NoFileExists(a.t, path, msgAndArgs...)
+}
+
+// NoFileExistsf checks whether a file does not exist in a given path. It fails
+// if the path points to an existing _file_ only.
+func (a *Assertions) NoFileExistsf(path string, msg string, args ...interface{}) bool {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ return NoFileExistsf(a.t, path, msg, args...)
+}
+
// NotContains asserts that the specified string, list(array, slice...) or map does NOT contain the
// specified substring or element.
//
@@ -913,6 +959,32 @@ func (a *Assertions) NotRegexpf(rx interface{}, str interface{}, msg string, arg
return NotRegexpf(a.t, rx, str, msg, args...)
}
+// NotSame asserts that two pointers do not reference the same object.
+//
+// a.NotSame(ptr1, ptr2)
+//
+// Both arguments must be pointer variables. Pointer variable sameness is
+// determined based on the equality of both type and value.
+func (a *Assertions) NotSame(expected interface{}, actual interface{}, msgAndArgs ...interface{}) bool {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ return NotSame(a.t, expected, actual, msgAndArgs...)
+}
+
+// NotSamef asserts that two pointers do not reference the same object.
+//
+// a.NotSamef(ptr1, ptr2, "error message %s", "formatted")
+//
+// Both arguments must be pointer variables. Pointer variable sameness is
+// determined based on the equality of both type and value.
+func (a *Assertions) NotSamef(expected interface{}, actual interface{}, msg string, args ...interface{}) bool {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ return NotSamef(a.t, expected, actual, msg, args...)
+}
+
// NotSubset asserts that the specified list(array, slice...) contains not all
// elements given in the specified subset(array, slice...).
//
@@ -961,6 +1033,30 @@ func (a *Assertions) Panics(f PanicTestFunc, msgAndArgs ...interface{}) bool {
return Panics(a.t, f, msgAndArgs...)
}
+// PanicsWithError asserts that the code inside the specified PanicTestFunc
+// panics, and that the recovered panic value is an error that satisfies the
+// EqualError comparison.
+//
+// a.PanicsWithError("crazy error", func(){ GoCrazy() })
+func (a *Assertions) PanicsWithError(errString string, f PanicTestFunc, msgAndArgs ...interface{}) bool {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ return PanicsWithError(a.t, errString, f, msgAndArgs...)
+}
+
+// PanicsWithErrorf asserts that the code inside the specified PanicTestFunc
+// panics, and that the recovered panic value is an error that satisfies the
+// EqualError comparison.
+//
+// a.PanicsWithErrorf("crazy error", func(){ GoCrazy() }, "error message %s", "formatted")
+func (a *Assertions) PanicsWithErrorf(errString string, f PanicTestFunc, msg string, args ...interface{}) bool {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ return PanicsWithErrorf(a.t, errString, f, msg, args...)
+}
+
// PanicsWithValue asserts that the code inside the specified PanicTestFunc panics, and that
// the recovered panic value equals the expected panic value.
//
@@ -1103,6 +1199,22 @@ func (a *Assertions) WithinDurationf(expected time.Time, actual time.Time, delta
return WithinDurationf(a.t, expected, actual, delta, msg, args...)
}
+// YAMLEq asserts that two YAML strings are equivalent.
+func (a *Assertions) YAMLEq(expected string, actual string, msgAndArgs ...interface{}) bool {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ return YAMLEq(a.t, expected, actual, msgAndArgs...)
+}
+
+// YAMLEqf asserts that two YAML strings are equivalent.
+func (a *Assertions) YAMLEqf(expected string, actual string, msg string, args ...interface{}) bool {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ return YAMLEqf(a.t, expected, actual, msg, args...)
+}
+
// Zero asserts that i is the zero value for its type.
func (a *Assertions) Zero(i interface{}, msgAndArgs ...interface{}) bool {
if h, ok := a.t.(tHelper); ok {
diff --git a/vendor/github.com/stretchr/testify/assert/assertions.go b/vendor/github.com/stretchr/testify/assert/assertions.go
index 044da8b01..bdd81389a 100644
--- a/vendor/github.com/stretchr/testify/assert/assertions.go
+++ b/vendor/github.com/stretchr/testify/assert/assertions.go
@@ -11,6 +11,7 @@ import (
"reflect"
"regexp"
"runtime"
+ "runtime/debug"
"strings"
"time"
"unicode"
@@ -21,7 +22,7 @@ import (
yaml "gopkg.in/yaml.v2"
)
-//go:generate go run ../_codegen/main.go -output-package=assert -template=assertion_format.go.tmpl
+//go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=assert -template=assertion_format.go.tmpl"
// TestingT is an interface wrapper around *testing.T
type TestingT interface {
@@ -351,6 +352,19 @@ func Equal(t TestingT, expected, actual interface{}, msgAndArgs ...interface{})
}
+// validateEqualArgs checks whether provided arguments can be safely used in the
+// Equal/NotEqual functions.
+func validateEqualArgs(expected, actual interface{}) error {
+ if expected == nil && actual == nil {
+ return nil
+ }
+
+ if isFunction(expected) || isFunction(actual) {
+ return errors.New("cannot take func type as argument")
+ }
+ return nil
+}
+
// Same asserts that two pointers reference the same object.
//
// assert.Same(t, ptr1, ptr2)
@@ -362,18 +376,7 @@ func Same(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) b
h.Helper()
}
- expectedPtr, actualPtr := reflect.ValueOf(expected), reflect.ValueOf(actual)
- if expectedPtr.Kind() != reflect.Ptr || actualPtr.Kind() != reflect.Ptr {
- return Fail(t, "Invalid operation: both arguments must be pointers", msgAndArgs...)
- }
-
- expectedType, actualType := reflect.TypeOf(expected), reflect.TypeOf(actual)
- if expectedType != actualType {
- return Fail(t, fmt.Sprintf("Pointer expected to be of type %v, but was %v",
- expectedType, actualType), msgAndArgs...)
- }
-
- if expected != actual {
+ if !samePointers(expected, actual) {
return Fail(t, fmt.Sprintf("Not same: \n"+
"expected: %p %#v\n"+
"actual : %p %#v", expected, expected, actual, actual), msgAndArgs...)
@@ -382,6 +385,42 @@ func Same(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) b
return true
}
+// NotSame asserts that two pointers do not reference the same object.
+//
+// assert.NotSame(t, ptr1, ptr2)
+//
+// Both arguments must be pointer variables. Pointer variable sameness is
+// determined based on the equality of both type and value.
+func NotSame(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+
+ if samePointers(expected, actual) {
+ return Fail(t, fmt.Sprintf(
+ "Expected and actual point to the same object: %p %#v",
+ expected, expected), msgAndArgs...)
+ }
+ return true
+}
+
+// samePointers compares two generic interface objects and returns whether
+// they point to the same object
+func samePointers(first, second interface{}) bool {
+ firstPtr, secondPtr := reflect.ValueOf(first), reflect.ValueOf(second)
+ if firstPtr.Kind() != reflect.Ptr || secondPtr.Kind() != reflect.Ptr {
+ return false
+ }
+
+ firstType, secondType := reflect.TypeOf(first), reflect.TypeOf(second)
+ if firstType != secondType {
+ return false
+ }
+
+ // compare pointer addresses
+ return first == second
+}
+
// formatUnequalValues takes two values of arbitrary types and returns string
// representations appropriate to be presented to the user.
//
@@ -393,9 +432,11 @@ func formatUnequalValues(expected, actual interface{}) (e string, a string) {
return fmt.Sprintf("%T(%#v)", expected, expected),
fmt.Sprintf("%T(%#v)", actual, actual)
}
-
- return fmt.Sprintf("%#v", expected),
- fmt.Sprintf("%#v", actual)
+ switch expected.(type) {
+ case time.Duration:
+ return fmt.Sprintf("%v", expected), fmt.Sprintf("%v", actual)
+ }
+ return fmt.Sprintf("%#v", expected), fmt.Sprintf("%#v", actual)
}
// EqualValues asserts that two objects are equal or convertable to the same types
@@ -901,15 +942,17 @@ func Condition(t TestingT, comp Comparison, msgAndArgs ...interface{}) bool {
type PanicTestFunc func()
// didPanic returns true if the function passed to it panics. Otherwise, it returns false.
-func didPanic(f PanicTestFunc) (bool, interface{}) {
+func didPanic(f PanicTestFunc) (bool, interface{}, string) {
didPanic := false
var message interface{}
+ var stack string
func() {
defer func() {
if message = recover(); message != nil {
didPanic = true
+ stack = string(debug.Stack())
}
}()
@@ -918,7 +961,7 @@ func didPanic(f PanicTestFunc) (bool, interface{}) {
}()
- return didPanic, message
+ return didPanic, message, stack
}
@@ -930,7 +973,7 @@ func Panics(t TestingT, f PanicTestFunc, msgAndArgs ...interface{}) bool {
h.Helper()
}
- if funcDidPanic, panicValue := didPanic(f); !funcDidPanic {
+ if funcDidPanic, panicValue, _ := didPanic(f); !funcDidPanic {
return Fail(t, fmt.Sprintf("func %#v should panic\n\tPanic value:\t%#v", f, panicValue), msgAndArgs...)
}
@@ -946,12 +989,34 @@ func PanicsWithValue(t TestingT, expected interface{}, f PanicTestFunc, msgAndAr
h.Helper()
}
- funcDidPanic, panicValue := didPanic(f)
+ funcDidPanic, panicValue, panickedStack := didPanic(f)
if !funcDidPanic {
return Fail(t, fmt.Sprintf("func %#v should panic\n\tPanic value:\t%#v", f, panicValue), msgAndArgs...)
}
if panicValue != expected {
- return Fail(t, fmt.Sprintf("func %#v should panic with value:\t%#v\n\tPanic value:\t%#v", f, expected, panicValue), msgAndArgs...)
+ return Fail(t, fmt.Sprintf("func %#v should panic with value:\t%#v\n\tPanic value:\t%#v\n\tPanic stack:\t%s", f, expected, panicValue, panickedStack), msgAndArgs...)
+ }
+
+ return true
+}
+
+// PanicsWithError asserts that the code inside the specified PanicTestFunc
+// panics, and that the recovered panic value is an error that satisfies the
+// EqualError comparison.
+//
+// assert.PanicsWithError(t, "crazy error", func(){ GoCrazy() })
+func PanicsWithError(t TestingT, errString string, f PanicTestFunc, msgAndArgs ...interface{}) bool {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+
+ funcDidPanic, panicValue, panickedStack := didPanic(f)
+ if !funcDidPanic {
+ return Fail(t, fmt.Sprintf("func %#v should panic\n\tPanic value:\t%#v", f, panicValue), msgAndArgs...)
+ }
+ panicErr, ok := panicValue.(error)
+ if !ok || panicErr.Error() != errString {
+ return Fail(t, fmt.Sprintf("func %#v should panic with error message:\t%#v\n\tPanic value:\t%#v\n\tPanic stack:\t%s", f, errString, panicValue, panickedStack), msgAndArgs...)
}
return true
@@ -965,8 +1030,8 @@ func NotPanics(t TestingT, f PanicTestFunc, msgAndArgs ...interface{}) bool {
h.Helper()
}
- if funcDidPanic, panicValue := didPanic(f); funcDidPanic {
- return Fail(t, fmt.Sprintf("func %#v should not panic\n\tPanic value:\t%v", f, panicValue), msgAndArgs...)
+ if funcDidPanic, panicValue, panickedStack := didPanic(f); funcDidPanic {
+ return Fail(t, fmt.Sprintf("func %#v should not panic\n\tPanic value:\t%v\n\tPanic stack:\t%s", f, panicValue, panickedStack), msgAndArgs...)
}
return true
@@ -1026,7 +1091,7 @@ func toFloat(x interface{}) (float64, bool) {
// InDelta asserts that the two numerals are within delta of each other.
//
-// assert.InDelta(t, math.Pi, (22 / 7.0), 0.01)
+// assert.InDelta(t, math.Pi, 22/7.0, 0.01)
func InDelta(t TestingT, expected, actual interface{}, delta float64, msgAndArgs ...interface{}) bool {
if h, ok := t.(tHelper); ok {
h.Helper()
@@ -1314,7 +1379,8 @@ func NotZero(t TestingT, i interface{}, msgAndArgs ...interface{}) bool {
return true
}
-// FileExists checks whether a file exists in the given path. It also fails if the path points to a directory or there is an error when trying to check the file.
+// FileExists checks whether a file exists in the given path. It also fails if
+// the path points to a directory or there is an error when trying to check the file.
func FileExists(t TestingT, path string, msgAndArgs ...interface{}) bool {
if h, ok := t.(tHelper); ok {
h.Helper()
@@ -1332,7 +1398,24 @@ func FileExists(t TestingT, path string, msgAndArgs ...interface{}) bool {
return true
}
-// DirExists checks whether a directory exists in the given path. It also fails if the path is a file rather a directory or there is an error checking whether it exists.
+// NoFileExists checks whether a file does not exist in a given path. It fails
+// if the path points to an existing _file_ only.
+func NoFileExists(t TestingT, path string, msgAndArgs ...interface{}) bool {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+ info, err := os.Lstat(path)
+ if err != nil {
+ return true
+ }
+ if info.IsDir() {
+ return true
+ }
+ return Fail(t, fmt.Sprintf("file %q exists", path), msgAndArgs...)
+}
+
+// DirExists checks whether a directory exists in the given path. It also fails
+// if the path is a file rather a directory or there is an error checking whether it exists.
func DirExists(t TestingT, path string, msgAndArgs ...interface{}) bool {
if h, ok := t.(tHelper); ok {
h.Helper()
@@ -1350,6 +1433,25 @@ func DirExists(t TestingT, path string, msgAndArgs ...interface{}) bool {
return true
}
+// NoDirExists checks whether a directory does not exist in the given path.
+// It fails if the path points to an existing _directory_ only.
+func NoDirExists(t TestingT, path string, msgAndArgs ...interface{}) bool {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+ info, err := os.Lstat(path)
+ if err != nil {
+ if os.IsNotExist(err) {
+ return true
+ }
+ return true
+ }
+ if !info.IsDir() {
+ return true
+ }
+ return Fail(t, fmt.Sprintf("directory %q exists", path), msgAndArgs...)
+}
+
// JSONEq asserts that two JSON strings are equivalent.
//
// assert.JSONEq(t, `{"hello": "world", "foo": "bar"}`, `{"foo": "bar", "hello": "world"}`)
@@ -1439,15 +1541,6 @@ func diff(expected interface{}, actual interface{}) string {
return "\n\nDiff:\n" + diff
}
-// validateEqualArgs checks whether provided arguments can be safely used in the
-// Equal/NotEqual functions.
-func validateEqualArgs(expected, actual interface{}) error {
- if isFunction(expected) || isFunction(actual) {
- return errors.New("cannot take func type as argument")
- }
- return nil
-}
-
func isFunction(arg interface{}) bool {
if arg == nil {
return false
@@ -1475,24 +1568,59 @@ func Eventually(t TestingT, condition func() bool, waitFor time.Duration, tick t
h.Helper()
}
+ ch := make(chan bool, 1)
+
timer := time.NewTimer(waitFor)
- ticker := time.NewTicker(tick)
- checkPassed := make(chan bool)
defer timer.Stop()
+
+ ticker := time.NewTicker(tick)
defer ticker.Stop()
- defer close(checkPassed)
- for {
+
+ for tick := ticker.C; ; {
select {
case <-timer.C:
return Fail(t, "Condition never satisfied", msgAndArgs...)
- case result := <-checkPassed:
- if result {
+ case <-tick:
+ tick = nil
+ go func() { ch <- condition() }()
+ case v := <-ch:
+ if v {
return true
}
- case <-ticker.C:
- go func() {
- checkPassed <- condition()
- }()
+ tick = ticker.C
+ }
+ }
+}
+
+// Never asserts that the given condition doesn't satisfy in waitFor time,
+// periodically checking the target function each tick.
+//
+// assert.Never(t, func() bool { return false; }, time.Second, 10*time.Millisecond)
+func Never(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{}) bool {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+
+ ch := make(chan bool, 1)
+
+ timer := time.NewTimer(waitFor)
+ defer timer.Stop()
+
+ ticker := time.NewTicker(tick)
+ defer ticker.Stop()
+
+ for tick := ticker.C; ; {
+ select {
+ case <-timer.C:
+ return true
+ case <-tick:
+ tick = nil
+ go func() { ch <- condition() }()
+ case v := <-ch:
+ if v {
+ return Fail(t, "Condition satisfied", msgAndArgs...)
+ }
+ tick = ticker.C
}
}
}
diff --git a/vendor/github.com/stretchr/testify/assert/forward_assertions.go b/vendor/github.com/stretchr/testify/assert/forward_assertions.go
index 9ad56851d..df189d234 100644
--- a/vendor/github.com/stretchr/testify/assert/forward_assertions.go
+++ b/vendor/github.com/stretchr/testify/assert/forward_assertions.go
@@ -13,4 +13,4 @@ func New(t TestingT) *Assertions {
}
}
-//go:generate go run ../_codegen/main.go -output-package=assert -template=assertion_forward.go.tmpl -include-format-funcs
+//go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=assert -template=assertion_forward.go.tmpl -include-format-funcs"
diff --git a/vendor/github.com/stretchr/testify/require/forward_requirements.go b/vendor/github.com/stretchr/testify/require/forward_requirements.go
index ac71d4058..1dcb2338c 100644
--- a/vendor/github.com/stretchr/testify/require/forward_requirements.go
+++ b/vendor/github.com/stretchr/testify/require/forward_requirements.go
@@ -13,4 +13,4 @@ func New(t TestingT) *Assertions {
}
}
-//go:generate go run ../_codegen/main.go -output-package=require -template=require_forward.go.tmpl -include-format-funcs
+//go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=require -template=require_forward.go.tmpl -include-format-funcs"
diff --git a/vendor/github.com/stretchr/testify/require/require.go b/vendor/github.com/stretchr/testify/require/require.go
index c5903f5db..cf6c7b566 100644
--- a/vendor/github.com/stretchr/testify/require/require.go
+++ b/vendor/github.com/stretchr/testify/require/require.go
@@ -66,7 +66,8 @@ func Containsf(t TestingT, s interface{}, contains interface{}, msg string, args
t.FailNow()
}
-// DirExists checks whether a directory exists in the given path. It also fails if the path is a file rather a directory or there is an error checking whether it exists.
+// DirExists checks whether a directory exists in the given path. It also fails
+// if the path is a file rather a directory or there is an error checking whether it exists.
func DirExists(t TestingT, path string, msgAndArgs ...interface{}) {
if h, ok := t.(tHelper); ok {
h.Helper()
@@ -77,7 +78,8 @@ func DirExists(t TestingT, path string, msgAndArgs ...interface{}) {
t.FailNow()
}
-// DirExistsf checks whether a directory exists in the given path. It also fails if the path is a file rather a directory or there is an error checking whether it exists.
+// DirExistsf checks whether a directory exists in the given path. It also fails
+// if the path is a file rather a directory or there is an error checking whether it exists.
func DirExistsf(t TestingT, path string, msg string, args ...interface{}) {
if h, ok := t.(tHelper); ok {
h.Helper()
@@ -275,12 +277,12 @@ func Errorf(t TestingT, err error, msg string, args ...interface{}) {
//
// assert.Eventually(t, func() bool { return true; }, time.Second, 10*time.Millisecond)
func Eventually(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{}) {
- if assert.Eventually(t, condition, waitFor, tick, msgAndArgs...) {
- return
- }
if h, ok := t.(tHelper); ok {
h.Helper()
}
+ if assert.Eventually(t, condition, waitFor, tick, msgAndArgs...) {
+ return
+ }
t.FailNow()
}
@@ -289,12 +291,12 @@ func Eventually(t TestingT, condition func() bool, waitFor time.Duration, tick t
//
// assert.Eventuallyf(t, func() bool { return true; }, time.Second, 10*time.Millisecond, "error message %s", "formatted")
func Eventuallyf(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) {
- if assert.Eventuallyf(t, condition, waitFor, tick, msg, args...) {
- return
- }
if h, ok := t.(tHelper); ok {
h.Helper()
}
+ if assert.Eventuallyf(t, condition, waitFor, tick, msg, args...) {
+ return
+ }
t.FailNow()
}
@@ -394,7 +396,8 @@ func Falsef(t TestingT, value bool, msg string, args ...interface{}) {
t.FailNow()
}
-// FileExists checks whether a file exists in the given path. It also fails if the path points to a directory or there is an error when trying to check the file.
+// FileExists checks whether a file exists in the given path. It also fails if
+// the path points to a directory or there is an error when trying to check the file.
func FileExists(t TestingT, path string, msgAndArgs ...interface{}) {
if h, ok := t.(tHelper); ok {
h.Helper()
@@ -405,7 +408,8 @@ func FileExists(t TestingT, path string, msgAndArgs ...interface{}) {
t.FailNow()
}
-// FileExistsf checks whether a file exists in the given path. It also fails if the path points to a directory or there is an error when trying to check the file.
+// FileExistsf checks whether a file exists in the given path. It also fails if
+// the path points to a directory or there is an error when trying to check the file.
func FileExistsf(t TestingT, path string, msg string, args ...interface{}) {
if h, ok := t.(tHelper); ok {
h.Helper()
@@ -660,7 +664,7 @@ func Implementsf(t TestingT, interfaceObject interface{}, object interface{}, ms
// InDelta asserts that the two numerals are within delta of each other.
//
-// assert.InDelta(t, math.Pi, (22 / 7.0), 0.01)
+// assert.InDelta(t, math.Pi, 22/7.0, 0.01)
func InDelta(t TestingT, expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) {
if h, ok := t.(tHelper); ok {
h.Helper()
@@ -717,7 +721,7 @@ func InDeltaSlicef(t TestingT, expected interface{}, actual interface{}, delta f
// InDeltaf asserts that the two numerals are within delta of each other.
//
-// assert.InDeltaf(t, math.Pi, (22 / 7.0, "error message %s", "formatted"), 0.01)
+// assert.InDeltaf(t, math.Pi, 22/7.0, 0.01, "error message %s", "formatted")
func InDeltaf(t TestingT, expected interface{}, actual interface{}, delta float64, msg string, args ...interface{}) {
if h, ok := t.(tHelper); ok {
h.Helper()
@@ -820,28 +824,6 @@ func JSONEqf(t TestingT, expected string, actual string, msg string, args ...int
t.FailNow()
}
-// YAMLEq asserts that two YAML strings are equivalent.
-func YAMLEq(t TestingT, expected string, actual string, msgAndArgs ...interface{}) {
- if h, ok := t.(tHelper); ok {
- h.Helper()
- }
- if assert.YAMLEq(t, expected, actual, msgAndArgs...) {
- return
- }
- t.FailNow()
-}
-
-// YAMLEqf asserts that two YAML strings are equivalent.
-func YAMLEqf(t TestingT, expected string, actual string, msg string, args ...interface{}) {
- if h, ok := t.(tHelper); ok {
- h.Helper()
- }
- if assert.YAMLEqf(t, expected, actual, msg, args...) {
- return
- }
- t.FailNow()
-}
-
// Len asserts that the specified object has specific length.
// Len also fails if the object has a type that len() not accept.
//
@@ -932,6 +914,34 @@ func Lessf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...inter
t.FailNow()
}
+// Never asserts that the given condition doesn't satisfy in waitFor time,
+// periodically checking the target function each tick.
+//
+// assert.Never(t, func() bool { return false; }, time.Second, 10*time.Millisecond)
+func Never(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{}) {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+ if assert.Never(t, condition, waitFor, tick, msgAndArgs...) {
+ return
+ }
+ t.FailNow()
+}
+
+// Neverf asserts that the given condition doesn't satisfy in waitFor time,
+// periodically checking the target function each tick.
+//
+// assert.Neverf(t, func() bool { return false; }, time.Second, 10*time.Millisecond, "error message %s", "formatted")
+func Neverf(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+ if assert.Neverf(t, condition, waitFor, tick, msg, args...) {
+ return
+ }
+ t.FailNow()
+}
+
// Nil asserts that the specified object is nil.
//
// assert.Nil(t, err)
@@ -958,6 +968,30 @@ func Nilf(t TestingT, object interface{}, msg string, args ...interface{}) {
t.FailNow()
}
+// NoDirExists checks whether a directory does not exist in the given path.
+// It fails if the path points to an existing _directory_ only.
+func NoDirExists(t TestingT, path string, msgAndArgs ...interface{}) {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+ if assert.NoDirExists(t, path, msgAndArgs...) {
+ return
+ }
+ t.FailNow()
+}
+
+// NoDirExistsf checks whether a directory does not exist in the given path.
+// It fails if the path points to an existing _directory_ only.
+func NoDirExistsf(t TestingT, path string, msg string, args ...interface{}) {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+ if assert.NoDirExistsf(t, path, msg, args...) {
+ return
+ }
+ t.FailNow()
+}
+
// NoError asserts that a function returned no error (i.e. `nil`).
//
// actualObj, err := SomeFunction()
@@ -990,6 +1024,30 @@ func NoErrorf(t TestingT, err error, msg string, args ...interface{}) {
t.FailNow()
}
+// NoFileExists checks whether a file does not exist in a given path. It fails
+// if the path points to an existing _file_ only.
+func NoFileExists(t TestingT, path string, msgAndArgs ...interface{}) {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+ if assert.NoFileExists(t, path, msgAndArgs...) {
+ return
+ }
+ t.FailNow()
+}
+
+// NoFileExistsf checks whether a file does not exist in a given path. It fails
+// if the path points to an existing _file_ only.
+func NoFileExistsf(t TestingT, path string, msg string, args ...interface{}) {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+ if assert.NoFileExistsf(t, path, msg, args...) {
+ return
+ }
+ t.FailNow()
+}
+
// NotContains asserts that the specified string, list(array, slice...) or map does NOT contain the
// specified substring or element.
//
@@ -1166,6 +1224,38 @@ func NotRegexpf(t TestingT, rx interface{}, str interface{}, msg string, args ..
t.FailNow()
}
+// NotSame asserts that two pointers do not reference the same object.
+//
+// assert.NotSame(t, ptr1, ptr2)
+//
+// Both arguments must be pointer variables. Pointer variable sameness is
+// determined based on the equality of both type and value.
+func NotSame(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+ if assert.NotSame(t, expected, actual, msgAndArgs...) {
+ return
+ }
+ t.FailNow()
+}
+
+// NotSamef asserts that two pointers do not reference the same object.
+//
+// assert.NotSamef(t, ptr1, ptr2, "error message %s", "formatted")
+//
+// Both arguments must be pointer variables. Pointer variable sameness is
+// determined based on the equality of both type and value.
+func NotSamef(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{}) {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+ if assert.NotSamef(t, expected, actual, msg, args...) {
+ return
+ }
+ t.FailNow()
+}
+
// NotSubset asserts that the specified list(array, slice...) contains not all
// elements given in the specified subset(array, slice...).
//
@@ -1229,6 +1319,36 @@ func Panics(t TestingT, f assert.PanicTestFunc, msgAndArgs ...interface{}) {
t.FailNow()
}
+// PanicsWithError asserts that the code inside the specified PanicTestFunc
+// panics, and that the recovered panic value is an error that satisfies the
+// EqualError comparison.
+//
+// assert.PanicsWithError(t, "crazy error", func(){ GoCrazy() })
+func PanicsWithError(t TestingT, errString string, f assert.PanicTestFunc, msgAndArgs ...interface{}) {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+ if assert.PanicsWithError(t, errString, f, msgAndArgs...) {
+ return
+ }
+ t.FailNow()
+}
+
+// PanicsWithErrorf asserts that the code inside the specified PanicTestFunc
+// panics, and that the recovered panic value is an error that satisfies the
+// EqualError comparison.
+//
+// assert.PanicsWithErrorf(t, "crazy error", func(){ GoCrazy() }, "error message %s", "formatted")
+func PanicsWithErrorf(t TestingT, errString string, f assert.PanicTestFunc, msg string, args ...interface{}) {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+ if assert.PanicsWithErrorf(t, errString, f, msg, args...) {
+ return
+ }
+ t.FailNow()
+}
+
// PanicsWithValue asserts that the code inside the specified PanicTestFunc panics, and that
// the recovered panic value equals the expected panic value.
//
@@ -1410,6 +1530,28 @@ func WithinDurationf(t TestingT, expected time.Time, actual time.Time, delta tim
t.FailNow()
}
+// YAMLEq asserts that two YAML strings are equivalent.
+func YAMLEq(t TestingT, expected string, actual string, msgAndArgs ...interface{}) {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+ if assert.YAMLEq(t, expected, actual, msgAndArgs...) {
+ return
+ }
+ t.FailNow()
+}
+
+// YAMLEqf asserts that two YAML strings are equivalent.
+func YAMLEqf(t TestingT, expected string, actual string, msg string, args ...interface{}) {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+ if assert.YAMLEqf(t, expected, actual, msg, args...) {
+ return
+ }
+ t.FailNow()
+}
+
// Zero asserts that i is the zero value for its type.
func Zero(t TestingT, i interface{}, msgAndArgs ...interface{}) {
if h, ok := t.(tHelper); ok {
diff --git a/vendor/github.com/stretchr/testify/require/require_forward.go b/vendor/github.com/stretchr/testify/require/require_forward.go
index 804fae035..5aac226df 100644
--- a/vendor/github.com/stretchr/testify/require/require_forward.go
+++ b/vendor/github.com/stretchr/testify/require/require_forward.go
@@ -54,7 +54,8 @@ func (a *Assertions) Containsf(s interface{}, contains interface{}, msg string,
Containsf(a.t, s, contains, msg, args...)
}
-// DirExists checks whether a directory exists in the given path. It also fails if the path is a file rather a directory or there is an error checking whether it exists.
+// DirExists checks whether a directory exists in the given path. It also fails
+// if the path is a file rather a directory or there is an error checking whether it exists.
func (a *Assertions) DirExists(path string, msgAndArgs ...interface{}) {
if h, ok := a.t.(tHelper); ok {
h.Helper()
@@ -62,7 +63,8 @@ func (a *Assertions) DirExists(path string, msgAndArgs ...interface{}) {
DirExists(a.t, path, msgAndArgs...)
}
-// DirExistsf checks whether a directory exists in the given path. It also fails if the path is a file rather a directory or there is an error checking whether it exists.
+// DirExistsf checks whether a directory exists in the given path. It also fails
+// if the path is a file rather a directory or there is an error checking whether it exists.
func (a *Assertions) DirExistsf(path string, msg string, args ...interface{}) {
if h, ok := a.t.(tHelper); ok {
h.Helper()
@@ -310,7 +312,8 @@ func (a *Assertions) Falsef(value bool, msg string, args ...interface{}) {
Falsef(a.t, value, msg, args...)
}
-// FileExists checks whether a file exists in the given path. It also fails if the path points to a directory or there is an error when trying to check the file.
+// FileExists checks whether a file exists in the given path. It also fails if
+// the path points to a directory or there is an error when trying to check the file.
func (a *Assertions) FileExists(path string, msgAndArgs ...interface{}) {
if h, ok := a.t.(tHelper); ok {
h.Helper()
@@ -318,7 +321,8 @@ func (a *Assertions) FileExists(path string, msgAndArgs ...interface{}) {
FileExists(a.t, path, msgAndArgs...)
}
-// FileExistsf checks whether a file exists in the given path. It also fails if the path points to a directory or there is an error when trying to check the file.
+// FileExistsf checks whether a file exists in the given path. It also fails if
+// the path points to a directory or there is an error when trying to check the file.
func (a *Assertions) FileExistsf(path string, msg string, args ...interface{}) {
if h, ok := a.t.(tHelper); ok {
h.Helper()
@@ -522,7 +526,7 @@ func (a *Assertions) Implementsf(interfaceObject interface{}, object interface{}
// InDelta asserts that the two numerals are within delta of each other.
//
-// a.InDelta(math.Pi, (22 / 7.0), 0.01)
+// a.InDelta(math.Pi, 22/7.0, 0.01)
func (a *Assertions) InDelta(expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) {
if h, ok := a.t.(tHelper); ok {
h.Helper()
@@ -564,7 +568,7 @@ func (a *Assertions) InDeltaSlicef(expected interface{}, actual interface{}, del
// InDeltaf asserts that the two numerals are within delta of each other.
//
-// a.InDeltaf(math.Pi, (22 / 7.0, "error message %s", "formatted"), 0.01)
+// a.InDeltaf(math.Pi, 22/7.0, 0.01, "error message %s", "formatted")
func (a *Assertions) InDeltaf(expected interface{}, actual interface{}, delta float64, msg string, args ...interface{}) {
if h, ok := a.t.(tHelper); ok {
h.Helper()
@@ -640,22 +644,6 @@ func (a *Assertions) JSONEqf(expected string, actual string, msg string, args ..
JSONEqf(a.t, expected, actual, msg, args...)
}
-// YAMLEq asserts that two YAML strings are equivalent.
-func (a *Assertions) YAMLEq(expected string, actual string, msgAndArgs ...interface{}) {
- if h, ok := a.t.(tHelper); ok {
- h.Helper()
- }
- YAMLEq(a.t, expected, actual, msgAndArgs...)
-}
-
-// YAMLEqf asserts that two YAML strings are equivalent.
-func (a *Assertions) YAMLEqf(expected string, actual string, msg string, args ...interface{}) {
- if h, ok := a.t.(tHelper); ok {
- h.Helper()
- }
- YAMLEqf(a.t, expected, actual, msg, args...)
-}
-
// Len asserts that the specified object has specific length.
// Len also fails if the object has a type that len() not accept.
//
@@ -728,6 +716,28 @@ func (a *Assertions) Lessf(e1 interface{}, e2 interface{}, msg string, args ...i
Lessf(a.t, e1, e2, msg, args...)
}
+// Never asserts that the given condition doesn't satisfy in waitFor time,
+// periodically checking the target function each tick.
+//
+// a.Never(func() bool { return false; }, time.Second, 10*time.Millisecond)
+func (a *Assertions) Never(condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{}) {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ Never(a.t, condition, waitFor, tick, msgAndArgs...)
+}
+
+// Neverf asserts that the given condition doesn't satisfy in waitFor time,
+// periodically checking the target function each tick.
+//
+// a.Neverf(func() bool { return false; }, time.Second, 10*time.Millisecond, "error message %s", "formatted")
+func (a *Assertions) Neverf(condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ Neverf(a.t, condition, waitFor, tick, msg, args...)
+}
+
// Nil asserts that the specified object is nil.
//
// a.Nil(err)
@@ -748,6 +758,24 @@ func (a *Assertions) Nilf(object interface{}, msg string, args ...interface{}) {
Nilf(a.t, object, msg, args...)
}
+// NoDirExists checks whether a directory does not exist in the given path.
+// It fails if the path points to an existing _directory_ only.
+func (a *Assertions) NoDirExists(path string, msgAndArgs ...interface{}) {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ NoDirExists(a.t, path, msgAndArgs...)
+}
+
+// NoDirExistsf checks whether a directory does not exist in the given path.
+// It fails if the path points to an existing _directory_ only.
+func (a *Assertions) NoDirExistsf(path string, msg string, args ...interface{}) {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ NoDirExistsf(a.t, path, msg, args...)
+}
+
// NoError asserts that a function returned no error (i.e. `nil`).
//
// actualObj, err := SomeFunction()
@@ -774,6 +802,24 @@ func (a *Assertions) NoErrorf(err error, msg string, args ...interface{}) {
NoErrorf(a.t, err, msg, args...)
}
+// NoFileExists checks whether a file does not exist in a given path. It fails
+// if the path points to an existing _file_ only.
+func (a *Assertions) NoFileExists(path string, msgAndArgs ...interface{}) {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ NoFileExists(a.t, path, msgAndArgs...)
+}
+
+// NoFileExistsf checks whether a file does not exist in a given path. It fails
+// if the path points to an existing _file_ only.
+func (a *Assertions) NoFileExistsf(path string, msg string, args ...interface{}) {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ NoFileExistsf(a.t, path, msg, args...)
+}
+
// NotContains asserts that the specified string, list(array, slice...) or map does NOT contain the
// specified substring or element.
//
@@ -914,6 +960,32 @@ func (a *Assertions) NotRegexpf(rx interface{}, str interface{}, msg string, arg
NotRegexpf(a.t, rx, str, msg, args...)
}
+// NotSame asserts that two pointers do not reference the same object.
+//
+// a.NotSame(ptr1, ptr2)
+//
+// Both arguments must be pointer variables. Pointer variable sameness is
+// determined based on the equality of both type and value.
+func (a *Assertions) NotSame(expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ NotSame(a.t, expected, actual, msgAndArgs...)
+}
+
+// NotSamef asserts that two pointers do not reference the same object.
+//
+// a.NotSamef(ptr1, ptr2, "error message %s", "formatted")
+//
+// Both arguments must be pointer variables. Pointer variable sameness is
+// determined based on the equality of both type and value.
+func (a *Assertions) NotSamef(expected interface{}, actual interface{}, msg string, args ...interface{}) {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ NotSamef(a.t, expected, actual, msg, args...)
+}
+
// NotSubset asserts that the specified list(array, slice...) contains not all
// elements given in the specified subset(array, slice...).
//
@@ -962,6 +1034,30 @@ func (a *Assertions) Panics(f assert.PanicTestFunc, msgAndArgs ...interface{}) {
Panics(a.t, f, msgAndArgs...)
}
+// PanicsWithError asserts that the code inside the specified PanicTestFunc
+// panics, and that the recovered panic value is an error that satisfies the
+// EqualError comparison.
+//
+// a.PanicsWithError("crazy error", func(){ GoCrazy() })
+func (a *Assertions) PanicsWithError(errString string, f assert.PanicTestFunc, msgAndArgs ...interface{}) {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ PanicsWithError(a.t, errString, f, msgAndArgs...)
+}
+
+// PanicsWithErrorf asserts that the code inside the specified PanicTestFunc
+// panics, and that the recovered panic value is an error that satisfies the
+// EqualError comparison.
+//
+// a.PanicsWithErrorf("crazy error", func(){ GoCrazy() }, "error message %s", "formatted")
+func (a *Assertions) PanicsWithErrorf(errString string, f assert.PanicTestFunc, msg string, args ...interface{}) {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ PanicsWithErrorf(a.t, errString, f, msg, args...)
+}
+
// PanicsWithValue asserts that the code inside the specified PanicTestFunc panics, and that
// the recovered panic value equals the expected panic value.
//
@@ -1104,6 +1200,22 @@ func (a *Assertions) WithinDurationf(expected time.Time, actual time.Time, delta
WithinDurationf(a.t, expected, actual, delta, msg, args...)
}
+// YAMLEq asserts that two YAML strings are equivalent.
+func (a *Assertions) YAMLEq(expected string, actual string, msgAndArgs ...interface{}) {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ YAMLEq(a.t, expected, actual, msgAndArgs...)
+}
+
+// YAMLEqf asserts that two YAML strings are equivalent.
+func (a *Assertions) YAMLEqf(expected string, actual string, msg string, args ...interface{}) {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ YAMLEqf(a.t, expected, actual, msg, args...)
+}
+
// Zero asserts that i is the zero value for its type.
func (a *Assertions) Zero(i interface{}, msgAndArgs ...interface{}) {
if h, ok := a.t.(tHelper); ok {
diff --git a/vendor/github.com/stretchr/testify/require/requirements.go b/vendor/github.com/stretchr/testify/require/requirements.go
index 6b85c5ece..91772dfeb 100644
--- a/vendor/github.com/stretchr/testify/require/requirements.go
+++ b/vendor/github.com/stretchr/testify/require/requirements.go
@@ -26,4 +26,4 @@ type BoolAssertionFunc func(TestingT, bool, ...interface{})
// for table driven tests.
type ErrorAssertionFunc func(TestingT, error, ...interface{})
-//go:generate go run ../_codegen/main.go -output-package=require -template=require.go.tmpl -include-format-funcs
+//go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=require -template=require.go.tmpl -include-format-funcs"
diff --git a/vendor/github.com/yunify/qingstor-sdk-go/v3/CHANGELOG.md b/vendor/github.com/yunify/qingstor-sdk-go/v3/CHANGELOG.md
index 1f09473ba..54cb922d9 100644
--- a/vendor/github.com/yunify/qingstor-sdk-go/v3/CHANGELOG.md
+++ b/vendor/github.com/yunify/qingstor-sdk-go/v3/CHANGELOG.md
@@ -1,6 +1,18 @@
# Change Log
All notable changes to QingStor SDK for Go will be documented in this file.
+## [v3.2.0] - 2020-2-13
+
+### Added
+
+- Add int64 type converter (#92)
+- config: Implement DisableURICleaning config (#95)
+
+### Fixed
+
+- Compatible for content type containing application/json (#91)
+- Fix signed url invalid when non-ascii used (#85)
+
## [v3.1.1] - 2019-10-9
### Changed
@@ -221,6 +233,7 @@ All notable changes to QingStor SDK for Go will be documented in this file.
- QingStor SDK for the Go programming language.
+[v3.2.0]: https://github.com/yunify/qingstor-sdk-go/compare/v3.1.1...v3.2.0
[v3.1.1]: https://github.com/yunify/qingstor-sdk-go/compare/v3.1.0...v3.1.1
[v3.1.0]: https://github.com/yunify/qingstor-sdk-go/compare/v3.0.2...v3.1.0
[v3.0.2]: https://github.com/yunify/qingstor-sdk-go/compare/v3.0.1...v3.0.2
diff --git a/vendor/github.com/yunify/qingstor-sdk-go/v3/Makefile b/vendor/github.com/yunify/qingstor-sdk-go/v3/Makefile
index 0bbd5e2fb..c48aafebe 100644
--- a/vendor/github.com/yunify/qingstor-sdk-go/v3/Makefile
+++ b/vendor/github.com/yunify/qingstor-sdk-go/v3/Makefile
@@ -2,9 +2,6 @@ SHELL := /bin/bash
PREFIX=qingstor-sdk-go
VERSION=$(shell cat version.go | grep "Version\ =" | sed -e s/^.*\ //g | sed -e s/\"//g)
-PKGS_TO_CHECK=$(shell go list ./... | grep -v "/vendor/")
-PKGS_TO_RELEASE=$(shell go list ./... | grep -vE "/vendor/|/test")
-FILES_TO_RELEASE=$(shell find . -name "*.go" | grep -vE "/vendor/|/test|.*_test.go")
.PHONY: help
help:
@@ -21,7 +18,7 @@ help:
@echo " clean to clean the coverage files"
.PHONY: all
-all: check build unit release
+all: check build test release
.PHONY: check
check: vet lint format
@@ -29,21 +26,19 @@ check: vet lint format
.PHONY: format
format:
@echo "go fmt, skipping vendor packages"
- @for pkg in ${PKGS_TO_CHECK}; do go fmt $${pkg}; done;
+ @go fmt ./...
@echo "ok"
.PHONY: vet
vet:
@echo "Go tool vet, skipping vendor packages"
- @for pkg in ${PKGS_TO_RELEASE}; do go vet -all $${pkg}; done;
+ @go vet ./...
@echo "Done"
.PHONY: lint
lint:
@echo "Golint, skipping vendor packages"
- @lint=$$(for pkg in ${PKGS_TO_CHECK}; do golint $${pkg}; done); \
- lint=$$(echo "$${lint}"); \
- if [[ -n $${lint} ]]; then echo "$${lint}"; exit 1; fi
+ @golint ./...
@echo "Done"
.PHONY: update
@@ -64,32 +59,26 @@ generate:
.PHONY: build
build: format
@echo "Build the SDK"
- go build ${PKGS_TO_RELEASE}
+ go build ./...
@echo "Done"
.PHONY: test
test:
@echo "Run test"
- go test -v ${PKGS_TO_RELEASE}
+ go test -v ./...
@echo "Done"
.PHONY: test-coverage
test-coverage:
@echo "Run test with coverage"
- for pkg in ${PKGS_TO_RELEASE}; do \
- output="coverage$${pkg#github.com/yunify/qingstor-sdk-go}"; \
- mkdir -p $${output}; \
- go test -v -cover -coverprofile="$${output}/profile.out" $${pkg}; \
- if [[ -e "$${output}/profile.out" ]]; then \
- go tool cover -html="$${output}/profile.out" -o "$${output}/profile.html"; \
- fi; \
- done
+ @go test -race -coverprofile=coverage.txt -covermode=atomic -v ./...
+ @go tool cover -html="coverage.txt" -o "coverage.html"
@echo "Done"
.PHONY: test-race
test-race:
@echo "Run test with race"
- go test -v -race -cpu=1,2,4 ${PKGS_TO_RELEASE}
+ go test -v -race -cpu=1,2,4 ./...
@echo "Done"
.PHONY: integration-test
diff --git a/vendor/github.com/yunify/qingstor-sdk-go/v3/config/config.go b/vendor/github.com/yunify/qingstor-sdk-go/v3/config/config.go
index 342c43d75..52b43b335 100644
--- a/vendor/github.com/yunify/qingstor-sdk-go/v3/config/config.go
+++ b/vendor/github.com/yunify/qingstor-sdk-go/v3/config/config.go
@@ -40,6 +40,7 @@ type Config struct {
Protocol string `yaml:"protocol"`
AdditionalUserAgent string `yaml:"additional_user_agent"`
+ DisableURICleaning bool `yaml:"disable_uri_cleaning"`
LogLevel string `yaml:"log_level"`
diff --git a/vendor/github.com/yunify/qingstor-sdk-go/v3/request/builder/builder.go b/vendor/github.com/yunify/qingstor-sdk-go/v3/request/builder/builder.go
index 9bcf9e28c..db4e6037f 100644
--- a/vendor/github.com/yunify/qingstor-sdk-go/v3/request/builder/builder.go
+++ b/vendor/github.com/yunify/qingstor-sdk-go/v3/request/builder/builder.go
@@ -280,7 +280,9 @@ func (qb *Builder) parseRequestURL() error {
endpoint = strings.Replace(endpoint, "<"+key+">", utils.URLQueryEscape(value), -1)
requestURI = strings.Replace(requestURI, "<"+key+">", utils.URLQueryEscape(value), -1)
}
- requestURI = regexp.MustCompile(`/+`).ReplaceAllString(requestURI, "/")
+ if !config.DisableURICleaning {
+ requestURI = regexp.MustCompile(`/+`).ReplaceAllString(requestURI, "/")
+ }
requestURL, err := url.Parse(endpoint + requestURI)
if err != nil {
@@ -320,17 +322,17 @@ func (qb *Builder) setupHeaders(httpRequest *http.Request) error {
case nil:
length = 0
case io.Seeker:
- //start, err := body.Seek(0, io.SeekStart)
+ // start, err := body.Seek(0, io.SeekStart)
start, err := body.Seek(0, 0)
if err != nil {
return err
}
- //end, err := body.Seek(0, io.SeekEnd)
+ // end, err := body.Seek(0, io.SeekEnd)
end, err := body.Seek(0, 2)
if err != nil {
return err
}
- //body.Seek(0, io.SeekStart)
+ // body.Seek(0, io.SeekStart)
body.Seek(0, 0)
length = end - start
default:
diff --git a/vendor/github.com/yunify/qingstor-sdk-go/v3/request/signer/qingstor.go b/vendor/github.com/yunify/qingstor-sdk-go/v3/request/signer/qingstor.go
index c88370d9a..65b0b5486 100644
--- a/vendor/github.com/yunify/qingstor-sdk-go/v3/request/signer/qingstor.go
+++ b/vendor/github.com/yunify/qingstor-sdk-go/v3/request/signer/qingstor.go
@@ -212,10 +212,6 @@ func (qss *QingStorSigner) buildCanonicalizedResource(request *http.Request) (st
if len(values) > 0 {
if values[0] != "" {
value := strings.TrimSpace(strings.Join(values, ""))
- value, err := utils.URLQueryUnescape(value)
- if err != nil {
- return "", err
- }
parts = append(parts, key+"="+value)
} else {
parts = append(parts, key)
diff --git a/vendor/github.com/yunify/qingstor-sdk-go/v3/request/unpacker/base.go b/vendor/github.com/yunify/qingstor-sdk-go/v3/request/unpacker/base.go
index fa9ed0250..949570cf7 100644
--- a/vendor/github.com/yunify/qingstor-sdk-go/v3/request/unpacker/base.go
+++ b/vendor/github.com/yunify/qingstor-sdk-go/v3/request/unpacker/base.go
@@ -23,6 +23,7 @@ import (
"net/http"
"reflect"
"strconv"
+ "strings"
"time"
"github.com/pengsrc/go-shared/convert"
@@ -177,7 +178,7 @@ func (b *BaseUnpacker) parseResponseElements() error {
return nil
}
- if b.httpResponse.Header.Get("Content-Type") != "application/json" {
+ if !strings.Contains(b.httpResponse.Header.Get("Content-Type"), "application/json") {
return nil
}
diff --git a/vendor/github.com/yunify/qingstor-sdk-go/v3/request/unpacker/qingstor.go b/vendor/github.com/yunify/qingstor-sdk-go/v3/request/unpacker/qingstor.go
index 80b6f7fb7..3536acde9 100644
--- a/vendor/github.com/yunify/qingstor-sdk-go/v3/request/unpacker/qingstor.go
+++ b/vendor/github.com/yunify/qingstor-sdk-go/v3/request/unpacker/qingstor.go
@@ -22,6 +22,7 @@ import (
"io"
"net/http"
"reflect"
+ "strings"
"github.com/yunify/qingstor-sdk-go/v3/logger"
"github.com/yunify/qingstor-sdk-go/v3/request/data"
@@ -66,7 +67,7 @@ func (qu *QingStorUnpacker) parseError() error {
// QingStor nginx could refuse user's request directly and only return status code.
// We should handle this and build a qingstor error with message.
- if qu.baseUnpacker.httpResponse.Header.Get("Content-Type") != "application/json" {
+ if !strings.Contains(qu.baseUnpacker.httpResponse.Header.Get("Content-Type"), "application/json") {
qsError := &errors.QingStorError{
StatusCode: qu.baseUnpacker.httpResponse.StatusCode,
Message: http.StatusText(qu.baseUnpacker.httpResponse.StatusCode),
diff --git a/vendor/github.com/yunify/qingstor-sdk-go/v3/service/convert_types.go b/vendor/github.com/yunify/qingstor-sdk-go/v3/service/convert_types.go
index 10e52c061..fef944d25 100644
--- a/vendor/github.com/yunify/qingstor-sdk-go/v3/service/convert_types.go
+++ b/vendor/github.com/yunify/qingstor-sdk-go/v3/service/convert_types.go
@@ -152,6 +152,20 @@ func IntValue(v *int) int {
return 0
}
+// Int64 returns a pointer to the given int64 value.
+func Int64(v int64) *int64 {
+ return &v
+}
+
+// Int64Value returns the value of the given int64 pointer or
+// 0 if the pointer is nil.
+func Int64Value(v *int64) int64 {
+ if v != nil {
+ return *v
+ }
+ return 0
+}
+
// IntSlice converts a slice of int values into a slice of
// int pointers
func IntSlice(src []int) []*int {
diff --git a/vendor/github.com/yunify/qingstor-sdk-go/v3/version.go b/vendor/github.com/yunify/qingstor-sdk-go/v3/version.go
index c3c4ca8aa..8a165f67b 100644
--- a/vendor/github.com/yunify/qingstor-sdk-go/v3/version.go
+++ b/vendor/github.com/yunify/qingstor-sdk-go/v3/version.go
@@ -20,4 +20,4 @@
package sdk
// Version number.
-const Version = "3.1.1"
+const Version = "3.2.0"
diff --git a/vendor/go.opencensus.io/go.sum b/vendor/go.opencensus.io/go.sum
index ed2a1d844..01c02972c 100644
--- a/vendor/go.opencensus.io/go.sum
+++ b/vendor/go.opencensus.io/go.sum
@@ -67,6 +67,7 @@ google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZi
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
google.golang.org/grpc v1.20.1 h1:Hz2g2wirWK7H0qIIhGIqRGTuMwTE8HEKFnDZZ7lm9NU=
google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
diff --git a/vendor/go.opencensus.io/plugin/ochttp/trace.go b/vendor/go.opencensus.io/plugin/ochttp/trace.go
index 53e71305a..ed3a5db56 100644
--- a/vendor/go.opencensus.io/plugin/ochttp/trace.go
+++ b/vendor/go.opencensus.io/plugin/ochttp/trace.go
@@ -204,7 +204,10 @@ func TraceStatus(httpStatusCode int, statusLine string) trace.Status {
code = trace.StatusCodeUnavailable
case http.StatusOK:
code = trace.StatusCodeOK
+ case http.StatusConflict:
+ code = trace.StatusCodeAlreadyExists
}
+
return trace.Status{Code: code, Message: codeToStr[code]}
}
diff --git a/vendor/goftp.io/server/.drone.yml b/vendor/goftp.io/server/.drone.yml
index 589d09c4d..bb50df7cd 100644
--- a/vendor/goftp.io/server/.drone.yml
+++ b/vendor/goftp.io/server/.drone.yml
@@ -1,10 +1,29 @@
+---
kind: pipeline
-name: default
+name: testing
steps:
+- name: fetch-tags
+ pull: default
+ image: docker:git
+ commands:
+ - git fetch --tags --force
+ when:
+ event:
+ exclude:
+ - pull_request
+
- name: test
- image: golang:1.12
+ pull: always
+ image: golang:1.13
commands:
- - go get -t -d -v ./...
- - go build -v
- - go test -v -race -coverprofile=coverage.txt -covermode=atomic
\ No newline at end of file
+ - export PATH=$PATH:/go:/srv/app/bin
+ - go vet ./...
+ - go test -race ./...
+ environment:
+ GOPATH: /srv/app
+ when:
+ event:
+ - push
+ - tag
+ - pull_request
\ No newline at end of file
diff --git a/vendor/goftp.io/server/driver.go b/vendor/goftp.io/server/driver.go
index 376be52ce..8cc567ffe 100644
--- a/vendor/goftp.io/server/driver.go
+++ b/vendor/goftp.io/server/driver.go
@@ -4,7 +4,11 @@
package server
-import "io"
+import (
+ "errors"
+ "io"
+ "strings"
+)
// DriverFactory is a driver factory to create driver. For each client that connects to the server, a new FTPDriver is required.
// Create an implementation if this interface and provide it to FTPServer.
@@ -59,3 +63,107 @@ type Driver interface {
// returns - the number of bytes writen and the first error encountered while writing, if any.
PutFile(string, io.Reader, bool) (int64, error)
}
+
+var _ Driver = &MultipleDriver{}
+
+// MultipleDriver represents a composite driver
+type MultipleDriver struct {
+ drivers map[string]Driver
+}
+
+// Init init
+func (driver *MultipleDriver) Init(conn *Conn) {
+}
+
+func (driver *MultipleDriver) ChangeDir(path string) error {
+ for prefix, driver := range driver.drivers {
+ if strings.HasPrefix(path, prefix) {
+ return driver.ChangeDir(strings.TrimPrefix(path, prefix))
+ }
+ }
+ return errors.New("Not a directory")
+}
+
+func (driver *MultipleDriver) Stat(path string) (FileInfo, error) {
+ for prefix, driver := range driver.drivers {
+ if strings.HasPrefix(path, prefix) {
+ return driver.Stat(strings.TrimPrefix(path, prefix))
+ }
+ }
+ return nil, errors.New("Not a file")
+}
+
+func (driver *MultipleDriver) ListDir(path string, callback func(FileInfo) error) error {
+ for prefix, driver := range driver.drivers {
+ if strings.HasPrefix(path, prefix) {
+ return driver.ListDir(strings.TrimPrefix(path, prefix), callback)
+ }
+ }
+ return errors.New("Not a directory")
+}
+
+func (driver *MultipleDriver) DeleteDir(path string) error {
+ for prefix, driver := range driver.drivers {
+ if strings.HasPrefix(path, prefix) {
+ return driver.DeleteDir(strings.TrimPrefix(path, prefix))
+ }
+ }
+ return errors.New("Not a directory")
+}
+
+func (driver *MultipleDriver) DeleteFile(path string) error {
+ for prefix, driver := range driver.drivers {
+ if strings.HasPrefix(path, prefix) {
+ return driver.DeleteFile(strings.TrimPrefix(path, prefix))
+ }
+ }
+
+ return errors.New("Not a file")
+}
+
+func (driver *MultipleDriver) Rename(fromPath string, toPath string) error {
+ for prefix, driver := range driver.drivers {
+ if strings.HasPrefix(fromPath, prefix) {
+ return driver.Rename(strings.TrimPrefix(fromPath, prefix), strings.TrimPrefix(toPath, prefix))
+ }
+ }
+
+ return errors.New("Not a file")
+}
+
+func (driver *MultipleDriver) MakeDir(path string) error {
+ for prefix, driver := range driver.drivers {
+ if strings.HasPrefix(path, prefix) {
+ return driver.MakeDir(strings.TrimPrefix(path, prefix))
+ }
+ }
+ return errors.New("Not a directory")
+}
+
+func (driver *MultipleDriver) GetFile(path string, offset int64) (int64, io.ReadCloser, error) {
+ for prefix, driver := range driver.drivers {
+ if strings.HasPrefix(path, prefix) {
+ return driver.GetFile(strings.TrimPrefix(path, prefix), offset)
+ }
+ }
+
+ return 0, nil, errors.New("Not a file")
+}
+
+func (driver *MultipleDriver) PutFile(destPath string, data io.Reader, appendData bool) (int64, error) {
+ for prefix, driver := range driver.drivers {
+ if strings.HasPrefix(destPath, prefix) {
+ return driver.PutFile(strings.TrimPrefix(destPath, prefix), data, appendData)
+ }
+ }
+
+ return 0, errors.New("Not a file")
+}
+
+type MultipleDriverFactory struct {
+ drivers map[string]Driver
+}
+
+func (factory *MultipleDriverFactory) NewDriver() (Driver, error) {
+ return &MultipleDriver{factory.drivers}, nil
+}
diff --git a/vendor/goftp.io/server/driver_file.go b/vendor/goftp.io/server/driver_file.go
new file mode 100644
index 000000000..53a588bfe
--- /dev/null
+++ b/vendor/goftp.io/server/driver_file.go
@@ -0,0 +1,223 @@
+// Copyright 2020 The goftp Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
+package server
+
+import (
+ "errors"
+ "fmt"
+ "io"
+ "os"
+ "path/filepath"
+ "strings"
+)
+
+type FileDriver struct {
+ RootPath string
+ Perm
+}
+
+func (driver *FileDriver) realPath(path string) string {
+ paths := strings.Split(path, "/")
+ return filepath.Join(append([]string{driver.RootPath}, paths...)...)
+}
+
+func (driver *FileDriver) Init(conn *Conn) {
+ //driver.conn = conn
+}
+
+func (driver *FileDriver) ChangeDir(path string) error {
+ rPath := driver.realPath(path)
+ f, err := os.Lstat(rPath)
+ if err != nil {
+ return err
+ }
+ if f.IsDir() {
+ return nil
+ }
+ return errors.New("Not a directory")
+}
+
+func (driver *FileDriver) Stat(path string) (FileInfo, error) {
+ basepath := driver.realPath(path)
+ rPath, err := filepath.Abs(basepath)
+ if err != nil {
+ return nil, err
+ }
+ f, err := os.Lstat(rPath)
+ if err != nil {
+ return nil, err
+ }
+ mode, err := driver.Perm.GetMode(path)
+ if err != nil {
+ return nil, err
+ }
+ if f.IsDir() {
+ mode |= os.ModeDir
+ }
+ owner, err := driver.Perm.GetOwner(path)
+ if err != nil {
+ return nil, err
+ }
+ group, err := driver.Perm.GetGroup(path)
+ if err != nil {
+ return nil, err
+ }
+ return &fileInfo{f, mode, owner, group}, nil
+}
+
+func (driver *FileDriver) ListDir(path string, callback func(FileInfo) error) error {
+ basepath := driver.realPath(path)
+ return filepath.Walk(basepath, func(f string, info os.FileInfo, err error) error {
+ if err != nil {
+ return err
+ }
+ rPath, _ := filepath.Rel(basepath, f)
+ if rPath == info.Name() {
+ mode, err := driver.Perm.GetMode(rPath)
+ if err != nil {
+ return err
+ }
+ if info.IsDir() {
+ mode |= os.ModeDir
+ }
+ owner, err := driver.Perm.GetOwner(rPath)
+ if err != nil {
+ return err
+ }
+ group, err := driver.Perm.GetGroup(rPath)
+ if err != nil {
+ return err
+ }
+ err = callback(&fileInfo{info, mode, owner, group})
+ if err != nil {
+ return err
+ }
+ if info.IsDir() {
+ return filepath.SkipDir
+ }
+ }
+ return nil
+ })
+}
+
+func (driver *FileDriver) DeleteDir(path string) error {
+ rPath := driver.realPath(path)
+ f, err := os.Lstat(rPath)
+ if err != nil {
+ return err
+ }
+ if f.IsDir() {
+ return os.Remove(rPath)
+ }
+ return errors.New("Not a directory")
+}
+
+func (driver *FileDriver) DeleteFile(path string) error {
+ rPath := driver.realPath(path)
+ f, err := os.Lstat(rPath)
+ if err != nil {
+ return err
+ }
+ if !f.IsDir() {
+ return os.Remove(rPath)
+ }
+ return errors.New("Not a file")
+}
+
+func (driver *FileDriver) Rename(fromPath string, toPath string) error {
+ oldPath := driver.realPath(fromPath)
+ newPath := driver.realPath(toPath)
+ return os.Rename(oldPath, newPath)
+}
+
+func (driver *FileDriver) MakeDir(path string) error {
+ rPath := driver.realPath(path)
+ return os.MkdirAll(rPath, os.ModePerm)
+}
+
+func (driver *FileDriver) GetFile(path string, offset int64) (int64, io.ReadCloser, error) {
+ rPath := driver.realPath(path)
+ f, err := os.Open(rPath)
+ if err != nil {
+ return 0, nil, err
+ }
+
+ info, err := f.Stat()
+ if err != nil {
+ return 0, nil, err
+ }
+
+ f.Seek(offset, os.SEEK_SET)
+
+ return info.Size(), f, nil
+}
+
+func (driver *FileDriver) PutFile(destPath string, data io.Reader, appendData bool) (int64, error) {
+ rPath := driver.realPath(destPath)
+ var isExist bool
+ f, err := os.Lstat(rPath)
+ if err == nil {
+ isExist = true
+ if f.IsDir() {
+ return 0, errors.New("A dir has the same name")
+ }
+ } else {
+ if os.IsNotExist(err) {
+ isExist = false
+ } else {
+ return 0, errors.New(fmt.Sprintln("Put File error:", err))
+ }
+ }
+
+ if appendData && !isExist {
+ appendData = false
+ }
+
+ if !appendData {
+ if isExist {
+ err = os.Remove(rPath)
+ if err != nil {
+ return 0, err
+ }
+ }
+ f, err := os.Create(rPath)
+ if err != nil {
+ return 0, err
+ }
+ defer f.Close()
+ bytes, err := io.Copy(f, data)
+ if err != nil {
+ return 0, err
+ }
+ return bytes, nil
+ }
+
+ of, err := os.OpenFile(rPath, os.O_APPEND|os.O_RDWR, 0660)
+ if err != nil {
+ return 0, err
+ }
+ defer of.Close()
+
+ _, err = of.Seek(0, os.SEEK_END)
+ if err != nil {
+ return 0, err
+ }
+
+ bytes, err := io.Copy(of, data)
+ if err != nil {
+ return 0, err
+ }
+
+ return bytes, nil
+}
+
+type FileDriverFactory struct {
+ RootPath string
+ Perm
+}
+
+func (factory *FileDriverFactory) NewDriver() (Driver, error) {
+ return &FileDriver{factory.RootPath, factory.Perm}, nil
+}
diff --git a/vendor/goftp.io/server/fileinfo.go b/vendor/goftp.io/server/file_info.go
similarity index 51%
rename from vendor/goftp.io/server/fileinfo.go
rename to vendor/goftp.io/server/file_info.go
index 26dafd0a0..e58e685f6 100644
--- a/vendor/goftp.io/server/fileinfo.go
+++ b/vendor/goftp.io/server/file_info.go
@@ -12,3 +12,23 @@ type FileInfo interface {
Owner() string
Group() string
}
+
+type fileInfo struct {
+ os.FileInfo
+
+ mode os.FileMode
+ owner string
+ group string
+}
+
+func (f *fileInfo) Mode() os.FileMode {
+ return f.mode
+}
+
+func (f *fileInfo) Owner() string {
+ return f.owner
+}
+
+func (f *fileInfo) Group() string {
+ return f.group
+}
diff --git a/vendor/goftp.io/server/go.mod b/vendor/goftp.io/server/go.mod
index b6671ce79..f10dafe58 100644
--- a/vendor/goftp.io/server/go.mod
+++ b/vendor/goftp.io/server/go.mod
@@ -3,7 +3,6 @@ module goftp.io/server
go 1.12
require (
- gitea.com/goftp/file-driver v0.0.0-20190812052443-efcdcba68b34
github.com/jlaffaye/ftp v0.0.0-20190624084859-c1312a7102bf
github.com/stretchr/testify v1.3.0
)
diff --git a/vendor/goftp.io/server/go.sum b/vendor/goftp.io/server/go.sum
index f8d05e094..79d1192d5 100644
--- a/vendor/goftp.io/server/go.sum
+++ b/vendor/goftp.io/server/go.sum
@@ -1,6 +1,3 @@
-gitea.com/goftp/file-driver v0.0.0-20190712091345-f79c2ed973f8/go.mod h1:ghdogu0Da3rwYCSJ20JPgTiMcDpzeRbzvuFIOOW3G7w=
-gitea.com/goftp/file-driver v0.0.0-20190812052443-efcdcba68b34 h1:3wshUWDKHcy8hrNafCS4rtuAdON2KYsuznc05zdHTrQ=
-gitea.com/goftp/file-driver v0.0.0-20190812052443-efcdcba68b34/go.mod h1:6+f1gclV97PmaVmE4YJbH3KIKnl+r3/HWR0zD/z1CG4=
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/jlaffaye/ftp v0.0.0-20190624084859-c1312a7102bf h1:2IYBd5TD/maMqTU2YUzp2tJL4cNaOYQ9EBullN9t9pk=
@@ -10,5 +7,3 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
-goftp.io/server v0.0.0-20190712054601-1149070ae46b/go.mod h1:xreggPYu7ZuNe9PfbxiQca7bYGwU44IvlCCg3KzWJtQ=
-goftp.io/server v0.0.0-20190812034929-9b3874d17690/go.mod h1:99FISrRpwKfaL4Ey/dX8N48WToveng/s2OXR5sJ3cnc=
diff --git a/vendor/goftp.io/server/listformatter.go b/vendor/goftp.io/server/list_formatter.go
similarity index 100%
rename from vendor/goftp.io/server/listformatter.go
rename to vendor/goftp.io/server/list_formatter.go
diff --git a/vendor/goftp.io/server/server.go b/vendor/goftp.io/server/server.go
index 980bc7e1b..b38e269c6 100644
--- a/vendor/goftp.io/server/server.go
+++ b/vendor/goftp.io/server/server.go
@@ -16,7 +16,7 @@ import (
// Version returns the library version
func Version() string {
- return "0.3.0"
+ return "0.3.1"
}
// ServerOpts contains parameters for server.NewServer()
diff --git a/vendor/golang.org/x/crypto/chacha20/chacha_arm64.go b/vendor/golang.org/x/crypto/chacha20/chacha_arm64.go
index 87f1e369c..b799e440b 100644
--- a/vendor/golang.org/x/crypto/chacha20/chacha_arm64.go
+++ b/vendor/golang.org/x/crypto/chacha20/chacha_arm64.go
@@ -2,8 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build go1.11
-// +build !gccgo,!appengine
+// +build go1.11,!gccgo,!purego
package chacha20
diff --git a/vendor/golang.org/x/crypto/chacha20/chacha_arm64.s b/vendor/golang.org/x/crypto/chacha20/chacha_arm64.s
index b3a16ef75..891481539 100644
--- a/vendor/golang.org/x/crypto/chacha20/chacha_arm64.s
+++ b/vendor/golang.org/x/crypto/chacha20/chacha_arm64.s
@@ -2,8 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build go1.11
-// +build !gccgo,!appengine
+// +build go1.11,!gccgo,!purego
#include "textflag.h"
diff --git a/vendor/golang.org/x/crypto/chacha20/chacha_generic.go b/vendor/golang.org/x/crypto/chacha20/chacha_generic.go
index 098ec9f6b..7c498e90d 100644
--- a/vendor/golang.org/x/crypto/chacha20/chacha_generic.go
+++ b/vendor/golang.org/x/crypto/chacha20/chacha_generic.go
@@ -136,6 +136,33 @@ func quarterRound(a, b, c, d uint32) (uint32, uint32, uint32, uint32) {
return a, b, c, d
}
+// SetCounter sets the Cipher counter. The next invocation of XORKeyStream will
+// behave as if (64 * counter) bytes had been encrypted so far.
+//
+// To prevent accidental counter reuse, SetCounter panics if counter is
+// less than the current value.
+func (s *Cipher) SetCounter(counter uint32) {
+ // Internally, s may buffer multiple blocks, which complicates this
+ // implementation slightly. When checking whether the counter has rolled
+ // back, we must use both s.counter and s.len to determine how many blocks
+ // we have already output.
+ outputCounter := s.counter - uint32(s.len)/blockSize
+ if counter < outputCounter {
+ panic("chacha20: SetCounter attempted to rollback counter")
+ }
+
+ // In the general case, we set the new counter value and reset s.len to 0,
+ // causing the next call to XORKeyStream to refill the buffer. However, if
+ // we're advancing within the existing buffer, we can save work by simply
+ // setting s.len.
+ if counter < s.counter {
+ s.len = int(s.counter-counter) * blockSize
+ } else {
+ s.counter = counter
+ s.len = 0
+ }
+}
+
// XORKeyStream XORs each byte in the given slice with a byte from the
// cipher's key stream. Dst and src must overlap entirely or not at all.
//
diff --git a/vendor/golang.org/x/crypto/chacha20/chacha_noasm.go b/vendor/golang.org/x/crypto/chacha20/chacha_noasm.go
index ec609ed86..4635307b8 100644
--- a/vendor/golang.org/x/crypto/chacha20/chacha_noasm.go
+++ b/vendor/golang.org/x/crypto/chacha20/chacha_noasm.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 !arm64,!s390x,!ppc64le arm64,!go1.11 gccgo appengine
+// +build !arm64,!s390x,!ppc64le arm64,!go1.11 gccgo purego
package chacha20
diff --git a/vendor/golang.org/x/crypto/chacha20/chacha_ppc64le.go b/vendor/golang.org/x/crypto/chacha20/chacha_ppc64le.go
index d0ec61f08..b79933034 100644
--- a/vendor/golang.org/x/crypto/chacha20/chacha_ppc64le.go
+++ b/vendor/golang.org/x/crypto/chacha20/chacha_ppc64le.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 !gccgo,!appengine
+// +build !gccgo,!purego
package chacha20
diff --git a/vendor/golang.org/x/crypto/chacha20/chacha_ppc64le.s b/vendor/golang.org/x/crypto/chacha20/chacha_ppc64le.s
index 533014ea3..23c602164 100644
--- a/vendor/golang.org/x/crypto/chacha20/chacha_ppc64le.s
+++ b/vendor/golang.org/x/crypto/chacha20/chacha_ppc64le.s
@@ -19,7 +19,7 @@
// The differences in this and the original implementation are
// due to the calling conventions and initialization of constants.
-// +build !gccgo,!appengine
+// +build !gccgo,!purego
#include "textflag.h"
diff --git a/vendor/golang.org/x/crypto/chacha20/chacha_s390x.go b/vendor/golang.org/x/crypto/chacha20/chacha_s390x.go
index cd55f45a3..a9244bdf4 100644
--- a/vendor/golang.org/x/crypto/chacha20/chacha_s390x.go
+++ b/vendor/golang.org/x/crypto/chacha20/chacha_s390x.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 !gccgo,!appengine
+// +build !gccgo,!purego
package chacha20
diff --git a/vendor/golang.org/x/crypto/chacha20/chacha_s390x.s b/vendor/golang.org/x/crypto/chacha20/chacha_s390x.s
index de52a2ea8..89c658c41 100644
--- a/vendor/golang.org/x/crypto/chacha20/chacha_s390x.s
+++ b/vendor/golang.org/x/crypto/chacha20/chacha_s390x.s
@@ -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 !gccgo,!appengine
+// +build !gccgo,!purego
#include "go_asm.h"
#include "textflag.h"
diff --git a/vendor/golang.org/x/crypto/poly1305/mac_noasm.go b/vendor/golang.org/x/crypto/poly1305/mac_noasm.go
index a8dd589ae..b0c2cd056 100644
--- a/vendor/golang.org/x/crypto/poly1305/mac_noasm.go
+++ b/vendor/golang.org/x/crypto/poly1305/mac_noasm.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,!ppc64le gccgo appengine
+// +build !amd64,!ppc64le gccgo purego
package poly1305
diff --git a/vendor/golang.org/x/crypto/poly1305/sum_amd64.go b/vendor/golang.org/x/crypto/poly1305/sum_amd64.go
index df56a652f..35b9e38c9 100644
--- a/vendor/golang.org/x/crypto/poly1305/sum_amd64.go
+++ b/vendor/golang.org/x/crypto/poly1305/sum_amd64.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,!gccgo,!appengine
+// +build !gccgo,!purego
package poly1305
diff --git a/vendor/golang.org/x/crypto/poly1305/sum_amd64.s b/vendor/golang.org/x/crypto/poly1305/sum_amd64.s
index 8c0cefbb3..8d394a212 100644
--- a/vendor/golang.org/x/crypto/poly1305/sum_amd64.s
+++ b/vendor/golang.org/x/crypto/poly1305/sum_amd64.s
@@ -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,!gccgo,!appengine
+// +build !gccgo,!purego
#include "textflag.h"
diff --git a/vendor/golang.org/x/crypto/poly1305/sum_noasm.go b/vendor/golang.org/x/crypto/poly1305/sum_noasm.go
index 32a9cef6b..2e3ae34c7 100644
--- a/vendor/golang.org/x/crypto/poly1305/sum_noasm.go
+++ b/vendor/golang.org/x/crypto/poly1305/sum_noasm.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 s390x,!go1.11 !amd64,!s390x,!ppc64le gccgo appengine nacl
+// +build s390x,!go1.11 !amd64,!s390x,!ppc64le gccgo purego
package poly1305
diff --git a/vendor/golang.org/x/crypto/poly1305/sum_ppc64le.go b/vendor/golang.org/x/crypto/poly1305/sum_ppc64le.go
index 323361693..92597bb8c 100644
--- a/vendor/golang.org/x/crypto/poly1305/sum_ppc64le.go
+++ b/vendor/golang.org/x/crypto/poly1305/sum_ppc64le.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 ppc64le,!gccgo,!appengine
+// +build !gccgo,!purego
package poly1305
diff --git a/vendor/golang.org/x/crypto/poly1305/sum_ppc64le.s b/vendor/golang.org/x/crypto/poly1305/sum_ppc64le.s
index 4e20bf299..4e0281387 100644
--- a/vendor/golang.org/x/crypto/poly1305/sum_ppc64le.s
+++ b/vendor/golang.org/x/crypto/poly1305/sum_ppc64le.s
@@ -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 ppc64le,!gccgo,!appengine
+// +build !gccgo,!purego
#include "textflag.h"
diff --git a/vendor/golang.org/x/crypto/poly1305/sum_s390x.go b/vendor/golang.org/x/crypto/poly1305/sum_s390x.go
index a8920ee9d..5f91ff84a 100644
--- a/vendor/golang.org/x/crypto/poly1305/sum_s390x.go
+++ b/vendor/golang.org/x/crypto/poly1305/sum_s390x.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 s390x,go1.11,!gccgo,!appengine
+// +build go1.11,!gccgo,!purego
package poly1305
diff --git a/vendor/golang.org/x/crypto/poly1305/sum_s390x.s b/vendor/golang.org/x/crypto/poly1305/sum_s390x.s
index ca5a309d8..806d1694b 100644
--- a/vendor/golang.org/x/crypto/poly1305/sum_s390x.s
+++ b/vendor/golang.org/x/crypto/poly1305/sum_s390x.s
@@ -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 s390x,go1.11,!gccgo,!appengine
+// +build go1.11,!gccgo,!purego
#include "textflag.h"
diff --git a/vendor/golang.org/x/crypto/poly1305/sum_vmsl_s390x.s b/vendor/golang.org/x/crypto/poly1305/sum_vmsl_s390x.s
index e60bbc1d7..b439af936 100644
--- a/vendor/golang.org/x/crypto/poly1305/sum_vmsl_s390x.s
+++ b/vendor/golang.org/x/crypto/poly1305/sum_vmsl_s390x.s
@@ -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 s390x,go1.11,!gccgo,!appengine
+// +build go1.11,!gccgo,!purego
#include "textflag.h"
diff --git a/vendor/golang.org/x/crypto/ssh/internal/bcrypt_pbkdf/bcrypt_pbkdf.go b/vendor/golang.org/x/crypto/ssh/internal/bcrypt_pbkdf/bcrypt_pbkdf.go
new file mode 100644
index 000000000..af81d2665
--- /dev/null
+++ b/vendor/golang.org/x/crypto/ssh/internal/bcrypt_pbkdf/bcrypt_pbkdf.go
@@ -0,0 +1,93 @@
+// 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 bcrypt_pbkdf implements bcrypt_pbkdf(3) from OpenBSD.
+//
+// See https://flak.tedunangst.com/post/bcrypt-pbkdf and
+// https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/lib/libutil/bcrypt_pbkdf.c.
+package bcrypt_pbkdf
+
+import (
+ "crypto/sha512"
+ "errors"
+ "golang.org/x/crypto/blowfish"
+)
+
+const blockSize = 32
+
+// Key derives a key from the password, salt and rounds count, returning a
+// []byte of length keyLen that can be used as cryptographic key.
+func Key(password, salt []byte, rounds, keyLen int) ([]byte, error) {
+ if rounds < 1 {
+ return nil, errors.New("bcrypt_pbkdf: number of rounds is too small")
+ }
+ if len(password) == 0 {
+ return nil, errors.New("bcrypt_pbkdf: empty password")
+ }
+ if len(salt) == 0 || len(salt) > 1<<20 {
+ return nil, errors.New("bcrypt_pbkdf: bad salt length")
+ }
+ if keyLen > 1024 {
+ return nil, errors.New("bcrypt_pbkdf: keyLen is too large")
+ }
+
+ numBlocks := (keyLen + blockSize - 1) / blockSize
+ key := make([]byte, numBlocks*blockSize)
+
+ h := sha512.New()
+ h.Write(password)
+ shapass := h.Sum(nil)
+
+ shasalt := make([]byte, 0, sha512.Size)
+ cnt, tmp := make([]byte, 4), make([]byte, blockSize)
+ for block := 1; block <= numBlocks; block++ {
+ h.Reset()
+ h.Write(salt)
+ cnt[0] = byte(block >> 24)
+ cnt[1] = byte(block >> 16)
+ cnt[2] = byte(block >> 8)
+ cnt[3] = byte(block)
+ h.Write(cnt)
+ bcryptHash(tmp, shapass, h.Sum(shasalt))
+
+ out := make([]byte, blockSize)
+ copy(out, tmp)
+ for i := 2; i <= rounds; i++ {
+ h.Reset()
+ h.Write(tmp)
+ bcryptHash(tmp, shapass, h.Sum(shasalt))
+ for j := 0; j < len(out); j++ {
+ out[j] ^= tmp[j]
+ }
+ }
+
+ for i, v := range out {
+ key[i*numBlocks+(block-1)] = v
+ }
+ }
+ return key[:keyLen], nil
+}
+
+var magic = []byte("OxychromaticBlowfishSwatDynamite")
+
+func bcryptHash(out, shapass, shasalt []byte) {
+ c, err := blowfish.NewSaltedCipher(shapass, shasalt)
+ if err != nil {
+ panic(err)
+ }
+ for i := 0; i < 64; i++ {
+ blowfish.ExpandKey(shasalt, c)
+ blowfish.ExpandKey(shapass, c)
+ }
+ copy(out, magic)
+ for i := 0; i < 32; i += 8 {
+ for j := 0; j < 64; j++ {
+ c.Encrypt(out[i:i+8], out[i:i+8])
+ }
+ }
+ // Swap bytes due to different endianness.
+ for i := 0; i < 32; i += 4 {
+ out[i+3], out[i+2], out[i+1], out[i] = out[i], out[i+1], out[i+2], out[i+3]
+ }
+}
diff --git a/vendor/golang.org/x/crypto/ssh/keys.go b/vendor/golang.org/x/crypto/ssh/keys.go
index c148ad4c4..06f537c13 100644
--- a/vendor/golang.org/x/crypto/ssh/keys.go
+++ b/vendor/golang.org/x/crypto/ssh/keys.go
@@ -7,6 +7,8 @@ package ssh
import (
"bytes"
"crypto"
+ "crypto/aes"
+ "crypto/cipher"
"crypto/dsa"
"crypto/ecdsa"
"crypto/elliptic"
@@ -25,6 +27,7 @@ import (
"strings"
"golang.org/x/crypto/ed25519"
+ "golang.org/x/crypto/ssh/internal/bcrypt_pbkdf"
)
// These constants represent the algorithm names for key types supported by this
@@ -559,9 +562,11 @@ func parseED25519(in []byte) (out PublicKey, rest []byte, err error) {
return nil, nil, err
}
- key := ed25519.PublicKey(w.KeyBytes)
+ if l := len(w.KeyBytes); l != ed25519.PublicKeySize {
+ return nil, nil, fmt.Errorf("invalid size %d for Ed25519 public key", l)
+ }
- return (ed25519PublicKey)(key), w.Rest, nil
+ return ed25519PublicKey(w.KeyBytes), w.Rest, nil
}
func (k ed25519PublicKey) Marshal() []byte {
@@ -579,9 +584,11 @@ func (k ed25519PublicKey) Verify(b []byte, sig *Signature) error {
if sig.Format != k.Type() {
return fmt.Errorf("ssh: signature type %s for key type %s", sig.Format, k.Type())
}
+ if l := len(k); l != ed25519.PublicKeySize {
+ return fmt.Errorf("ssh: invalid size %d for Ed25519 public key", l)
+ }
- edKey := (ed25519.PublicKey)(k)
- if ok := ed25519.Verify(edKey, b, sig.Blob); !ok {
+ if ok := ed25519.Verify(ed25519.PublicKey(k), b, sig.Blob); !ok {
return errors.New("ssh: signature did not verify")
}
@@ -835,6 +842,10 @@ func parseSKEd25519(in []byte) (out PublicKey, rest []byte, err error) {
return nil, nil, err
}
+ if l := len(w.KeyBytes); l != ed25519.PublicKeySize {
+ return nil, nil, fmt.Errorf("invalid size %d for Ed25519 public key", l)
+ }
+
key := new(skEd25519PublicKey)
key.application = w.Application
key.PublicKey = ed25519.PublicKey(w.KeyBytes)
@@ -859,6 +870,9 @@ func (k *skEd25519PublicKey) Verify(data []byte, sig *Signature) error {
if sig.Format != k.Type() {
return fmt.Errorf("ssh: signature type %s for key type %s", sig.Format, k.Type())
}
+ if l := len(k.PublicKey); l != ed25519.PublicKeySize {
+ return fmt.Errorf("invalid size %d for Ed25519 public key", l)
+ }
h := sha256.New()
h.Write([]byte(k.application))
@@ -895,8 +909,7 @@ func (k *skEd25519PublicKey) Verify(data []byte, sig *Signature) error {
original := Marshal(blob)
- edKey := (ed25519.PublicKey)(k.PublicKey)
- if ok := ed25519.Verify(edKey, original, edSig.Signature); !ok {
+ if ok := ed25519.Verify(k.PublicKey, original, edSig.Signature); !ok {
return errors.New("ssh: signature did not verify")
}
@@ -1048,7 +1061,10 @@ func NewPublicKey(key interface{}) (PublicKey, error) {
case *dsa.PublicKey:
return (*dsaPublicKey)(key), nil
case ed25519.PublicKey:
- return (ed25519PublicKey)(key), nil
+ if l := len(key); l != ed25519.PublicKeySize {
+ return nil, fmt.Errorf("ssh: invalid size %d for Ed25519 public key", l)
+ }
+ return ed25519PublicKey(key), nil
default:
return nil, fmt.Errorf("ssh: unsupported key type %T", key)
}
@@ -1122,21 +1138,25 @@ func ParseRawPrivateKey(pemBytes []byte) (interface{}, error) {
case "DSA PRIVATE KEY":
return ParseDSAPrivateKey(block.Bytes)
case "OPENSSH PRIVATE KEY":
- return parseOpenSSHPrivateKey(block.Bytes)
+ return parseOpenSSHPrivateKey(block.Bytes, unencryptedOpenSSHKey)
default:
return nil, fmt.Errorf("ssh: unsupported key type %q", block.Type)
}
}
// ParseRawPrivateKeyWithPassphrase returns a private key decrypted with
-// passphrase from a PEM encoded private key. If wrong passphrase, return
-// x509.IncorrectPasswordError.
+// passphrase from a PEM encoded private key. If the passphrase is wrong, it
+// will return x509.IncorrectPasswordError.
func ParseRawPrivateKeyWithPassphrase(pemBytes, passphrase []byte) (interface{}, error) {
block, _ := pem.Decode(pemBytes)
if block == nil {
return nil, errors.New("ssh: no key found")
}
+ if block.Type == "OPENSSH PRIVATE KEY" {
+ return parseOpenSSHPrivateKey(block.Bytes, passphraseProtectedOpenSSHKey(passphrase))
+ }
+
if !encryptedBlock(block) || !x509.IsEncryptedPEMBlock(block) {
return nil, errors.New("ssh: not an encrypted key")
}
@@ -1193,9 +1213,60 @@ func ParseDSAPrivateKey(der []byte) (*dsa.PrivateKey, error) {
}, nil
}
-// Implemented based on the documentation at
-// https://github.com/openssh/openssh-portable/blob/master/PROTOCOL.key
-func parseOpenSSHPrivateKey(key []byte) (crypto.PrivateKey, error) {
+func unencryptedOpenSSHKey(cipherName, kdfName, kdfOpts string, privKeyBlock []byte) ([]byte, error) {
+ if kdfName != "none" || cipherName != "none" {
+ return nil, &PassphraseMissingError{}
+ }
+ if kdfOpts != "" {
+ return nil, errors.New("ssh: invalid openssh private key")
+ }
+ return privKeyBlock, nil
+}
+
+func passphraseProtectedOpenSSHKey(passphrase []byte) openSSHDecryptFunc {
+ return func(cipherName, kdfName, kdfOpts string, privKeyBlock []byte) ([]byte, error) {
+ if kdfName == "none" || cipherName == "none" {
+ return nil, errors.New("ssh: key is not password protected")
+ }
+ if kdfName != "bcrypt" {
+ return nil, fmt.Errorf("ssh: unknown KDF %q, only supports %q", kdfName, "bcrypt")
+ }
+
+ var opts struct {
+ Salt string
+ Rounds uint32
+ }
+ if err := Unmarshal([]byte(kdfOpts), &opts); err != nil {
+ return nil, err
+ }
+
+ k, err := bcrypt_pbkdf.Key(passphrase, []byte(opts.Salt), int(opts.Rounds), 32+16)
+ if err != nil {
+ return nil, err
+ }
+ key, iv := k[:32], k[32:]
+
+ if cipherName != "aes256-ctr" {
+ return nil, fmt.Errorf("ssh: unknown cipher %q, only supports %q", cipherName, "aes256-ctr")
+ }
+ c, err := aes.NewCipher(key)
+ if err != nil {
+ return nil, err
+ }
+ ctr := cipher.NewCTR(c, iv)
+ ctr.XORKeyStream(privKeyBlock, privKeyBlock)
+
+ return privKeyBlock, nil
+ }
+}
+
+type openSSHDecryptFunc func(CipherName, KdfName, KdfOpts string, PrivKeyBlock []byte) ([]byte, error)
+
+// parseOpenSSHPrivateKey parses an OpenSSH private key, using the decrypt
+// function to unwrap the encrypted portion. unencryptedOpenSSHKey can be used
+// as the decrypt function to parse an unencrypted private key. See
+// https://github.com/openssh/openssh-portable/blob/master/PROTOCOL.key.
+func parseOpenSSHPrivateKey(key []byte, decrypt openSSHDecryptFunc) (crypto.PrivateKey, error) {
const magic = "openssh-key-v1\x00"
if len(key) < len(magic) || string(key[:len(magic)]) != magic {
return nil, errors.New("ssh: invalid openssh private key format")
@@ -1214,9 +1285,22 @@ func parseOpenSSHPrivateKey(key []byte) (crypto.PrivateKey, error) {
if err := Unmarshal(remaining, &w); err != nil {
return nil, err
}
+ if w.NumKeys != 1 {
+ // We only support single key files, and so does OpenSSH.
+ // https://github.com/openssh/openssh-portable/blob/4103a3ec7/sshkey.c#L4171
+ return nil, errors.New("ssh: multi-key files are not supported")
+ }
- if w.KdfName != "none" || w.CipherName != "none" {
- return nil, errors.New("ssh: cannot decode encrypted private keys")
+ privKeyBlock, err := decrypt(w.CipherName, w.KdfName, w.KdfOpts, w.PrivKeyBlock)
+ if err != nil {
+ if err, ok := err.(*PassphraseMissingError); ok {
+ pub, errPub := ParsePublicKey(w.PubKey)
+ if errPub != nil {
+ return nil, fmt.Errorf("ssh: failed to parse embedded public key: %v", errPub)
+ }
+ err.PublicKey = pub
+ }
+ return nil, err
}
pk1 := struct {
@@ -1226,15 +1310,13 @@ func parseOpenSSHPrivateKey(key []byte) (crypto.PrivateKey, error) {
Rest []byte `ssh:"rest"`
}{}
- if err := Unmarshal(w.PrivKeyBlock, &pk1); err != nil {
- return nil, err
- }
-
- if pk1.Check1 != pk1.Check2 {
- return nil, errors.New("ssh: checkint mismatch")
+ if err := Unmarshal(privKeyBlock, &pk1); err != nil || pk1.Check1 != pk1.Check2 {
+ if w.CipherName != "none" {
+ return nil, x509.IncorrectPasswordError
+ }
+ return nil, errors.New("ssh: malformed OpenSSH key")
}
- // we only handle ed25519 and rsa keys currently
switch pk1.Keytype {
case KeyAlgoRSA:
// https://github.com/openssh/openssh-portable/blob/master/sshkey.c#L2760-L2773
@@ -1253,10 +1335,8 @@ func parseOpenSSHPrivateKey(key []byte) (crypto.PrivateKey, error) {
return nil, err
}
- for i, b := range key.Pad {
- if int(b) != i+1 {
- return nil, errors.New("ssh: padding not as expected")
- }
+ if err := checkOpenSSHKeyPadding(key.Pad); err != nil {
+ return nil, err
}
pk := &rsa.PrivateKey{
@@ -1291,20 +1371,78 @@ func parseOpenSSHPrivateKey(key []byte) (crypto.PrivateKey, error) {
return nil, errors.New("ssh: private key unexpected length")
}
- for i, b := range key.Pad {
- if int(b) != i+1 {
- return nil, errors.New("ssh: padding not as expected")
- }
+ if err := checkOpenSSHKeyPadding(key.Pad); err != nil {
+ return nil, err
}
pk := ed25519.PrivateKey(make([]byte, ed25519.PrivateKeySize))
copy(pk, key.Priv)
return &pk, nil
+ case KeyAlgoECDSA256, KeyAlgoECDSA384, KeyAlgoECDSA521:
+ key := struct {
+ Curve string
+ Pub []byte
+ D *big.Int
+ Comment string
+ Pad []byte `ssh:"rest"`
+ }{}
+
+ if err := Unmarshal(pk1.Rest, &key); err != nil {
+ return nil, err
+ }
+
+ if err := checkOpenSSHKeyPadding(key.Pad); err != nil {
+ return nil, err
+ }
+
+ var curve elliptic.Curve
+ switch key.Curve {
+ case "nistp256":
+ curve = elliptic.P256()
+ case "nistp384":
+ curve = elliptic.P384()
+ case "nistp521":
+ curve = elliptic.P521()
+ default:
+ return nil, errors.New("ssh: unhandled elliptic curve: " + key.Curve)
+ }
+
+ X, Y := elliptic.Unmarshal(curve, key.Pub)
+ if X == nil || Y == nil {
+ return nil, errors.New("ssh: failed to unmarshal public key")
+ }
+
+ if key.D.Cmp(curve.Params().N) >= 0 {
+ return nil, errors.New("ssh: scalar is out of range")
+ }
+
+ x, y := curve.ScalarBaseMult(key.D.Bytes())
+ if x.Cmp(X) != 0 || y.Cmp(Y) != 0 {
+ return nil, errors.New("ssh: public key does not match private key")
+ }
+
+ return &ecdsa.PrivateKey{
+ PublicKey: ecdsa.PublicKey{
+ Curve: curve,
+ X: X,
+ Y: Y,
+ },
+ D: key.D,
+ }, nil
default:
return nil, errors.New("ssh: unhandled key type")
}
}
+func checkOpenSSHKeyPadding(pad []byte) error {
+ for i, b := range pad {
+ if int(b) != i+1 {
+ return errors.New("ssh: padding not as expected")
+ }
+ }
+ return nil
+}
+
// FingerprintLegacyMD5 returns the user presentation of the key's
// fingerprint as described by RFC 4716 section 4.
func FingerprintLegacyMD5(pubKey PublicKey) string {
diff --git a/vendor/golang.org/x/crypto/ssh/terminal/terminal.go b/vendor/golang.org/x/crypto/ssh/terminal/terminal.go
index 2f04ee5b5..d1b4fca3a 100644
--- a/vendor/golang.org/x/crypto/ssh/terminal/terminal.go
+++ b/vendor/golang.org/x/crypto/ssh/terminal/terminal.go
@@ -7,6 +7,7 @@ package terminal
import (
"bytes"
"io"
+ "runtime"
"strconv"
"sync"
"unicode/utf8"
@@ -939,6 +940,8 @@ func (s *stRingBuffer) NthPreviousEntry(n int) (value string, ok bool) {
// readPasswordLine reads from reader until it finds \n or io.EOF.
// The slice returned does not include the \n.
// readPasswordLine also ignores any \r it finds.
+// Windows uses \r as end of line. So, on Windows, readPasswordLine
+// reads until it finds \r and ignores any \n it finds during processing.
func readPasswordLine(reader io.Reader) ([]byte, error) {
var buf [1]byte
var ret []byte
@@ -947,10 +950,20 @@ func readPasswordLine(reader io.Reader) ([]byte, error) {
n, err := reader.Read(buf[:])
if n > 0 {
switch buf[0] {
+ case '\b':
+ if len(ret) > 0 {
+ ret = ret[:len(ret)-1]
+ }
case '\n':
- return ret, nil
+ if runtime.GOOS != "windows" {
+ return ret, nil
+ }
+ // otherwise ignore \n
case '\r':
- // remove \r from passwords on Windows
+ if runtime.GOOS == "windows" {
+ return ret, nil
+ }
+ // otherwise ignore \r
default:
ret = append(ret, buf[0])
}
diff --git a/vendor/golang.org/x/crypto/ssh/terminal/util_windows.go b/vendor/golang.org/x/crypto/ssh/terminal/util_windows.go
index 5cfdf8f3f..f614e9cb6 100644
--- a/vendor/golang.org/x/crypto/ssh/terminal/util_windows.go
+++ b/vendor/golang.org/x/crypto/ssh/terminal/util_windows.go
@@ -85,8 +85,8 @@ func ReadPassword(fd int) ([]byte, error) {
}
old := st
- st &^= (windows.ENABLE_ECHO_INPUT)
- st |= (windows.ENABLE_PROCESSED_INPUT | windows.ENABLE_LINE_INPUT | windows.ENABLE_PROCESSED_OUTPUT)
+ st &^= (windows.ENABLE_ECHO_INPUT | windows.ENABLE_LINE_INPUT)
+ st |= (windows.ENABLE_PROCESSED_OUTPUT | windows.ENABLE_PROCESSED_INPUT)
if err := windows.SetConsoleMode(windows.Handle(fd), st); err != nil {
return nil, err
}
diff --git a/vendor/golang.org/x/net/html/const.go b/vendor/golang.org/x/net/html/const.go
index a3a918f0b..73804d347 100644
--- a/vendor/golang.org/x/net/html/const.go
+++ b/vendor/golang.org/x/net/html/const.go
@@ -52,7 +52,6 @@ var isSpecialElementMap = map[string]bool{
"iframe": true,
"img": true,
"input": true,
- "isindex": true, // The 'isindex' element has been removed, but keep it for backwards compatibility.
"keygen": true,
"li": true,
"link": true,
diff --git a/vendor/golang.org/x/net/html/foreign.go b/vendor/golang.org/x/net/html/foreign.go
index 01477a963..74774c458 100644
--- a/vendor/golang.org/x/net/html/foreign.go
+++ b/vendor/golang.org/x/net/html/foreign.go
@@ -172,7 +172,6 @@ var svgAttributeAdjustments = map[string]string{
"diffuseconstant": "diffuseConstant",
"edgemode": "edgeMode",
"externalresourcesrequired": "externalResourcesRequired",
- "filterres": "filterRes",
"filterunits": "filterUnits",
"glyphref": "glyphRef",
"gradienttransform": "gradientTransform",
diff --git a/vendor/golang.org/x/net/html/node.go b/vendor/golang.org/x/net/html/node.go
index 633ee15dc..1350eef22 100644
--- a/vendor/golang.org/x/net/html/node.go
+++ b/vendor/golang.org/x/net/html/node.go
@@ -18,6 +18,11 @@ const (
ElementNode
CommentNode
DoctypeNode
+ // RawNode nodes are not returned by the parser, but can be part of the
+ // Node tree passed to func Render to insert raw HTML (without escaping).
+ // If so, this package makes no guarantee that the rendered HTML is secure
+ // (from e.g. Cross Site Scripting attacks) or well-formed.
+ RawNode
scopeMarkerNode
)
diff --git a/vendor/golang.org/x/net/html/parse.go b/vendor/golang.org/x/net/html/parse.go
index 0ff15ff17..2cd12fc81 100644
--- a/vendor/golang.org/x/net/html/parse.go
+++ b/vendor/golang.org/x/net/html/parse.go
@@ -184,6 +184,17 @@ func (p *parser) clearStackToContext(s scope) {
}
}
+// parseGenericRawTextElements implements the generic raw text element parsing
+// algorithm defined in 12.2.6.2.
+// https://html.spec.whatwg.org/multipage/parsing.html#parsing-elements-that-contain-only-text
+// TODO: Since both RAWTEXT and RCDATA states are treated as tokenizer's part
+// officially, need to make tokenizer consider both states.
+func (p *parser) parseGenericRawTextElement() {
+ p.addElement()
+ p.originalIM = p.im
+ p.im = textIM
+}
+
// generateImpliedEndTags pops nodes off the stack of open elements as long as
// the top node has a tag name of dd, dt, li, optgroup, option, p, rb, rp, rt or rtc.
// If exceptions are specified, nodes with that name will not be popped off.
@@ -192,16 +203,17 @@ func (p *parser) generateImpliedEndTags(exceptions ...string) {
loop:
for i = len(p.oe) - 1; i >= 0; i-- {
n := p.oe[i]
- if n.Type == ElementNode {
- switch n.DataAtom {
- case a.Dd, a.Dt, a.Li, a.Optgroup, a.Option, a.P, a.Rb, a.Rp, a.Rt, a.Rtc:
- for _, except := range exceptions {
- if n.Data == except {
- break loop
- }
+ if n.Type != ElementNode {
+ break
+ }
+ switch n.DataAtom {
+ case a.Dd, a.Dt, a.Li, a.Optgroup, a.Option, a.P, a.Rb, a.Rp, a.Rt, a.Rtc:
+ for _, except := range exceptions {
+ if n.Data == except {
+ break loop
}
- continue
}
+ continue
}
break
}
@@ -369,8 +381,7 @@ findIdenticalElements:
// Section 12.2.4.3.
func (p *parser) clearActiveFormattingElements() {
for {
- n := p.afe.pop()
- if len(p.afe) == 0 || n.Type == scopeMarkerNode {
+ if n := p.afe.pop(); len(p.afe) == 0 || n.Type == scopeMarkerNode {
return
}
}
@@ -625,25 +636,29 @@ func inHeadIM(p *parser) bool {
switch p.tok.DataAtom {
case a.Html:
return inBodyIM(p)
- case a.Base, a.Basefont, a.Bgsound, a.Command, a.Link, a.Meta:
+ case a.Base, a.Basefont, a.Bgsound, a.Link, a.Meta:
p.addElement()
p.oe.pop()
p.acknowledgeSelfClosingTag()
return true
case a.Noscript:
- p.addElement()
if p.scripting {
- p.setOriginalIM()
- p.im = textIM
- } else {
- p.im = inHeadNoscriptIM
+ p.parseGenericRawTextElement()
+ return true
}
+ p.addElement()
+ p.im = inHeadNoscriptIM
+ // Don't let the tokenizer go into raw text mode when scripting is disabled.
+ p.tokenizer.NextIsNotRawText()
return true
- case a.Script, a.Title, a.Noframes, a.Style:
+ case a.Script, a.Title:
p.addElement()
p.setOriginalIM()
p.im = textIM
return true
+ case a.Noframes, a.Style:
+ p.parseGenericRawTextElement()
+ return true
case a.Head:
// Ignore the token.
return true
@@ -855,7 +870,7 @@ func inBodyIM(p *parser) bool {
return true
}
copyAttributes(p.oe[0], p.tok)
- case a.Base, a.Basefont, a.Bgsound, a.Command, a.Link, a.Meta, a.Noframes, a.Script, a.Style, a.Template, a.Title:
+ case a.Base, a.Basefont, a.Bgsound, a.Link, a.Meta, a.Noframes, a.Script, a.Style, a.Template, a.Title:
return inHeadIM(p)
case a.Body:
if p.oe.contains(a.Template) {
@@ -881,7 +896,7 @@ func inBodyIM(p *parser) bool {
p.addElement()
p.im = inFramesetIM
return true
- case a.Address, a.Article, a.Aside, a.Blockquote, a.Center, a.Details, a.Dialog, a.Dir, a.Div, a.Dl, a.Fieldset, a.Figcaption, a.Figure, a.Footer, a.Header, a.Hgroup, a.Menu, a.Nav, a.Ol, a.P, a.Section, a.Summary, a.Ul:
+ case a.Address, a.Article, a.Aside, a.Blockquote, a.Center, a.Details, a.Dialog, a.Dir, a.Div, a.Dl, a.Fieldset, a.Figcaption, a.Figure, a.Footer, a.Header, a.Hgroup, a.Main, a.Menu, a.Nav, a.Ol, a.P, a.Section, a.Summary, a.Ul:
p.popUntil(buttonScope, a.P)
p.addElement()
case a.H1, a.H2, a.H3, a.H4, a.H5, a.H6:
@@ -1014,53 +1029,6 @@ func inBodyIM(p *parser) bool {
p.tok.DataAtom = a.Img
p.tok.Data = a.Img.String()
return false
- case a.Isindex:
- if p.form != nil {
- // Ignore the token.
- return true
- }
- action := ""
- prompt := "This is a searchable index. Enter search keywords: "
- attr := []Attribute{{Key: "name", Val: "isindex"}}
- for _, t := range p.tok.Attr {
- switch t.Key {
- case "action":
- action = t.Val
- case "name":
- // Ignore the attribute.
- case "prompt":
- prompt = t.Val
- default:
- attr = append(attr, t)
- }
- }
- p.acknowledgeSelfClosingTag()
- p.popUntil(buttonScope, a.P)
- p.parseImpliedToken(StartTagToken, a.Form, a.Form.String())
- if p.form == nil {
- // NOTE: The 'isindex' element has been removed,
- // and the 'template' element has not been designed to be
- // collaborative with the index element.
- //
- // Ignore the token.
- return true
- }
- if action != "" {
- p.form.Attr = []Attribute{{Key: "action", Val: action}}
- }
- p.parseImpliedToken(StartTagToken, a.Hr, a.Hr.String())
- p.parseImpliedToken(StartTagToken, a.Label, a.Label.String())
- p.addText(prompt)
- p.addChild(&Node{
- Type: ElementNode,
- DataAtom: a.Input,
- Data: a.Input.String(),
- Attr: attr,
- })
- p.oe.pop()
- p.parseImpliedToken(EndTagToken, a.Label, a.Label.String())
- p.parseImpliedToken(StartTagToken, a.Hr, a.Hr.String())
- p.parseImpliedToken(EndTagToken, a.Form, a.Form.String())
case a.Textarea:
p.addElement()
p.setOriginalIM()
@@ -1070,18 +1038,21 @@ func inBodyIM(p *parser) bool {
p.popUntil(buttonScope, a.P)
p.reconstructActiveFormattingElements()
p.framesetOK = false
- p.addElement()
- p.setOriginalIM()
- p.im = textIM
+ p.parseGenericRawTextElement()
case a.Iframe:
p.framesetOK = false
+ p.parseGenericRawTextElement()
+ case a.Noembed:
+ p.parseGenericRawTextElement()
+ case a.Noscript:
+ if p.scripting {
+ p.parseGenericRawTextElement()
+ return true
+ }
+ p.reconstructActiveFormattingElements()
p.addElement()
- p.setOriginalIM()
- p.im = textIM
- case a.Noembed, a.Noscript:
- p.addElement()
- p.setOriginalIM()
- p.im = textIM
+ // Don't let the tokenizer go into raw text mode when scripting is disabled.
+ p.tokenizer.NextIsNotRawText()
case a.Select:
p.reconstructActiveFormattingElements()
p.addElement()
@@ -1137,7 +1108,7 @@ func inBodyIM(p *parser) bool {
return false
}
return true
- case a.Address, a.Article, a.Aside, a.Blockquote, a.Button, a.Center, a.Details, a.Dialog, a.Dir, a.Div, a.Dl, a.Fieldset, a.Figcaption, a.Figure, a.Footer, a.Header, a.Hgroup, a.Listing, a.Menu, a.Nav, a.Ol, a.Pre, a.Section, a.Summary, a.Ul:
+ case a.Address, a.Article, a.Aside, a.Blockquote, a.Button, a.Center, a.Details, a.Dialog, a.Dir, a.Div, a.Dl, a.Fieldset, a.Figcaption, a.Figure, a.Footer, a.Header, a.Hgroup, a.Listing, a.Main, a.Menu, a.Nav, a.Ol, a.Pre, a.Section, a.Summary, a.Ul:
p.popUntil(defaultScope, p.tok.DataAtom)
case a.Form:
if p.oe.contains(a.Template) {
@@ -1198,14 +1169,13 @@ func inBodyIM(p *parser) bool {
if len(p.templateStack) > 0 {
p.im = inTemplateIM
return false
- } else {
- for _, e := range p.oe {
- switch e.DataAtom {
- case a.Dd, a.Dt, a.Li, a.Optgroup, a.Option, a.P, a.Rb, a.Rp, a.Rt, a.Rtc, a.Tbody, a.Td, a.Tfoot, a.Th,
- a.Thead, a.Tr, a.Body, a.Html:
- default:
- return true
- }
+ }
+ for _, e := range p.oe {
+ switch e.DataAtom {
+ case a.Dd, a.Dt, a.Li, a.Optgroup, a.Option, a.P, a.Rb, a.Rp, a.Rt, a.Rtc, a.Tbody, a.Td, a.Tfoot, a.Th,
+ a.Thead, a.Tr, a.Body, a.Html:
+ default:
+ return true
}
}
}
@@ -1221,9 +1191,15 @@ func (p *parser) inBodyEndTagFormatting(tagAtom a.Atom, tagName string) {
// Once the code successfully parses the comprehensive test suite, we should
// refactor this code to be more idiomatic.
- // Steps 1-4. The outer loop.
+ // Steps 1-2
+ if current := p.oe.top(); current.Data == tagName && p.afe.index(current) == -1 {
+ p.oe.pop()
+ return
+ }
+
+ // Steps 3-5. The outer loop.
for i := 0; i < 8; i++ {
- // Step 5. Find the formatting element.
+ // Step 6. Find the formatting element.
var formattingElement *Node
for j := len(p.afe) - 1; j >= 0; j-- {
if p.afe[j].Type == scopeMarkerNode {
@@ -1238,17 +1214,22 @@ func (p *parser) inBodyEndTagFormatting(tagAtom a.Atom, tagName string) {
p.inBodyEndTagOther(tagAtom, tagName)
return
}
+
+ // Step 7. Ignore the tag if formatting element is not in the stack of open elements.
feIndex := p.oe.index(formattingElement)
if feIndex == -1 {
p.afe.remove(formattingElement)
return
}
+ // Step 8. Ignore the tag if formatting element is not in the scope.
if !p.elementInScope(defaultScope, tagAtom) {
// Ignore the tag.
return
}
- // Steps 9-10. Find the furthest block.
+ // Step 9. This step is omitted because it's just a parse error but no need to return.
+
+ // Steps 10-11. Find the furthest block.
var furthestBlock *Node
for _, e := range p.oe[feIndex:] {
if isSpecialElement(e) {
@@ -1265,47 +1246,65 @@ func (p *parser) inBodyEndTagFormatting(tagAtom a.Atom, tagName string) {
return
}
- // Steps 11-12. Find the common ancestor and bookmark node.
+ // Steps 12-13. Find the common ancestor and bookmark node.
commonAncestor := p.oe[feIndex-1]
bookmark := p.afe.index(formattingElement)
- // Step 13. The inner loop. Find the lastNode to reparent.
+ // Step 14. The inner loop. Find the lastNode to reparent.
lastNode := furthestBlock
node := furthestBlock
x := p.oe.index(node)
- // Steps 13.1-13.2
- for j := 0; j < 3; j++ {
- // Step 13.3.
+ // Step 14.1.
+ j := 0
+ for {
+ // Step 14.2.
+ j++
+ // Step. 14.3.
x--
node = p.oe[x]
- // Step 13.4 - 13.5.
+ // Step 14.4. Go to the next step if node is formatting element.
+ if node == formattingElement {
+ break
+ }
+ // Step 14.5. Remove node from the list of active formatting elements if
+ // inner loop counter is greater than three and node is in the list of
+ // active formatting elements.
+ if ni := p.afe.index(node); j > 3 && ni > -1 {
+ p.afe.remove(node)
+ // If any element of the list of active formatting elements is removed,
+ // we need to take care whether bookmark should be decremented or not.
+ // This is because the value of bookmark may exceed the size of the
+ // list by removing elements from the list.
+ if ni <= bookmark {
+ bookmark--
+ }
+ continue
+ }
+ // Step 14.6. Continue the next inner loop if node is not in the list of
+ // active formatting elements.
if p.afe.index(node) == -1 {
p.oe.remove(node)
continue
}
- // Step 13.6.
- if node == formattingElement {
- break
- }
- // Step 13.7.
+ // Step 14.7.
clone := node.clone()
p.afe[p.afe.index(node)] = clone
p.oe[p.oe.index(node)] = clone
node = clone
- // Step 13.8.
+ // Step 14.8.
if lastNode == furthestBlock {
bookmark = p.afe.index(node) + 1
}
- // Step 13.9.
+ // Step 14.9.
if lastNode.Parent != nil {
lastNode.Parent.RemoveChild(lastNode)
}
node.AppendChild(lastNode)
- // Step 13.10.
+ // Step 14.10.
lastNode = node
}
- // Step 14. Reparent lastNode to the common ancestor,
+ // Step 15. Reparent lastNode to the common ancestor,
// or for misnested table nodes, to the foster parent.
if lastNode.Parent != nil {
lastNode.Parent.RemoveChild(lastNode)
@@ -1317,13 +1316,13 @@ func (p *parser) inBodyEndTagFormatting(tagAtom a.Atom, tagName string) {
commonAncestor.AppendChild(lastNode)
}
- // Steps 15-17. Reparent nodes from the furthest block's children
+ // Steps 16-18. Reparent nodes from the furthest block's children
// to a clone of the formatting element.
clone := formattingElement.clone()
reparentChildren(clone, furthestBlock)
furthestBlock.AppendChild(clone)
- // Step 18. Fix up the list of active formatting elements.
+ // Step 19. Fix up the list of active formatting elements.
if oldLoc := p.afe.index(formattingElement); oldLoc != -1 && oldLoc < bookmark {
// Move the bookmark with the rest of the list.
bookmark--
@@ -1331,7 +1330,7 @@ func (p *parser) inBodyEndTagFormatting(tagAtom a.Atom, tagName string) {
p.afe.remove(formattingElement)
p.afe.insert(bookmark, clone)
- // Step 19. Fix up the stack of open elements.
+ // Step 20. Fix up the stack of open elements.
p.oe.remove(formattingElement)
p.oe.insert(p.oe.index(furthestBlock)+1, clone)
}
@@ -1502,14 +1501,13 @@ func inCaptionIM(p *parser) bool {
case StartTagToken:
switch p.tok.DataAtom {
case a.Caption, a.Col, a.Colgroup, a.Tbody, a.Td, a.Tfoot, a.Thead, a.Tr:
- if p.popUntil(tableScope, a.Caption) {
- p.clearActiveFormattingElements()
- p.im = inTableIM
- return false
- } else {
+ if !p.popUntil(tableScope, a.Caption) {
// Ignore the token.
return true
}
+ p.clearActiveFormattingElements()
+ p.im = inTableIM
+ return false
case a.Select:
p.reconstructActiveFormattingElements()
p.addElement()
@@ -1526,14 +1524,13 @@ func inCaptionIM(p *parser) bool {
}
return true
case a.Table:
- if p.popUntil(tableScope, a.Caption) {
- p.clearActiveFormattingElements()
- p.im = inTableIM
- return false
- } else {
+ if !p.popUntil(tableScope, a.Caption) {
// Ignore the token.
return true
}
+ p.clearActiveFormattingElements()
+ p.im = inTableIM
+ return false
case a.Body, a.Col, a.Colgroup, a.Html, a.Tbody, a.Td, a.Tfoot, a.Th, a.Thead, a.Tr:
// Ignore the token.
return true
@@ -1777,12 +1774,11 @@ func inSelectIM(p *parser) bool {
}
p.addElement()
case a.Select:
- if p.popUntil(selectScope, a.Select) {
- p.resetInsertionMode()
- } else {
+ if !p.popUntil(selectScope, a.Select) {
// Ignore the token.
return true
}
+ p.resetInsertionMode()
case a.Input, a.Keygen, a.Textarea:
if p.elementInScope(selectScope, a.Select) {
p.parseImpliedToken(EndTagToken, a.Select, a.Select.String())
@@ -1810,12 +1806,11 @@ func inSelectIM(p *parser) bool {
p.oe = p.oe[:i]
}
case a.Select:
- if p.popUntil(selectScope, a.Select) {
- p.resetInsertionMode()
- } else {
+ if !p.popUntil(selectScope, a.Select) {
// Ignore the token.
return true
}
+ p.resetInsertionMode()
case a.Template:
return inHeadIM(p)
}
@@ -2136,28 +2131,31 @@ func parseForeignContent(p *parser) bool {
Data: p.tok.Data,
})
case StartTagToken:
- b := breakout[p.tok.Data]
- if p.tok.DataAtom == a.Font {
- loop:
- for _, attr := range p.tok.Attr {
- switch attr.Key {
- case "color", "face", "size":
- b = true
- break loop
+ if !p.fragment {
+ b := breakout[p.tok.Data]
+ if p.tok.DataAtom == a.Font {
+ loop:
+ for _, attr := range p.tok.Attr {
+ switch attr.Key {
+ case "color", "face", "size":
+ b = true
+ break loop
+ }
}
}
- }
- if b {
- for i := len(p.oe) - 1; i >= 0; i-- {
- n := p.oe[i]
- if n.Namespace == "" || htmlIntegrationPoint(n) || mathMLTextIntegrationPoint(n) {
- p.oe = p.oe[:i+1]
- break
+ if b {
+ for i := len(p.oe) - 1; i >= 0; i-- {
+ n := p.oe[i]
+ if n.Namespace == "" || htmlIntegrationPoint(n) || mathMLTextIntegrationPoint(n) {
+ p.oe = p.oe[:i+1]
+ break
+ }
}
+ return false
}
- return false
}
- switch p.top().Namespace {
+ current := p.adjustedCurrentNode()
+ switch current.Namespace {
case "math":
adjustAttributeNames(p.tok.Attr, mathMLAttributeAdjustments)
case "svg":
@@ -2172,7 +2170,7 @@ func parseForeignContent(p *parser) bool {
panic("html: bad parser state: unexpected namespace")
}
adjustForeignAttributes(p.tok.Attr)
- namespace := p.top().Namespace
+ namespace := current.Namespace
p.addElement()
p.top().Namespace = namespace
if namespace != "" {
@@ -2201,12 +2199,20 @@ func parseForeignContent(p *parser) bool {
return true
}
+// Section 12.2.4.2.
+func (p *parser) adjustedCurrentNode() *Node {
+ if len(p.oe) == 1 && p.fragment && p.context != nil {
+ return p.context
+ }
+ return p.oe.top()
+}
+
// Section 12.2.6.
func (p *parser) inForeignContent() bool {
if len(p.oe) == 0 {
return false
}
- n := p.oe[len(p.oe)-1]
+ n := p.adjustedCurrentNode()
if n.Namespace == "" {
return false
}
@@ -2341,8 +2347,7 @@ func ParseWithOptions(r io.Reader, opts ...ParseOption) (*Node, error) {
f(p)
}
- err := p.parse()
- if err != nil {
+ if err := p.parse(); err != nil {
return nil, err
}
return p.doc, nil
@@ -2364,7 +2369,6 @@ func ParseFragmentWithOptions(r io.Reader, context *Node, opts ...ParseOption) (
contextTag = context.DataAtom.String()
}
p := &parser{
- tokenizer: NewTokenizerFragment(r, contextTag),
doc: &Node{
Type: DocumentNode,
},
@@ -2372,6 +2376,11 @@ func ParseFragmentWithOptions(r io.Reader, context *Node, opts ...ParseOption) (
fragment: true,
context: context,
}
+ if context != nil && context.Namespace != "" {
+ p.tokenizer = NewTokenizer(r)
+ } else {
+ p.tokenizer = NewTokenizerFragment(r, contextTag)
+ }
for _, f := range opts {
f(p)
@@ -2396,8 +2405,7 @@ func ParseFragmentWithOptions(r io.Reader, context *Node, opts ...ParseOption) (
}
}
- err := p.parse()
- if err != nil {
+ if err := p.parse(); err != nil {
return nil, err
}
diff --git a/vendor/golang.org/x/net/html/render.go b/vendor/golang.org/x/net/html/render.go
index d34564f49..46879c083 100644
--- a/vendor/golang.org/x/net/html/render.go
+++ b/vendor/golang.org/x/net/html/render.go
@@ -134,6 +134,9 @@ func render1(w writer, n *Node) error {
}
}
return w.WriteByte('>')
+ case RawNode:
+ _, err := w.WriteString(n.Data)
+ return err
default:
return errors.New("html: unknown node type")
}
@@ -252,20 +255,19 @@ func writeQuoted(w writer, s string) error {
// Section 12.1.2, "Elements", gives this list of void elements. Void elements
// are those that can't have any contents.
var voidElements = map[string]bool{
- "area": true,
- "base": true,
- "br": true,
- "col": true,
- "command": true,
- "embed": true,
- "hr": true,
- "img": true,
- "input": true,
- "keygen": true,
- "link": true,
- "meta": true,
- "param": true,
- "source": true,
- "track": true,
- "wbr": true,
+ "area": true,
+ "base": true,
+ "br": true,
+ "col": true,
+ "embed": true,
+ "hr": true,
+ "img": true,
+ "input": true,
+ "keygen": true,
+ "link": true,
+ "meta": true,
+ "param": true,
+ "source": true,
+ "track": true,
+ "wbr": true,
}
diff --git a/vendor/golang.org/x/net/html/token.go b/vendor/golang.org/x/net/html/token.go
index ae0d1b05c..877709f99 100644
--- a/vendor/golang.org/x/net/html/token.go
+++ b/vendor/golang.org/x/net/html/token.go
@@ -296,8 +296,7 @@ func (z *Tokenizer) Buffered() []byte {
// too many times in succession.
func readAtLeastOneByte(r io.Reader, b []byte) (int, error) {
for i := 0; i < 100; i++ {
- n, err := r.Read(b)
- if n != 0 || err != nil {
+ if n, err := r.Read(b); n != 0 || err != nil {
return n, err
}
}
diff --git a/vendor/golang.org/x/net/http2/http2.go b/vendor/golang.org/x/net/http2/http2.go
index bdaba1d46..27cc893cc 100644
--- a/vendor/golang.org/x/net/http2/http2.go
+++ b/vendor/golang.org/x/net/http2/http2.go
@@ -19,7 +19,6 @@ package http2 // import "golang.org/x/net/http2"
import (
"bufio"
"crypto/tls"
- "errors"
"fmt"
"io"
"net/http"
@@ -173,11 +172,6 @@ func (s SettingID) String() string {
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 httpguts.ValidHeaderName for the base rules.
//
diff --git a/vendor/golang.org/x/net/http2/server.go b/vendor/golang.org/x/net/http2/server.go
index de31d72b2..bc9e41a1b 100644
--- a/vendor/golang.org/x/net/http2/server.go
+++ b/vendor/golang.org/x/net/http2/server.go
@@ -581,13 +581,10 @@ type stream struct {
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
+ 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
state streamState
resetQueued bool // RST_STREAM queued for write; set by sc.resetStream
gotTrailerHeader bool // HEADER frame for trailers was seen
diff --git a/vendor/golang.org/x/net/http2/transport.go b/vendor/golang.org/x/net/http2/transport.go
index 42ad18144..81778bec6 100644
--- a/vendor/golang.org/x/net/http2/transport.go
+++ b/vendor/golang.org/x/net/http2/transport.go
@@ -93,7 +93,7 @@ type Transport struct {
// send in the initial settings frame. It is how many bytes
// of response headers are allowed. 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
+ // want to advertise an unlimited value to the peer, Transport
// interprets the highest possible value here (0xffffffff or 1<<32-1)
// to mean no limit.
MaxHeaderListSize uint32
@@ -227,6 +227,7 @@ type ClientConn struct {
br *bufio.Reader
fr *Framer
lastActive time.Time
+ lastIdle time.Time // time last idle
// Settings from peer: (also guarded by mu)
maxFrameSize uint32
maxConcurrentStreams uint32
@@ -736,7 +737,8 @@ func (cc *ClientConn) idleStateLocked() (st clientConnIdleState) {
}
st.canTakeNewRequest = cc.goAway == nil && !cc.closed && !cc.closing && maxConcurrentOkay &&
- int64(cc.nextStreamID)+2*int64(cc.pendingRequests) < math.MaxInt32
+ int64(cc.nextStreamID)+2*int64(cc.pendingRequests) < math.MaxInt32 &&
+ !cc.tooIdleLocked()
st.freshConn = cc.nextStreamID == 1 && st.canTakeNewRequest
return
}
@@ -746,6 +748,16 @@ func (cc *ClientConn) canTakeNewRequestLocked() bool {
return st.canTakeNewRequest
}
+// tooIdleLocked reports whether this connection has been been sitting idle
+// for too much wall time.
+func (cc *ClientConn) tooIdleLocked() bool {
+ // The Round(0) strips the monontonic clock reading so the
+ // times are compared based on their wall time. We don't want
+ // to reuse a connection that's been sitting idle during
+ // VM/laptop suspend if monotonic time was also frozen.
+ return cc.idleTimeout != 0 && !cc.lastIdle.IsZero() && time.Since(cc.lastIdle.Round(0)) > cc.idleTimeout
+}
+
// 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,
@@ -1150,6 +1162,7 @@ func (cc *ClientConn) awaitOpenSlotForRequest(req *http.Request) error {
}
return errClientConnUnusable
}
+ cc.lastIdle = time.Time{}
if int64(len(cc.streams))+1 <= int64(cc.maxConcurrentStreams) {
if waitingForConn != nil {
close(waitingForConn)
@@ -1638,6 +1651,7 @@ func (cc *ClientConn) streamByID(id uint32, andRemove bool) *clientStream {
delete(cc.streams, id)
if len(cc.streams) == 0 && cc.idleTimer != nil {
cc.idleTimer.Reset(cc.idleTimeout)
+ cc.lastIdle = time.Now()
}
close(cs.done)
// Wake up checkResetOrDone via clientStream.awaitFlowControl and
@@ -2184,8 +2198,6 @@ func (rl *clientConnReadLoop) processData(f *DataFrame) error {
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.
@@ -2416,7 +2428,6 @@ func (cc *ClientConn) writeStreamReset(streamID uint32, code ErrCode, err error)
var (
errResponseHeaderListSize = errors.New("http2: response header list larger than advertised limit")
errRequestHeaderListSize = errors.New("http2: request header list larger than peer's advertised limit")
- errPseudoTrailers = errors.New("http2: invalid pseudo header in trailers")
)
func (cc *ClientConn) logf(format string, args ...interface{}) {
diff --git a/vendor/golang.org/x/net/internal/socket/norace.go b/vendor/golang.org/x/net/internal/socket/norace.go
new file mode 100644
index 000000000..9519ffbba
--- /dev/null
+++ b/vendor/golang.org/x/net/internal/socket/norace.go
@@ -0,0 +1,12 @@
+// Copyright 2019 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build !race
+
+package socket
+
+func (m *Message) raceRead() {
+}
+func (m *Message) raceWrite() {
+}
diff --git a/vendor/golang.org/x/net/internal/socket/race.go b/vendor/golang.org/x/net/internal/socket/race.go
new file mode 100644
index 000000000..df60c62ff
--- /dev/null
+++ b/vendor/golang.org/x/net/internal/socket/race.go
@@ -0,0 +1,37 @@
+// Copyright 2019 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build race
+
+package socket
+
+import (
+ "runtime"
+ "unsafe"
+)
+
+// This package reads and writes the Message buffers using a
+// direct system call, which the race detector can't see.
+// These functions tell the race detector what is going on during the syscall.
+
+func (m *Message) raceRead() {
+ for _, b := range m.Buffers {
+ if len(b) > 0 {
+ runtime.RaceReadRange(unsafe.Pointer(&b[0]), len(b))
+ }
+ }
+ if b := m.OOB; len(b) > 0 {
+ runtime.RaceReadRange(unsafe.Pointer(&b[0]), len(b))
+ }
+}
+func (m *Message) raceWrite() {
+ for _, b := range m.Buffers {
+ if len(b) > 0 {
+ runtime.RaceWriteRange(unsafe.Pointer(&b[0]), len(b))
+ }
+ }
+ if b := m.OOB; len(b) > 0 {
+ runtime.RaceWriteRange(unsafe.Pointer(&b[0]), len(b))
+ }
+}
diff --git a/vendor/golang.org/x/net/internal/socket/rawconn_mmsg.go b/vendor/golang.org/x/net/internal/socket/rawconn_mmsg.go
index 1f4cb3b36..d01fc4c7d 100644
--- a/vendor/golang.org/x/net/internal/socket/rawconn_mmsg.go
+++ b/vendor/golang.org/x/net/internal/socket/rawconn_mmsg.go
@@ -13,6 +13,9 @@ import (
)
func (c *Conn) recvMsgs(ms []Message, flags int) (int, error) {
+ for i := range ms {
+ ms[i].raceWrite()
+ }
hs := make(mmsghdrs, len(ms))
var parseFn func([]byte, string) (net.Addr, error)
if c.network != "tcp" {
@@ -43,6 +46,9 @@ func (c *Conn) recvMsgs(ms []Message, flags int) (int, error) {
}
func (c *Conn) sendMsgs(ms []Message, flags int) (int, error) {
+ for i := range ms {
+ ms[i].raceRead()
+ }
hs := make(mmsghdrs, len(ms))
var marshalFn func(net.Addr) []byte
if c.network != "tcp" {
diff --git a/vendor/golang.org/x/net/internal/socket/rawconn_msg.go b/vendor/golang.org/x/net/internal/socket/rawconn_msg.go
index a97201181..d5ae3f8e1 100644
--- a/vendor/golang.org/x/net/internal/socket/rawconn_msg.go
+++ b/vendor/golang.org/x/net/internal/socket/rawconn_msg.go
@@ -12,6 +12,7 @@ import (
)
func (c *Conn) recvMsg(m *Message, flags int) error {
+ m.raceWrite()
var h msghdr
vs := make([]iovec, len(m.Buffers))
var sa []byte
@@ -48,6 +49,7 @@ func (c *Conn) recvMsg(m *Message, flags int) error {
}
func (c *Conn) sendMsg(m *Message, flags int) error {
+ m.raceRead()
var h msghdr
vs := make([]iovec, len(m.Buffers))
var sa []byte
diff --git a/vendor/golang.org/x/net/ipv4/helper.go b/vendor/golang.org/x/net/ipv4/helper.go
index b494a2cde..e845a7376 100644
--- a/vendor/golang.org/x/net/ipv4/helper.go
+++ b/vendor/golang.org/x/net/ipv4/helper.go
@@ -13,16 +13,13 @@ import (
)
var (
- errInvalidConn = errors.New("invalid connection")
- errMissingAddress = errors.New("missing address")
- errMissingHeader = errors.New("missing header")
- errNilHeader = errors.New("nil header")
- errHeaderTooShort = errors.New("header too short")
- errExtHeaderTooShort = errors.New("extension header too short")
- errInvalidConnType = errors.New("invalid conn type")
- errNoSuchInterface = errors.New("no such interface")
- errNoSuchMulticastInterface = errors.New("no such multicast interface")
- errNotImplemented = errors.New("not implemented on " + runtime.GOOS + "/" + runtime.GOARCH)
+ errInvalidConn = errors.New("invalid connection")
+ errMissingAddress = errors.New("missing address")
+ errNilHeader = errors.New("nil header")
+ errHeaderTooShort = errors.New("header too short")
+ errExtHeaderTooShort = errors.New("extension header too short")
+ errInvalidConnType = errors.New("invalid conn type")
+ errNotImplemented = errors.New("not implemented on " + runtime.GOOS + "/" + runtime.GOARCH)
// See https://www.freebsd.org/doc/en/books/porters-handbook/versions.html.
freebsdVersion uint32
diff --git a/vendor/golang.org/x/net/ipv4/sys_asmreq.go b/vendor/golang.org/x/net/ipv4/sys_asmreq.go
index c5eaafe96..76d670aca 100644
--- a/vendor/golang.org/x/net/ipv4/sys_asmreq.go
+++ b/vendor/golang.org/x/net/ipv4/sys_asmreq.go
@@ -7,12 +7,15 @@
package ipv4
import (
+ "errors"
"net"
"unsafe"
"golang.org/x/net/internal/socket"
)
+var errNoSuchInterface = errors.New("no such interface")
+
func (so *sockOpt) setIPMreq(c *socket.Conn, ifi *net.Interface, grp net.IP) error {
mreq := ipMreq{Multiaddr: [4]byte{grp[0], grp[1], grp[2], grp[3]}}
if err := setIPMreqInterface(&mreq, ifi); err != nil {
diff --git a/vendor/golang.org/x/net/ipv4/sys_bpf.go b/vendor/golang.org/x/net/ipv4/sys_bpf.go
index 9f30b7308..5c03dce3b 100644
--- a/vendor/golang.org/x/net/ipv4/sys_bpf.go
+++ b/vendor/golang.org/x/net/ipv4/sys_bpf.go
@@ -11,13 +11,14 @@ import (
"golang.org/x/net/bpf"
"golang.org/x/net/internal/socket"
+ "golang.org/x/sys/unix"
)
func (so *sockOpt) setAttachFilter(c *socket.Conn, f []bpf.RawInstruction) error {
- prog := sockFProg{
+ prog := unix.SockFprog{
Len: uint16(len(f)),
- Filter: (*sockFilter)(unsafe.Pointer(&f[0])),
+ Filter: (*unix.SockFilter)(unsafe.Pointer(&f[0])),
}
- b := (*[sizeofSockFprog]byte)(unsafe.Pointer(&prog))[:sizeofSockFprog]
+ b := (*[unix.SizeofSockFprog]byte)(unsafe.Pointer(&prog))[:unix.SizeofSockFprog]
return so.Set(c, b)
}
diff --git a/vendor/golang.org/x/net/ipv4/sys_linux.go b/vendor/golang.org/x/net/ipv4/sys_linux.go
index 60defe132..cf755c7fb 100644
--- a/vendor/golang.org/x/net/ipv4/sys_linux.go
+++ b/vendor/golang.org/x/net/ipv4/sys_linux.go
@@ -11,6 +11,7 @@ import (
"golang.org/x/net/internal/iana"
"golang.org/x/net/internal/socket"
+ "golang.org/x/sys/unix"
)
var (
@@ -35,7 +36,7 @@ var (
ssoLeaveSourceGroup: {Option: socket.Option{Level: iana.ProtocolIP, Name: sysMCAST_LEAVE_SOURCE_GROUP, Len: sizeofGroupSourceReq}, typ: ssoTypeGroupSourceReq},
ssoBlockSourceGroup: {Option: socket.Option{Level: iana.ProtocolIP, Name: sysMCAST_BLOCK_SOURCE, Len: sizeofGroupSourceReq}, typ: ssoTypeGroupSourceReq},
ssoUnblockSourceGroup: {Option: socket.Option{Level: iana.ProtocolIP, Name: sysMCAST_UNBLOCK_SOURCE, Len: sizeofGroupSourceReq}, typ: ssoTypeGroupSourceReq},
- ssoAttachFilter: {Option: socket.Option{Level: sysSOL_SOCKET, Name: sysSO_ATTACH_FILTER, Len: sizeofSockFprog}},
+ ssoAttachFilter: {Option: socket.Option{Level: unix.SOL_SOCKET, Name: unix.SO_ATTACH_FILTER, Len: unix.SizeofSockFprog}},
}
)
diff --git a/vendor/golang.org/x/net/ipv4/zsys_linux_386.go b/vendor/golang.org/x/net/ipv4/zsys_linux_386.go
index 43ef8e592..1c7fdfa13 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_linux_386.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_linux_386.go
@@ -55,9 +55,6 @@ const (
sysSO_EE_ORIGIN_TXSTATUS = 0x4
sysSO_EE_ORIGIN_TIMESTAMPING = 0x4
- sysSOL_SOCKET = 0x1
- sysSO_ATTACH_FILTER = 0x1a
-
sizeofKernelSockaddrStorage = 0x80
sizeofSockaddrInet = 0x10
sizeofInetPktinfo = 0xc
@@ -70,8 +67,6 @@ const (
sizeofGroupSourceReq = 0x104
sizeofICMPFilter = 0x4
-
- sizeofSockFprog = 0x8
)
type kernelSockaddrStorage struct {
@@ -133,16 +128,3 @@ type groupSourceReq struct {
type icmpFilter struct {
Data uint32
}
-
-type sockFProg struct {
- Len uint16
- Pad_cgo_0 [2]byte
- Filter *sockFilter
-}
-
-type sockFilter struct {
- Code uint16
- Jt uint8
- Jf uint8
- K uint32
-}
diff --git a/vendor/golang.org/x/net/ipv4/zsys_linux_amd64.go b/vendor/golang.org/x/net/ipv4/zsys_linux_amd64.go
index ee8204da4..a04e78518 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_linux_amd64.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_linux_amd64.go
@@ -55,9 +55,6 @@ const (
sysSO_EE_ORIGIN_TXSTATUS = 0x4
sysSO_EE_ORIGIN_TIMESTAMPING = 0x4
- sysSOL_SOCKET = 0x1
- sysSO_ATTACH_FILTER = 0x1a
-
sizeofKernelSockaddrStorage = 0x80
sizeofSockaddrInet = 0x10
sizeofInetPktinfo = 0xc
@@ -70,8 +67,6 @@ const (
sizeofGroupSourceReq = 0x108
sizeofICMPFilter = 0x4
-
- sizeofSockFprog = 0x10
)
type kernelSockaddrStorage struct {
@@ -135,16 +130,3 @@ type groupSourceReq struct {
type icmpFilter struct {
Data uint32
}
-
-type sockFProg struct {
- Len uint16
- Pad_cgo_0 [6]byte
- Filter *sockFilter
-}
-
-type sockFilter struct {
- Code uint16
- Jt uint8
- Jf uint8
- K uint32
-}
diff --git a/vendor/golang.org/x/net/ipv4/zsys_linux_arm.go b/vendor/golang.org/x/net/ipv4/zsys_linux_arm.go
index 43ef8e592..1c7fdfa13 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_linux_arm.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_linux_arm.go
@@ -55,9 +55,6 @@ const (
sysSO_EE_ORIGIN_TXSTATUS = 0x4
sysSO_EE_ORIGIN_TIMESTAMPING = 0x4
- sysSOL_SOCKET = 0x1
- sysSO_ATTACH_FILTER = 0x1a
-
sizeofKernelSockaddrStorage = 0x80
sizeofSockaddrInet = 0x10
sizeofInetPktinfo = 0xc
@@ -70,8 +67,6 @@ const (
sizeofGroupSourceReq = 0x104
sizeofICMPFilter = 0x4
-
- sizeofSockFprog = 0x8
)
type kernelSockaddrStorage struct {
@@ -133,16 +128,3 @@ type groupSourceReq struct {
type icmpFilter struct {
Data uint32
}
-
-type sockFProg struct {
- Len uint16
- Pad_cgo_0 [2]byte
- Filter *sockFilter
-}
-
-type sockFilter struct {
- Code uint16
- Jt uint8
- Jf uint8
- K uint32
-}
diff --git a/vendor/golang.org/x/net/ipv4/zsys_linux_arm64.go b/vendor/golang.org/x/net/ipv4/zsys_linux_arm64.go
index ee8204da4..a04e78518 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_linux_arm64.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_linux_arm64.go
@@ -55,9 +55,6 @@ const (
sysSO_EE_ORIGIN_TXSTATUS = 0x4
sysSO_EE_ORIGIN_TIMESTAMPING = 0x4
- sysSOL_SOCKET = 0x1
- sysSO_ATTACH_FILTER = 0x1a
-
sizeofKernelSockaddrStorage = 0x80
sizeofSockaddrInet = 0x10
sizeofInetPktinfo = 0xc
@@ -70,8 +67,6 @@ const (
sizeofGroupSourceReq = 0x108
sizeofICMPFilter = 0x4
-
- sizeofSockFprog = 0x10
)
type kernelSockaddrStorage struct {
@@ -135,16 +130,3 @@ type groupSourceReq struct {
type icmpFilter struct {
Data uint32
}
-
-type sockFProg struct {
- Len uint16
- Pad_cgo_0 [6]byte
- Filter *sockFilter
-}
-
-type sockFilter struct {
- Code uint16
- Jt uint8
- Jf uint8
- K uint32
-}
diff --git a/vendor/golang.org/x/net/ipv4/zsys_linux_mips.go b/vendor/golang.org/x/net/ipv4/zsys_linux_mips.go
index 43ef8e592..1c7fdfa13 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_linux_mips.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_linux_mips.go
@@ -55,9 +55,6 @@ const (
sysSO_EE_ORIGIN_TXSTATUS = 0x4
sysSO_EE_ORIGIN_TIMESTAMPING = 0x4
- sysSOL_SOCKET = 0x1
- sysSO_ATTACH_FILTER = 0x1a
-
sizeofKernelSockaddrStorage = 0x80
sizeofSockaddrInet = 0x10
sizeofInetPktinfo = 0xc
@@ -70,8 +67,6 @@ const (
sizeofGroupSourceReq = 0x104
sizeofICMPFilter = 0x4
-
- sizeofSockFprog = 0x8
)
type kernelSockaddrStorage struct {
@@ -133,16 +128,3 @@ type groupSourceReq struct {
type icmpFilter struct {
Data uint32
}
-
-type sockFProg struct {
- Len uint16
- Pad_cgo_0 [2]byte
- Filter *sockFilter
-}
-
-type sockFilter struct {
- Code uint16
- Jt uint8
- Jf uint8
- K uint32
-}
diff --git a/vendor/golang.org/x/net/ipv4/zsys_linux_mips64.go b/vendor/golang.org/x/net/ipv4/zsys_linux_mips64.go
index ee8204da4..a04e78518 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_linux_mips64.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_linux_mips64.go
@@ -55,9 +55,6 @@ const (
sysSO_EE_ORIGIN_TXSTATUS = 0x4
sysSO_EE_ORIGIN_TIMESTAMPING = 0x4
- sysSOL_SOCKET = 0x1
- sysSO_ATTACH_FILTER = 0x1a
-
sizeofKernelSockaddrStorage = 0x80
sizeofSockaddrInet = 0x10
sizeofInetPktinfo = 0xc
@@ -70,8 +67,6 @@ const (
sizeofGroupSourceReq = 0x108
sizeofICMPFilter = 0x4
-
- sizeofSockFprog = 0x10
)
type kernelSockaddrStorage struct {
@@ -135,16 +130,3 @@ type groupSourceReq struct {
type icmpFilter struct {
Data uint32
}
-
-type sockFProg struct {
- Len uint16
- Pad_cgo_0 [6]byte
- Filter *sockFilter
-}
-
-type sockFilter struct {
- Code uint16
- Jt uint8
- Jf uint8
- K uint32
-}
diff --git a/vendor/golang.org/x/net/ipv4/zsys_linux_mips64le.go b/vendor/golang.org/x/net/ipv4/zsys_linux_mips64le.go
index ee8204da4..a04e78518 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_linux_mips64le.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_linux_mips64le.go
@@ -55,9 +55,6 @@ const (
sysSO_EE_ORIGIN_TXSTATUS = 0x4
sysSO_EE_ORIGIN_TIMESTAMPING = 0x4
- sysSOL_SOCKET = 0x1
- sysSO_ATTACH_FILTER = 0x1a
-
sizeofKernelSockaddrStorage = 0x80
sizeofSockaddrInet = 0x10
sizeofInetPktinfo = 0xc
@@ -70,8 +67,6 @@ const (
sizeofGroupSourceReq = 0x108
sizeofICMPFilter = 0x4
-
- sizeofSockFprog = 0x10
)
type kernelSockaddrStorage struct {
@@ -135,16 +130,3 @@ type groupSourceReq struct {
type icmpFilter struct {
Data uint32
}
-
-type sockFProg struct {
- Len uint16
- Pad_cgo_0 [6]byte
- Filter *sockFilter
-}
-
-type sockFilter struct {
- Code uint16
- Jt uint8
- Jf uint8
- K uint32
-}
diff --git a/vendor/golang.org/x/net/ipv4/zsys_linux_mipsle.go b/vendor/golang.org/x/net/ipv4/zsys_linux_mipsle.go
index 43ef8e592..1c7fdfa13 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_linux_mipsle.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_linux_mipsle.go
@@ -55,9 +55,6 @@ const (
sysSO_EE_ORIGIN_TXSTATUS = 0x4
sysSO_EE_ORIGIN_TIMESTAMPING = 0x4
- sysSOL_SOCKET = 0x1
- sysSO_ATTACH_FILTER = 0x1a
-
sizeofKernelSockaddrStorage = 0x80
sizeofSockaddrInet = 0x10
sizeofInetPktinfo = 0xc
@@ -70,8 +67,6 @@ const (
sizeofGroupSourceReq = 0x104
sizeofICMPFilter = 0x4
-
- sizeofSockFprog = 0x8
)
type kernelSockaddrStorage struct {
@@ -133,16 +128,3 @@ type groupSourceReq struct {
type icmpFilter struct {
Data uint32
}
-
-type sockFProg struct {
- Len uint16
- Pad_cgo_0 [2]byte
- Filter *sockFilter
-}
-
-type sockFilter struct {
- Code uint16
- Jt uint8
- Jf uint8
- K uint32
-}
diff --git a/vendor/golang.org/x/net/ipv4/zsys_linux_ppc.go b/vendor/golang.org/x/net/ipv4/zsys_linux_ppc.go
index fa1b6bc61..3c5ea5473 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_linux_ppc.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_linux_ppc.go
@@ -55,9 +55,6 @@ const (
sysSO_EE_ORIGIN_TXSTATUS = 0x4
sysSO_EE_ORIGIN_TIMESTAMPING = 0x4
- sysSOL_SOCKET = 0x1
- sysSO_ATTACH_FILTER = 0x1a
-
sizeofKernelSockaddrStorage = 0x80
sizeofSockaddrInet = 0x10
sizeofInetPktinfo = 0xc
@@ -70,8 +67,6 @@ const (
sizeofGroupSourceReq = 0x104
sizeofICMPFilter = 0x4
-
- sizeofSockFprog = 0x8
)
type kernelSockaddrStorage struct {
@@ -133,16 +128,3 @@ type groupSourceReq struct {
type icmpFilter struct {
Data uint32
}
-
-type sockFProg struct {
- Len uint16
- Pad_cgo_0 [2]byte
- Filter *sockFilter
-}
-
-type sockFilter struct {
- Code uint16
- Jt uint8
- Jf uint8
- K uint32
-}
diff --git a/vendor/golang.org/x/net/ipv4/zsys_linux_ppc64.go b/vendor/golang.org/x/net/ipv4/zsys_linux_ppc64.go
index ee8204da4..a04e78518 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_linux_ppc64.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_linux_ppc64.go
@@ -55,9 +55,6 @@ const (
sysSO_EE_ORIGIN_TXSTATUS = 0x4
sysSO_EE_ORIGIN_TIMESTAMPING = 0x4
- sysSOL_SOCKET = 0x1
- sysSO_ATTACH_FILTER = 0x1a
-
sizeofKernelSockaddrStorage = 0x80
sizeofSockaddrInet = 0x10
sizeofInetPktinfo = 0xc
@@ -70,8 +67,6 @@ const (
sizeofGroupSourceReq = 0x108
sizeofICMPFilter = 0x4
-
- sizeofSockFprog = 0x10
)
type kernelSockaddrStorage struct {
@@ -135,16 +130,3 @@ type groupSourceReq struct {
type icmpFilter struct {
Data uint32
}
-
-type sockFProg struct {
- Len uint16
- Pad_cgo_0 [6]byte
- Filter *sockFilter
-}
-
-type sockFilter struct {
- Code uint16
- Jt uint8
- Jf uint8
- K uint32
-}
diff --git a/vendor/golang.org/x/net/ipv4/zsys_linux_ppc64le.go b/vendor/golang.org/x/net/ipv4/zsys_linux_ppc64le.go
index ee8204da4..a04e78518 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_linux_ppc64le.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_linux_ppc64le.go
@@ -55,9 +55,6 @@ const (
sysSO_EE_ORIGIN_TXSTATUS = 0x4
sysSO_EE_ORIGIN_TIMESTAMPING = 0x4
- sysSOL_SOCKET = 0x1
- sysSO_ATTACH_FILTER = 0x1a
-
sizeofKernelSockaddrStorage = 0x80
sizeofSockaddrInet = 0x10
sizeofInetPktinfo = 0xc
@@ -70,8 +67,6 @@ const (
sizeofGroupSourceReq = 0x108
sizeofICMPFilter = 0x4
-
- sizeofSockFprog = 0x10
)
type kernelSockaddrStorage struct {
@@ -135,16 +130,3 @@ type groupSourceReq struct {
type icmpFilter struct {
Data uint32
}
-
-type sockFProg struct {
- Len uint16
- Pad_cgo_0 [6]byte
- Filter *sockFilter
-}
-
-type sockFilter struct {
- Code uint16
- Jt uint8
- Jf uint8
- K uint32
-}
diff --git a/vendor/golang.org/x/net/ipv4/zsys_linux_riscv64.go b/vendor/golang.org/x/net/ipv4/zsys_linux_riscv64.go
index 0c0d48012..e626134a8 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_linux_riscv64.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_linux_riscv64.go
@@ -57,9 +57,6 @@ const (
sysSO_EE_ORIGIN_TXSTATUS = 0x4
sysSO_EE_ORIGIN_TIMESTAMPING = 0x4
- sysSOL_SOCKET = 0x1
- sysSO_ATTACH_FILTER = 0x1a
-
sizeofKernelSockaddrStorage = 0x80
sizeofSockaddrInet = 0x10
sizeofInetPktinfo = 0xc
@@ -72,8 +69,6 @@ const (
sizeofGroupSourceReq = 0x108
sizeofICMPFilter = 0x4
-
- sizeofSockFprog = 0x10
)
type kernelSockaddrStorage struct {
@@ -137,15 +132,3 @@ type groupSourceReq struct {
type icmpFilter struct {
Data uint32
}
-
-type sockFProg struct {
- Len uint16
- Filter *sockFilter
-}
-
-type sockFilter struct {
- Code uint16
- Jt uint8
- Jf uint8
- K uint32
-}
diff --git a/vendor/golang.org/x/net/ipv4/zsys_linux_s390x.go b/vendor/golang.org/x/net/ipv4/zsys_linux_s390x.go
index ee8204da4..a04e78518 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_linux_s390x.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_linux_s390x.go
@@ -55,9 +55,6 @@ const (
sysSO_EE_ORIGIN_TXSTATUS = 0x4
sysSO_EE_ORIGIN_TIMESTAMPING = 0x4
- sysSOL_SOCKET = 0x1
- sysSO_ATTACH_FILTER = 0x1a
-
sizeofKernelSockaddrStorage = 0x80
sizeofSockaddrInet = 0x10
sizeofInetPktinfo = 0xc
@@ -70,8 +67,6 @@ const (
sizeofGroupSourceReq = 0x108
sizeofICMPFilter = 0x4
-
- sizeofSockFprog = 0x10
)
type kernelSockaddrStorage struct {
@@ -135,16 +130,3 @@ type groupSourceReq struct {
type icmpFilter struct {
Data uint32
}
-
-type sockFProg struct {
- Len uint16
- Pad_cgo_0 [6]byte
- Filter *sockFilter
-}
-
-type sockFilter struct {
- Code uint16
- Jt uint8
- Jf uint8
- K uint32
-}
diff --git a/vendor/golang.org/x/net/publicsuffix/table.go b/vendor/golang.org/x/net/publicsuffix/table.go
index c1347ced4..8eb0495ed 100644
--- a/vendor/golang.org/x/net/publicsuffix/table.go
+++ b/vendor/golang.org/x/net/publicsuffix/table.go
@@ -2,7 +2,7 @@
package publicsuffix
-const version = "publicsuffix.org's public_suffix_list.dat, git revision 6f03f42a65d006c8ae657f125f14fb8f9d3337f4 (2019-05-31T16:38:49Z)"
+const version = "publicsuffix.org's public_suffix_list.dat, git revision 41cb01612341c7ce3bcdd0cc4e696ae9f6416600 (2019-11-08T08:48:39Z)"
const (
nodesBitsChildren = 10
@@ -23,486 +23,487 @@ const (
)
// numTLD is the number of top level domains.
-const numTLD = 1539
+const numTLD = 1538
// Text is the combined text of all labels.
-const text = "9guacuiababia-goracleaningroks-theatree164-baltimore-og-romsdali" +
- "payboltateshinanomachimkentateyamagrocerybnikeisenbahnatuurweten" +
- "schappenaumburggfarmerseineastcoastaldefenceatonsbergjemnes3-ap-" +
- "southeast-2ix4432-balsfjordd-dnsiskinkyotobetsulikes-piedmontice" +
- "llodingenaturhistorisches3-ap-south-16-b-datainaioirasebastopolo" +
- "gyeongnamegawakembuchikumagayagawakkanaibetsubamericanfamilydscl" +
- "oudeitychyattorneyagawakayamadridvagsoyereplanetariumemsettsuppo" +
- "rtashkentatamotors3-ap-northeast-2038bloxcms3-website-us-east-1b" +
- "luedancebmoattachments3-website-us-west-1bms3-website-us-west-2b" +
- "mwegroweibolognagasakimobetsuitaipeiheijindianmarketinglitchasel" +
- "jeepsongdalenviknagatorockartuzyuzawabnpparibaselburgliwicebnrwe" +
- "irbomloabathsbcatholicaxiashorokanaiebondray-dnsupdaternopilawat" +
- "ches5ybonnishiharabookinghostfoldnavyboomlahppiacenzachpomorskie" +
- "nishiizunazukindigenaklodzkochikushinonsenergyboschaefflerdalimi" +
- "tedrayddnsfreebox-osascoli-picenordre-landraydnsakyotanabellunor" +
- "d-aurdalvdalaskanittedallasalleangaviikaascolipicenoduminamidait" +
- "omandalimoldeloittemp-dnsalangenishikatakazakindustriabostikarel" +
- "iancebostonakijinsekikogentinglobalashovhachinohedmarkariyamelbo" +
- "urnebotanicalgardenishikatsuragit-reposalondonetskarlsoybotanicg" +
- "ardenishikawazukamisunagawabotanybouncemerckmsdnipropetrovskjerv" +
- "oyagebounty-fullensakerrypropertiesaltdalinkyard-cloudnsaludrive" +
- "fsnillfjordrobaknoluoktagajobojindustriesteamfamberkeleyboutique" +
- "becheltenham-radio-openairbusantiquest-a-la-maisondre-landroidru" +
- "dunsalvadordalibabalestrandabergamo-siemensncfdupontariodejaneir" +
- "odoybozen-sudtirolivornobozen-suedtirolombardynaliaskimitsubatam" +
- "ibugattiffanynysadoes-itvedestrandurbanamexnetlifyinfinitintuitj" +
- "omemorialomzaporizhzhegurinuyamashinatsukigatakasakitchenishimer" +
- "abplacedogawarabikomaezakirunorddalondrinamsskoganeinvestmentsal" +
- "zburgloboavistaprintelligencebrandywinevalleybrasiliabrindisiben" +
- "ikinderoybristoloseyouriparliamentjxfinitybritishcolumbialowieza" +
- "ganquanpachigasakievennodesabaerobaticketsamegawabroadcastlecler" +
- "chernihivgubananarepublicasadelamonedatingjesdalavangenayorovnoc" +
- "eanographics3-fips-us-gov-west-1broadwaybroke-itkmaxxjavald-aost" +
- "aplesamnangerbrokerbronnoysundurhamburglogowfarmsteadweberbrothe" +
- "rmesaverdealstahaugesunderseaportsinfolldalorenskogloppenzaolbia" +
- "-tempio-olbiatempioolbialystokkepnogataijinzais-a-candidatebrows" +
- "ersafetymarketsampalacebrumunddalotenkawabrunelasticbeanstalkarm" +
- "oybrusselsamsclubartowhalinglugmbhartipscbgminakamichiharabruxel" +
- "lesamsungmodalenishinomiyashironobryansklepparmattelefonicarboni" +
- "a-iglesias-carboniaiglesiascarboniabrynewjerseybuskerudinewportl" +
- "ligatksatxn--0trq7p7nnishinoomotegobuzentsujiiebuzzlgmxn--11b4c3" +
- "dynathomebuiltmparochernigovernmentoyosatoyokawabwhoswhokksundyn" +
- "dns-at-homedepotenzamamidsundyndns-at-workisboringrimstadyndns-b" +
- "logdnsandnessjoenishinoshimatsuurabzhitomirumalatvuopmicrolighti" +
- "ngripebzzparsandoycolognexus-2colonialwilliamsburgrongausdalucan" +
- "iacoloradoplateaudiocolumbusheycommunecommunitycomoarekecomparem" +
- "arkerryhotelsaobernardocompute-1computerhistoryofscience-fiction" +
- "comsecuritytacticsaogoncartiercondoshichinohealth-carereforminam" +
- "iiselectraniandriabarlettatraniandriaconferenceconstructionconsu" +
- "ladonnakamagayahabaghdadyndns-wikirkenesaotomembersapporoconsult" +
- "anthropologyconsultingrossetouchihayaakasakawaharacontactranoyco" +
- "ntagematsubaracontemporaryarteducationalchikugodaddyn-vpndnsarde" +
- "gnaroycontractorskenconventureshinodebalancertificationcookingch" +
- "annelsdvrdnsfor-better-thanawatchandclockashiharacooluccapitalon" +
- "ewspapercooperativano-frankivskolegallocus-3copenhagencyclopedic" +
- "hiryukyuragifuchungbukharaumalborkarpaczeladzwiiheyakumoduminami" +
- "echizenishiokoppegardyndns-freeboxosloftranakanojoetsuwanouchiku" +
- "jogaszkolajollamericanexpressexycorsicafederationcorvettemasekas" +
- "hiwaracosenzakopanecosidnshome-webserverdalucernecostumedio-camp" +
- "idano-mediocampidanomediocouchpotatofriesardiniacouncilukowildli" +
- "fedorainfraclouderacouponsarluroycq-acranbrookuwanalyticsarpsbor" +
- "groundhandlingroznycrdyndns-workshoppingrpasadenarashinocreditca" +
- "rdyndns1creditunioncremonashgabadaddjaguarqhachirogatakanezawacr" +
- "ewilliamhillutskashiwazakiyosatokamachintaifun-dnsdojolstercrick" +
- "etrzyncrimeast-kazakhstanangercrotonecrownipassagensarufutsunomi" +
- "yawakasaikaitakoelncrsvpassenger-associationcruisesasayamacrypto" +
- "nomichigangwoncuisinellair-traffic-controlleyculturalcentertainm" +
- "entransportecuneocupcakecuritibahcavuotnagaivuotnagaokakyotambab" +
- "yeniwaizumiotsukumiyamazonawsagaeroclubmedecincinnationwidealeri" +
- "mo-i-ranaamesjevuemielno-ipifonychitachinakagawashtenawdev-myqna" +
- "pcloudcontrolledekagaminogiftsandvikcoromantovalle-d-aostathelle" +
- "cxn--12c1fe0bradescorporationcymrussiacyonabaruminamiizukamiokam" +
- "eokameyamatotakadacyoutheworkpccwinbanzaicloudcontrolappleborkda" +
- "lpha-myqnapcloud66ferrerotikagoshimalselvendrelluzernfetsundynse" +
- "rvebbsaskatchewanfguitarsavannahgafhvalerfidoomdnstracefieldynuc" +
- "onnectransurluxembourgruefigueresinstagingujohanamakinoharafilat" +
- "eliafilegear-audnedalnfilegear-deatnurembergulenfilegear-gbizfil" +
- "egear-iefilegear-jpmorganfilegear-sgunmaoris-a-financialadvisor-" +
- "aurdalvivanovoldafilminamiminowafinalfinancefineartsaves-the-wha" +
- "lessandria-trani-barletta-andriatranibarlettaandriafinlandynv6fi" +
- "nnoyfirebaseapplinzis-a-geekasukabedzin-berlindasdaburfirenzefir" +
- "estonefirmdalegokasells-itravelchannelfishingoldpoint2thisamitsu" +
- "kefitjarvodkafjordynvpnplus-4fitnessettlementravelersinsurancefj" +
- "alerflesberguovdageaidnulminamioguni5flickragerogersavonarusawaf" +
- "lightsaxoflirfloginlinefloraflorencefloridattorelayfloripaderbor" +
- "nfloristanohatakahamalvikasumigaurawa-mazowszextraspace-to-renta" +
- "lstomakomaibaraflorokunohealthcareerschoenbrunnflowerschokokeksc" +
- "hokoladenfltrdyroyrvikinguidegreeflynnhosting-clusterflynnhubarc" +
- "laycards3-sa-east-1fndfor-ourfor-someeresistancefor-theaterforex" +
- "rothadanorthwesternmutualforgotdnscholarshipschoolforli-cesena-f" +
- "orlicesenaforlikescandyn53forsaleikangerforsandasuologoipatriafo" +
- "rtalfortmissoulancashirecreationfortworthadselfipaviancarrdforum" +
- "zfosneschulefotaris-a-greenfoxfordebianfozorafredrikstadtvschwar" +
- "zgwangjuniperfreeddnsgeekgalaxyfreedesktopocznore-og-uvdalfreema" +
- "sonryfreesitevadsoccertmgretakahashimamakirovogradoyfreetlschwei" +
- "zfreiburgushikamifuranorth-kazakhstanfreightrentin-sud-tirolfres" +
- "eniuscountryestateofdelawarezzoologyfribourgwiddleitungsenfriuli" +
- "-v-giuliafriuli-ve-giuliafriuli-vegiuliafriuli-venezia-giuliafri" +
- "uli-veneziagiuliafriuli-vgiuliafriuliv-giuliafriulive-giuliafriu" +
- "livegiuliafriulivenezia-giuliafriuliveneziagiuliafriulivgiuliafr" +
- "lfrogansciencecentersciencehistoryfrognfrolandfrom-akrehamnfrom-" +
- "alfrom-arfrom-azimuthdfcbankasuyanagawafrom-capebretonamicrosoft" +
- "bankaszubyfrom-codyn-o-saurlandescientistordalfrom-ctrentin-sudt" +
- "irolfrom-dchitosetogitsuldalottefrom-dedyn-berlincolnfrom-flande" +
- "rscjohnsonfrom-gaulardalfrom-hichisochildrensgardenfrom-iafrom-i" +
- "dfrom-ilfrom-in-brbarclays3-us-east-2from-kscotlandfrom-kyowaria" +
- "sahikawawindmillfrom-lancasterfrom-mamurogawafrom-mdfrom-meethno" +
- "logyfrom-mifunefrom-mnfrom-mochizukiryuohdattowebcampinashikimin" +
- "ohostre-totendofinternet-dnsaliasiafrom-mscrapper-sitefrom-mtnfr" +
- "om-nctulanciafrom-ndfrom-nefrom-nh-serveblogsiteleafamilycompany" +
- "minamisanrikubetsurfastly-terrariuminamimakis-a-designerfrom-nja" +
- "worznoticiasnesoddenmarkhangelskjakdnepropetrovskiervaapsteierma" +
- "rkatowicefrom-nminamitanefrom-nvalled-aostavangerfrom-nyfrom-ohk" +
- "urafrom-oketogurafrom-orfrom-padovaksdalfrom-pratohmangolffanscr" +
- "appingxn--12co0c3b4evalleaostaticscrysechocolatelemarkaruizawafr" +
- "om-ris-a-gurulvikatsushikabeeldengeluidfrom-schmidtre-gauldalfro" +
- "m-sdfrom-tnfrom-txn--1ck2e1barefootballfinanzgoraustraliaisondri" +
- "obranconagawalbrzycharitysfjordds3-eu-west-1from-utazuerichardli" +
- "llehammerfeste-ipfizerfrom-val-daostavalleyfrom-vtrentin-sued-ti" +
- "rolfrom-wafrom-wielunnerfrom-wvalledaostavernfrom-wyfrosinonefro" +
- "stalowa-wolawafroyahooguyfstcgroupgfoggiafujiiderafujikawaguchik" +
- "onefujiminokamoenairlinedre-eikerfujinomiyadavvenjargap-northeas" +
- "t-3fujiokayamangyshlakasamatsudovre-eikerfujisatoshonairportland" +
- "-4-salernoboribetsuckserveminecraftrentin-suedtirolfujisawafujis" +
- "hiroishidakabiratoridefensells-for-lesservemp3fujitsurugashimani" +
- "wakuratexaskoyabearalvahkihokumakogengerdalcesurancechirealmpmnf" +
- "ujixeroxn--1ctwolominamataobaomoriguchiharagusartservep2pharmaci" +
- "enservepicservequakefujiyoshidavvesiidatsunanjoburgfukayabeatser" +
- "vesarcasmatartanddesignfukuchiyamadazaifudaigodontexistmein-iser" +
- "vebeerfukudominichofunatoriginstitutelevisionishitosashimizunami" +
- "namibosogndalottokonamegatakatsukis-a-catererfukuis-a-hard-worke" +
- "rservicesevastopolefukumitsubishigakisarazurecontainerdpolicefuk" +
- "uokazakishiwadafukuroishikarikaturindalfukusakisofukushimannorfo" +
- "lkebibleirfjordfukuyamagatakahatakaishimogosenfunabashiriuchinad" +
- "afunagatakamatsukawafunahashikamiamakusatsumasendaisennangonohej" +
- "is-a-hunterfundaciofuoiskujukuriyamansionsevenassisicilyfuosskoc" +
- "zowindowsewinnersharis-a-knightpointtohobby-sitefurnitureggio-ca" +
- "labriafurubirafurudonostiaafurukawairtelebitballooningfusodegaur" +
- "afussaikisosakitagawafutabayamaguchinomigawafutboldlygoingnowher" +
- "e-for-morenakatombetsumitakagiizefuttsurugimperiafuturecmsharpha" +
- "rmacyshawaiijimarnardalfuturehostingfuturemailingfvgfylkesbiblac" +
- "kbaudcdn77-securebungoonord-odalwaysdatabaseballangenoamishirasa" +
- "tochigiessensiositelekommunikationionjukudoyamaintenanceofyresda" +
- "lhangglidinghangoutsystemscloudyclusterhannanmokuizumodellinghan" +
- "nosegawahanyuzenhapmirhareidsbergenharstadharvestcelebrationhasa" +
- "marburghasaminami-alpshimojis-a-liberalhashbanghasudahasura-apph" +
- "dhasvikatsuyamarylandhatogayaizuwakamatsubushikusakadogawahatoya" +
- "mazakitakamiizumisanofidelityhatsukaichikaiseis-a-libertarianhat" +
- "tfjelldalhayashimamotobungotakadapliernewmexicoalhazuminobusells" +
- "yourhomegoodshimokawahelsinkitakatakaokalmykiahembygdsforbundhem" +
- "neshimokitayamahemsedalhepforgeherokussldheroyhgtvallee-aosteroy" +
- "higashiagatsumagoianiahigashichichibunkyonanaoshimageandsoundand" +
- "visionhigashihiroshimanehigashiizumozakitakyushuaiahigashikagawa" +
- "higashikagurasoedahigashikawakitaaikitamihamadahigashikurumeguro" +
- "roshimonitayanagithubusercontentrentino-a-adigehigashimatsushima" +
- "rcheapigeelvinckaufenhigashimatsuyamakitaakitadaitoigawahigashim" +
- "urayamamotorcycleshimonosekikawahigashinarusembokukitamotosumy-g" +
- "atewayhigashinehigashiomihachimanaustdalhigashiosakasayamanakako" +
- "gawahigashishirakawamatakarazukaluganskypehigashisumiyoshikawami" +
- "namiaikitanakagusukumodenakayamaritimodernhigashitsunoshiroomura" +
- "higashiurausukitashiobarahigashiyamatokoriyamanashifteditchyouri" +
- "philadelphiaareadmyblogspotrentino-aadigehigashiyodogawahigashiy" +
- "oshinogaris-a-linux-useranishiaritabashijonawatehiraizumisatohno" +
- "shoooshikamaishimodatehirakatashinagawahiranairtrafficplexus-1hi" +
- "rarahiratsukagawahirayakagehistorichouseshimosuwalkis-a-llamarri" +
- "ottrentino-alto-adigehitachiomiyagildeskaliszhitachiotagooglecod" +
- "espotaruis-a-musicianhitraeumtgeradelmenhorstalbanshimotsukehjar" +
- "tdalhjelmelandholeckobierzyceholidayhomeiphilatelyhomelinkitools" +
- "ztynsettlershimotsumahomelinuxn--1lqs03nhomeofficehomesecurityma" +
- "caparecidahomesecuritypchonanbulsan-suedtirolouvreisenishiwakis-" +
- "a-celticsfanissandiegohomesenseminehomeunixn--1lqs71dhondahoneyw" +
- "ellbeingzonehongoppdalhonjyoitakasagotembaixadahornindalhorseoul" +
- "lensvanguardhorteneis-a-nascarfanhospitalhoteleshinichinanhotmai" +
- "lhoyangerhoylandetroitskautokeinotteroyhumanitieshinjournalismai" +
- "lillesandefjordhurdalhurumajis-a-nurservegame-serverhyllestadhyo" +
- "goris-a-painteractivegaskvollhyugawarahyundaiwafuneis-very-sweet" +
- "pepperis-with-thebandoisleofmanchesterjewelryjewishartgalleryjfk" +
- "fhappounzenjgorajlljmphonefosshioyanaizuslivinghistoryjnjcphoeni" +
- "xn--1qqw23ajoyentrentino-stiroljoyokaichibalatinoipirangamvikhak" +
- "assiajpnjprshirahamatonbetsurnadaljurkoseis-a-photographerokuapp" +
- "hilipsyno-dshinjukumanowtvallee-d-aosteigenkosherbrookegawakoshi" +
- "mizumakiyosunndalkoshunantankharkovalleedaostekosugekotohiradoma" +
- "insureggioemiliaromagnamsosnowiechoseiroumuenchenissayokkaichiro" +
- "practichernivtsiciliakotourakouhokutamakizunokunimimatakatoris-a" +
- "-playerkounosupplieshiranukamitsuekouyamashikekouzushimashikis-a" +
- "-republicancerresearchaeologicaliforniakozagawakozakis-a-rocksta" +
- "rachowicekozowioshiraois-a-socialistdlibestadkpnkppspdnshiraokam" +
- "ogawakrasnikahokutokashikis-a-soxfankrasnodarkredstonekristiansa" +
- "ndcatshiratakahagitlaborkristiansundkrodsheradkrokstadelvaldaost" +
- "arnbergkryminamiuonumassa-carrara-massacarraramassabusinessebykl" +
- "ecznagasukekumatorinokumejimasoykumenantokigawakunisakis-a-stude" +
- "ntalkunitachiarailwaykunitomigusukumamotoyamashikokuchuokunneppu" +
- "eblockbustermezkunstsammlungkunstunddesignkuokgroupictetrentino-" +
- "sud-tirolkurehabmerkurgankurobelaudibleasingleshishikuis-a-teach" +
- "erkassyncloudkurogiminamiashigarakuroisoftwarendalenugkuromatsun" +
- "ais-a-techietis-a-patsfankurotakikawasakis-a-therapistoiakushiro" +
- "gawakustanais-an-accountantshinkamigotoyohashimototalkusupplykut" +
- "chanelkutnokuzumakis-an-actorkvafjordkvalsundkvamlidlugolekadena" +
- "gahamaroygardenebakkeshibechambagriculturennebudejjuedischesapea" +
- "kebayernuorochesterkvanangenkvinesdalkvinnheradkviteseidskogkvit" +
- "soykwpspectruminamiyamashirokawanabelembetsukubankhersonkzmisugi" +
- "tokorozawamitourismolangevagrigentomologyeonggiehtavuoatnadexete" +
- "rmitoyoakemiuramiyazurewebsiteshikagamiishibukawamiyotamanomjond" +
- "alenmlbfanmombetsurgeonshalloffamelhusdecorativeartshisuifuelver" +
- "uminanomonstermontrealestatefarmequipmentrentino-sued-tirolmonza" +
- "-brianzapposhitaramamonza-e-della-brianzaptokuyamatsumotofukemon" +
- "zabrianzaramonzaebrianzamonzaedellabrianzamoonscalevangermoparac" +
- "hutingmordoviamoriyamatsunomoriyoshiminamiawajikis-an-artistgory" +
- "mormonmouthagakhanamigawamoroyamatsusakahoginankokubunjis-an-eng" +
- "ineeringmortgagemoscowitdkhmelnitskiyamarylhurstjordalshalsenmos" +
- "eushistorymosjoenmoskeneshizukuishimofusaitamatsukuris-an-entert" +
- "ainermosshizuokanagawamosvikhmelnytskyivanylvenicemoteginowaniih" +
- "amatamakawajimanxn--2scrj9choshibuyachtsanfranciscofreakunemuror" +
- "angeiseiyoichippubetsubetsugarugbydgoszczecinemagentositecnologi" +
- "amoviemovimientokyotangotsukitahatakamoriokakegawamovistargardmo" +
- "zilla-iotrentino-suedtirolmtranbymuenstermuginozawaonsenmuikamis" +
- "atokaizukamikitayamatsuris-bytomaritimekeepingmukodairamulhouser" +
- "vehalflifestylewismillermunakatanemuncienciamuosattemupicturesho" +
- "ujis-certifieducatorahimeshimamateramobaramurmanskhplaystationmu" +
- "rotorcraftrentinoa-adigemusashimurayamatsushigemusashinoharamuse" +
- "etrentinoaadigemuseumverenigingmusicargoboatshowamutsuzawamy-vig" +
- "orgemy-wanggouvichoyodobashichikashukujitawaravennaharimalopolsk" +
- "anlandyndns-homednsangomyactivedirectorymyasustor-elvdalmycdn77-" +
- "sslattumincomcastresindevicenzaporizhzhiamydattolocalhistorymydd" +
- "nskingmydissentrentinoalto-adigemydobisshikis-foundationmydroboe" +
- "hringerikemydshowtimemergencyahikobeardubaiduckdnshriramsterdamn" +
- "serverbaniamyeffectrentinoaltoadigemyfirewallonieruchomosciencea" +
- "ndindustrynmyfritzmyftpaccessienarutolgamyhome-servermyjinomykol" +
- "aivaomymailermymediapchristiansburgriwataraidyndns-ipartis-a-che" +
- "farsundyndns-mailowiczest-le-patronissedalplfinancialpuserconten" +
- "toyotapartsanjotoyotomiyazakis-a-conservativegarsheis-a-cpaduals" +
- "tackhero-networkinggroupartymyokohamamatsudamypepiemontemypetsig" +
- "dalmyphotoshibalena-devicesilklabudhabikinokawabarthaebaruericss" +
- "onyoursidell-ogliastradermypiagetmyiphostrodawaramypsxn--30rr7ym" +
- "ysecuritycamerakermyshopblocksimple-urlmytis-a-bookkeeperugiamyt" +
- "uleapilotsirdalmyvnchristmasakindlefrakkestadyndns-office-on-the" +
- "-webhopencraftoyotsukaidomywireitrentinos-tirolpiszpittsburghoff" +
- "icialpiwatepixolinopizzapknx-serversailleshirakofuefukihaboromsk" +
- "ogplantationplantsjcbnlplatformshangrilanslupskolobrzegersundpla" +
- "zaplcube-serversicherungplumbingoplurinacionalpodhalezajskomagan" +
- "epodlasiellaktyubinskiptveterinaireadthedocscappgafannefrankfurt" +
- "rentinosud-tirolpodzonepohlpoivronpokerpokrovskomakiyosemitepoli" +
- "ticarrierpolitiendapolkowicepoltavalle-aostarostwodzislawithgoog" +
- "leapisa-hockeynutsiracusakatakkoebenhavnpomorzeszowithyoutubersp" +
- "acekitagatamayufuettertdasnetzponpesaro-urbino-pesarourbinopesar" +
- "omasvuotnaritakurashikis-goneponypordenonepornporsangerporsangug" +
- "eporsgrunnanyokoshibahikariwanumatakinouepoznanpraxis-a-bruinsfa" +
- "nprdpreservationpresidioprgmrprimeloyalistorageprincipeprivatize" +
- "healthinsuranceprochowiceproductionslzprofesionalprogressivennes" +
- "laskerrylogisticsnoasaitoshimayfirstockholmestrandpromomahachijo" +
- "invilleksvikomatsushimasfjordenpropertyprotectionprotonetrentino" +
- "sudtirolprudentialpruszkowiwatsukiyonotairestaurantrentinosued-t" +
- "irolprvcyberlevagangaviikanonjis-into-animeiwamarshallstatebanka" +
- "zoprzeworskogptplusgardenpupimientaketomisatomobellevuelosangele" +
- "sjabbottrentinostirolpvhagebostadpvtrentinosuedtirolpwchromedici" +
- "nakaiwamizawassamukawataricoharuovatoyourapzqldqponiatowadaqslin" +
- "gquicksytestingquipelementsokananiimihoboleslawiechryslerqvchung" +
- "namdalseidfjordyndns-picsannanisshingucciprianiigataishinomakink" +
- "obayashikaoirmitakeharasuzakanazawasuzukaneyamazoesuzukis-into-g" +
- "amessinazawasvalbardunloppacificircleverappsseljordyndns-webhost" +
- "ingroks-thisayamanobeokakudamatsuesveiosvelvikomonowruzhgorodeos" +
- "vizzerasvn-reposomnarviikamishihoronobeauxartsandcraftsolarssons" +
- "wedenswidnicartoonartdecologiaswidnikkokaminokawanishiaizubanges" +
- "wiebodzin-butterswiftcoverswinoujscienceandhistoryswissmartertha" +
- "nyousrcfastpanelblagrarchaeologyeongbuk0emmafann-arboretumbriama" +
- "llamaceiobbcg120001wwwebspace12hpalermoliserniabogadodgehirnrt3l" +
- "3p0rtarnobrzegyptian4tarumizusawabruzzoologicalvinklein-addramme" +
- "nuernbergdyniaetnabudapest-a-la-masion-webredirectmedicaltanisse" +
- "ttachikawafflecellclaims3-ap-northeast-1337synology-diskstations" +
- "ynology-dsootunesor-varangertunkomorotsukaminoyamaxunjargaturyst" +
- "ykanmakiwientuscanytushuissier-justicetuvalle-daostatic-accessor" +
- "foldtuxfamilytwmailvestfoldvestnesorocabalsan-sudtirollagdenesna" +
- "aseralingenkainanaejrietisalatinabenonichurcharternidyndns-remot" +
- "ewdyndns-serverisigniyodogawavestre-slidrepbodynamic-dnsorreisah" +
- "ayakawakamiichikawamisatottoris-into-carshinshirovestre-totennis" +
- "hiawakuravestvagoyvevelstadvibo-valentiavibovalentiavideovillaso" +
- "rtlandvinnicasacamdvrcampinagrandebuilderschlesischesoruminiserv" +
- "ervinnytsiavirginiavirtual-userveexchangevirtualservervirtualuse" +
- "rveftpioneervirtueeldomein-vigorlicevirtuelvisakegawaviterboknow" +
- "sitallvivolkenkundenvixn--32vp30haibarakitahiroshimapartmentshel" +
- "laspeziavlaanderenvladikavkazimierz-dolnyvladimirvlogintoyonezaw" +
- "avminnesotaketakayamasudavologdanskomvuxn--2m4a15evolvolkswagent" +
- "soundcastronomy-routervolyngdalvoorloperauniterois-leetnedalvoss" +
- "evangenvotevotingvotoyonownextdirectrentoyonakagyokutoyakokonoew" +
- "orldworse-thandawowloclawekongsbergwpcomstagingwpdevcloudwritest" +
- "hisblogsytewroclawmflabsouthcarolinarvikommunalforbundwtcmintern" +
- "ationalfirearmshisognewtfastvps-serveronakasatsunairguardiannaka" +
- "domarinebraskauniversitydalaheadjudaicable-modemocraciawuozustka" +
- "nnamilanotogawawzmiuwajimaxn--3pxu8kongsvingerxn--42c2d9axn--45b" +
- "r5cylxn--45brj9cistrondheimmobilienxn--45q11citadeliveryggeexn--" +
- "4gbriminingxn--4it168dxn--4it797koninjambylxn--4pvxs4allxn--54b7" +
- "fta0ccitichernovtsymantechnologyxn--55qw42gxn--55qx5dxn--5js045d" +
- "xn--5rtp49civilaviationxn--5rtq34konskowolayangrouphotographysio" +
- "xn--5su34j936bgsgxn--5tzm5gxn--6btw5axn--6frz82gxn--6orx2rxn--6q" +
- "q986b3xlxn--7t0a264civilisationxn--80adxhksouthwestfalenxn--80ao" +
- "21axn--80aqecdr1axn--80asehdbarrell-of-knowledgeologyonagoyautom" +
- "otiveconomiasakuchinotsuchiurakawalesundevelopmentattoobninskara" +
- "coldwarmiastagebizenakanotoddenavuotnaples3-eu-west-2xn--80aswgx" +
- "n--80augustownproviderxn--8ltr62konsulatrobeepilepsykkylvenetoei" +
- "dsvollxn--8pvr4utwentexn--8y0a063axn--90a3academiamicaaarborteac" +
- "hes-yogasawaracingxn--90aeroportalabamagasakishimabaraogakibichu" +
- "oxn--90aishobarakawagoexn--90azhytomyravendbarsycenterprisesakik" +
- "ugawalmartaxihuanflfanfshostrowwlkpmgjovikaragandautoscanadaegua" +
- "mbulancehimejibmdgcagliaribeiraokinawashirosatochiokinoshimaizur" +
- "uhreviewskrakoweddingjerstadotsuruokakamigaharaurskog-holandingj" +
- "erdrumetacentrumeteorappalmaserati234lima-cityeatselinogradultat" +
- "arantours3-ap-southeast-1kappchizip6xn--9dbhblg6dietcimdbarsyonl" +
- "inewhampshirealtysnes3-us-gov-west-1xn--9dbq2axn--9et52uxn--9krt" +
- "00axn--andy-iraxn--aroport-byandexn--3bst00misakis-an-actresshin" +
- "shinotsurgeryxn--asky-iraxn--aurskog-hland-jnbashkiriaveroykengl" +
- "andiscountyolasitempresashibetsukuiitatebayashiibajddarchitectur" +
- "ealtorlandiscourses3-eu-west-3utilitiesquare7xn--avery-yuasakuho" +
- "kkaidownloadxn--b-5gaxn--b4w605ferdxn--balsan-sdtirol-nsbsowaxn-" +
- "-bck1b9a5dre4civilizationxn--bdddj-mrabdxn--bearalvhki-y4axn--be" +
- "rlevg-jxaxn--bhcavuotna-s4axn--bhccavuotna-k7axn--bidr-5nachikat" +
- "suuraxn--bievt-0qa2xn--bjarky-fyaotsurreyxn--bjddar-ptargets-itr" +
- "evisohughesopotrentinsud-tirolxn--blt-elabourxn--bmlo-graingerxn" +
- "--bod-2natalxn--bozen-sdtirol-2obanazawaxn--brnny-wuacademy-fire" +
- "wall-gatewayxn--brnnysund-m8accident-investigation-aptibleadpage" +
- "st-mon-blogueurovision-rancherkasydneyxn--brum-voagatritonxn--bt" +
- "sfjord-9zaxn--bulsan-sdtirol-nsbasicservercelliguriavocatanzarow" +
- "edeployombolzano-altoadigemrevistanbulsan-sudtirolavagiskeu-1xn-" +
+const text = "9guacuiababia-goracleaningroks-theatree12hpalermomahachijoinvill" +
+ "eksvik12ix4432-balsfjordd-dnsiskinkyotobetsulikes-piedmonticello" +
+ "dingenaturhistorisches3-ap-south-16-b-dataikikonaikawachinaganoh" +
+ "aramcoachampionshiphoptobishimadridvagsoyereportatarantours3-ap-" +
+ "northeast-2038bloombergbauerninomiyakonojorpelandiyusuharabloxcm" +
+ "s3-website-us-west-2bluedancebmoattachments5yusuisservehumourbms" +
+ "akyotanabellunord-aurdalvdalaskanittedallasalleangaviikaascolipi" +
+ "cenodumetlifeinsurancebmwedeployuu2-localhostoregontrailroadnpar" +
+ "isor-fronirasakindigenaklodzkochikushinonsenergyuzawabnrwegrowei" +
+ "bolognagasakimobetsuitainaioirasebastopologyeongnamegawakayamaga" +
+ "zineat-urlimitedrangedalimoliseoullensvanguardray-dnsupdaternopi" +
+ "lawatchesalangenishiazaindustriabomloabathsbcatholicaxiashorokan" +
+ "aiebondrayddnsfreebox-osascoli-picenordre-landraydnsalondonetska" +
+ "rlsoybonnishigobookinghostfoldnavyboomlahppiacenzachpomorskienis" +
+ "hiharaboschaefflerdalinkyard-cloudnsaltdalivornobostikarmoybosto" +
+ "nakijinsekikogentingloboavistanbulsan-sudtirolombardynaliaskimit" +
+ "subatamibugattiffanynysadoes-itvedestrandrivefsnillfjordrobaknol" +
+ "uoktachikawakembuchikumagayagawakkanaibetsubamericanfamilydsclou" +
+ "deitychyattorneyagawafflecellclaimsaludrudupontariodejaneirodoyb" +
+ "otanicalgardenishiizunazukindustriesteamfamberkeleybotanicgarden" +
+ "ishikatakazakinfinitintuitjxfinitybotanybouncemerckmsdnipropetro" +
+ "vskjervoyagebounty-fullensakerrypropertiesalvadordalibabalestran" +
+ "dabergamo-siemensncfdurbanamexnethnologyboutiquebecheltenham-rad" +
+ "io-openairbusantiquest-a-la-maisondre-landroidurhamburglogoweirb" +
+ "ozen-sudtirolomzaporizhzhegurinuyamashinatsukigatakasakitchenish" +
+ "ikatsuragit-reposalzburgloppenzaolbia-tempio-olbiatempioolbialys" +
+ "tokkepnogatagajobojinvestmentsamegawabozen-suedtirolondrinamssko" +
+ "ganeinzais-a-candidatebplacedogawarabikomaezakirunorddalorenskog" +
+ "lugmbhartipscbgminakamichiharabrandywinevalleybrasiliabrindisibe" +
+ "nikinderoybristoloseyouriparliamentkmaxxjavald-aostarostwodzisla" +
+ "wellbeingzonebritishcolumbialowiezaganquanpachigasakievennodesab" +
+ "aerobaticketsamnangerbroadcastleclerchernihivgubsampalacebroadwa" +
+ "ybroke-itksatxn--0trq7p7nnishikawazukamisunagawabrokerbronnoysun" +
+ "dweberbrothermesaverdealstahaugesunderseaportsinfolldalotenkawab" +
+ "rowsersafetymarketsamsclubartowfarmsteadynathomebuiltmparmattele" +
+ "fonicarbonia-iglesias-carboniaiglesiascarboniabrumunddalottebrun" +
+ "elasticbeanstalkarpaczeladzparochernigovernmentoyosatoyokawabrus" +
+ "selsamsungmodellingmxn--11b4c3dyndns-at-homedepotenzamamidsundyn" +
+ "dns-at-workisboringrimstadyndns-blogdnsandnessjoenishimerabruxel" +
+ "lesandoybryansklepparsandvikcoromantovalle-d-aostaticsanfrancisc" +
+ "ofreakunemurorangeiseiyoichippubetsubetsugarugbydgoszczecinemage" +
+ "ntositecnologiabrynewhollandyndns-freeboxosloftranakanojoetsuwan" +
+ "ouchikujogaszkolajollamericanexpressexybuskerudinewmexicoalottok" +
+ "onamegatakatsukis-a-catererbuzentsujiiebuzzwhalingripebwhoswhokk" +
+ "sundyndns-homednsangobzhitomirumalatvuopmicrolightingriwataraidy" +
+ "ndns-ipartis-a-celticsfanishinomiyashironobzzcolognexus-2colonia" +
+ "lwilliamsburgrongausdalukowiiheyakumoldeloittemp-dnsaogoncartier" +
+ "coloradoplateaudiocolumbusheycommunecommunitycomoarekecomparemar" +
+ "kerryhotelsaotomeloyalistoragecompute-1computerhistoryofscience-" +
+ "fictioncomsecuritytacticsapporocondoshichinohealth-carereformina" +
+ "miechizenconferenceconstructionconsuladonnakaiwamizawassamukawat" +
+ "aricoharuovatranoyconsultanthropologyconsultingrossetouchihayaak" +
+ "asakawaharacontactransportecontagematsubaracontemporaryarteducat" +
+ "ionalchikugodontexistmein-iservebeercontractorskenconventureshin" +
+ "odebalancertificationcookingchannelsdvrdnsfor-better-thanawatcha" +
+ "ndclockashiwaracooluroycooperativano-frankivskolegallocus-3copen" +
+ "hagencyclopedichiryukyuragifuchungbukharanzanishinoomotegocorsic" +
+ "afederationcorvettemasekashiwazakiyosatokamachintaifun-dnsdojols" +
+ "tercosenzakopanecosidnshome-webserverdalutskasukabedzin-berlinda" +
+ "sdaburcostumedicinakamagayahabaghdadyndns-workshopitsitevadsobet" +
+ "sumidatlantichitachinakagawashtenawdev-myqnapcloudcontrolledekag" +
+ "aminogiftsanjotoyotapartsannanishinoshimatsuuracouchpotatofriesa" +
+ "rdegnaroycounciluxurycouponsardiniacq-acranbrookuwanalyticsarluz" +
+ "erncrdyndns1creditcardynnsarpsborgroundhandlingroznycreditunionc" +
+ "remonashgabadaddjaguarqhachirogatakanezawacrewildlifedorainfracl" +
+ "ouderacricketrzyncrimeast-kazakhstanangercrotonecrownipasadenara" +
+ "shinocrsvpassagensarufutsunomiyawakasaikaitakoelncruisesasayamac" +
+ "ryptonomichigangwoncuisinellair-traffic-controlleyculturalcenter" +
+ "tainmentransurlvivanovoldacuneocupcakecuritibahcavuotnagaivuotna" +
+ "gaokakyotambabyeniwaizumiotsukumiyamazonawsagaeroclubmedecincinn" +
+ "ationwidealercxn--12c1fe0bradescorporationcymrussiacyonabarumina" +
+ "mifuranocyoutheworkpccwilliamhillferrerotikagoshimalvikasumigaur" +
+ "awa-mazowszextraspace-to-rentalstomakomaibarafetsundynuconnectra" +
+ "paniizafgruefhvalerfidoomdnstracefieldynv6figueresinstaginguideg" +
+ "reefilateliafilegear-audnedalnfilegear-deatnufcfanfilegear-gbizf" +
+ "ilegear-iefilegear-jpmorganfilegear-sguitarsavannahgafilminamiiz" +
+ "ukamiokameokameyamatotakadafinalfinancefineartsaves-the-whalessa" +
+ "ndria-trani-barletta-andriatranibarlettaandriafinlandynvpnplus-4" +
+ "finnoyfirebaseapplinzis-a-financialadvisor-aurdalfirenzefireston" +
+ "efirmdalegoldpoint2thisamitsukefishingolffansavonarusawafitjarvo" +
+ "dkafjordyroyrvikingrpassenger-associationfitnessettlementraveler" +
+ "sinsurancefjalerflesbergujohanamakinoharaflickragerogersaxofligh" +
+ "tschoenbrunnflirfloginlinefloraflorencefloridattorelayfloripader" +
+ "bornfloristanohatakaharulminamimakis-a-geekasuyanagawaflorokunoh" +
+ "ealthcareerschokokekschokoladenflowerscholarshipschoolschulefltr" +
+ "dflynnhosting-clusterflynnhubanzaicloudcontrolappleborkdalpha-my" +
+ "qnapcloud66fndfor-ourfor-somedizinhistorischeschwarzgwangjuniper" +
+ "for-theaterforexrothadanorthwesternmutualforgotdnschweizforli-ce" +
+ "sena-forlicesenaforlikescandyn53forsaleikangerforsandasuologoipa" +
+ "triafortalfortmissoulancashirecreationfortworthadselectrentin-su" +
+ "d-tirolforumzfosnesciencecentersciencehistoryfotaris-a-greenfoxf" +
+ "ordebianfozorafredrikstadtvscientistordalfreeddnsgeekgalaxyfreed" +
+ "esktopocznore-og-uvdalfreemasonryfreesitexaskoyabearalvahkihokum" +
+ "akogengerdalcesurancechirealmpmnfreetlscjohnsonfreiburgulenfreig" +
+ "htrentin-sudtirolfreseniuscountryestateofdelawareggio-calabriafr" +
+ "ibourgunmaoris-a-gurulvikaszubyfriuli-v-giuliafriuli-ve-giuliafr" +
+ "iuli-vegiuliafriuli-venezia-giuliafriuli-veneziagiuliafriuli-vgi" +
+ "uliafriuliv-giuliafriulive-giuliafriulivegiuliafriulivenezia-giu" +
+ "liafriuliveneziagiuliafriulivgiuliafrlfroganscotlandfrognfroland" +
+ "from-akrehamnfrom-alfrom-arfrom-azimuthdfcbankatowicefrom-capebr" +
+ "etonamicrosoftbankatsushikabeeldengeluidfrom-codyn-vpndnscrapper" +
+ "-sitefrom-ctrentin-sued-tirolfrom-dchitosetogakushimotoganewspap" +
+ "erfrom-dedyn-berlincolnfrom-flanderscrappinguovdageaidnunusualpe" +
+ "rsonfrom-gaulardalfrom-hichisochildrensgardenfrom-iafrom-idfrom-" +
+ "ilfrom-in-brbarcelonagareyamaizuruhrhcloudiscoveryombolzano-alto" +
+ "adigeu-3from-kscrysechocolatelemarkaruizawafrom-kyowariasahikawa" +
+ "winbarclaycards3-fips-us-gov-west-1from-lancasterfrom-mamurogawa" +
+ "from-mdfrom-meeresistancefrom-mifunefrom-mnfrom-modalenfrom-mser" +
+ "veirchofunatoriginstitutelevisionishiokoppegardyndns-mailouvreit" +
+ "oyotomiyazakis-a-chefarsundyndns-office-on-the-webhareidsbergeni" +
+ "shitosashimizunaminamibosogndalowiczest-le-patronishiwakis-a-con" +
+ "servativegarsheis-a-cpadualstackhero-networkinggroupartyfrom-mtn" +
+ "from-nctulanciafrom-ndfrom-nefrom-nh-serveblogsiteleafamilycompa" +
+ "nyminamiminowafrom-njaworznoticiasnesoddenmarkhangelskjakdneprop" +
+ "etrovskiervaapsteiermarkatsuyamarylandfrom-nminamioguni5from-nva" +
+ "lled-aostamayufuettertdasnetzfrom-nyfrom-ohkurafrom-oketogurafro" +
+ "m-orfrom-padovaksdalfrom-pratohmangonohejis-a-hard-workerservemi" +
+ "necraftrentin-suedtirolfrom-ris-a-hunterfrom-schmidtre-gauldalfr" +
+ "om-sdfrom-tnfrom-txn--12co0c3b4evalleaostavernfrom-utazuerichard" +
+ "lillehammerfeste-ipaviancarrdfrom-val-daostavalleyfrom-vtrentino" +
+ "-a-adigefrom-wafrom-wielunnerfrom-wvalledaostaobaomoriguchiharag" +
+ "usartservemp3from-wyfrosinonefrostalowa-wolawafroyahooguyfstcgro" +
+ "upfizerfujiiderafujikawaguchikonefujiminokamoenairlinedre-eikerf" +
+ "ujinomiyadavvenjargap-northeast-3fujiokayamangyshlakasamatsudovr" +
+ "e-eikerfujisatoshonairportland-4-salernoboribetsuckservep2pgfogg" +
+ "iafujisawafujishiroishidakabiratoridefenseljordfujitsurugashiman" +
+ "iwakuratextileirfjordfujixeroxn--1ck2e1barclays3-sa-east-1fujiyo" +
+ "shidavvesiidatsunanjoburgushikamifuranorth-kazakhstanfukayabeats" +
+ "ervepicservequakefukuchiyamadazaifudaigojomedio-campidano-medioc" +
+ "ampidanomediofukudominichonanbulsan-suedtirolpusercontentoyotsuk" +
+ "aidofukuis-a-knightpointtohobby-sitefukumitsubishigakisarazureco" +
+ "ntainerdpolicefukuokazakishiwadafukuroishikarikaturindalfukusaki" +
+ "sofukushimannorfolkebibleirvikaufenfukuyamagatakahatakaishimogos" +
+ "enfunabashiriuchinadafunagatakamatsukawafunahashikamiamakusatsum" +
+ "asendaisennangooglecodespotaruis-a-landscaperfundaciofuoiskujuku" +
+ "riyamansionservesarcasmatartanddesignfuosskoczowindmillfurniture" +
+ "ggio-emilia-romagnakatombetsumitakagiizefurubirafurudonostiaafur" +
+ "ukawairtelebitballooningwiddleitungsenfusodegaurafussaikisosakit" +
+ "agawafutabayamaguchinomigawafutboldlygoingnowhere-for-morenakats" +
+ "ugawafuttsurugimperiafuturecmservicesevastopolefuturehostingxn--" +
+ "1ctwolominamatargivestbytemarkautokeinotteroyfuturemailingfvgfyl" +
+ "kesbiblackbaudcdn77-securebungoonord-odalwaysdatabaseballangenka" +
+ "inanaejrietisalatinabenonichoseiroumuenchenissandiegofyresdalhan" +
+ "gglidinghangoutsystemscloudyclusterhannanmokuizumodenakayamarbur" +
+ "ghannosegawahanyuzenhapmirharstadharvestcelebrationhasamarcheapi" +
+ "geelvinckazoologyhasaminami-alpsewindowsharis-a-libertarianhashb" +
+ "anghasudahasura-appharmaciensharpharmacyshawaiijimarnardalhasvik" +
+ "azunow-dnshellaspeziahatogayaizuwakamatsubushikusakadogawahatoya" +
+ "mazakitakamiizumisanofidelityhatsukaichikaiseis-a-linux-useranis" +
+ "hiaritabashijonawatehattfjelldalhayashimamotobungotakadapliernew" +
+ "jerseyhazuminobusells-for-unzenhelsinkitakatakaokalmykiahembygds" +
+ "forbundhemneshimojis-a-llamarriottrentino-aadigehemsedalhepforge" +
+ "herokussldheroyhgtvallee-aosteroyhigashiagatsumagoianiahigashich" +
+ "ichibunkyonanaoshimageandsoundandvisionhigashihiroshimanehigashi" +
+ "izumozakitakyushuaiahigashikagawahigashikagurasoedahigashikawaki" +
+ "taaikitamihamadahigashikurumeetnedalhigashimatsushimaritimodernh" +
+ "igashimatsuyamakitaakitadaitoigawahigashimurayamamotorcycleshimo" +
+ "kawahigashinarusells-itrentino-alto-adigehigashinehigashiomihach" +
+ "imanaustdalhigashiosakasayamanakakogawahigashishirakawamatakaraz" +
+ "ukaluganskypehigashisumiyoshikawaminamiaikitamotosumy-gatewayhig" +
+ "ashitsunoshiroomurahigashiurausukitanakagusukumoduminamisanrikub" +
+ "etsurfastly-terrariuminamiiserniahigashiyamatokoriyamanashiftedi" +
+ "tchyouriphdhigashiyodogawahigashiyoshinogaris-a-musicianhiraizum" +
+ "isatohnoshoooshikamaishimodatehirakatashinagawahiranairtrafficpl" +
+ "exus-1hirarahiratsukagawahirayakagehistorichouseshimokitayamahit" +
+ "achiomiyagildeskaliszhitachiotagoppdalhitraeumtgeradelmenhorstal" +
+ "banshimonitayanagithubusercontentrentino-altoadigehjartdalhjelme" +
+ "landholeckobierzyceholidayhomeiphiladelphiaareadmyblogspotrentin" +
+ "o-s-tirolhomelinkitoolsztynsettlershimonosekikawahomelinuxn--1lq" +
+ "s03nhomeofficehomesecuritymacaparecidahomesecuritypchoshibuyacht" +
+ "sannohelplfinancialubindalublindesnesanokarumaifashionissayokkai" +
+ "chiropractichernivtsiciliahomesensellsyourhomegoodshimosuwalkis-" +
+ "a-nascarfanhomeunixn--1lqs71dhondahongotembaixadahonjyoitakasago" +
+ "tpantheonsitehornindalhorsembokukitashiobarahorteneis-a-nursemin" +
+ "ehospitalhoteleshimotsukehotmailhoyangerhoylandetroitskddielddan" +
+ "uorrikuzentakatajimidorissagamiharahumanitieshimotsumahurdalhuru" +
+ "majis-a-painteractivegaskvollhyllestadhyogoris-a-patsfanhyugawar" +
+ "ahyundaiwafuneis-very-sweetpepperis-with-thebandoisleofmancheste" +
+ "rjewelryjewishartgalleryjfkhakassiajgorajlljmphoenixn--1qqw23ajn" +
+ "jcphilipsyno-dshintokushimajoyentrentino-sued-tiroljoyokaichibal" +
+ "atinoipirangamvikharkivalleeaosteinkjerusalembroideryjpnjprshiny" +
+ "oshitomiokamitondabayashiogamagoriziajurkoseis-a-playerkosherbro" +
+ "okegawakoshimizumakiyosunndalkoshunantankhersonkosugekotohiradom" +
+ "ainsurehabmerkotourakouhokutamakizunokunimimatakatoris-a-republi" +
+ "cancerresearchaeologicaliforniakounosupplieshirahamatonbetsurnad" +
+ "alkouyamashikekouzushimashikis-a-rockstarachowicekozagawakozakis" +
+ "-a-socialistdlibestadkozowinnershirakofuefukihaboromskogkpnkppsp" +
+ "dnshiranukamitsuekrasnikahokutokashikis-a-soxfankrasnodarkredsto" +
+ "nekristiansandcatshiraois-a-studentalkristiansundkrodsheradkroks" +
+ "tadelvaldaostathelleluxembourgkryminamitanekumatorinokumejimasoy" +
+ "kumenantokigawakunisakis-a-teacherkassyncloudkunitachiarailwayku" +
+ "nitomigusukumamotoyamashikokuchuokunneppubtlshiraokamogawakunsts" +
+ "ammlungkunstunddesignkuokgroupictetrentino-suedtirolkureisenkurg" +
+ "ankurobelaudibleasingleshiratakahagitlaborkurogiminamiashigaraku" +
+ "roisoftwarendalenugkuromatsunais-a-techietis-a-personaltrainerku" +
+ "rotakikawasakis-a-therapistoiakushirogawakustanais-an-accountant" +
+ "shinichinankusupplykutchanelkutnokuzumakis-an-actorkvafjordkvals" +
+ "undkvamlidlugolekadenagahamaroygardenebakkeshibechambagriculture" +
+ "nnebudejjuedischesapeakebayernutwentekvanangenkvinesdalkvinnhera" +
+ "dkviteseidskogkvitsoykwpspectruminamiuonumassa-carrara-massacarr" +
+ "aramassabusinessebyklecznagasukekzmisugitokorozawamitourismolang" +
+ "evagrigentomologyeonggiehtavuoatnadexetermitoyoakemiuramiyazurew" +
+ "ebsiteshikagamiishibukawamiyotamanomjondalenmlbfanmonstermontrea" +
+ "lestatefarmequipmentrentinoaadigemonza-brianzapposhishikuis-an-a" +
+ "rtistgorymonza-e-della-brianzaptokuyamatsumotofukemonzabrianzara" +
+ "monzaebrianzamonzaedellabrianzamoonscalewismillermoparachutingmo" +
+ "rdoviamoriyamatsunomoriyoshiminamiawajikis-an-engineeringmormonm" +
+ "outhagakhanamigawamoroyamatsusakahoginankokubunjis-an-entertaine" +
+ "rmortgagemoscowioshisognemoseushistorymosjoenmoskeneshisuifuelve" +
+ "ruminamiyamashirokawanabelembetsukubankhmelnitskiyamarylhurstjor" +
+ "dalshalsenmosshitaramamosvikhmelnytskyivanylvenicemoteginowaniih" +
+ "amatamakawajimanxn--2scrj9christiansburgroks-thisayamanobeokakud" +
+ "amatsuemoviemovimientokyotangovtrentinoalto-adigemovistargardmoz" +
+ "illa-iotrentinoaltoadigemtranbymuenstermuginozawaonsenmuikamisat" +
+ "okaizukamikitayamatsuris-bytomaritimekeepingmukodairamulhouserve" +
+ "game-servermunakatanemuncienciamuosattemupictureshizukuishimofus" +
+ "aitamatsukuris-certifieducatorahimeshimamateramobaramurmanskhpla" +
+ "ystationmurotorcraftrentinos-tirolmusashimurayamatsushigemusashi" +
+ "noharamuseetrentinostirolmuseumverenigingmusicargodaddyn-o-saurl" +
+ "andeshizuokanagawamutsuzawamy-vigorgemy-wanggouvichristmasakindl" +
+ "efrakkestadyndns-picsantacruzsantafedjejuifminamidaitomandalucan" +
+ "iamyactivedirectorymyasustor-elvdalmycdn77-sslattuminanomydattol" +
+ "ocalhistorymyddnskingmydissentrentinosud-tirolmydobisshikis-foun" +
+ "dationmydroboehringerikemydshoppingmyeffectrentinosudtirolmyfire" +
+ "wallonieruchomoscienceandindustrynmyfritzmyftpaccesshoujis-gonem" +
+ "yhome-servermyjinomykolaivaomymailermymediapchromedicaltanissett" +
+ "airavennagatorockartuzymyokohamamatsudamypepiemontemypetshowamyp" +
+ "hotoshibalena-deviceshowtimembershriramsterdamnserverbaniamypiag" +
+ "etmyiphostrodawaramypsxn--30rr7ymysecuritycamerakermyshopblocksi" +
+ "enarutolgamytis-a-bookkeeperugiamytuleapilotsigdalmyvnchryslermy" +
+ "wirepaircraftingvollombardiamondsilklabudhabikinokawabarthaebaru" +
+ "ericssonyoursidell-ogliastraderpiwatepixolinopizzapknx-serversai" +
+ "lleshiojirishirifujiedaplantationplantsimple-urlplatformshangril" +
+ "ansirdalplazaplcube-serversicherungplumbingoplurinacionalpodhale" +
+ "zajskolobrzegersundpodlasiellaktyubinskiptveterinaireadthedocsca" +
+ "ppgafannefrankfurtrentinosuedtirolpodzonepohlpoivronpokerpokrovs" +
+ "komaganepoliticarrierpolitiendapolkowicepoltavalle-aostatic-acce" +
+ "ssjcbnpparibaselburgpomorzeszowitdkomakiyosemiteponpesaro-urbino" +
+ "-pesarourbinopesaromasvuotnaritakurashikis-into-animeguroroshinj" +
+ "ukumanowtvallee-d-aosteigenponypordenonepornporsangerporsangugep" +
+ "orsgrunnanyokoshibahikariwanumatakinouepoznanpraxis-a-bruinsfanp" +
+ "rdpreservationpresidioprgmrprimelhusdecorativeartslupskomatsushi" +
+ "masfjordenprincipeprivatizehealthinsuranceprochowiceproductionsl" +
+ "zprofesionalprogressivenneslaskerrylogisticsnoasaitoshimayfirsto" +
+ "ckholmestrandpromombetsurgeonshalloffameldalpropertyprotectionpr" +
+ "otonetrentinsud-tirolprudentialpruszkowithgoogleapisa-hockeynuts" +
+ "iracusakatakkoebenhavnprvcyberlevagangaviikanonjis-into-carshink" +
+ "amigotoyohashimototalprzeworskogptplusgardenpulawypupimientaketo" +
+ "misatomobellevuelosangelesjabbottrentinosued-tirolpvhagebostadpv" +
+ "trentinsudtirolpwchungnamdalseidfjordyndns-remotewdyndns-serveri" +
+ "signissedaluccapitalonewportlligatoyourapzqldqponiatowadaqslingq" +
+ "ualifioappinkmpspbarefootballfinanzgoraustinnavuotnaples3-ca-cen" +
+ "tral-1quickconnectrentinsued-tirolquicksytestingquipelementsokan" +
+ "aniimihoboleslawiechurcharternidyndns-webhopencraftoystre-slidre" +
+ "ttozawaqvcircleverappsseljeepsongdalenviknaharimalopolskanlandyn" +
+ "dns-wikirkenesantamariakesusonosuzakanazawasuzukaneyamazoesuzuki" +
+ "s-leetrentino-stirolsvalbardunloppacificircustomersveiosvelvikom" +
+ "onowruzhgorodeosvizzerasvn-reposopotrentinsuedtirolswedenswidnic" +
+ "artoonartdecologiaswidnikkokaminokawanishiaizubangeswiebodzin-bu" +
+ "tterswiftcoverswinoujscienceandhistoryswissmarterthanyousynology" +
+ "-diskstationsynology-dsor-odaltuscanytushuissier-justicetuvalle-" +
+ "daostavangertuxfamilytwmailvestfoldvestnesorocabalsan-sudtirolla" +
+ "gdenesnaaseinet-freaksolognevestre-slidreplanetariuminiserverves" +
+ "tre-totennishiawakuravestvagoyvevelstadvibo-valentiavibovalentia" +
+ "videovillasorreisahayakawakamiichikawamisatottoris-into-cartoons" +
+ "hinshinotsurgeryvinnicasacamdvrcampinagrandebuilderschlesischeso" +
+ "rtlandvinnytsiavipsinaappioneervirginiavirtual-userveexchangevir" +
+ "tualservervirtualuserveftpippugliavirtueeldomein-vigorlicevirtue" +
+ "lvisakegawaviterboknowsitallvivolkenkundenvixn--32vp30haibarakit" +
+ "ahiroshimapartmentsevenassisicilyvlaanderenvladikavkazimierz-dol" +
+ "nyvladimirvlogintoyonezawavminnesotaketakayamasudavologdanskomvu" +
+ "xn--2m4a15evolvolkswagentsorumincomcastresindevicenzaporizhzhiav" +
+ "olyngdalvoorloperauniterois-lostrolekamakurazakiwakunigamiharusl" +
+ "ivinghistoryvossevangenvotevotingvotoyonowloclawekongsbergwmflab" +
+ "soundcastronomy-routerwnextdirectromsakakinokiaworldworse-thanda" +
+ "wowithyoutuberspacekitagatargets-itroandinosaurepbodynamic-dnsor" +
+ "-varangerwpdevcloudwritesthisblogsytewroclawiwatsukiyonotairesta" +
+ "urantrogstadwtcmintelligencewtfastvps-serveronakasatsunairguardi" +
+ "annakadomarinebraskauniversitydalaheadjudaicable-modemocraciawuo" +
+ "zuwzmiuwajimaxn--3oq18vl8pn36axn--3pxu8kongsvingerxn--42c2d9axn-" +
+ "-45br5cylxn--45brj9citadeliveryggeexn--45q11citichernovtsymantec" +
+ "hnologyxn--4gbriminingxn--4it168dxn--4it797koninjambylxn--4pvxs4" +
+ "allxn--54b7fta0ccivilaviationiyodogawaxn--55qw42gxn--55qx5dxn--5" +
+ "js045dxn--5rtp49civilisationxn--5rtq34konskowolayangrouphonefoss" +
+ "hioyanaizustkannamilanotogawaxn--5su34j936bgsgxn--5tzm5gxn--6btw" +
+ "5axn--6frz82gxn--6orx2rxn--6qq986b3xlxn--7t0a264civilizationxn--" +
+ "80adxhksouthcarolinarvikommunalforbundxn--80ao21axn--80aqecdr1ax" +
+ "n--80asehdbarrel-of-knowledgemologicallillyomitanoddaustrheimatu" +
+ "nduhrennesoyokozebinordreisa-geekaracoldwarmiastagebizenakanotod" +
+ "denayorovnobninskaragandaukraanghkeymachineustarnbergjemnes3-ap-" +
+ "southeast-2xn--80aswgxn--80augustownproviderxn--8ltr62konsulatro" +
+ "beepilepsykkylvenetodayxn--8pvr4uxn--8y0a063axn--90a3academiamic" +
+ "aaarborteaches-yogasawaracingxn--90aeroportalabamagasakishimabar" +
+ "aogakibichuoxn--90aishobarakawagoexn--90azhytomyravendbarrell-of" +
+ "-knowledgeologyonagoyauthordalandeportenrightathomeftpalmaserati" +
+ "bmdevelopmentcp4lima-cityeatselinogradultateshinanomachimkentate" +
+ "yamabogadodgehirnrtatsunobihirosakikamijimatsuzaki234xn--9dbhblg" +
+ "6dietcimdbarsycenterprisesakikugawalmartjeldsundishakotanflfanfs" +
+ "hostrowwlkpmgladefinimakanegasakirautomotiveconomiasakuchinotsuc" +
+ "hiurakawalesundgcagliaribeiraokinawashirosatochigiessensiositele" +
+ "kommunikationionjukudoyamaintenancehimejiitatebayashiibajddarchi" +
+ "tecturealtorlandiscountyolasitempresashibetsukuiiyamanouchikuhok" +
+ "uryugasakitaurayasudaurskog-holandingjerdrumemsettsupportaxihuan" +
+ "aval-d-aosta-valleyokosukanumazuryokoteastcoastaldefenceatonsber" +
+ "gjerstadotsuruokakamigaharagrocerybnikeisenbahnatuurwetenschappe" +
+ "naumburggfarmerseine164-baltimore-og-romsdalipayboltattoobiraetn" +
+ "abudapest-a-la-masion-webhostingdyniabruzzoologicalvinklein-addr" +
+ "ammenuorochesterimo-i-ranaamesjevuemielno-ipifonyc66xn--9dbq2axn" +
+ "--9et52uxn--9krt00axn--andy-iraxn--aroport-byandexcloudxn--asky-" +
+ "iraxn--aurskog-hland-jnbarsyonlinewhampshirealtysnes3-us-east-2x" +
+ "n--avery-yuasakuhokkaidownloadxn--b-5gaxn--b4w605ferdxn--balsan-" +
+ "sdtirol-nsbsouthwestfalenxn--bck1b9a5dre4civilwarmanagementozsde" +
+ "ltaiwanairforcebetsuikidsmynasushiobarackmazerbaijan-mayendofthe" +
+ "internetlifyis-a-cubicle-slavellinodearthachiojiyaitakanabeautys" +
+ "vardoesntexisteingeekashibatakasugais-a-democratrani-andria-barl" +
+ "etta-trani-andriaxn--bdddj-mrabdxn--bearalvhki-y4axn--berlevg-jx" +
+ "axn--bhcavuotna-s4axn--bhccavuotna-k7axn--bidr-5nachikatsuuraxn-" +
+ "-bievt-0qa2xn--bjarky-fyaotsurreyxn--bjddar-ptarnobrzegyptianxn-" +
+ "-blt-elabourxn--bmlo-graingerxn--bod-2natalxn--bozen-sdtirol-2ob" +
+ "anazawaxn--brnny-wuacademy-firewall-gatewayxn--brnnysund-m8accid" +
+ "ent-investigation-aptibleadpagest-mon-blogueurovision-rancherkas" +
+ "ydneyxn--brum-voagatromsojamisonxn--btsfjord-9zaxn--bulsan-sdtir" +
+ "ol-nsbashkiriautoscanadaeguambulanceoceanographics3-eu-west-1xn-" +
"-c1avgxn--c2br7gxn--c3s14misasaguris-an-anarchistoricalsocietyxn" +
- "--cck2b3basilicataniavoues3-external-1xn--cesena-forl-mcbremange" +
- "rxn--cesenaforl-i8axn--cg4bkis-lostrolekamakurazakiwakunigamihar" +
- "unusualpersonxn--ciqpnxn--clchc0ea0b2g2a9gcdxn--comunicaes-v6a2o" +
- "xn--correios-e-telecomunicaes-ghc29axn--czr694basketballyngenvir" +
- "onmentalconservationrenderxn--czrs0troandinosaurepaircraftingvol" +
- "lombardiamondsor-odalxn--czru2dxn--czrw28batodayonagunicommbanka" +
- "rasjohkamikoaniikappuboliviajessheimetlifeinsuranceu-4xn--d1acj3" +
- "batsfjordishakotanhktcp4xn--d1alfaromeoxn--d1atrogstadxn--d5qv7z" +
- "876civilwarmanagementoystre-slidrettozawaxn--davvenjrga-y4axn--d" +
- "jrs72d6uyxn--djty4konyvelolxn--dnna-grajewolterskluwerxn--drbak-" +
- "wuaxn--dyry-iraxn--e1a4clanbibaidarmeniaxn--eckvdtc9dxn--efvn9sp" +
- "eedpartnersolognexn--efvy88hair-surveillancexn--ehqz56nxn--elqq1" +
- "6hakatanortonxn--estv75gxn--eveni-0qa01gaxn--f6qx53axn--fct429ko" +
- "oris-a-personaltrainerxn--fhbeiarnxn--finny-yuaxn--fiq228c5hspje" +
- "lkavikommunexn--fiq64bauhausposts-and-telecommunicationswatch-an" +
- "d-clockerxn--fiqs8spreadbettingxn--fiqz9spydebergxn--fjord-lraxn" +
- "--fjq720axn--fl-ziaxn--flor-jraxn--flw351exn--forl-cesena-fcbsrl" +
- "xn--forlcesena-c8axn--fpcrj9c3dxn--frde-grandrapidsrtrentinsudti" +
- "rolxn--frna-woaraisaijosoyrovigotpantheonsitextileirvikopervikha" +
- "rkivalleeaosteinkjerusalembroideryxn--frya-hraxn--fzc2c9e2cldmai" +
- "lubindalublindesnesannohelpagesanokarumaifashionxn--fzys8d69uvgm" +
- "ailxn--g2xx48clickasaokamiminersantabarbaraxn--gckr3f0fauskedsmo" +
- "korsetagayasells-for-ufcfanxn--gecrj9clinichirurgiens-dentistes-" +
- "en-francexn--ggaviika-8ya47hakodatexn--gildeskl-g0axn--givuotna-" +
- "8yasakaiminatoyookaniepcexn--gjvik-wuaxn--gk3at1exn--gls-elacaix" +
- "axn--gmq050is-not-certifiedugit-pagespeedmobilizeroticahcesuoloa" +
- "nshintomikasaharaxn--gmqw5axn--h-2failxn--h1aeghakonexn--h2breg3" +
- "evenesrvaporcloudxn--h2brj9c8cliniquenoharaxn--h3cuzk1digitalxn-" +
- "-hbmer-xqaxn--hcesuolo-7ya35beneventogakushimotoganewhollandisre" +
- "chtrainingladefinimakanegasakiraxaustevoll-o-g-i-naval-d-aosta-v" +
- "alleyokosukanumazuryokotebinagisobetsumidatlantic66xn--hery-irax" +
- "n--hgebostad-g3axn--hkkinen-5waxn--hmmrfeasta-s4accident-prevent" +
- "ion-riopretobamaceratabuseating-organicbcn-north-1xn--hnefoss-q1" +
- "axn--hobl-iraxn--holtlen-hxaxn--hpmir-xqaxn--hxt814exn--hyanger-" +
- "q1axn--hylandet-54axn--i1b6b1a6a2exn--imr513nxn--indery-fyasugiv" +
- "ingxn--io0a7is-savedunetbankazunow-dnshinyoshitomiokamitondabaya" +
- "shiogamagoriziaxn--j1aefbsbxn--12cfi8ixb8luxuryxn--j1amhakubahcc" +
- "avuotnagarahkkeravjuegoshikikuchikuseikarugalsacexn--j6w193gxn--" +
- "jlq61u9w7bentleyoriikarasjokarasuyamarumorimachidaxn--jlster-bya" +
- "suokanoyaltakashimarugame-hostrowieclintonoshoesantacruzsantafed" +
- "jejuifminamifuranoxn--jrpeland-54axn--jvr189misawaxn--k7yn95exn-" +
- "-karmy-yuaxn--kbrq7oxn--kcrx77d1x4axn--kfjord-iuaxn--klbu-woaxn-" +
- "-klt787dxn--kltp7dxn--kltx9axn--klty5xn--3ds443gxn--koluokta-7ya" +
- "57hakuis-a-landscaperxn--kprw13dxn--kpry57dxn--kpu716fbx-osassar" +
- "is-a-doctorayxn--kput3is-slickddielddanuorrikuzentakatajimidoris" +
- "sagamiharaxn--krager-gyatomitamamuraxn--kranghke-b0axn--krdshera" +
- "d-m8axn--krehamn-dxaxn--krjohka-hwab49jdfastlylbarcelonagareyama" +
- "keupowiat-band-campaniaustinnavigationavoizumizakibigawajudygarl" +
- "anddnslivelanddnss3-ca-central-1xn--ksnes-uuaxn--kvfjord-nxaxn--" +
- "kvitsy-fyatsukanraxn--kvnangen-k0axn--l-1fairwindstorfjordxn--l1" +
- "accentureklamborghinikolaeventstorjdevcloudfunctionshiojirishiri" +
- "fujiedaxn--laheadju-7yatsushiroxn--langevg-jxaxn--lcvr32dxn--ldi" +
- "ngen-q1axn--leagaviika-52beppublishproxyzgorzeleccoffeedbackplan" +
- "eapplicationcloudaccesscambridgestonewyorkshirecifedexhibitionhl" +
- "fanhs3-us-west-1xn--lesund-huaxn--lgbbat1ad8jelenia-goraxn--lgrd" +
- "-poacctromsakakinokiaxn--lhppi-xqaxn--linds-pramericanartromsoja" +
- "misonxn--lns-qlanxesstpetersburgxn--loabt-0qaxn--lrdal-sraxn--lr" +
- "enskog-54axn--lt-liaclothingdustdataitogliattiresantamariakexn--" +
- "lten-granexn--lury-iraxn--m3ch0j3axn--mely-iraxn--merker-kuaxn--" +
- "mgb2ddestreamuneuesolundbeckomforbarreauctionredumbrella-speziau" +
- "strheimatunduhrennesoyokozebinordreisa-geek12xn--mgb9awbfbxosaud" +
- "axn--mgba3a3ejtrusteexn--mgba3a4f16axn--mgba3a4franamizuholdings" +
- "tudioxn--mgba7c0bbn0axn--mgbaakc7dvfedorapeoplegnicanonoichinomi" +
- "yakexn--mgbaam7a8hakusanagochijiwadellogliastradingxn--mgbab2bdx" +
- "n--mgbai9a5eva00beskidyn-ip24xn--mgbai9azgqp6jeonnamerikawauexn-" +
- "-mgbayh7gpaleoxn--mgbb9fbpobihirosakikamijimatsuzakis-uberleetre" +
- "ntino-altoadigexn--mgbbh1a71exn--mgbc0a9azcgxn--mgbca7dzdoxn--mg" +
- "berp4a5d4a87gxn--mgberp4a5d4arxn--mgbgu82axn--mgbi4ecexposedxn--" +
- "mgbpl2fhskydivingxn--mgbqly7c0a67fbcn-northwest-1xn--mgbqly7cvaf" +
- "ranziskanerimaringatlantakaharuxn--mgbt3dhdxn--mgbtf8flatangerxn" +
- "--mgbtx2bestbuyshouses3-us-west-2xn--mgbx4cd0abbvieeexn--mix082f" +
- "edoraprojectrapaniizaxn--mix891feiraquarelleaseeklogesauheradynn" +
- "sasebofageorgeorgiaxn--mjndalen-64axn--mk0axin-dslgbtrvareserveh" +
- "ttpinkmpspbargainstantcloudfrontdoorhcloudiscoveryomitanoceanogr" +
- "aphiqueu-3xn--mk1bu44cngrondarxn--mkru45is-very-badajozxn--mlatv" +
- "uopmi-s4axn--mli-tlapyxn--mlselv-iuaxn--moreke-juaxn--mori-qsaku" +
- "ragawaxn--mosjen-eyawaraxn--mot-tlaquilancomeldalxn--mre-og-roms" +
- "dal-qqbetainaboxfusejnyoshiokanzakiyokawaraxn--msy-ula0haldenxn-" +
+ "--cck2b3basicservercelliguriaveroykenglandiscourses3-eu-west-2xn" +
+ "--cesena-forl-mcbremangerxn--cesenaforl-i8axn--cg4bkis-not-certi" +
+ "fiedugit-pagespeedmobilizeroticahcesuoloanshinshiroxn--ciqpnxn--" +
+ "clchc0ea0b2g2a9gcdxn--comunicaes-v6a2oxn--correios-e-telecomunic" +
+ "aes-ghc29axn--czr694basilicataniavocatanzarowebspacemreviewskrak" +
+ "oweddingjesdalazioceanographiqueu-1xn--czrs0trusteexn--czru2dxn-" +
+ "-czrw28basketballyngenvironmentalconservationrenderxn--d1acj3bat" +
+ "ochiokinoshimakeupowiat-band-campaniavoues3-eu-west-3utilitiesqu" +
+ "are7xn--d1alfaromeoxn--d1atrvareservehalflifestylexn--d5qv7z876c" +
+ "lanbibaidarmeniaxn--davvenjrga-y4axn--djrs72d6uyxn--djty4konyvel" +
+ "olipophotographysioxn--dnna-grajewolterskluwerxn--drbak-wuaxn--d" +
+ "yry-iraxn--e1a4cldmailovecollegefantasyleaguernseyxn--eckvdtc9dx" +
+ "n--efvn9sowaxn--efvy88hair-surveillancexn--ehqz56nxn--elqq16haka" +
+ "tanortonxn--estv75gxn--eveni-0qa01gaxn--f6qx53axn--fct429kooris-" +
+ "a-photographerokuapphilatelyxn--fhbeiarnxn--finny-yuaxn--fiq228c" +
+ "5hspeedpartnersolundbeckomforbargainstantcloudfrontdoorxn--fiq64" +
+ "batsfjordisrechtraininglassassinationalheritageu-4xn--fiqs8spjel" +
+ "kavikommunexn--fiqz9spreadbettingxn--fjord-lraxn--fjq720axn--fl-" +
+ "ziaxn--flor-jraxn--flw351exn--forl-cesena-fcbsspydebergxn--forlc" +
+ "esena-c8axn--fpcrj9c3dxn--frde-grandrapidsrlxn--frna-woaraisaijo" +
+ "soyrovigotsukitahatakamoriokakegawaxn--frya-hraxn--fzc2c9e2click" +
+ "ashiharaxn--fzys8d69uvgmailxn--g2xx48clinichirurgiens-dentistes-" +
+ "en-francexn--gckr3f0fauskedsmokorsetagayaseralingenoamishirasato" +
+ "gokasells-for-lessaskatchewanxn--gecrj9cliniquenoharaxn--ggaviik" +
+ "a-8ya47hakodatexn--gildeskl-g0axn--givuotna-8yasakaiminatoyookan" +
+ "iepcexn--gjvik-wuaxn--gk3at1exn--gls-elacaixaxn--gmq050is-savedu" +
+ "netflixilxn--gmqw5axn--h-2failxn--h1aeghakonexn--h2breg3evenesrt" +
+ "rentoyonakagyokutoyakokonoexn--h2brj9c8clintonoshoesantoandreamh" +
+ "ostersanukis-a-designerxn--h3cuzk1digitalxn--hbmer-xqaxn--hcesuo" +
+ "lo-7ya35bauhausposts-and-telecommunicationswatch-and-clockerxn--" +
+ "hery-iraxn--hgebostad-g3axn--hkkinen-5waxn--hmmrfeasta-s4acciden" +
+ "t-prevention-riopretobamaceratabuseating-organicbcn-north-1xn--h" +
+ "nefoss-q1axn--hobl-iraxn--holtlen-hxaxn--hpmir-xqaxn--hxt814exn-" +
+ "-hyanger-q1axn--hylandet-54axn--i1b6b1a6a2exn--imr513nxn--indery" +
+ "-fyasugivingxn--io0a7is-slickfhappousrcfastlylbananarepublicasad" +
+ "elamonedatingjovikarasjohkamikoaniikappuboliviajessheimetacentru" +
+ "meteorappalmspringsakerevistaples3-external-1xn--j1aefbsbxn--12c" +
+ "fi8ixb8lxn--j1amhakubahccavuotnagarahkkeravjuegoshikikuchikuseik" +
+ "arugalsacexn--j6w193gxn--jlq61u9w7beneventoeidsvollimanowarudaxa" +
+ "ustevollavagiskebinagisoccertmgretakahamalselvendrellavangenavig" +
+ "ationavoizumizakibigawajudygarlanddnslivelanddnss3-ap-southeast-" +
+ "1kappchizip6xn--jlster-byasuokanoyaltakashimarshallstatebankoper" +
+ "vikharkovalleedaostexn--jrpeland-54axn--jvr189misawaxn--k7yn95ex" +
+ "n--karmy-yuaxn--kbrq7oxn--kcrx77d1x4axn--kfjord-iuaxn--klbu-woax" +
+ "n--klt787dxn--kltp7dxn--kltx9axn--klty5xn--3bst00misakis-an-actr" +
+ "esshinjournalismailillesandefjordxn--koluokta-7ya57hakuis-a-lawy" +
+ "erxn--kprw13dxn--kpry57dxn--kpu716fbx-osassaris-a-doctorayxn--kp" +
+ "ut3is-uberleetrentino-sud-tirolxn--krager-gyatomitamamuraxn--kra" +
+ "nghke-b0axn--krdsherad-m8axn--krehamn-dxaxn--krjohka-hwab49jdfas" +
+ "tpanelblagrarchaeologyeongbuk0emmafann-arboretumbriamallamaceiob" +
+ "bcg120001wwwebredirectmemorial-o-g-i-n4t3l3p0rtashkentatamotors3" +
+ "-ap-northeast-1337xn--ksnes-uuaxn--kvfjord-nxaxn--kvitsy-fyatsuk" +
+ "anraxn--kvnangen-k0axn--l-1fairwindsrvaporcloudxn--l1accenturekl" +
+ "amborghinikolaeventstorfjordxn--laheadju-7yatsushiroxn--langevg-" +
+ "jxaxn--lcvr32dxn--ldingen-q1axn--leagaviika-52bentleyonagunicomm" +
+ "bankarasjokarasuyamarugame-hostrowiecaseihicampobassociatest-ise" +
+ "rvecounterstrikeverbankaratevje-og-hornnes3-us-gov-west-1xn--les" +
+ "und-huaxn--lgbbat1ad8jelenia-goraxn--lgrd-poacctrycloudflarezzox" +
+ "n--lhppi-xqaxn--linds-pramericanartrysiljanxn--lns-qlanxesstorjd" +
+ "evcloudfunctionshintomikasaharaxn--loabt-0qaxn--lrdal-sraxn--lre" +
+ "nskog-54axn--lt-liaclothingdustdataitogitsuldalucernexn--lten-gr" +
+ "anexn--lury-iraxn--m3ch0j3axn--mely-iraxn--merker-kuaxn--mgb2dde" +
+ "stpetersburgxn--mgb9awbfbxosaudaxn--mgba3a3ejtunesorfoldxn--mgba" +
+ "3a4f16axn--mgba3a4franamizuholdingstreamuneuesolutionsokndalxn--" +
+ "mgba7c0bbn0axn--mgbaakc7dvfedorapeoplegnicanonoichinomiyakexn--m" +
+ "gbaam7a8hakusanagochijiwadellogliastradingxn--mgbab2bdxn--mgbah1" +
+ "a3hjkrdxn--mgbai9a5eva00beppublishproxyzgorzeleccoffeedbackplane" +
+ "applicationcloudaccesscambridgestonewyorkshirecifedexhibitionhkt" +
+ "jmaxxxboxenapponazure-mobilexn--mgbai9azgqp6jeonnamerikawauexn--" +
+ "mgbayh7gpaleoxn--mgbbh1a71exn--mgbc0a9azcgxn--mgbca7dzdoxn--mgbe" +
+ "rp4a5d4a87gxn--mgberp4a5d4arxn--mgbgu82axn--mgbi4ecexposedxn--mg" +
+ "bpl2fhskydivingxn--mgbqly7c0a67fbcn-northwest-1xn--mgbqly7cvafra" +
+ "nziskanerimaringatlantakahashimamakiryuohdattowebcampinashikimin" +
+ "ohostre-totendofinternet-dnsaliasiaxn--mgbt3dhdxn--mgbtf8flatang" +
+ "erxn--mgbtx2beskidyn-ip24xn--mgbx4cd0abbvieeexn--mix082fedorapro" +
+ "jectravelchannelxn--mix891feiraquarelleaseeklogesauheradynserveb" +
+ "bsasebofageorgeorgiaxn--mjndalen-64axn--mk0axin-dslgbtunkomorots" +
+ "ukaminoyamaxunjargaxn--mk1bu44cngrondarxn--mkru45is-very-badajoz" +
+ "xn--mlatvuopmi-s4axn--mli-tlapyxn--mlselv-iuaxn--moreke-juaxn--m" +
+ "ori-qsakuragawaxn--mosjen-eyawaraxn--mot-tlaquilancomelbournexn-" +
+ "-mre-og-romsdal-qqbestbuyshouses3-us-west-1xn--msy-ula0haldenxn-" +
"-mtta-vrjjat-k7aflakstadaokagakicks-assnasaarlandxn--muost-0qaxn" +
- "--mxtq1misconfusedxn--ngbc5azdxn--ngbe9e0axn--ngbrxn--3e0b707exn" +
- "--nit225koryokamikawanehonbetsurutaharaxn--nmesjevuemie-tcbalsan" +
- "-suedtirolkuszczytnombresciaxn--nnx388axn--nodessakurais-very-ev" +
- "illagexn--nqv7fs00emaxn--nry-yla5gxn--ntso0iqx3axn--ntsq17gxn--n" +
- "ttery-byaeservehumourxn--nvuotna-hwaxn--nyqy26axn--o1achattanoog" +
- "anordlandxn--o3cw4halsaintlouis-a-anarchistoireggio-emilia-romag" +
- "nakatsugawaxn--o3cyx2axn--od0algxn--od0aq3bhzcaseihicampobassoci" +
- "atest-iservecounterstrikeverbankaratevje-og-hornnes3-website-ap-" +
- "northeast-1xn--ogbpf8flekkefjordxn--oppegrd-ixaxn--ostery-fyawat" +
- "ahamaxn--osyro-wuaxn--otu796dxn--p1acfermobilyxn--p1ais-very-goo" +
- "dyearxn--pbt977cnpyatigorskodjeffersonxn--pgbs0dhlxn--porsgu-sta" +
- "26ferraraxn--pssu33lxn--pssy2uxn--q9jyb4cnsantoandreamhostersanu" +
- "kis-a-cubicle-slavellinodearthachiojiyaitakanabeautysvardoesntex" +
- "isteingeekashibatakasugais-a-democratozsdeltaiwanairforcebetsuik" +
- "idsmynasushiobarackmazerbaijan-mayendoftheinternetflixilovecolle" +
- "gefantasyleaguernseyxn--qcka1pmckinseyxn--qqqt11mishimatsumaebas" +
- "hikshacknetrentino-sudtirolxn--qxamusementdllxn--rady-iraxn--rda" +
- "l-poaxn--rde-ularvikosaigawaxn--rdy-0nabaris-very-nicexn--rennes" +
- "y-v1axn--rhkkervju-01aferrarivnexn--rholt-mragowoodsidemoneyxn--" +
- "rhqv96gxn--rht27zxn--rht3dxn--rht61exn--risa-5nativeamericananti" +
- "questudynamisches-dnsolutionsokndalxn--risr-iraxn--rland-uuaxn--" +
- "rlingen-mxaxn--rmskog-byaxn--rny31hammarfeastafricapetownnews-st" +
- "agingxn--rovu88bieigersundivtasvuodnakamuratajirittogojomedizinh" +
- "istorisches3-website-ap-southeast-1xn--rros-granvindafjordxn--rs" +
- "kog-uuaxn--rst-0naturalhistorymuseumcenterxn--rsta-francaisehara" +
- "xn--rvc1e0am3exn--ryken-vuaxn--ryrvik-byaxn--s-1faithruherecipes" +
- "caravantaarpippulawyxn--s9brj9cntrani-andria-barletta-trani-andr" +
- "iaxn--sandnessjen-ogbielawalterxn--sandy-yuaxn--sdtirol-n2axn--s" +
- "eral-lraxn--ses554gxn--sgne-gratangenxn--skierv-utazastuff-4-sal" +
- "exn--skjervy-v1axn--skjk-soaxn--sknit-yqaxn--sknland-fxaxn--slat" +
- "-5naturalsciencesnaturellestufftoread-booksnesomaxn--slt-elabcie" +
- "szynxn--smla-hraxn--smna-gratis-a-bulls-fanxn--snase-nraxn--sndr" +
- "e-land-0cbielladbrokes3-website-ap-southeast-2xn--snes-poaxn--sn" +
- "sa-roaxn--sr-aurdal-l8axn--sr-fron-q1axn--sr-odal-q1axn--sr-vara" +
- "nger-ggbieszczadygeyachiyodaejeonbuklugsmilebtimnetzjampagefront" +
- "appanamatta-varjjatjeldsundivttasvuotnakaniikawatanaguraxn--srfo" +
- "ld-byaxn--srreisa-q1axn--srum-grazxn--stfold-9xaxn--stjrdal-s1ax" +
- "n--stjrdalshalsen-sqbievathletajimabaridagawakuyabukijobserverra" +
- "nkoshigayachimataikikonaikawachinaganoharamcoachampionshiphoptob" +
- "ishimagazineat-urlillyukiiyamanouchikuhokuryugasakitaurayasudaxn" +
- "--stre-toten-zcbifukagawarszawashingtondclkaratsuginamikatagamil" +
- "itaryukuhashimoichinosekigaharaxn--t60b56axn--tckweatherchannelx" +
- "n--tiq49xqyjetztrentino-s-tirolxn--tjme-hraxn--tn0agrinet-freaks" +
- "tuttgartrentinsued-tirolxn--tnsberg-q1axn--tor131oxn--trany-yuax" +
- "n--trentin-sd-tirol-rzbigv-infoodnetworkangerxn--trentin-sdtirol" +
- "-7vbihorologyurihonjournalistjohnikonanporohtawaramotoineppuglia" +
- "xn--trentino-sd-tirol-c3bikedagestangeometre-experts-comptables3" +
- "-website-eu-west-1xn--trentino-sdtirol-szbilbaogashimadachicago-" +
- "vipsinaappanasonicasertairanzaninohekinannestadiyusuharaxn--tren" +
- "tinosd-tirol-rzbillustrationthewifiatmallorcadaques3-website-sa-" +
- "east-1xn--trentinosdtirol-7vbiomutashinain-the-bandain-vpncasino" +
- "rdkapparaglidinglassassinationalheritagexn--trentinsd-tirol-6vbi" +
- "rdartcenterprisecloudappspotagerxn--trentinsdtirol-nsbirkenesodd" +
- "tangenovaraholtaleninomiyakonojorpelandnparisor-fronirasakincheo" +
- "nishiazaindianapolis-a-bloggerxn--trgstad-r1axn--trna-woaxn--tro" +
- "ms-zuaxn--tysvr-vraxn--uc0atvarggatrentinsuedtirolxn--uc0ay4axn-" +
- "-uist22hamurakamigoris-a-lawyerxn--uisz3gxn--unjrga-rtargivestby" +
- "temarkosakaerodromegallupinbarrel-of-knowledgemologicallazioddau" +
- "thordalandeportenrightathomeftpalmspringsakereportatsunobiraukra" +
- "anghkeymachineustarhubss3-eu-central-1xn--unup4yxn--uuwu58axn--v" +
- "ads-jraxn--valle-aoste-ebbtrysiljanxn--valle-d-aoste-ehbodollsus" +
- "akis-into-cartoonshintokushimaxn--valleaoste-e7axn--valledaoste-" +
- "ebbvacationsusonoxn--vard-jraxn--vegrshei-c0axn--vermgensberater" +
- "-ctbirthplacexn--vermgensberatung-pwbjarkoyusuisserveircateringe" +
- "buildingleezexn--vestvgy-ixa6oxn--vg-yiabkhaziaxn--vgan-qoaxn--v" +
- "gsy-qoa0jevnakershuscultureggiocalabriaxn--vgu402coguchikuzenxn-" +
- "-vhquvaroyxn--vler-qoaxn--vre-eiker-k8axn--vrggt-xqadxn--vry-yla" +
- "5gxn--vuq861bjerkreimbamblebesbyglandroverhallaakesvuemielecceu-" +
- "2xn--w4r85el8fhu5dnraxn--w4rs40lxn--wcvs22dxn--wgbh1collectionxn" +
- "--wgbl6axn--xhq521bjugnieznord-frontierxn--xkc2al3hye2axn--xkc2d" +
- "l3a5ee0handsonxn--y9a3aquariumissilelxn--yer-znaturbruksgymnxn--" +
- "yfro4i67oxn--ygarden-p1axn--ygbi2ammxn--3hcrj9circustomerxn--yst" +
- "re-slidre-ujblackfridayuu2-localhostoregontrailroadrangedalimano" +
- "warudaxn--zbx025dxn--zf0ao64axn--zf0avxn--3oq18vl8pn36axn--zfr16" +
- "4bloombergbauernishigovtjmaxxxboxenapponazure-mobilexnbayxz"
+ "--mxtq1misconfusedxn--ngbc5azdxn--ngbe9e0axn--ngbrxn--3ds443gxn-" +
+ "-nit225koryokamikawanehonbetsurutaharaxn--nmesjevuemie-tcbalsan-" +
+ "suedtirolkuszczytnombresciaxn--nnx388axn--nodessakurais-very-evi" +
+ "llagexn--nqv7fs00emaxn--nry-yla5gxn--ntso0iqx3axn--ntsq17gxn--nt" +
+ "tery-byaeservehttpiszxn--nvuotna-hwaxn--nyqy26axn--o1achattanoog" +
+ "anordlandxn--o3cw4halsaintlouis-a-anarchistoireggiocalabriaxn--o" +
+ "3cyx2axn--od0algxn--od0aq3betainaboxfusejnyoriikaratsuginamikata" +
+ "gamilitaryoshiokanzakiyokawaraxn--ogbpf8flekkefjordxn--oppegrd-i" +
+ "xaxn--ostery-fyawatahamaxn--osyro-wuaxn--otu796dxn--p1acfermochi" +
+ "zukirovogradoyxn--p1ais-very-goodyearxn--pbt977cnpyatigorskodjef" +
+ "fersonxn--pgbs0dhlxn--porsgu-sta26ferraraxn--pssu33lxn--pssy2uxn" +
+ "--q9jyb4cnsaobernardoxn--qcka1pmckinseyxn--qqqt11mishimatsumaeba" +
+ "shikshacknetrentinoa-adigexn--qxamusementdllpagestudioxn--rady-i" +
+ "raxn--rdal-poaxn--rde-ularvikosaigawaxn--rdy-0nabaris-very-nicex" +
+ "n--rennesy-v1axn--rhkkervju-01aferrarivnexn--rholt-mragowoodside" +
+ "moneyxn--rhqv96gxn--rht27zxn--rht3dxn--rht61exn--risa-5nativeame" +
+ "ricanantiquestudynamisches-dnsomaxn--risr-iraxn--rland-uuaxn--rl" +
+ "ingen-mxaxn--rmskog-byaxn--rny31hammarfeastafricapetownnews-stag" +
+ "ingxn--rovu88bhzcasertaipeiheijin-the-bandain-vpncasinordkappana" +
+ "matta-varjjatjomemergencyahikobeardubaiduckdns3-us-west-2xn--rro" +
+ "s-granvindafjordxn--rskog-uuaxn--rst-0naturalhistorymuseumcenter" +
+ "xn--rsta-francaiseharaxn--rvc1e0am3exn--ryken-vuaxn--ryrvik-byax" +
+ "n--s-1faithruherecipescaravantaarpittsburghofficialxn--s9brj9cnt" +
+ "raniandriabarlettatraniandriaxn--sandnessjen-ogbieigersundivtasv" +
+ "uodnakamuratajirittogliattires3-website-ap-northeast-1xn--sandy-" +
+ "yuaxn--sdtirol-n2axn--seral-lraxn--ses554gxn--sgne-gratangenxn--" +
+ "skierv-utazastuff-4-salexn--skjervy-v1axn--skjk-soaxn--sknit-yqa" +
+ "xn--sknland-fxaxn--slat-5naturalsciencesnaturellestufftoread-boo" +
+ "ksnesomnarviikamishihoronobeauxartsandcraftsolarssonxn--slt-elab" +
+ "cieszynxn--smla-hraxn--smna-gratis-a-bulls-fanxn--snase-nraxn--s" +
+ "ndre-land-0cbielawaltervistaprinternationalfirearms3-website-ap-" +
+ "southeast-1xn--snes-poaxn--snsa-roaxn--sr-aurdal-l8axn--sr-fron-" +
+ "q1axn--sr-odal-q1axn--sr-varanger-ggbielladbrokes3-website-ap-so" +
+ "utheast-2xn--srfold-byaxn--srreisa-q1axn--srum-grazxn--stfold-9x" +
+ "axn--stjrdal-s1axn--stjrdalshalsen-sqbieszczadygeyachiyodaejeonb" +
+ "uklugsmilebtimnetzjampagefrontappanasonicateringebuildingleezexn" +
+ "--stre-toten-zcbievathletajimabaridagawakuyabukijobserverrankosh" +
+ "igayachimataijincheonhlfanhs3-website-eu-west-1xn--t60b56axn--tc" +
+ "kweatherchannelxn--tiq49xqyjetztrentino-sudtirolxn--tjme-hraxn--" +
+ "tn0agrinetbankosakaerodromegallupinbarreauctionredumbrella-spezi" +
+ "australiaisondriobranconagawalbrzycharitysfjordds3-eu-central-1x" +
+ "n--tnsberg-q1axn--tor131oxn--trany-yuaxn--trentin-sd-tirol-rzbif" +
+ "ukagawarszawashingtondclkareliancexn--trentin-sdtirol-7vbigv-inf" +
+ "oodnetworkangerxn--trentino-sd-tirol-c3bihorologyukindianapolis-" +
+ "a-bloggerxn--trentino-sdtirol-szbikedagestangeometre-experts-com" +
+ "ptables3-website-sa-east-1xn--trentinosd-tirol-rzbilbaogashimada" +
+ "chicagoboats3-website-us-east-1xn--trentinosdtirol-7vbillustrati" +
+ "onthewifiatmallorcadaques3-website-us-west-1xn--trentinsd-tirol-" +
+ "6vbiohtawaramotoineppueblockbustermezlglitchaselfiparaglidingliw" +
+ "icexn--trentinsdtirol-nsbirdartcenterprisecloudappspotagerxn--tr" +
+ "gstad-r1axn--trna-woaxn--troms-zuaxn--tysvr-vraxn--uc0atvarggatr" +
+ "itonxn--uc0ay4axn--uist22hamurakamigoris-a-liberalxn--uisz3gxn--" +
+ "unjrga-rtarumizusawaxn--unup4yxn--uuwu58axn--vads-jraxn--valle-a" +
+ "oste-ebbturystykanmakiwienxn--valle-d-aoste-ehbodollstuttgartrev" +
+ "isohughesooxn--valleaoste-e7axn--valledaoste-ebbvacationsusakis-" +
+ "into-gamessinazawaxn--vard-jraxn--vegrshei-c0axn--vermgensberate" +
+ "r-ctbirkenesoddtangenovaraholtalenikonanporomutashinaindianmarke" +
+ "tinglobalashovhachinohedmarkariyameiwamarumorimachidaxn--vermgen" +
+ "sberatung-pwbirthplacexn--vestvgy-ixa6oxn--vg-yiabkhaziaxn--vgan" +
+ "-qoaxn--vgsy-qoa0jevnakershuscultureggioemiliaromagnamsosnowiech" +
+ "oyodobashichikashukujitawaraumalborkasaokamiminersantabarbaraxn-" +
+ "-vgu402coguchikuzenxn--vhquvaroyxn--vler-qoaxn--vre-eiker-k8axn-" +
+ "-vrggt-xqadxn--vry-yla5gxn--vuq861bjarkoyukuhashimoichinosekigah" +
+ "araxn--w4r85el8fhu5dnraxn--w4rs40lxn--wcvs22dxn--wgbh1collection" +
+ "xn--wgbl6axn--xhq521bjerkreimbamblebesbyglandroverhallaakesvuemi" +
+ "elecceu-2xn--xkc2al3hye2axn--xkc2dl3a5ee0handsonxn--y9a3aquarium" +
+ "issilevangerxn--yer-znaturbruksgymnxn--yfro4i67oxn--ygarden-p1ax" +
+ "n--ygbi2ammxn--3e0b707exn--ystre-slidre-ujbjugnieznord-frontierx" +
+ "n--zbx025dxn--zf0ao64axn--zf0avxn--3hcrj9cistrondheimmobilieniss" +
+ "hingucciprianiigataishinomakinkobayashikaoirmitakeharaxn--zfr164" +
+ "blackfridayurihonjournalistjohninohekinannestadivttasvuotnakanii" +
+ "kawatanaguraxnbayxz"
// nodes is the list of nodes. Each node is represented as a uint32, which
// encodes the node's children, wildcard bit and node type (as an index into
@@ -522,8860 +523,8891 @@ const text = "9guacuiababia-goracleaningroks-theatree164-baltimore-og-romsdali"
// [15 bits] text index
// [ 6 bits] text length
var nodes = [...]uint32{
- 0x32bd43,
- 0x3ac204,
- 0x2e8b86,
- 0x2fe083,
- 0x2fe086,
- 0x389b46,
- 0x3b0ec3,
- 0x31f984,
- 0x309b87,
- 0x2e87c8,
+ 0x324003,
+ 0x3ac784,
+ 0x2e6d06,
+ 0x2f86c3,
+ 0x2f86c6,
+ 0x38e946,
+ 0x3b2f83,
+ 0x316b04,
+ 0x3280c7,
+ 0x2e6948,
0x1a000c2,
- 0x1f3dd07,
- 0x375009,
- 0x2c444a,
- 0x2c444b,
- 0x22d043,
- 0x2342c5,
- 0x2206702,
- 0x2483c4,
- 0x25ba43,
- 0x331e45,
- 0x260dcc2,
- 0x32eec3,
- 0x2a1e744,
- 0x30b345,
- 0x2e240c2,
- 0x26dc8e,
- 0x253f83,
- 0x3a7b46,
- 0x3201842,
- 0x2d02c7,
- 0x236c86,
- 0x3604b02,
- 0x227483,
- 0x280a84,
- 0x2165c6,
- 0x39fc48,
- 0x289886,
- 0x26f844,
- 0x3a00b02,
- 0x34a789,
- 0x217307,
- 0x200f46,
- 0x274909,
- 0x2fccc8,
- 0x346d44,
- 0x368ac6,
- 0x255fc6,
- 0x3e017c2,
- 0x23938f,
- 0x205b8e,
- 0x2199c4,
- 0x215ac5,
- 0x32bc45,
- 0x2e1d89,
- 0x23cc09,
- 0x216dc7,
- 0x21e046,
- 0x248903,
- 0x4220f02,
- 0x222e83,
- 0x317cca,
- 0x46020c3,
- 0x248d45,
- 0x2ffe82,
- 0x38a8c9,
- 0x4e02442,
- 0x20c3c4,
- 0x3b89c6,
- 0x336d45,
- 0x36c084,
- 0x5637884,
- 0x20a683,
- 0x233684,
- 0x5a026c2,
- 0x250bc4,
- 0x5e6c7c4,
- 0x398e8a,
+ 0x1f3f4c7,
+ 0x378d49,
+ 0x2c3d8a,
+ 0x2c3d8b,
+ 0x234283,
+ 0x235a45,
+ 0x2203782,
+ 0x3c3f44,
+ 0x23be43,
+ 0x327905,
+ 0x260e2c2,
+ 0x3425c3,
+ 0x2a1f004,
+ 0x331f05,
+ 0x2e12502,
+ 0x270d0e,
+ 0x251a03,
+ 0x3a7ac6,
+ 0x3202e82,
+ 0x2cf107,
+ 0x238046,
+ 0x3602a42,
+ 0x223743,
+ 0x280904,
+ 0x2171c6,
+ 0x3381c8,
+ 0x289106,
+ 0x271dc4,
+ 0x3a00ac2,
+ 0x34c289,
+ 0x215c87,
+ 0x331a86,
+ 0x2fb689,
+ 0x36dc08,
+ 0x34a384,
+ 0x36a106,
+ 0x248746,
+ 0x3e03082,
+ 0x22a54f,
+ 0x211b0e,
+ 0x216684,
+ 0x213985,
+ 0x323f05,
+ 0x2e3949,
+ 0x23ec89,
+ 0x2179c7,
+ 0x21e906,
+ 0x238a03,
+ 0x42197c2,
+ 0x2197c3,
+ 0x30d24a,
+ 0x4631643,
+ 0x255b85,
+ 0x2fae02,
+ 0x38f789,
+ 0x4e03002,
+ 0x204dc4,
+ 0x203006,
+ 0x32cec5,
+ 0x36f104,
+ 0x5624404,
+ 0x21c183,
+ 0x234dc4,
+ 0x5a04182,
+ 0x23afc4,
+ 0x5f8d7c4,
+ 0x37bc4a,
0x6200882,
- 0x3b7607,
- 0x206288,
- 0x7202202,
- 0x37e987,
- 0x22d3c4,
- 0x2c1807,
- 0x22d3c5,
- 0x351647,
- 0x3cbf86,
- 0x2ad604,
- 0x32ec45,
- 0x25bc47,
- 0x82052c2,
- 0x244683,
- 0x20b582,
- 0x3607c3,
- 0x860d242,
- 0x283a05,
- 0x8a00202,
- 0x243f44,
- 0x2e1a05,
- 0x219907,
- 0x21f2ce,
- 0x2b0444,
- 0x265604,
- 0x218a43,
- 0x371bc9,
- 0x257f0b,
- 0x269488,
- 0x2746c8,
- 0x38c288,
- 0x28da08,
- 0x346b8a,
- 0x351547,
- 0x2c7086,
- 0x8e4a0c2,
- 0x309243,
- 0x3ce603,
- 0x3d0044,
- 0x309283,
- 0x3639c3,
- 0x1739742,
- 0x9202c42,
- 0x27fe45,
- 0x39eb86,
- 0x281084,
- 0x369247,
- 0x250a06,
- 0x2ba9c4,
- 0x389207,
- 0x203a83,
- 0x96cb182,
- 0x9a25a42,
- 0x9e25802,
- 0x225806,
- 0xa200282,
- 0x2850c5,
- 0x33ac83,
- 0x3c0604,
- 0x2ef704,
- 0x2ef705,
- 0x3c4703,
- 0xa64ce83,
- 0xab3b5c2,
- 0x28cf05,
- 0x3da30b,
- 0x2c004b,
- 0x22afc4,
- 0x3dc049,
- 0x207fc4,
- 0xae08202,
- 0x208a43,
- 0x208fc3,
- 0xb201a42,
- 0x2ee503,
- 0x20a94a,
- 0xb6010c2,
- 0x2dca05,
- 0x2e0f4a,
- 0x38b104,
- 0x20b083,
- 0x20b944,
+ 0x3ba4c7,
+ 0x212208,
+ 0x7204602,
+ 0x3bda07,
+ 0x22f344,
+ 0x2c1247,
+ 0x22f345,
+ 0x361307,
+ 0x326546,
+ 0x28c784,
+ 0x342345,
+ 0x2774c7,
+ 0x8a02cc2,
+ 0x245a03,
+ 0x20bd02,
+ 0x36af43,
+ 0x8e09fc2,
+ 0x282e45,
+ 0x9200202,
+ 0x2452c4,
+ 0x3a9905,
+ 0x2165c7,
+ 0x366b8e,
+ 0x2b1b04,
+ 0x263a84,
+ 0x20fc03,
+ 0x268309,
+ 0x26a0cb,
+ 0x27e9c8,
+ 0x2fb448,
+ 0x353748,
+ 0x28dc48,
+ 0x34a1ca,
+ 0x361207,
+ 0x2c6606,
+ 0x9682702,
+ 0x375fc3,
+ 0x3cb183,
+ 0x3ccb84,
+ 0x376003,
+ 0x363c03,
+ 0x173b542,
+ 0x9a019c2,
+ 0x27fec5,
+ 0x339e46,
+ 0x235804,
+ 0x37ab87,
+ 0x23ae06,
+ 0x2ba3c4,
+ 0x394487,
+ 0x2019c3,
+ 0x9ecab82,
+ 0xa21c342,
+ 0xa61c102,
+ 0x21c106,
+ 0xaa00282,
+ 0x284505,
+ 0x33ca83,
+ 0x3c2804,
+ 0x2e99c4,
+ 0x2e99c5,
+ 0x3c6083,
+ 0xae4af03,
+ 0xb33d3c2,
+ 0x28d145,
+ 0x3dc00b,
+ 0x3c65cb,
+ 0x226804,
+ 0x204389,
+ 0x205504,
+ 0xb605742,
+ 0x205f43,
+ 0x207583,
+ 0xba08d42,
+ 0x2ed10a,
+ 0xbe09002,
+ 0x3c41c5,
+ 0x2df2ca,
+ 0x390144,
+ 0x20b803,
+ 0x20c0c4,
+ 0x20d3c3,
+ 0x20d3c4,
+ 0x20d3c7,
+ 0x20e185,
+ 0x20ec06,
+ 0x20eec6,
+ 0x212fc3,
+ 0x216a08,
0x20c483,
- 0x20c484,
- 0x20c487,
- 0x20db85,
- 0x210d86,
- 0x211146,
- 0x212103,
- 0x215e08,
- 0x20e383,
- 0xba1c742,
- 0x247308,
- 0x37868b,
- 0x220808,
- 0x221346,
- 0x221e87,
- 0x225088,
- 0xca07c02,
- 0xcf25802,
- 0x30b488,
- 0x219047,
- 0x314885,
- 0x314888,
- 0xd2bdcc8,
- 0x2d4803,
- 0x228bc4,
- 0x389bc2,
- 0xd629c02,
- 0xda43fc2,
- 0xe22b882,
- 0x22b883,
- 0xe605cc2,
- 0x30f943,
- 0x239944,
- 0x212283,
- 0x3cbd04,
- 0x30ab0b,
- 0x23af03,
- 0x2ea246,
- 0x23af04,
- 0x2b920e,
- 0x381c85,
- 0x3a7c48,
- 0x235dc7,
- 0x235dca,
- 0x226e43,
- 0x3ac007,
- 0x2580c5,
- 0x22fc84,
- 0x256786,
- 0x256787,
- 0x312944,
- 0x22f5c7,
- 0xea1f604,
- 0x398b44,
- 0x398b46,
- 0x25b444,
- 0x3c4e86,
- 0x20b383,
- 0x3d1dc8,
- 0x20b388,
- 0x2655c3,
- 0x2ee4c3,
- 0x343dc4,
- 0x353ec3,
- 0xf235d82,
- 0xf68d142,
- 0x208183,
- 0x242d46,
- 0x28ed83,
- 0x23ab04,
- 0xfa17b02,
- 0x308183,
- 0x217b03,
- 0x212f82,
- 0xfe014c2,
- 0x2c5006,
- 0x234f87,
- 0x275487,
- 0x209e85,
- 0x396d84,
- 0x29b045,
- 0x23f907,
- 0x2eb4c9,
- 0x2fed86,
- 0x300c48,
- 0x3109c6,
- 0x1022ec82,
- 0x3019c8,
- 0x3037c6,
- 0x2d4b85,
- 0x321b07,
- 0x323144,
- 0x323145,
- 0x10731a84,
- 0x331a88,
- 0x10a0a602,
- 0x10e00482,
- 0x30c486,
+ 0xc21c782,
+ 0x246648,
+ 0x38764b,
+ 0x21fe48,
+ 0x220c06,
+ 0x221187,
+ 0x224f08,
+ 0xd205142,
+ 0xd6bfa42,
+ 0x332048,
+ 0x210207,
+ 0x309b05,
+ 0x309b08,
+ 0xdac8208,
+ 0x2a9e43,
+ 0x22b9c4,
+ 0x38e9c2,
+ 0xde2bd82,
+ 0xe228b82,
+ 0xea2c542,
+ 0x22c543,
+ 0xee07982,
+ 0x305b43,
+ 0x238fc4,
+ 0x207983,
+ 0x31f8c4,
+ 0x332c0b,
+ 0x280c03,
+ 0x2e4a86,
+ 0x280c04,
+ 0x2b800e,
+ 0x384a45,
+ 0x3a7bc8,
+ 0x2fa347,
+ 0x2fa34a,
+ 0x223103,
+ 0x3ac587,
+ 0x26a285,
+ 0x231cc4,
+ 0x254146,
+ 0x254147,
+ 0x2f6e04,
+ 0x22ee47,
+ 0xf309544,
+ 0x37b904,
+ 0x37b906,
+ 0x2595c4,
+ 0x3a8c46,
+ 0x20bb03,
+ 0x3b9a08,
+ 0x20bb08,
+ 0x263a43,
+ 0x2ed0c3,
+ 0x3453c4,
+ 0x356ac3,
+ 0xfa47502,
+ 0xfe8d382,
+ 0x2056c3,
+ 0x243e86,
+ 0x342883,
+ 0x380c04,
+ 0x10216482,
+ 0x24ab83,
+ 0x216483,
+ 0x213e42,
+ 0x10600d42,
+ 0x2c4586,
+ 0x236707,
+ 0x3be887,
+ 0x3c6a85,
+ 0x39ad84,
+ 0x290e85,
+ 0x239b07,
+ 0x2dbc49,
+ 0x2e1b06,
+ 0x2e5d88,
+ 0x2fd486,
+ 0x10a27f02,
+ 0x3db188,
+ 0x2fe246,
+ 0x227f05,
+ 0x3184c7,
+ 0x318b04,
+ 0x318b05,
+ 0x10f27544,
+ 0x327548,
+ 0x11214c42,
+ 0x11600482,
+ 0x212746,
0x200488,
- 0x358345,
+ 0x358ec5,
0x359946,
- 0x35e748,
- 0x37c508,
- 0x11205f85,
- 0x11625344,
- 0x2448c7,
- 0x11a07a42,
- 0x11ed5e42,
- 0x13202782,
- 0x3b8ac5,
- 0x2a5f45,
- 0x377c46,
- 0x3a0ec7,
- 0x22c487,
- 0x13a2d7c3,
- 0x2df287,
- 0x348dc8,
- 0x1da2d989,
- 0x26de47,
- 0x22de07,
- 0x22e808,
- 0x22f006,
- 0x22f786,
- 0x230bcc,
- 0x23230a,
- 0x232c87,
- 0x23418b,
- 0x234dc7,
- 0x234dce,
- 0x1de35c44,
- 0x236204,
- 0x239807,
- 0x260147,
- 0x23c4c6,
- 0x23c4c7,
- 0x337307,
- 0x1e22bdc2,
- 0x23de06,
- 0x23de0a,
- 0x23e20b,
- 0x23fec7,
- 0x240945,
- 0x2414c3,
- 0x241b06,
- 0x241b07,
- 0x272803,
- 0x1e600102,
- 0x24238a,
- 0x1eb76cc2,
- 0x1ee487c2,
- 0x1f247002,
- 0x1f636d82,
- 0x247745,
- 0x248484,
- 0x1fe37982,
- 0x250c45,
- 0x231543,
- 0x2080c5,
- 0x204a44,
- 0x20bc84,
- 0x21f906,
- 0x27f946,
- 0x2a7843,
- 0x3ba9c4,
- 0x275783,
- 0x20e02942,
- 0x222204,
- 0x244e46,
- 0x222205,
- 0x2576c6,
- 0x321c08,
- 0x28fd84,
- 0x2102c8,
- 0x39fa05,
- 0x39f748,
- 0x2bef86,
+ 0x35b9c8,
+ 0x3804c8,
+ 0x11a0e745,
+ 0x11e22584,
+ 0x245c47,
+ 0x12204f82,
+ 0x126291c2,
+ 0x13a03102,
+ 0x203105,
+ 0x2864c5,
+ 0x386c06,
+ 0x34f647,
+ 0x22db47,
+ 0x1422f743,
+ 0x30f807,
+ 0x37af08,
+ 0x1e22f909,
+ 0x270ec7,
+ 0x22fd87,
+ 0x2309c8,
+ 0x2311c6,
+ 0x2317c6,
+ 0x2324cc,
+ 0x23394a,
+ 0x2342c7,
+ 0x23590b,
+ 0x236547,
+ 0x23654e,
+ 0x1e6373c4,
+ 0x2375c4,
+ 0x238e87,
+ 0x25e687,
+ 0x23e546,
+ 0x23e547,
+ 0x344b07,
+ 0x26f503,
+ 0x1ea2ca82,
+ 0x23f306,
+ 0x23f30a,
+ 0x23fd0b,
+ 0x241187,
+ 0x241c05,
+ 0x242143,
+ 0x242c46,
+ 0x242c47,
+ 0x2eaf03,
+ 0x1ee00102,
+ 0x2434ca,
+ 0x1f37a202,
+ 0x1f647542,
+ 0x1fa46342,
+ 0x1fe38142,
+ 0x246a85,
+ 0x247204,
+ 0x20624502,
+ 0x23b045,
+ 0x23b843,
+ 0x205605,
+ 0x202984,
+ 0x20adc4,
+ 0x3671c6,
+ 0x27f2c6,
+ 0x2a75c3,
+ 0x3c0544,
+ 0x3beb83,
+ 0x21607682,
+ 0x221504,
+ 0x2461c6,
+ 0x221505,
+ 0x249f46,
+ 0x3185c8,
+ 0x225304,
+ 0x22e988,
+ 0x337f85,
+ 0x33aa08,
+ 0x2bc7c6,
0x359d87,
- 0x26ec04,
- 0x2226ec06,
- 0x22645dc3,
- 0x39cbc3,
- 0x348188,
- 0x332c04,
- 0x22b5ed87,
- 0x232de7c6,
- 0x2de7c9,
- 0x336088,
- 0x38ca48,
- 0x34a204,
- 0x3c2b83,
- 0x23e8c2,
- 0x23652282,
- 0x23a03e02,
- 0x3c7983,
- 0x23e12ac2,
- 0x2f0a04,
- 0x36f146,
- 0x309cc5,
- 0x21b1c3,
- 0x2b5f07,
- 0x3306c3,
- 0x338108,
- 0x214ec5,
- 0x25cdc3,
- 0x2e1985,
- 0x2e1ac4,
- 0x3034c6,
- 0x217004,
- 0x217b86,
- 0x219846,
- 0x206804,
- 0x235183,
- 0x2420d602,
- 0x2479e645,
+ 0x2877c4,
+ 0x22a877c6,
+ 0x22e3c8c3,
+ 0x3a03c3,
+ 0x2e6648,
+ 0x329044,
+ 0x23360887,
+ 0x23add286,
+ 0x2dd289,
+ 0x32d3c8,
+ 0x268a48,
+ 0x329bc4,
+ 0x204c03,
+ 0x2403c2,
+ 0x23e50002,
+ 0x24201d42,
+ 0x207ec3,
+ 0x2460ce02,
+ 0x2eae84,
+ 0x372c86,
+ 0x328205,
+ 0x21b703,
+ 0x2b6f47,
+ 0x3301c3,
+ 0x336588,
+ 0x210a05,
+ 0x25b603,
+ 0x3a9885,
+ 0x3a99c4,
+ 0x3006c6,
+ 0x212a46,
+ 0x216506,
+ 0x203884,
+ 0x236903,
+ 0x24a08682,
+ 0x24f39905,
0x200843,
- 0x24e16042,
- 0x22d943,
- 0x246385,
- 0x25233743,
- 0x25a33749,
- 0x25e00942,
- 0x26605242,
- 0x28ca45,
- 0x213986,
- 0x20da06,
- 0x2d0f48,
- 0x2d0f4b,
- 0x32dc4b,
- 0x20a085,
- 0x2cc809,
- 0x1601982,
- 0x2e8e88,
- 0x21f084,
- 0x26e01242,
- 0x337943,
- 0x27660306,
- 0x27db08,
- 0x27a01f02,
- 0x310588,
- 0x27e758c2,
- 0x33f30a,
- 0x282d2003,
- 0x28b75646,
- 0x399608,
- 0x315848,
- 0x3c0b46,
- 0x386d47,
- 0x239587,
- 0x255b4a,
- 0x38b184,
- 0x35d884,
- 0x374a49,
- 0x28fabc05,
- 0x205d86,
- 0x219243,
- 0x271e84,
- 0x29202404,
- 0x202407,
- 0x29757a47,
- 0x26e4c4,
- 0x378c45,
- 0x377d08,
- 0x3a4587,
- 0x249487,
- 0x29a19d02,
- 0x3c3844,
- 0x293548,
- 0x24aa44,
- 0x24e444,
- 0x24e805,
- 0x24e947,
- 0x29e4dbc9,
- 0x250104,
- 0x250f49,
- 0x251188,
- 0x251984,
- 0x251987,
- 0x2a252083,
- 0x252747,
- 0x1603582,
- 0x16b0f82,
- 0x253946,
- 0x253fc7,
- 0x254244,
- 0x255047,
- 0x256bc7,
- 0x257843,
- 0x2b06c2,
- 0x20c742,
- 0x2747c3,
- 0x3be744,
- 0x3be74b,
- 0x2a6747c8,
- 0x25c784,
- 0x258ec5,
- 0x25a687,
- 0x25bec5,
- 0x2e0b8a,
- 0x25c6c3,
- 0x2aa0e282,
- 0x20e284,
- 0x25ff09,
- 0x263f83,
- 0x264047,
- 0x38c6c9,
- 0x3d77c8,
- 0x238983,
- 0x27cb87,
- 0x27dfc9,
- 0x23fac3,
- 0x2872c4,
- 0x288c09,
- 0x28ab06,
- 0x219c03,
- 0x205282,
- 0x236883,
- 0x2b0d87,
- 0x236885,
- 0x3cb4c6,
- 0x2aea44,
- 0x302fc5,
- 0x279d03,
- 0x212346,
- 0x237482,
- 0x24ce44,
- 0x2ae0a1c2,
- 0x2b22b083,
- 0x2b604182,
- 0x24c203,
- 0x2115c4,
- 0x2115c7,
- 0x38b206,
- 0x2023c2,
- 0x2ba02382,
- 0x321e04,
- 0x2be0c602,
- 0x2c212782,
- 0x246644,
- 0x246645,
- 0x3cae05,
- 0x365f46,
- 0x2c609d82,
- 0x360245,
- 0x3c53c5,
- 0x2270c3,
- 0x211746,
- 0x21c105,
- 0x225782,
- 0x357f85,
- 0x225784,
- 0x226203,
- 0x228d03,
- 0x2ca05142,
- 0x233b47,
- 0x251b04,
- 0x251b09,
- 0x271d84,
- 0x28d503,
- 0x39bf48,
- 0x2cea5dc4,
- 0x2a5dc6,
- 0x2ab3c3,
- 0x259703,
- 0x220583,
- 0x2d2ee042,
- 0x300002,
- 0x2d600642,
- 0x33cd88,
- 0x220108,
- 0x3b1646,
- 0x25c585,
- 0x22c045,
- 0x201887,
- 0x2da78745,
- 0x2068c2,
- 0x2de96bc2,
- 0x2e200042,
- 0x31ed08,
- 0x301905,
- 0x2f5f44,
- 0x257605,
- 0x24a487,
- 0x273244,
- 0x242282,
- 0x2e605002,
- 0x34e6c4,
- 0x221807,
- 0x28f307,
- 0x351604,
- 0x3ced83,
- 0x265504,
- 0x265508,
- 0x22fac6,
- 0x25660a,
- 0x3575c4,
- 0x295548,
- 0x28af44,
- 0x221f86,
- 0x296b84,
- 0x3b8dc6,
- 0x251dc9,
- 0x245847,
- 0x21f183,
- 0x2ea07102,
- 0x34a483,
- 0x208402,
- 0x2ee01d02,
- 0x2f3206,
- 0x380e08,
- 0x2a7747,
- 0x22a1c9,
- 0x295109,
- 0x2a8c85,
- 0x2aa589,
- 0x2aad45,
- 0x2aae89,
- 0x2abe05,
- 0x2ac848,
- 0x2f20c644,
- 0x2f657987,
- 0x22e1c3,
- 0x2aca47,
- 0x22e1c6,
- 0x2ace87,
- 0x2a48c5,
- 0x2ba0c3,
- 0x2fa320c2,
- 0x20b2c4,
- 0x2fe2bf42,
- 0x302373c2,
- 0x33c146,
- 0x206205,
- 0x2af987,
- 0x32f343,
- 0x363944,
- 0x203f43,
- 0x2c6883,
- 0x306067c2,
- 0x30e03d82,
- 0x389c44,
- 0x36b103,
- 0x2fc5c5,
- 0x31205e42,
- 0x31a00bc2,
- 0x2da6c6,
- 0x332d44,
- 0x321644,
- 0x32164a,
- 0x322005c2,
- 0x244b03,
- 0x2157ca,
- 0x219c88,
- 0x32622884,
- 0x2005c3,
- 0x32a038c3,
- 0x281709,
- 0x252d49,
- 0x2b6006,
- 0x32e19e43,
- 0x21c445,
- 0x31de8d,
- 0x219e46,
- 0x21bccb,
- 0x33204c02,
- 0x2b2c48,
- 0x36215f02,
- 0x36604c82,
- 0x375e05,
- 0x36a01b82,
- 0x230047,
- 0x2adec7,
- 0x204383,
- 0x341788,
- 0x36e06102,
- 0x3b9c84,
- 0x219583,
- 0x328085,
- 0x23e906,
- 0x220d44,
- 0x2ee483,
- 0x2b1e03,
- 0x37202d42,
- 0x20a004,
- 0x3bc2c5,
- 0x2b0987,
- 0x27a143,
- 0x2b1403,
- 0x16b14c2,
- 0x2b14c3,
- 0x2b1d83,
- 0x376035c2,
- 0x3b7d44,
- 0x27fb46,
- 0x2e6343,
- 0x2b22c3,
- 0x37a4d442,
- 0x24d448,
- 0x2b3204,
- 0x368486,
- 0x25d187,
- 0x29b3c6,
- 0x36f744,
- 0x45a015c2,
- 0x22e08b,
- 0x2f90ce,
- 0x21450f,
- 0x2b0fc3,
- 0x4625d602,
- 0x1637542,
- 0x46603882,
- 0x295ac3,
- 0x209503,
- 0x21d046,
- 0x2eb746,
- 0x21ac87,
- 0x30e184,
- 0x46a13ac2,
- 0x46e0a3c2,
- 0x241385,
- 0x2fa2c7,
- 0x2b4ac6,
- 0x47248702,
- 0x32e844,
- 0x2bab43,
- 0x47653a42,
- 0x47b70e03,
- 0x2bbb44,
- 0x2c0a89,
- 0x47ec80c2,
- 0x48203942,
- 0x203945,
- 0x486c8e02,
- 0x48a06ac2,
- 0x35be87,
- 0x3b2349,
- 0x37528b,
- 0x239345,
- 0x26a549,
- 0x26d1c6,
- 0x38f987,
- 0x48e0e984,
- 0x3d5849,
- 0x37b387,
- 0x20f607,
- 0x22bb83,
- 0x2b2ac6,
- 0x32a947,
- 0x20bec3,
- 0x3ca646,
- 0x4960ac02,
- 0x49a339c2,
- 0x3b5543,
- 0x38aa85,
- 0x21ee87,
- 0x2eb846,
- 0x236805,
- 0x251304,
- 0x2a3dc5,
- 0x38bc44,
- 0x49e00f82,
- 0x274d87,
- 0x2c5c44,
- 0x23bf84,
- 0x34998d,
- 0x2d9189,
- 0x22be88,
- 0x203bc4,
- 0x3b9445,
- 0x20df07,
- 0x210184,
- 0x267b87,
- 0x357285,
- 0x4a214a04,
- 0x2b4085,
- 0x262c44,
- 0x2b1a46,
- 0x3a0cc5,
- 0x4a624ec2,
- 0x30c403,
- 0x35cf44,
- 0x35cf45,
- 0x3520c6,
- 0x236945,
- 0x238904,
- 0x34c603,
- 0x4aa12a06,
- 0x2676c5,
- 0x282305,
- 0x3a0dc4,
- 0x2e5a43,
- 0x2e5a4c,
- 0x4aeb0a82,
- 0x4b203502,
- 0x4b600b42,
- 0x214903,
- 0x214904,
- 0x4ba08002,
- 0x37e508,
- 0x3cb585,
- 0x24b304,
- 0x367a46,
- 0x4be0f1c2,
- 0x4c205e82,
- 0x4c601442,
- 0x28c045,
- 0x2066c6,
- 0x357984,
- 0x216b06,
- 0x371f86,
- 0x210043,
- 0x4cb4b2ca,
- 0x271cc5,
- 0x317c83,
- 0x209b86,
- 0x209b89,
- 0x224207,
- 0x2a4ec8,
- 0x2fcb89,
- 0x331688,
- 0x226b86,
- 0x218a03,
- 0x4cedf302,
- 0x3a1788,
- 0x4d24ab82,
- 0x4d6024c2,
- 0x22a243,
- 0x2e43c5,
- 0x26ae44,
- 0x211ec9,
- 0x2e14c4,
- 0x21a048,
- 0x4de08443,
- 0x4e30af84,
- 0x2139c8,
- 0x3498c7,
- 0x4e65e5c2,
- 0x23f1c2,
- 0x32bbc5,
- 0x265dc9,
- 0x205e03,
- 0x281304,
- 0x31de44,
- 0x20df83,
- 0x2835ca,
- 0x4ea01582,
- 0x4ee0b102,
- 0x2cb103,
- 0x38e683,
- 0x162d842,
- 0x308a43,
- 0x4f202dc2,
- 0x4f600c02,
- 0x4fb216c4,
- 0x3dcb86,
- 0x39ba06,
- 0x226244,
- 0x279343,
- 0x3bb343,
- 0x4fecb283,
- 0x23e586,
- 0x3a4dc5,
- 0x2cc1c7,
- 0x2cee45,
- 0x2d0006,
- 0x2d1208,
- 0x2d1406,
- 0x207304,
- 0x29c1cb,
- 0x2d6043,
- 0x2d6045,
- 0x2d6c88,
- 0x2104c2,
- 0x35c182,
- 0x502477c2,
- 0x50600e82,
- 0x200e83,
- 0x50a6cec2,
- 0x26cec3,
- 0x2d7683,
- 0x51224682,
- 0x516dc3c6,
- 0x2594c6,
- 0x51ab2e42,
- 0x51e09002,
- 0x52228d42,
- 0x52645ec2,
- 0x52a1a282,
- 0x52e01342,
- 0x20ed83,
- 0x2c9e05,
- 0x327d86,
- 0x53205184,
- 0x244c4a,
- 0x3aa406,
- 0x20c844,
- 0x201c43,
- 0x53e02a42,
- 0x202642,
- 0x22d903,
- 0x54206b43,
- 0x366547,
- 0x3a0bc7,
- 0x55ee7247,
- 0x3cd307,
- 0x227983,
- 0x35fc8a,
- 0x235fc4,
- 0x31b684,
- 0x31b68a,
- 0x22c5c5,
- 0x56205d42,
- 0x255003,
- 0x56600602,
- 0x251ac3,
- 0x34a443,
- 0x56e00582,
- 0x348d44,
- 0x201a84,
- 0x3bf805,
- 0x322885,
- 0x2aa2c6,
- 0x2b6c06,
- 0x5724fd42,
- 0x576013c2,
- 0x37a405,
- 0x2591d2,
- 0x34f1c6,
- 0x24e703,
- 0x304c46,
- 0x2b4545,
- 0x160a982,
- 0x5fa0af02,
- 0x3743c3,
- 0x20af03,
- 0x288883,
- 0x5fe1a682,
- 0x23d443,
- 0x6060cc82,
- 0x2a7503,
- 0x3b7d88,
- 0x2a8b03,
- 0x2a8b06,
- 0x32f7c7,
- 0x324a06,
- 0x324a0b,
- 0x20c787,
- 0x347f84,
- 0x60e00e42,
- 0x3cb405,
- 0x61212b03,
- 0x2050c3,
- 0x28e805,
- 0x332f43,
- 0x61b32f46,
- 0x2e900a,
- 0x2a3083,
- 0x2164c4,
- 0x2003c6,
- 0x2d4f86,
- 0x61e3cf83,
- 0x363807,
- 0x281607,
- 0x29dbc5,
- 0x2ec406,
- 0x267703,
- 0x64a11983,
- 0x64e01002,
- 0x6533ef04,
- 0x3c2249,
- 0x3c7a05,
- 0x22c244,
- 0x34e0c8,
- 0x2e6185,
- 0x656e75c5,
- 0x240ac9,
- 0x201003,
- 0x248744,
- 0x65a02142,
- 0x213d03,
- 0x65e76402,
- 0x276406,
- 0x1678842,
- 0x662201c2,
- 0x28bf48,
- 0x291f83,
- 0x2b3fc7,
- 0x2b1545,
- 0x2b3b85,
- 0x324c8b,
- 0x2e8146,
- 0x324e86,
- 0x2e96c6,
- 0x27f1c4,
- 0x2c0c86,
- 0x666d9d88,
- 0x23afc3,
- 0x23d903,
- 0x23d904,
- 0x38c084,
- 0x316147,
- 0x2ed4c5,
- 0x66aed602,
- 0x66e06a82,
- 0x6761b085,
- 0x2b8044,
- 0x2daccb,
- 0x2ef608,
- 0x2525c4,
- 0x67a2bd02,
- 0x67e23802,
- 0x3c4e03,
- 0x2f15c4,
- 0x2f1885,
- 0x2f2247,
- 0x2f5a84,
- 0x351704,
- 0x68213c42,
- 0x37ab09,
- 0x2f6bc5,
- 0x239605,
- 0x2f7745,
- 0x68613c43,
- 0x2f8644,
- 0x2f864b,
- 0x2f8984,
- 0x2f8c4b,
- 0x2f9c85,
- 0x21464a,
- 0x2fa7c8,
- 0x2fa9ca,
- 0x2fb203,
- 0x2fb20a,
- 0x68e0a0c2,
- 0x69241f42,
- 0x6961f4c3,
- 0x69afed02,
- 0x2fed03,
- 0x69f52a42,
- 0x6a33b402,
- 0x2ffbc4,
- 0x215f46,
- 0x216845,
- 0x300e43,
- 0x32c306,
- 0x216345,
- 0x2e4a44,
- 0x6a600902,
- 0x2a1344,
- 0x2cc48a,
- 0x336fc7,
- 0x3332c6,
- 0x3abe47,
- 0x23de43,
- 0x2bbb88,
- 0x37eb4b,
- 0x2c12c5,
- 0x2a9c05,
- 0x2a9c06,
- 0x2ec744,
- 0x210f48,
- 0x222b03,
- 0x255ec4,
- 0x255ec7,
- 0x347bc6,
- 0x3ccb06,
- 0x2b904a,
- 0x250fc4,
- 0x2fba4a,
- 0x6ab30086,
- 0x330087,
- 0x258f47,
- 0x275dc4,
- 0x275dc9,
- 0x2ff605,
- 0x3cc44b,
- 0x2ee903,
- 0x217d43,
- 0x6ae1d583,
- 0x2ca004,
- 0x6b200682,
- 0x229446,
- 0x6b6b9e45,
- 0x304e85,
- 0x253b86,
- 0x29fe44,
- 0x6ba02542,
- 0x241504,
- 0x6be16f82,
- 0x2d5745,
- 0x32ffc4,
- 0x6ca1b683,
- 0x6ce01e82,
+ 0x25612602,
+ 0x22f8c3,
+ 0x23ce85,
+ 0x25a34e83,
+ 0x26234e89,
+ 0x26600942,
+ 0x26e07bc2,
+ 0x28cc85,
+ 0x214b46,
+ 0x208a86,
+ 0x2ceb88,
+ 0x2ceb8b,
+ 0x3293cb,
+ 0x2fe6c5,
+ 0x2cb2c9,
+ 0x1600b42,
+ 0x2e7008,
+ 0x204684,
+ 0x27601bc2,
+ 0x34bf03,
+ 0x27e5e846,
+ 0x25d348,
+ 0x28201a02,
+ 0x28e248,
+ 0x28669102,
+ 0x340aca,
+ 0x28ad0703,
+ 0x29379386,
+ 0x37c3c8,
+ 0x30ad48,
+ 0x3c2d46,
+ 0x38acc7,
+ 0x22a747,
+ 0x2482ca,
+ 0x3901c4,
+ 0x35e684,
+ 0x3786c9,
+ 0x297ac185,
+ 0x211d06,
+ 0x210403,
+ 0x24fa44,
+ 0x29a227c4,
+ 0x331247,
+ 0x29eaabc7,
+ 0x2a1144,
+ 0x387c05,
+ 0x386cc8,
+ 0x3a47c7,
+ 0x247847,
+ 0x2a2143c2,
+ 0x3c51c4,
+ 0x294548,
+ 0x2494c4,
+ 0x24bd44,
+ 0x24c6c5,
+ 0x24c807,
+ 0x2a64e689,
+ 0x24e184,
+ 0x24ee09,
+ 0x24f048,
+ 0x24f7c4,
+ 0x24f7c7,
+ 0x2aa4fe03,
+ 0x250a47,
+ 0x16014c2,
+ 0x16b2642,
+ 0x251a46,
+ 0x251ec7,
+ 0x252304,
+ 0x253107,
+ 0x2547c7,
+ 0x255043,
+ 0x2b1d82,
+ 0x20d682,
+ 0x2fb543,
+ 0x3c0fc4,
+ 0x3c0fcb,
+ 0x2aefb548,
+ 0x25afc4,
+ 0x2572c5,
+ 0x258807,
+ 0x25a1c5,
+ 0x2def0a,
+ 0x25af03,
+ 0x2b208142,
+ 0x20c384,
+ 0x25e449,
+ 0x2628c3,
+ 0x262987,
+ 0x353b89,
+ 0x3d9dc8,
+ 0x229b43,
+ 0x27dbc7,
+ 0x27e549,
+ 0x239cc3,
+ 0x286b44,
+ 0x287dc9,
+ 0x28a706,
+ 0x339283,
+ 0x202ec2,
+ 0x237c43,
+ 0x2b2447,
+ 0x237c45,
+ 0x3bd6c6,
+ 0x2d7004,
+ 0x3cd145,
+ 0x27b483,
+ 0x213206,
+ 0x211603,
+ 0x204582,
+ 0x24aec4,
+ 0x2b6268c2,
+ 0x2ba268c3,
+ 0x2be020c2,
+ 0x24a403,
+ 0x20f344,
+ 0x20f347,
+ 0x390246,
+ 0x27cec2,
+ 0x2c25ec42,
+ 0x3187c4,
+ 0x2c60d542,
+ 0x2ca19202,
+ 0x23d144,
+ 0x23d145,
+ 0x28c405,
+ 0x366186,
+ 0x2ce0f4c2,
+ 0x32a305,
+ 0x354585,
+ 0x223383,
+ 0x3cf0c6,
+ 0x20f4c5,
+ 0x21c082,
+ 0x359585,
+ 0x21c084,
+ 0x225243,
+ 0x225483,
+ 0x2d209102,
+ 0x2dac07,
+ 0x24f244,
+ 0x24f249,
+ 0x24f944,
+ 0x286343,
+ 0x39f748,
+ 0x2d686344,
+ 0x286346,
+ 0x2a57c3,
+ 0x257b03,
+ 0x224943,
+ 0x2dae9882,
+ 0x2faf82,
+ 0x2de00642,
+ 0x33e548,
+ 0x342a88,
+ 0x3b3706,
+ 0x25adc5,
+ 0x22bc45,
+ 0x3306c7,
+ 0x2e26fbc5,
+ 0x203942,
+ 0x2e698402,
+ 0x2ea00042,
+ 0x315e88,
+ 0x3db0c5,
+ 0x2efec4,
+ 0x249e85,
+ 0x24b947,
+ 0x25f444,
+ 0x2433c2,
+ 0x2ee08b82,
+ 0x350584,
+ 0x217c07,
+ 0x28f207,
+ 0x3612c4,
+ 0x3cbb43,
+ 0x263984,
+ 0x263988,
+ 0x231b06,
+ 0x253fca,
+ 0x2aa144,
+ 0x2967c8,
+ 0x28ab44,
+ 0x221286,
+ 0x2983c4,
+ 0x203406,
+ 0x24f509,
+ 0x23c347,
+ 0x21fa83,
+ 0x2f25ce02,
+ 0x387f43,
+ 0x205942,
+ 0x2f616842,
+ 0x2f5d86,
+ 0x3836c8,
+ 0x2a74c7,
+ 0x225a09,
+ 0x2aba89,
+ 0x2a9385,
+ 0x2ab689,
+ 0x2ac745,
+ 0x2ad585,
+ 0x2ae048,
+ 0x2fa07a44,
+ 0x2fe55187,
+ 0x230143,
+ 0x2ae247,
+ 0x230146,
+ 0x2ae647,
+ 0x2a4ac5,
+ 0x2b9ac3,
+ 0x30233702,
+ 0x20ba44,
+ 0x3062cc02,
+ 0x30a05dc2,
+ 0x3cc0c6,
+ 0x212185,
+ 0x2b1047,
+ 0x326fc3,
+ 0x363b84,
0x201e83,
- 0x237086,
- 0x6d209482,
- 0x391a48,
- 0x224084,
- 0x224086,
- 0x38ef06,
- 0x6d65a744,
- 0x212985,
- 0x225248,
- 0x226087,
- 0x246747,
- 0x24674f,
- 0x293446,
- 0x231c83,
- 0x23c644,
- 0x20e4c3,
- 0x2220c4,
- 0x254144,
- 0x6da02c02,
- 0x28ce43,
- 0x338dc3,
- 0x6de02002,
- 0x227683,
- 0x2259c3,
- 0x20dc0a,
- 0x273b07,
- 0x25984c,
- 0x259b06,
- 0x25c186,
- 0x25ce87,
- 0x6e22ec47,
- 0x268049,
- 0x247444,
- 0x269ac4,
- 0x6e600ec2,
- 0x6ea01bc2,
- 0x2b9406,
- 0x363604,
- 0x28d2c6,
- 0x22f0c8,
- 0x38ab44,
- 0x230086,
- 0x20d9c5,
- 0x6ee83048,
- 0x241c03,
- 0x287a45,
- 0x288203,
- 0x239703,
- 0x239704,
- 0x20e243,
- 0x6f24d882,
- 0x6f601282,
- 0x2ee7c9,
- 0x28be45,
- 0x28c144,
- 0x317f05,
- 0x297104,
- 0x3a1fc7,
- 0x36aac5,
- 0x6fa3d804,
- 0x23d808,
- 0x2d9f46,
- 0x2dcb04,
- 0x2e1348,
- 0x2e1c47,
- 0x6fe037c2,
- 0x2e8684,
- 0x303104,
- 0x2c1a07,
- 0x70207c44,
- 0x22b302,
- 0x70603842,
- 0x203843,
- 0x203844,
- 0x29e943,
- 0x29e945,
- 0x70a388c2,
- 0x2fff05,
- 0x2801c2,
- 0x307d85,
- 0x3b49c5,
- 0x70e15042,
- 0x217a84,
- 0x71203002,
- 0x25e406,
- 0x2ba6c6,
- 0x265f08,
- 0x2c2988,
- 0x33c0c4,
- 0x305d85,
- 0x3a6509,
- 0x20a104,
- 0x2e8fc4,
- 0x206903,
- 0x71655c85,
- 0x243185,
- 0x2a15c4,
- 0x35248d,
- 0x308102,
- 0x353f43,
- 0x354c83,
- 0x71a02702,
- 0x391505,
- 0x220f87,
- 0x2b9f44,
- 0x3cd3c7,
- 0x2fcd89,
- 0x2cc5c9,
- 0x202703,
- 0x278688,
- 0x2f9889,
- 0x2f7a07,
- 0x3da885,
- 0x37e1c6,
- 0x380fc6,
- 0x3a60c5,
- 0x2d9285,
- 0x71e03b42,
- 0x27b445,
- 0x2b8308,
- 0x2c4dc6,
- 0x72206ec7,
- 0x26e404,
- 0x335187,
- 0x302c86,
- 0x72641542,
- 0x351dc6,
- 0x30740a,
- 0x307c85,
- 0x72ae9d02,
- 0x72e8f4c2,
- 0x33f806,
- 0x323448,
- 0x7328f4c7,
- 0x73639102,
- 0x28a5c3,
- 0x209786,
- 0x224e44,
- 0x27e606,
- 0x33bd46,
- 0x20720a,
- 0x331f45,
- 0x328c46,
- 0x32e243,
+ 0x2c5e03,
+ 0x30e03842,
+ 0x31601cc2,
+ 0x38ea44,
+ 0x2dca43,
+ 0x2f6a45,
+ 0x31a00f42,
+ 0x32203702,
+ 0x2d8946,
+ 0x329184,
+ 0x3dacc4,
+ 0x3dacca,
+ 0x32a005c2,
+ 0x245e83,
+ 0x21368a,
+ 0x214348,
+ 0x32e21b84,
+ 0x2005c3,
+ 0x33201803,
+ 0x26c409,
+ 0x207349,
+ 0x2b7046,
+ 0x33614503,
+ 0x315405,
+ 0x3b478d,
+ 0x214506,
+ 0x21a4cb,
+ 0x33a03302,
+ 0x2b4148,
+ 0x36a16b02,
+ 0x36e08242,
+ 0x2e8205,
+ 0x37201742,
+ 0x371347,
+ 0x2022c3,
+ 0x20f688,
+ 0x376051c2,
0x32e244,
- 0x202742,
- 0x332cc3,
- 0x73a14942,
- 0x2d15c3,
- 0x215a44,
- 0x2c3184,
- 0x73f2358a,
- 0x21c4c3,
- 0x226c4a,
- 0x239dc7,
- 0x312e86,
- 0x25e2c4,
- 0x20c702,
- 0x2a6742,
- 0x742007c2,
- 0x2654c3,
- 0x258d07,
+ 0x210743,
+ 0x32aa45,
+ 0x240406,
+ 0x21da04,
+ 0x2ed083,
+ 0x2b3003,
+ 0x37a150c2,
+ 0x2fe644,
+ 0x3bc6c5,
+ 0x2b2047,
+ 0x27b8c3,
+ 0x2b2a03,
+ 0x16b2ac2,
+ 0x2b2ac3,
+ 0x2b2f83,
+ 0x37e00e02,
+ 0x3bac04,
+ 0x27f4c6,
+ 0x23d303,
+ 0x2b36c3,
+ 0x3824b4c2,
+ 0x24b4c8,
+ 0x2b4e04,
+ 0x369ac6,
+ 0x256e47,
+ 0x284746,
+ 0x2aed84,
+ 0x46601b82,
+ 0x23000b,
+ 0x2f378e,
+ 0x2156cf,
+ 0x366703,
+ 0x46e5bd02,
+ 0x1638902,
+ 0x472017c2,
+ 0x296d43,
+ 0x2092c3,
+ 0x21d086,
+ 0x2dbec6,
+ 0x218d87,
+ 0x3cb504,
+ 0x47614c82,
+ 0x47a10f02,
+ 0x242b05,
+ 0x2f1d87,
+ 0x2b5dc6,
+ 0x47e47482,
+ 0x32a244,
+ 0x2bae03,
+ 0x48251b42,
+ 0x48774343,
+ 0x2bbe44,
+ 0x2c0549,
+ 0x48ac7542,
+ 0x48e01882,
+ 0x201885,
+ 0x492c8802,
+ 0x49604b42,
+ 0x35d987,
+ 0x3b6a09,
+ 0x378fcb,
+ 0x22a505,
+ 0x26aa09,
+ 0x270246,
+ 0x393bc7,
+ 0x49a04b44,
+ 0x3d6a49,
+ 0x37ed07,
+ 0x206a07,
+ 0x22c843,
+ 0x2b3fc6,
+ 0x322ec7,
+ 0x20b003,
+ 0x371f06,
+ 0x4a219842,
+ 0x4a612702,
+ 0x329a83,
+ 0x38f945,
+ 0x21f787,
+ 0x2dbfc6,
+ 0x237bc5,
+ 0x24f1c4,
+ 0x2a3fc5,
+ 0x390c84,
+ 0x4aa01b02,
+ 0x3be187,
+ 0x2c51c4,
+ 0x207244,
+ 0x20724d,
+ 0x34ca49,
+ 0x22cb48,
+ 0x201b04,
+ 0x31f985,
+ 0x20a247,
+ 0x20a5c4,
+ 0x266407,
+ 0x2aa705,
+ 0x4ae0e504,
+ 0x2b3145,
+ 0x261584,
+ 0x310fc6,
+ 0x35e105,
+ 0x4b224382,
+ 0x2126c3,
+ 0x3a2a83,
+ 0x346984,
+ 0x346985,
+ 0x361d86,
+ 0x237d05,
+ 0x229ac4,
+ 0x34dfc3,
+ 0x4b60cd46,
+ 0x223dc5,
+ 0x22ae85,
+ 0x34f544,
+ 0x2aa1c3,
+ 0x2aa1cc,
+ 0x4ba07dc2,
+ 0x4be01442,
+ 0x4c20e942,
+ 0x20e943,
+ 0x20e944,
+ 0x4c605542,
+ 0x353408,
+ 0x3bd785,
+ 0x2bd504,
+ 0x23e3c6,
+ 0x4ca065c2,
+ 0x4ce11e02,
+ 0x4d200c42,
+ 0x292905,
+ 0x203746,
+ 0x2aab04,
+ 0x217706,
+ 0x34b306,
+ 0x227803,
+ 0x4d737c4a,
+ 0x2747c5,
+ 0x30d203,
+ 0x222306,
+ 0x3ceec9,
+ 0x222307,
+ 0x297688,
+ 0x36dac9,
+ 0x326e08,
+ 0x222e46,
+ 0x20fbc3,
+ 0x4da030c2,
+ 0x3a17c8,
+ 0x4de49602,
+ 0x4e205982,
+ 0x225a83,
+ 0x2e1985,
+ 0x29b6c4,
+ 0x393d09,
+ 0x3a93c4,
+ 0x376588,
+ 0x4ea05983,
+ 0x4ef33084,
+ 0x214b88,
+ 0x207187,
+ 0x4f32a2c2,
+ 0x247702,
+ 0x323e85,
+ 0x264149,
+ 0x211d83,
+ 0x2814c4,
+ 0x3153c4,
+ 0x20a2c3,
+ 0x282a0a,
+ 0x4f727e02,
+ 0x4fa0b882,
+ 0x2cab03,
+ 0x3928c3,
+ 0x162f7c2,
+ 0x3757c3,
+ 0x4fe1f382,
+ 0x50200bc2,
+ 0x50746484,
+ 0x388586,
+ 0x26bc04,
+ 0x27aac3,
+ 0x3d4c43,
+ 0x50a00bc3,
+ 0x240086,
+ 0x3a5005,
+ 0x2cac87,
+ 0x2cdc45,
+ 0x2cee46,
+ 0x2d0048,
+ 0x2d0246,
+ 0x265cc4,
+ 0x29cc4b,
+ 0x2d41c3,
+ 0x2d41c5,
+ 0x2d4c48,
+ 0x203282,
+ 0x35dc82,
+ 0x50e46b02,
+ 0x51204fc2,
+ 0x214cc3,
+ 0x5166ff42,
+ 0x26ff43,
+ 0x2d5603,
+ 0x51e23c42,
+ 0x522da646,
+ 0x2578c6,
+ 0x526b4342,
+ 0x52a075c2,
+ 0x52e254c2,
+ 0x5323c9c2,
+ 0x53618382,
+ 0x53a02142,
+ 0x206183,
+ 0x2c9805,
+ 0x326406,
+ 0x53e09c04,
+ 0x245fca,
+ 0x3aa986,
+ 0x20d784,
+ 0x26a083,
+ 0x54a05682,
+ 0x208ac2,
+ 0x22f883,
+ 0x54e0ce83,
+ 0x3bd1c7,
+ 0x35e007,
+ 0x56e6f947,
+ 0x321a47,
+ 0x229483,
+ 0x22948a,
+ 0x265e44,
+ 0x3125c4,
+ 0x3125ca,
+ 0x22dc85,
+ 0x57211cc2,
+ 0x2522c3,
+ 0x57600602,
+ 0x22c483,
+ 0x387f03,
+ 0x57e00582,
+ 0x37ae84,
+ 0x3308c4,
+ 0x3ce845,
+ 0x319b45,
+ 0x28ea86,
+ 0x2aad46,
+ 0x5824dc02,
+ 0x58602f42,
+ 0x312a85,
+ 0x2575d2,
+ 0x351086,
+ 0x271283,
+ 0x301046,
+ 0x2ef145,
+ 0x1607f02,
+ 0x60a08d82,
+ 0x378043,
+ 0x208d83,
+ 0x282583,
+ 0x60e18782,
+ 0x23fc83,
+ 0x6160dbc2,
+ 0x2035c3,
+ 0x3bac48,
+ 0x26d843,
+ 0x26d846,
+ 0x32b747,
+ 0x31bb46,
+ 0x31bb4b,
+ 0x20d6c7,
+ 0x2e6444,
+ 0x61e00c02,
+ 0x3bd605,
+ 0x6220ce43,
+ 0x209b43,
+ 0x32c2c5,
+ 0x335703,
+ 0x62b35706,
+ 0x2e718a,
+ 0x2a3283,
+ 0x2170c4,
+ 0x2003c6,
+ 0x228306,
+ 0x62e3f7c3,
+ 0x363a47,
+ 0x26c307,
+ 0x29e485,
+ 0x281ec6,
+ 0x223e03,
+ 0x65bcf303,
+ 0x65e00a82,
+ 0x663406c4,
+ 0x3b9809,
+ 0x207f45,
+ 0x227484,
+ 0x3531c8,
+ 0x23d505,
+ 0x6666fcc5,
+ 0x242249,
+ 0x331b43,
+ 0x2474c4,
+ 0x66a04ac2,
+ 0x214ec3,
+ 0x66e7a042,
+ 0x27a046,
+ 0x167ce82,
+ 0x67203482,
+ 0x292808,
+ 0x2a2203,
+ 0x2b3087,
+ 0x31bdc5,
+ 0x2e2fc5,
+ 0x34e14b,
+ 0x2e2fc6,
+ 0x34e346,
+ 0x2e3f06,
+ 0x280104,
+ 0x2c0746,
+ 0x676d7a48,
+ 0x280cc3,
+ 0x266a03,
+ 0x266a04,
+ 0x2fb244,
+ 0x30a607,
+ 0x2e7b45,
+ 0x67ae7c82,
+ 0x67e07702,
+ 0x6861b5c5,
+ 0x2b5c44,
+ 0x2d8f4b,
+ 0x2e98c8,
+ 0x24de84,
+ 0x68a2c9c2,
+ 0x68e1a142,
+ 0x3a8bc3,
+ 0x2eba44,
+ 0x2ebd05,
+ 0x2ec547,
+ 0x2efa04,
+ 0x3613c4,
+ 0x69214e02,
+ 0x37e589,
+ 0x2f0b45,
+ 0x22a7c5,
+ 0x2f16c5,
+ 0x69614e03,
+ 0x2f2d04,
+ 0x2f2d0b,
+ 0x2f3044,
+ 0x2f330b,
+ 0x2f4345,
+ 0x21580a,
+ 0x2f4b08,
+ 0x2f4d0a,
+ 0x2f5543,
+ 0x2f554a,
+ 0x69e1c282,
+ 0x6a203542,
+ 0x6a628743,
+ 0x6aaf93c2,
+ 0x2f93c3,
+ 0x6af56bc2,
+ 0x6b33d202,
+ 0x2fab44,
+ 0x216b46,
+ 0x217445,
+ 0x2fe1c3,
+ 0x3245c6,
+ 0x216f45,
+ 0x22cec4,
+ 0x6b600902,
+ 0x2a7b04,
+ 0x2caf4a,
+ 0x32d147,
+ 0x335a86,
+ 0x3ac3c7,
+ 0x23f343,
+ 0x2bbe88,
+ 0x3bdbcb,
+ 0x2b7145,
+ 0x2c0d85,
+ 0x2c0d86,
+ 0x26cf04,
+ 0x3c0688,
+ 0x21be43,
+ 0x248644,
+ 0x248647,
+ 0x2e6086,
+ 0x203a86,
+ 0x2b7e4a,
+ 0x24ee84,
+ 0x314eca,
+ 0x6bb48d46,
+ 0x348d47,
+ 0x257347,
+ 0x276e44,
+ 0x276e49,
+ 0x233045,
+ 0x326a0b,
+ 0x2e8f43,
+ 0x212c03,
+ 0x6be1d5c3,
+ 0x2c9a04,
+ 0x6c200682,
+ 0x224746,
+ 0x6c6b9845,
+ 0x301285,
+ 0x251c86,
+ 0x2a0304,
+ 0x6ca03e42,
+ 0x242184,
+ 0x6ce129c2,
+ 0x228ac5,
+ 0x268804,
+ 0x6da1bbc3,
+ 0x6de08dc2,
+ 0x208dc3,
+ 0x238446,
+ 0x6e205fc2,
+ 0x395a48,
+ 0x222184,
+ 0x222186,
+ 0x393146,
+ 0x6e6588c4,
+ 0x20ccc5,
+ 0x222488,
+ 0x2250c7,
+ 0x227547,
+ 0x22754f,
+ 0x294446,
+ 0x231603,
+ 0x23ee84,
+ 0x20c5c3,
+ 0x2213c4,
+ 0x251dc4,
+ 0x6ea0ba82,
+ 0x28d083,
+ 0x337243,
+ 0x6ee02442,
+ 0x223943,
+ 0x21c2c3,
+ 0x20e20a,
+ 0x275b47,
+ 0x25494c,
+ 0x6f254c06,
+ 0x254d86,
+ 0x256b47,
+ 0x6f630e07,
+ 0x25d989,
+ 0x246784,
+ 0x262b04,
+ 0x6fa14d02,
+ 0x6fe05c82,
+ 0x2b8206,
+ 0x363844,
+ 0x28d506,
+ 0x231288,
+ 0x38fa04,
+ 0x259c46,
+ 0x208a45,
+ 0x7028b748,
+ 0x242d43,
+ 0x30d485,
+ 0x2917c3,
+ 0x22a8c3,
+ 0x22a8c4,
+ 0x20c343,
+ 0x7064b902,
+ 0x70a033c2,
+ 0x2e8e09,
+ 0x292705,
+ 0x292a04,
+ 0x293245,
+ 0x20b444,
+ 0x3a2007,
+ 0x35fbc5,
+ 0x70e3bb84,
+ 0x2df6c8,
+ 0x2e0cc6,
+ 0x2e2e04,
+ 0x2e3508,
+ 0x2e3807,
+ 0x71201702,
+ 0x2e6804,
+ 0x30a484,
+ 0x2c1447,
+ 0x71605184,
+ 0x226b42,
+ 0x71a01782,
+ 0x201783,
+ 0x201784,
+ 0x29f203,
+ 0x29f205,
+ 0x71e1df42,
+ 0x2fae85,
+ 0x287542,
+ 0x303a85,
+ 0x3b9145,
+ 0x72210b82,
+ 0x216404,
+ 0x726026c2,
+ 0x36b586,
+ 0x2ba0c6,
+ 0x264288,
+ 0x2c20c8,
+ 0x3cc044,
+ 0x3b2ac5,
+ 0x383b49,
+ 0x2fe744,
+ 0x2e7144,
+ 0x203983,
+ 0x248403,
+ 0x72a48405,
+ 0x234545,
+ 0x2865c4,
+ 0x35550d,
+ 0x354282,
+ 0x357a43,
+ 0x35ef43,
+ 0x72e05c42,
+ 0x73202302,
+ 0x395505,
+ 0x368687,
+ 0x21dc44,
+ 0x36dcc9,
+ 0x2cb089,
+ 0x279e83,
+ 0x279e88,
+ 0x2f3f49,
+ 0x2305c7,
+ 0x207ac5,
+ 0x383886,
+ 0x3a2c06,
+ 0x3a6305,
+ 0x34cb45,
+ 0x73601a82,
+ 0x27cbc5,
+ 0x2b8908,
+ 0x2c4346,
+ 0x73b2ec87,
+ 0x2a1084,
+ 0x309247,
+ 0x2ffe86,
+ 0x73e01082,
+ 0x361a86,
+ 0x30310a,
+ 0x303985,
+ 0x742e4542,
+ 0x7468f3c2,
+ 0x340fc6,
+ 0x318e08,
+ 0x74a8f3c7,
+ 0x74e28cc2,
+ 0x28a1c3,
+ 0x3a8546,
+ 0x224304,
+ 0x278b06,
+ 0x313646,
+ 0x376d4a,
+ 0x203bc5,
+ 0x331cc6,
+ 0x32ee03,
+ 0x32ee04,
+ 0x20b102,
+ 0x329103,
+ 0x7520e982,
+ 0x2ed803,
+ 0x213904,
+ 0x2c28c4,
+ 0x75718f4a,
+ 0x222f03,
+ 0x222f0a,
+ 0x239447,
+ 0x307186,
+ 0x23bd84,
+ 0x20d642,
+ 0x2a5b82,
+ 0x75a007c2,
+ 0x263943,
+ 0x257107,
0x2007c7,
- 0x2895c4,
- 0x21e8c7,
- 0x2f2346,
- 0x219187,
- 0x225904,
- 0x37cb05,
- 0x218345,
- 0x74619f82,
- 0x3dc5c6,
- 0x21d843,
- 0x220bc2,
- 0x220bc6,
- 0x74a19b42,
- 0x74e1be02,
- 0x3c3905,
- 0x75243982,
- 0x75602b42,
- 0x348ac5,
- 0x2d6385,
- 0x2a7ec5,
- 0x75a04e83,
- 0x36f205,
- 0x2e8207,
- 0x2c4c05,
- 0x332105,
- 0x32a284,
- 0x2e6006,
- 0x34b504,
- 0x75e008c2,
- 0x76ae94c5,
- 0x382b07,
- 0x360088,
- 0x251646,
- 0x25164d,
- 0x252b09,
- 0x252b12,
- 0x380385,
- 0x38bd03,
- 0x76e062c2,
- 0x2f3e44,
- 0x219ec3,
- 0x30d305,
- 0x30e4c5,
- 0x772195c2,
- 0x25ce03,
- 0x7765b8c2,
- 0x77ee3402,
- 0x78200082,
- 0x2c8b45,
- 0x3cd503,
- 0x24af88,
- 0x78619082,
- 0x78a0d2c2,
- 0x348d06,
- 0x31f38a,
- 0x20ef03,
- 0x25ac43,
- 0x2eeac3,
- 0x79e07d82,
- 0x8821a6c2,
- 0x88a0a742,
- 0x206842,
- 0x3d00c9,
- 0x2c7504,
- 0x2ac108,
- 0x88efc182,
- 0x89214f82,
- 0x2af4c5,
- 0x2345c8,
- 0x311308,
- 0x2ef30c,
- 0x239d03,
- 0x8961f202,
- 0x89a0a342,
- 0x349646,
- 0x313d05,
- 0x2dcf43,
- 0x2574c6,
- 0x313e46,
- 0x29b2c3,
- 0x3c2003,
- 0x3152c6,
- 0x316ac4,
- 0x2819c6,
- 0x21c28a,
- 0x24e184,
- 0x317184,
- 0x31820a,
- 0x89e1ff02,
- 0x252205,
- 0x319d4a,
- 0x319c85,
- 0x31b1c4,
- 0x31b2c6,
- 0x31b444,
- 0x213fc6,
- 0x8a22bc42,
- 0x2fdd06,
- 0x328805,
- 0x32e0c7,
- 0x3ad646,
- 0x25d084,
- 0x2dd1c7,
- 0x34b206,
- 0x20bf45,
- 0x20bf47,
- 0x3bbc47,
- 0x3bbc4e,
- 0x26bb86,
- 0x221d45,
- 0x207b87,
- 0x306003,
- 0x330387,
- 0x209185,
- 0x20af84,
- 0x221ac2,
- 0x229c47,
- 0x30e204,
- 0x231784,
- 0x23f04b,
- 0x21c8c3,
- 0x288087,
- 0x21c8c4,
- 0x288287,
- 0x294a03,
- 0x34ca4d,
- 0x3a4bc8,
- 0x8a62a984,
- 0x23d705,
- 0x31bfc5,
- 0x31c403,
- 0x8aa23f82,
- 0x31dd83,
- 0x31e583,
- 0x3dc744,
- 0x27e0c5,
- 0x21d8c7,
- 0x32e2c6,
- 0x38bac3,
- 0x228d8b,
- 0x27444b,
- 0x2b200b,
- 0x2d440b,
- 0x2e9d4a,
- 0x33484b,
- 0x36d94b,
- 0x392c8c,
- 0x3d990b,
- 0x3db991,
- 0x32068a,
- 0x320b8b,
- 0x320e4c,
- 0x32114b,
- 0x3218ca,
- 0x321f0a,
- 0x322e0e,
- 0x32380b,
- 0x323aca,
- 0x325011,
- 0x32544a,
- 0x32594b,
- 0x325e8e,
- 0x3267cc,
- 0x326e0b,
- 0x3270ce,
- 0x32744c,
- 0x329d4a,
- 0x32b58c,
- 0x8af2b88a,
- 0x32c488,
- 0x32d049,
- 0x33390a,
- 0x333b8a,
- 0x333e0b,
- 0x33854e,
- 0x338f51,
- 0x341f49,
- 0x34218a,
- 0x342f8b,
- 0x3444ca,
- 0x345596,
- 0x34690b,
- 0x34768a,
- 0x34854a,
- 0x349d8b,
- 0x34a609,
- 0x34d3c9,
- 0x34da0d,
- 0x34e44b,
- 0x34f34b,
- 0x34fd0b,
- 0x350589,
- 0x350bce,
- 0x35130a,
- 0x35224a,
- 0x3527ca,
- 0x352f8b,
- 0x3537cb,
- 0x35448d,
- 0x356b8d,
- 0x357c10,
- 0x3580cb,
- 0x358acc,
+ 0x288e44,
+ 0x21f187,
+ 0x2ec646,
+ 0x210347,
+ 0x21c204,
+ 0x3ae645,
+ 0x20fa45,
+ 0x75e14642,
+ 0x387fc6,
+ 0x214643,
+ 0x21d882,
+ 0x21d886,
+ 0x76207202,
+ 0x7661a602,
+ 0x3c5285,
+ 0x76a44d02,
+ 0x76e01942,
+ 0x323485,
+ 0x2d4505,
+ 0x2a8485,
+ 0x77609903,
+ 0x372d45,
+ 0x2e3087,
+ 0x2f7405,
+ 0x203d85,
+ 0x322804,
+ 0x23d386,
+ 0x2fdc84,
+ 0x77a008c2,
+ 0x786e7645,
+ 0x3858c7,
+ 0x3543c8,
+ 0x250e06,
+ 0x38f0cd,
+ 0x250e09,
+ 0x250e12,
+ 0x349b05,
+ 0x34c683,
+ 0x78a05842,
+ 0x313244,
+ 0x214583,
+ 0x382b45,
+ 0x304945,
+ 0x78e10782,
+ 0x25b643,
+ 0x7921ddc2,
+ 0x79a736c2,
+ 0x79e00082,
+ 0x2d1885,
+ 0x21fb83,
+ 0x248d88,
+ 0x7a210242,
+ 0x7a613602,
+ 0x37ae46,
+ 0x31650a,
+ 0x206303,
+ 0x258dc3,
+ 0x2f1cc3,
+ 0x7ba04cc2,
+ 0x89e187c2,
+ 0x8a608c02,
+ 0x2038c2,
+ 0x3ccc09,
+ 0x2c6984,
+ 0x20a988,
+ 0x8aaf6602,
+ 0x8b205d42,
+ 0x2b04c5,
+ 0x235d48,
+ 0x2f9f08,
+ 0x2e95cc,
+ 0x239383,
+ 0x8b61fb02,
+ 0x8ba00f02,
+ 0x367b06,
+ 0x308005,
+ 0x2db783,
+ 0x250346,
+ 0x308146,
+ 0x291103,
+ 0x30a3c3,
+ 0x30a7c6,
+ 0x30c044,
+ 0x26c6c6,
+ 0x3b45ca,
+ 0x2443c4,
+ 0x30c704,
+ 0x30d84a,
+ 0x8bee5d02,
+ 0x24ff85,
+ 0x30f38a,
+ 0x30f2c5,
+ 0x3115c4,
+ 0x3116c6,
+ 0x311844,
+ 0x215186,
+ 0x8c22c902,
+ 0x2f8346,
+ 0x32b1c5,
+ 0x329847,
+ 0x3b4446,
+ 0x256d44,
+ 0x2dba07,
+ 0x337b86,
+ 0x20b085,
+ 0x20b087,
+ 0x3bc047,
+ 0x3bc04e,
+ 0x38cb86,
+ 0x221045,
+ 0x2050c7,
+ 0x207603,
+ 0x349047,
+ 0x208f45,
+ 0x217ec4,
+ 0x222782,
+ 0x22bdc7,
+ 0x3cb584,
+ 0x2ff104,
+ 0x24758b,
+ 0x21c903,
+ 0x291847,
+ 0x21c904,
+ 0x2ba647,
+ 0x22ac83,
+ 0x34e84d,
+ 0x3a4e08,
+ 0x8c6261c4,
+ 0x23ba85,
+ 0x312bc5,
+ 0x313003,
+ 0x8ca22082,
+ 0x315303,
+ 0x315703,
+ 0x388144,
+ 0x27e645,
+ 0x2146c7,
+ 0x32ee86,
+ 0x390b03,
+ 0x22550b,
+ 0x27e74b,
+ 0x2b2ccb,
+ 0x2d340b,
+ 0x2e458a,
+ 0x3709cb,
+ 0x396c8b,
+ 0x3d92cc,
+ 0x3da7cb,
+ 0x317351,
+ 0x31778a,
+ 0x317c8b,
+ 0x317f4c,
+ 0x31824b,
+ 0x3188ca,
+ 0x3191ca,
+ 0x31a0ce,
+ 0x31a98b,
+ 0x31ac4a,
+ 0x31c751,
+ 0x31cb8a,
+ 0x31d08b,
+ 0x31d5ce,
+ 0x31df0c,
+ 0x31e98b,
+ 0x31ec4e,
+ 0x31efcc,
+ 0x3222ca,
+ 0x32384c,
+ 0x8cf23b4a,
+ 0x324748,
+ 0x325309,
+ 0x333d0a,
+ 0x333f8a,
+ 0x33420b,
+ 0x3369ce,
+ 0x337651,
+ 0x342f49,
+ 0x34318a,
+ 0x343f8b,
+ 0x345aca,
+ 0x346f16,
+ 0x34828b,
+ 0x3498ca,
+ 0x349cca,
+ 0x34accb,
+ 0x34c109,
+ 0x34f1c9,
+ 0x34fc8d,
+ 0x35030b,
+ 0x35120b,
+ 0x351bcb,
+ 0x352709,
+ 0x352d4e,
+ 0x353dca,
+ 0x354c8a,
+ 0x3552ca,
+ 0x355b8b,
+ 0x3563cb,
+ 0x35724d,
+ 0x358bcd,
+ 0x359210,
0x3596cb,
- 0x35b98b,
- 0x35dd4e,
- 0x35e44b,
- 0x35e44d,
- 0x364a4b,
- 0x3654cf,
- 0x36588b,
- 0x3660ca,
- 0x3673c9,
- 0x367bc9,
- 0x8b368c4b,
- 0x368f0e,
- 0x36b88b,
- 0x36c50f,
- 0x36e54b,
- 0x36e80b,
- 0x36eacb,
- 0x36f34a,
- 0x374e89,
- 0x37978f,
- 0x37df0c,
- 0x37fb4c,
- 0x38004e,
- 0x38054f,
- 0x38090e,
- 0x381150,
- 0x38154f,
- 0x38210e,
- 0x382ccc,
- 0x382fd2,
- 0x383751,
- 0x383f4e,
- 0x38438e,
- 0x3853cb,
- 0x3853ce,
- 0x38574f,
- 0x385b0e,
- 0x385e93,
- 0x386351,
- 0x38678c,
- 0x386a8e,
- 0x386f0c,
- 0x387453,
- 0x387c50,
- 0x3887cc,
- 0x388acc,
- 0x388f8b,
- 0x38984e,
- 0x389d4b,
- 0x38a54b,
- 0x38d28c,
- 0x391f8a,
- 0x39248c,
- 0x39278c,
- 0x392a89,
- 0x39470b,
- 0x3949c8,
- 0x395189,
- 0x39518f,
- 0x39690b,
- 0x8b79724a,
- 0x39a2cc,
- 0x39b48b,
- 0x39b749,
- 0x39bb88,
- 0x39c14b,
- 0x39c98b,
- 0x39d50a,
- 0x39d78b,
- 0x3a150c,
- 0x3a26c8,
- 0x3a4f0b,
- 0x3a814b,
- 0x3ab00e,
- 0x3ac50b,
- 0x3ae20b,
- 0x3bb7cb,
- 0x3bba89,
- 0x3bbfcd,
- 0x3cd98a,
- 0x3d0b57,
- 0x3d1358,
- 0x3d3f49,
- 0x3d508b,
- 0x3d6054,
- 0x3d654b,
- 0x3d6aca,
- 0x3d6f8a,
- 0x3d720b,
- 0x3d79d0,
- 0x3d7dd1,
- 0x3d838a,
- 0x3d8f0d,
- 0x3d960d,
- 0x3dbdcb,
- 0x3dc6c3,
- 0x8bb77983,
- 0x2d4886,
- 0x278445,
- 0x30db87,
- 0x334706,
- 0x1605042,
- 0x2dd4c9,
- 0x32c104,
- 0x2e7748,
- 0x21d4c3,
- 0x2f3d87,
- 0x22f282,
- 0x2af9c3,
- 0x8be0a842,
- 0x2cd186,
- 0x2ce1c4,
- 0x35cbc4,
- 0x332803,
- 0x8c6c8e42,
- 0x8caab204,
- 0x275d07,
- 0x8ce37b02,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x205e03,
- 0x206b43,
- 0x23cf83,
- 0xecf48,
- 0x2013c3,
+ 0x35a24c,
+ 0x35b74b,
+ 0x35d48b,
+ 0x35eb4e,
+ 0x35f6cb,
+ 0x35f6cd,
+ 0x364c8b,
+ 0x36570f,
+ 0x365acb,
+ 0x36630a,
+ 0x368b49,
+ 0x369209,
+ 0x8d36a28b,
+ 0x36a54e,
+ 0x36e90b,
+ 0x36f58f,
+ 0x37208b,
+ 0x37234b,
+ 0x37260b,
+ 0x372e8a,
+ 0x378bc9,
+ 0x37d1cf,
+ 0x381d4c,
+ 0x38230c,
+ 0x38280e,
+ 0x382e0f,
+ 0x3831ce,
+ 0x383f10,
+ 0x38430f,
+ 0x384ece,
+ 0x385a8c,
+ 0x385d91,
+ 0x3861d2,
+ 0x388711,
+ 0x388f0e,
+ 0x38934b,
+ 0x38934e,
+ 0x3896cf,
+ 0x389a8e,
+ 0x389e13,
+ 0x38a2d1,
+ 0x38a70c,
+ 0x38aa0e,
+ 0x38ae8c,
+ 0x38b3d3,
+ 0x38bbd0,
+ 0x38d8cc,
+ 0x38dbcc,
+ 0x38e08b,
+ 0x38e64e,
+ 0x38eb4b,
+ 0x38f40b,
+ 0x3914cc,
+ 0x395f8a,
+ 0x39648c,
+ 0x39678c,
+ 0x396a89,
+ 0x3986cb,
+ 0x398988,
+ 0x399149,
+ 0x39914f,
+ 0x39a90b,
+ 0x8d79b24a,
+ 0x39d78c,
+ 0x39e94b,
+ 0x39ec09,
+ 0x39f388,
+ 0x39f94b,
+ 0x3a018b,
+ 0x3a0d0a,
+ 0x3a0f8b,
+ 0x3a154c,
+ 0x3a2688,
+ 0x3a514b,
+ 0x3a80cb,
+ 0x3ab58e,
+ 0x3acccb,
+ 0x3af7cb,
+ 0x3bbbcb,
+ 0x3bbe89,
+ 0x3bc3cd,
+ 0x3ca50a,
+ 0x3cdb97,
+ 0x3cfd58,
+ 0x3d34c9,
+ 0x3d460b,
+ 0x3d50d4,
+ 0x3d55cb,
+ 0x3d5b4a,
+ 0x3d600a,
+ 0x3d628b,
+ 0x3d7250,
+ 0x3d7651,
+ 0x3d7c0a,
+ 0x3d88cd,
+ 0x3d8fcd,
+ 0x3dbd8b,
+ 0x3880c3,
+ 0x8db86943,
+ 0x2a9ec6,
+ 0x279c45,
+ 0x3911c7,
+ 0x334b06,
+ 0x1603a02,
+ 0x3d2049,
+ 0x3243c4,
+ 0x2e2608,
+ 0x21d503,
+ 0x313187,
+ 0x231442,
+ 0x2b1083,
+ 0x8de08c42,
+ 0x2cbb06,
+ 0x2ccf04,
+ 0x346604,
+ 0x36d203,
+ 0x8e6c8842,
+ 0x8ea1e244,
+ 0x276d87,
+ 0x8ee2ba82,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x211d83,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x1acac8,
+ 0x204783,
0x2000c2,
- 0xa14c8,
- 0x202782,
- 0x220583,
- 0x205e03,
- 0x206b43,
- 0x13c3,
- 0x23cf83,
- 0x202003,
- 0x33e716,
- 0x362c13,
- 0x21e749,
- 0x2447c8,
- 0x3cb289,
- 0x319ec6,
- 0x34e710,
- 0x2425d3,
- 0x347c88,
- 0x279447,
- 0x27ad47,
- 0x2a3b0a,
- 0x32efc9,
- 0x3a2849,
- 0x24184b,
- 0x3cbf86,
- 0x289b0a,
- 0x221346,
- 0x32bd03,
- 0x2dc8c5,
- 0x3d1dc8,
- 0x234a8d,
- 0x3b8b8c,
- 0x310ac7,
- 0x32428d,
- 0x225344,
- 0x23094a,
- 0x231e4a,
- 0x23230a,
- 0x2428c7,
- 0x23bc07,
- 0x23ef84,
- 0x26ec06,
- 0x32f404,
- 0x2da308,
- 0x2e1509,
- 0x2d0f46,
- 0x2d0f48,
- 0x242d8d,
- 0x2cc809,
- 0x315848,
- 0x239587,
- 0x2399ca,
- 0x253fc6,
- 0x25f947,
- 0x2cbe44,
- 0x28f147,
- 0x22964a,
- 0x23d00e,
- 0x278745,
- 0x28f04b,
- 0x229149,
- 0x252d49,
- 0x2add07,
- 0x3bf4ca,
- 0x2c1947,
- 0x2f9209,
- 0x3b9108,
- 0x28eb4b,
- 0x2e43c5,
- 0x22bd4a,
- 0x28fd09,
- 0x37270a,
- 0x2ceecb,
- 0x3c514b,
- 0x2415d5,
- 0x2eb105,
- 0x239605,
- 0x2f864a,
- 0x25b58a,
- 0x311a07,
- 0x234703,
- 0x2b9388,
- 0x2db00a,
- 0x224086,
- 0x266809,
- 0x283048,
- 0x2dcb04,
- 0x387209,
- 0x2c2988,
- 0x2beec7,
- 0x2e94c6,
- 0x382b07,
- 0x3503c7,
- 0x23e385,
- 0x2e730c,
- 0x23d705,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x206b43,
- 0x13c3,
- 0x23cf83,
- 0x202782,
- 0x22d7c3,
- 0x206b43,
- 0x2013c3,
- 0x23cf83,
- 0x22d7c3,
- 0x206b43,
- 0x13c3,
- 0x2a8b03,
- 0x23cf83,
- 0x1cdd43,
- 0xa14c8,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x205e03,
- 0x206b43,
- 0x13c3,
- 0x23cf83,
- 0xa14c8,
- 0x202782,
- 0x22d7c3,
- 0x22d7c7,
- 0x206b43,
- 0x23cf83,
- 0x202782,
- 0x203dc2,
- 0x31b402,
- 0x206102,
- 0x200d42,
- 0x2ea5c2,
- 0x91d46,
- 0x54389,
- 0x481b683,
- 0x89947,
- 0x7b83,
- 0x11b645,
+ 0xa7c88,
+ 0x203102,
+ 0x224943,
+ 0x211d83,
+ 0x20ce83,
+ 0x4783,
+ 0x23f7c3,
+ 0x202443,
+ 0x33fed6,
+ 0x362e53,
+ 0x21f009,
+ 0x245b48,
+ 0x3bd489,
+ 0x30f506,
+ 0x3505d0,
+ 0x243713,
+ 0x2e6148,
+ 0x27abc7,
+ 0x27c4c7,
+ 0x2a3d0a,
+ 0x3426c9,
+ 0x3a2809,
+ 0x25078b,
+ 0x326546,
+ 0x28938a,
+ 0x220c06,
+ 0x323fc3,
+ 0x2dab45,
+ 0x3b9a08,
+ 0x23620d,
+ 0x2031cc,
+ 0x2fd587,
+ 0x31a40d,
+ 0x222584,
+ 0x23224a,
+ 0x23348a,
+ 0x23394a,
+ 0x23cc87,
+ 0x23e247,
+ 0x240a84,
+ 0x2877c6,
+ 0x32b384,
+ 0x2d8588,
+ 0x3a9409,
+ 0x2ceb86,
+ 0x2ceb88,
+ 0x243ecd,
+ 0x2cb2c9,
+ 0x30ad48,
+ 0x22a747,
+ 0x23904a,
+ 0x251ec6,
+ 0x25dec7,
+ 0x2d0e84,
+ 0x28f047,
+ 0x22494a,
+ 0x23f84e,
+ 0x26fbc5,
+ 0x28ef4b,
+ 0x222b09,
+ 0x207349,
+ 0x371187,
+ 0x3dc44a,
+ 0x2c1387,
+ 0x2f38c9,
+ 0x209f08,
+ 0x32c60b,
+ 0x2e1985,
+ 0x22ca0a,
+ 0x225289,
+ 0x36beca,
+ 0x2cdccb,
+ 0x3c6c8b,
+ 0x250515,
+ 0x2e59c5,
+ 0x22a7c5,
+ 0x2f2d0a,
+ 0x25970a,
+ 0x313b87,
+ 0x22a803,
+ 0x2b8188,
+ 0x2d928a,
+ 0x222186,
+ 0x25b6c9,
+ 0x28b748,
+ 0x2e2e04,
+ 0x38b189,
+ 0x2c20c8,
+ 0x2bc707,
+ 0x2e7646,
+ 0x3858c7,
+ 0x2c2dc7,
+ 0x23fe85,
+ 0x26fa0c,
+ 0x23ba85,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x20ce83,
+ 0x4783,
+ 0x23f7c3,
+ 0x203102,
+ 0x22f743,
+ 0x20ce83,
+ 0x204783,
+ 0x23f7c3,
+ 0x22f743,
+ 0x20ce83,
+ 0x4783,
+ 0x26d843,
+ 0x23f7c3,
+ 0x1ca8c3,
+ 0xa7c88,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x211d83,
+ 0x20ce83,
+ 0x4783,
+ 0x23f7c3,
+ 0xa7c88,
+ 0x203102,
+ 0x22f743,
+ 0x22f747,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x203102,
+ 0x201d02,
+ 0x2e63c2,
+ 0x2051c2,
+ 0x2090c2,
+ 0x2e4e02,
+ 0x92246,
+ 0x52449,
+ 0x481bbc3,
+ 0x891c7,
+ 0x50c3,
+ 0x112585,
0xc1,
- 0x522d7c3,
- 0x233743,
- 0x228843,
- 0x220583,
- 0x219e43,
- 0x205e03,
- 0x2dc7c6,
- 0x206b43,
- 0x23cf83,
- 0x204283,
- 0xa14c8,
- 0x200984,
- 0x30ad47,
- 0x332843,
- 0x375e04,
- 0x21a5c3,
- 0x212003,
- 0x220583,
- 0x14c47,
- 0x109744,
- 0x3283,
- 0x131905,
+ 0x522f743,
+ 0x234e83,
+ 0x20d343,
+ 0x224943,
+ 0x214503,
+ 0x211d83,
+ 0x2daa46,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x2021c3,
+ 0xa7c88,
+ 0x3314c4,
+ 0x332e47,
+ 0x36d243,
+ 0x2e8204,
+ 0x2186c3,
+ 0x287e03,
+ 0x224943,
+ 0xe747,
+ 0x9c4,
+ 0x11c3,
+ 0x1273c5,
0x2000c2,
- 0x4ce83,
- 0x6602782,
- 0x688bc49,
- 0x8c5cd,
- 0x8c90d,
- 0x31b402,
- 0x22884,
- 0x131949,
+ 0x4af03,
+ 0x6603102,
+ 0x688b549,
+ 0x8bbcd,
+ 0x8cb4d,
+ 0x2e63c2,
+ 0x21b84,
+ 0x127409,
0x2003c2,
- 0x6e22788,
- 0xf7dc4,
- 0xa14c8,
- 0x1419a42,
+ 0x6e21a88,
+ 0xf2484,
+ 0xa7c88,
+ 0x1416702,
0x14005c2,
- 0x1419a42,
- 0x1517386,
- 0x22f303,
- 0x26f283,
- 0x762d7c3,
- 0x230944,
- 0x7a33743,
- 0x7e20583,
- 0x2067c2,
- 0x222884,
- 0x206b43,
- 0x305f83,
- 0x201642,
- 0x23cf83,
- 0x218142,
- 0x2ffb03,
- 0x209482,
- 0x207043,
- 0x283103,
- 0x205302,
- 0xa14c8,
- 0x22f303,
- 0x305f83,
- 0x201642,
- 0x2ffb03,
- 0x209482,
- 0x207043,
- 0x283103,
- 0x205302,
- 0x2ffb03,
- 0x209482,
- 0x207043,
- 0x283103,
- 0x205302,
- 0x22d7c3,
- 0x24ce83,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x222884,
- 0x219e43,
- 0x205e03,
- 0x205184,
- 0x206b43,
- 0x23cf83,
- 0x202102,
- 0x213c43,
- 0xa14c8,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x205e03,
- 0x206b43,
- 0x23cf83,
- 0x24ce83,
- 0x202782,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x222884,
- 0x206b43,
- 0x23cf83,
- 0x3da885,
- 0x2195c2,
+ 0x1416702,
+ 0x150c906,
+ 0x2314c3,
+ 0x271803,
+ 0x762f743,
+ 0x232244,
+ 0x7a34e83,
+ 0x8624943,
+ 0x203842,
+ 0x221b84,
+ 0x20ce83,
+ 0x301e03,
+ 0x201e02,
+ 0x23f7c3,
+ 0x218002,
+ 0x2faa83,
+ 0x205fc2,
+ 0x2a3903,
+ 0x28b803,
+ 0x202d02,
+ 0xa7c88,
+ 0x2314c3,
+ 0x20bb08,
+ 0x2802c2,
+ 0x7f01e03,
+ 0x201e02,
+ 0x2faa83,
+ 0x205fc2,
+ 0x82a3903,
+ 0x28b803,
+ 0x202d02,
+ 0x254c07,
+ 0x234e89,
+ 0x2faa83,
+ 0x205fc2,
+ 0x2a3903,
+ 0x28b803,
+ 0x202d02,
+ 0x22f743,
+ 0x24af03,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x221b84,
+ 0x214503,
+ 0x211d83,
+ 0x209c04,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x20da42,
+ 0x214e03,
+ 0xa7c88,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x211d83,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x24af03,
+ 0x203102,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x221b84,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x207ac5,
+ 0x210782,
0x2000c2,
- 0xa14c8,
- 0x144b148,
- 0x103e4a,
- 0x220583,
- 0x207881,
+ 0xa7c88,
+ 0x14441c8,
+ 0x13258a,
+ 0x224943,
+ 0x2042c1,
0x2009c1,
- 0x203281,
- 0x202ec1,
- 0x200a41,
- 0x20c101,
0x200a01,
- 0x228441,
- 0x207901,
+ 0x201301,
+ 0x201281,
+ 0x205ac1,
+ 0x202881,
+ 0x220541,
+ 0x204341,
0x200001,
0x2000c1,
0x200201,
- 0x12dac5,
- 0xa14c8,
+ 0x129245,
+ 0xa7c88,
0x200101,
- 0x200f01,
+ 0x2015c1,
0x200501,
- 0x202401,
+ 0x2014c1,
0x200041,
0x200801,
0x200181,
- 0x202d41,
+ 0x200e01,
0x200701,
0x2004c1,
- 0x200c01,
+ 0x200bc1,
0x200581,
0x2003c1,
- 0x201001,
- 0x215f41,
+ 0x200a81,
+ 0x216b41,
0x200401,
0x200741,
0x2007c1,
0x200081,
- 0x206841,
- 0x201ec1,
- 0x203301,
- 0x201081,
- 0x20a781,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x206b43,
- 0x23cf83,
- 0x202782,
- 0x22d7c3,
- 0x233743,
+ 0x200f01,
+ 0x202d01,
+ 0x201241,
+ 0x2018c1,
+ 0x2086c1,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x203102,
+ 0x22f743,
+ 0x234e83,
0x2003c2,
- 0x23cf83,
- 0x1b043,
- 0x14c47,
- 0x5f07,
- 0x29f46,
- 0x3530a,
- 0x8b088,
- 0x58748,
- 0x58c07,
- 0x108a46,
- 0xe3485,
- 0x45585,
- 0x125d43,
- 0x5bac6,
- 0xec046,
- 0x241844,
- 0x37e847,
- 0xa14c8,
- 0x2dd2c4,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x206b43,
- 0x23cf83,
- 0x2782,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x206b43,
- 0x23cf83,
- 0x32ba88,
- 0x201844,
- 0x233684,
- 0x22afc4,
- 0x349547,
- 0x2d9947,
- 0x22d7c3,
- 0x23620b,
- 0x31fb4a,
- 0x3cc247,
- 0x306588,
- 0x328108,
- 0x233743,
- 0x336447,
- 0x228843,
- 0x20d348,
- 0x210b49,
- 0x222884,
- 0x219e43,
- 0x2fee88,
- 0x205e03,
- 0x2d618a,
- 0x2dc7c6,
- 0x3aa407,
- 0x206b43,
- 0x394486,
- 0x26f108,
- 0x23cf83,
- 0x25ae06,
- 0x2ef84d,
- 0x2f1f08,
- 0x2f898b,
- 0x2bff86,
- 0x3416c7,
- 0x214dc5,
- 0x2d5dca,
- 0x228105,
- 0x24308a,
- 0x2195c2,
- 0x207b83,
- 0x231784,
+ 0x23f7c3,
+ 0x1b583,
+ 0xe747,
+ 0x11e87,
+ 0x25786,
+ 0x36a8a,
+ 0x8ac88,
+ 0x56548,
+ 0x57007,
+ 0x1757c6,
+ 0xe0a45,
+ 0x1339c5,
+ 0x11d483,
+ 0x1c6b46,
+ 0xfd986,
+ 0x250784,
+ 0x3bd8c7,
+ 0xa7c88,
+ 0x2dbb04,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x3102,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x323d48,
+ 0x330684,
+ 0x234dc4,
+ 0x226804,
+ 0x367a07,
+ 0x2d7607,
+ 0x22f743,
+ 0x2375cb,
+ 0x316cca,
+ 0x326807,
+ 0x302288,
+ 0x32aac8,
+ 0x234e83,
+ 0x32d787,
+ 0x20d343,
+ 0x2083c8,
+ 0x20b5c9,
+ 0x221b84,
+ 0x214503,
+ 0x23b2c8,
+ 0x211d83,
+ 0x2d430a,
+ 0x2daa46,
+ 0x3aa987,
+ 0x20ce83,
+ 0x398446,
+ 0x271688,
+ 0x23f7c3,
+ 0x258f86,
+ 0x2e9b0d,
+ 0x2ec208,
+ 0x2f304b,
+ 0x3c6506,
+ 0x368587,
+ 0x212885,
+ 0x22914a,
+ 0x220205,
+ 0x23444a,
+ 0x210782,
+ 0x2050c3,
+ 0x2ff104,
0x200006,
- 0x3b0ec3,
- 0x2a13c3,
- 0x24de03,
- 0x201843,
- 0x372dc3,
- 0x2017c2,
- 0x300745,
- 0x2a9049,
- 0x23ea03,
- 0x20a683,
- 0x202b03,
+ 0x3b2f83,
+ 0x2a7b83,
+ 0x24e8c3,
+ 0x2c5d43,
+ 0x2b5903,
+ 0x203082,
+ 0x2fcf85,
+ 0x2a9749,
+ 0x240503,
+ 0x21c183,
+ 0x224cc3,
0x200201,
- 0x2e8d87,
- 0x2c8885,
- 0x398a83,
- 0x3c4703,
- 0x22afc4,
- 0x32f383,
- 0x21c1c8,
- 0x367603,
- 0x31454d,
- 0x26bc48,
- 0x20b546,
- 0x332d03,
- 0x38d543,
- 0x3ac783,
- 0xbe2d7c3,
- 0x232f88,
- 0x236204,
- 0x23fec3,
+ 0x2e6f07,
+ 0x2d15c5,
+ 0x3a8343,
+ 0x3c6083,
+ 0x226804,
+ 0x327003,
+ 0x20f588,
+ 0x368d83,
+ 0x3097cd,
+ 0x38cc48,
+ 0x20bcc6,
+ 0x329143,
+ 0x391783,
+ 0x3acf43,
+ 0xc62f743,
+ 0x2346c8,
+ 0x2375c4,
+ 0x241183,
0x200106,
- 0x243608,
- 0x202943,
- 0x2d5e03,
- 0x22d943,
- 0x233743,
- 0x210483,
- 0x2416c3,
- 0x2a6003,
- 0x332c83,
- 0x209c83,
- 0x202403,
- 0x38a7c5,
- 0x254344,
- 0x254cc7,
- 0x2b06c2,
- 0x2584c3,
- 0x25af86,
- 0x25c303,
- 0x25c9c3,
- 0x278643,
- 0x309303,
- 0x202383,
- 0x2973c7,
- 0xc220583,
- 0x24b543,
- 0x3d54c3,
- 0x209a03,
- 0x219c83,
- 0x2fe043,
- 0x3b4d05,
- 0x371983,
- 0x2f9f89,
- 0x2035c3,
- 0x30e7c3,
- 0xc636803,
- 0x3d8883,
- 0x21b888,
- 0x2a8f86,
- 0x3090c6,
- 0x29d786,
- 0x388307,
- 0x226b83,
- 0x22a243,
- 0x205e03,
- 0x28b186,
- 0x2104c2,
- 0x2a6343,
- 0x33d1c5,
- 0x206b43,
- 0x31aa87,
- 0x16013c3,
- 0x26f103,
- 0x234203,
- 0x218003,
- 0x2050c3,
- 0x23cf83,
- 0x20e486,
- 0x3315c6,
- 0x37a043,
- 0x2f0b83,
- 0x213c43,
- 0x225983,
- 0x3c2083,
- 0x2fe543,
- 0x2ffec3,
- 0x216345,
- 0x25b583,
- 0x378b46,
- 0x32f608,
- 0x217d43,
- 0x274f89,
- 0x363108,
- 0x2170c8,
- 0x224385,
- 0x37cc0a,
- 0x39da8a,
- 0x22e30b,
- 0x22f448,
- 0x2ee443,
- 0x38bc03,
- 0x2f88c3,
- 0x30f848,
- 0x35e143,
- 0x32e244,
- 0x202742,
- 0x260403,
+ 0x244988,
+ 0x27d8c3,
+ 0x229183,
+ 0x22f8c3,
+ 0x234e83,
+ 0x2199c3,
+ 0x250603,
+ 0x286583,
+ 0x3290c3,
+ 0x28e243,
+ 0x2227c3,
+ 0x38f685,
+ 0x252404,
+ 0x252d87,
+ 0x2b1d82,
+ 0x2562c3,
+ 0x259106,
+ 0x25ab43,
+ 0x25b203,
+ 0x279e43,
+ 0x376083,
+ 0x3311c3,
+ 0x298c07,
+ 0xca24943,
+ 0x249203,
+ 0x3d66c3,
+ 0x2083c3,
+ 0x214343,
+ 0x2f8683,
+ 0x3b9485,
+ 0x374ec3,
+ 0x200e09,
+ 0x201503,
+ 0x304c43,
+ 0xce37bc3,
+ 0x2bd483,
+ 0x21acc8,
+ 0x2a9686,
+ 0x375e46,
+ 0x29e046,
+ 0x38c287,
+ 0x222e43,
+ 0x225a83,
+ 0x211d83,
+ 0x28ad86,
+ 0x203282,
+ 0x2a2c03,
+ 0x33e985,
+ 0x20ce83,
+ 0x3104c7,
+ 0x1604783,
+ 0x271683,
+ 0x207c83,
+ 0x212ec3,
+ 0x209b43,
+ 0x23f7c3,
+ 0x20c586,
+ 0x326d46,
+ 0x37da83,
+ 0x2eb003,
+ 0x214e03,
+ 0x21c283,
+ 0x30a443,
+ 0x2f8c83,
+ 0x2fae43,
+ 0x216f45,
+ 0x259703,
+ 0x387b06,
+ 0x32b588,
+ 0x212c03,
+ 0x3be389,
+ 0x363348,
+ 0x215a48,
+ 0x21fc05,
+ 0x2ff34a,
+ 0x35fcca,
+ 0x3a128b,
+ 0x22ecc8,
+ 0x2ed043,
+ 0x390c43,
+ 0x2f2f83,
+ 0x305a48,
+ 0x3788c3,
+ 0x32ee04,
+ 0x20b102,
+ 0x25e943,
0x2007c3,
- 0x229343,
- 0x2572c3,
- 0x204283,
- 0x2195c2,
- 0x227d43,
- 0x239d03,
- 0x317503,
- 0x318c44,
- 0x231784,
- 0x228c83,
- 0xa14c8,
+ 0x222d03,
+ 0x254f83,
+ 0x2021c3,
+ 0x210782,
+ 0x22ab43,
+ 0x239383,
+ 0x30ca83,
+ 0x30e284,
+ 0x2ff104,
+ 0x3c6903,
+ 0xa7c88,
0x2000c2,
- 0x200b02,
- 0x2017c2,
- 0x2020c2,
+ 0x200ac2,
+ 0x203082,
+ 0x202602,
0x200202,
- 0x201942,
- 0x258542,
- 0x201242,
+ 0x201ec2,
+ 0x255002,
+ 0x201bc2,
0x200382,
- 0x201442,
- 0x25e5c2,
- 0x200e82,
- 0x26cec2,
- 0x201002,
- 0x2ea5c2,
- 0x202142,
- 0x203d42,
- 0x213c42,
- 0x2b0942,
- 0x206382,
+ 0x200c42,
+ 0x32a2c2,
+ 0x204fc2,
+ 0x26ff42,
+ 0x200a82,
+ 0x2e4e02,
+ 0x204ac2,
+ 0x201c82,
+ 0x214e02,
+ 0x2b2002,
+ 0x2046c2,
0x200682,
- 0x214582,
- 0x202542,
- 0x202002,
- 0x201bc2,
- 0x236082,
- 0x202b42,
+ 0x215742,
+ 0x203e42,
+ 0x202442,
+ 0x205c82,
+ 0x234542,
+ 0x201942,
0xc2,
- 0xb02,
- 0x17c2,
- 0x20c2,
+ 0xac2,
+ 0x3082,
+ 0x2602,
0x202,
- 0x1942,
- 0x58542,
- 0x1242,
+ 0x1ec2,
+ 0x55002,
+ 0x1bc2,
0x382,
- 0x1442,
- 0x5e5c2,
- 0xe82,
- 0x6cec2,
- 0x1002,
- 0xea5c2,
- 0x2142,
- 0x3d42,
- 0x13c42,
- 0xb0942,
- 0x6382,
+ 0xc42,
+ 0x12a2c2,
+ 0x4fc2,
+ 0x6ff42,
+ 0xa82,
+ 0xe4e02,
+ 0x4ac2,
+ 0x1c82,
+ 0x14e02,
+ 0xb2002,
+ 0x46c2,
0x682,
- 0x14582,
- 0x2542,
- 0x2002,
- 0x1bc2,
- 0x36082,
- 0x2b42,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x206b43,
- 0x23cf83,
- 0x1ec2,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x206b43,
- 0x23cf83,
- 0x2782,
- 0x202782,
- 0x23cf83,
- 0xde2d7c3,
- 0x220583,
- 0x205e03,
- 0x6df83,
- 0x22ebc2,
- 0xa14c8,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x206b43,
- 0x6df83,
- 0x23cf83,
- 0xa842,
+ 0x15742,
+ 0x3e42,
+ 0x2442,
+ 0x5c82,
+ 0x34542,
+ 0x1942,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x50c2,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x3102,
+ 0x203102,
+ 0x23f7c3,
+ 0xe62f743,
+ 0x224943,
+ 0x211d83,
+ 0x71003,
+ 0x228002,
+ 0xa7c88,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x20ce83,
+ 0x71003,
+ 0x23f7c3,
+ 0x8c42,
0x2001c2,
- 0x1445d45,
- 0x12dac5,
- 0x20b342,
- 0xa14c8,
- 0x2782,
- 0x234f42,
- 0x202282,
- 0x201c42,
- 0x205d42,
- 0x24fd42,
- 0x45585,
- 0x201fc2,
- 0x201642,
- 0x21a682,
- 0x202b82,
- 0x202142,
- 0x3a1602,
- 0x203842,
- 0x295a82,
- 0xef0b404,
+ 0x143c845,
+ 0x129245,
+ 0x20bac2,
+ 0xa7c88,
+ 0x3102,
+ 0x2366c2,
+ 0x204482,
+ 0x20f782,
+ 0x211cc2,
+ 0x24dc02,
+ 0x1339c5,
+ 0x2016c2,
+ 0x201e02,
+ 0x218782,
+ 0x201dc2,
+ 0x204ac2,
+ 0x3a1642,
+ 0x201782,
+ 0x296d02,
+ 0xf731fc4,
0x142,
- 0x14c47,
- 0x1a108d,
- 0xe3509,
- 0xaea4b,
- 0xe80c8,
- 0x71f49,
- 0x10f346,
- 0x220583,
- 0xa14c8,
- 0x109744,
- 0x3283,
- 0x131905,
- 0xa14c8,
- 0xdffc7,
- 0x59706,
- 0x131949,
- 0x14a0e,
- 0x137987,
+ 0xe747,
+ 0x14f80d,
+ 0xe0ac9,
+ 0xd700b,
+ 0xe2f48,
+ 0x668c9,
+ 0x105546,
+ 0x224943,
+ 0xa7c88,
+ 0x9c4,
+ 0x11c3,
+ 0x1273c5,
+ 0xa7c88,
+ 0xde387,
+ 0x57b06,
+ 0x127409,
+ 0xe50e,
+ 0x14bf47,
0x2000c2,
- 0x241844,
- 0x202782,
- 0x22d7c3,
- 0x203dc2,
- 0x233743,
- 0x19d03,
+ 0x250784,
+ 0x203102,
+ 0x22f743,
+ 0x201d02,
+ 0x234e83,
+ 0x143c3,
0x200382,
- 0x2dd2c4,
- 0x219e43,
- 0x24ab82,
- 0x206b43,
+ 0x2dbb04,
+ 0x214503,
+ 0x249602,
+ 0x20ce83,
0x2003c2,
- 0x23cf83,
- 0x239606,
- 0x3343cf,
+ 0x23f7c3,
+ 0x22a7c6,
+ 0x3347cf,
0x602,
- 0x7094c3,
- 0xa14c8,
- 0x202782,
- 0x228843,
- 0x220583,
- 0x205e03,
- 0x13c3,
- 0x14a08,
- 0x14d5b8b,
- 0x153f50a,
- 0x148e24a,
- 0x14726c7,
- 0xa3bcb,
- 0x15e1c5,
- 0x11a7c9,
- 0x12dac5,
- 0x14c47,
- 0xf5744,
- 0x202782,
- 0x22d7c3,
- 0x220583,
- 0x206b43,
+ 0x776243,
+ 0xa7c88,
+ 0x203102,
+ 0x20d343,
+ 0x224943,
+ 0x211d83,
+ 0x4783,
+ 0xe508,
+ 0x1428f0b,
+ 0x1540cca,
+ 0x152bd0a,
+ 0x1427bc7,
+ 0xa3dcb,
+ 0x178945,
+ 0x110209,
+ 0x129245,
+ 0xe747,
+ 0xef6c4,
+ 0x203102,
+ 0x22f743,
+ 0x224943,
+ 0x20ce83,
0x2000c2,
- 0x201cc2,
- 0x33b5c2,
- 0x1222d7c3,
- 0x23c842,
- 0x233743,
- 0x203582,
- 0x20a1c2,
- 0x220583,
- 0x2068c2,
- 0x272142,
- 0x2ab1c2,
- 0x202082,
- 0x291a82,
+ 0x200c82,
+ 0x33d3c2,
+ 0x12a2f743,
+ 0x23e8c2,
+ 0x234e83,
+ 0x2014c2,
+ 0x2268c2,
+ 0x224943,
+ 0x203942,
+ 0x28bec2,
+ 0x21e202,
+ 0x200cc2,
+ 0x291f82,
0x200802,
- 0x2012c2,
- 0x207102,
- 0x27a482,
- 0x201d02,
- 0x18c3cc,
- 0x2b1402,
- 0x2efdc2,
- 0x21d882,
- 0x241442,
- 0x205e03,
- 0x200c02,
- 0x206b43,
- 0x209b42,
- 0x2d43c2,
- 0x23cf83,
- 0x23ea82,
- 0x202002,
- 0x200ec2,
- 0x201282,
- 0x215042,
- 0x2e9d02,
- 0x219f82,
- 0x25b8c2,
- 0x220d02,
- 0x323aca,
- 0x3660ca,
- 0x39858a,
- 0x3dce42,
- 0x218b42,
- 0x3b4cc2,
- 0x12644509,
- 0x12b63a0a,
- 0x142e5c7,
- 0x12e04d82,
- 0x140abc3,
- 0x2e82,
- 0x163a0a,
- 0x1878ce,
- 0x24ec04,
- 0x5bd85,
- 0x1362d7c3,
- 0x3d4c3,
- 0x233743,
- 0x251184,
- 0x1c1f46,
- 0x220583,
- 0x222884,
- 0x219e43,
- 0x13ee09,
- 0x157646,
- 0x205e03,
- 0xe9644,
- 0x10a4c3,
- 0x206b43,
- 0xfc85,
- 0x2013c3,
- 0x23cf83,
- 0x14e60c4,
- 0x25b583,
- 0x6a04,
- 0x207b83,
- 0xa14c8,
- 0x109406,
- 0x15089c4,
- 0x132605,
- 0x13774a,
- 0x12b382,
- 0x1a7b46,
- 0x48fd1,
- 0x13e44509,
- 0x132688,
- 0x50308,
- 0x1c6547,
- 0x2442,
- 0xe834e,
- 0x12dacb,
- 0x132e0b,
- 0x19018a,
- 0x89a4a,
- 0x2afc7,
- 0xa14c8,
- 0x11d0c8,
- 0x7947,
- 0x1a81414b,
- 0x1b047,
- 0x1c742,
- 0x7dc87,
- 0xd4b8a,
- 0x48a4f,
- 0x4604f,
- 0xd5e42,
- 0x2782,
- 0xa5f48,
- 0xe1f0a,
- 0xdfaca,
- 0x54a4a,
- 0x6ba48,
- 0xe188,
- 0x5d448,
- 0xdff88,
- 0x173088,
- 0x2942,
- 0x45dcf,
- 0xa0d8b,
- 0x6c648,
- 0x3fbc7,
- 0x374a,
- 0x19ee0b,
- 0x80b89,
- 0x4aac7,
- 0xe088,
- 0x19dc4c,
- 0x1a0047,
- 0x6644a,
- 0x18b08,
- 0x29f4e,
- 0x2a70e,
- 0x2ae0b,
- 0x3850b,
- 0xde14b,
- 0xe4b09,
- 0xe518b,
- 0xebb0d,
- 0x10138b,
- 0x110d0d,
- 0x11108d,
- 0x103c8a,
- 0x315cb,
- 0x3d54b,
- 0x18af05,
- 0x1ac24b50,
- 0x168cf,
- 0x10b5cf,
- 0xe558d,
- 0x13efd0,
- 0x758c2,
- 0x1b21e488,
- 0x5d88,
- 0x6e4d0,
- 0x11e60e,
- 0x1b7675c5,
- 0x5010b,
- 0x13df10,
- 0x57d48,
- 0xe28a,
- 0x386c9,
- 0x64b87,
- 0x64ec7,
- 0x65087,
- 0x659c7,
- 0x66b87,
+ 0x200d82,
+ 0x25ce02,
+ 0x27bc02,
+ 0x216842,
+ 0x15388c,
+ 0x2b2a02,
+ 0x2ea082,
+ 0x214682,
+ 0x242bc2,
+ 0x211d83,
+ 0x200bc2,
+ 0x20ce83,
+ 0x224a82,
+ 0x2d33c2,
+ 0x23f7c3,
+ 0x240582,
+ 0x202442,
+ 0x214d02,
+ 0x2033c2,
+ 0x210b82,
+ 0x2e4542,
+ 0x214642,
+ 0x21ddc2,
+ 0x21d9c2,
+ 0x31ac4a,
+ 0x36630a,
+ 0x39c18a,
+ 0x3dd442,
+ 0x20fd02,
+ 0x3b9442,
+ 0x12e45889,
+ 0x13363c4a,
+ 0x1430787,
+ 0x13605102,
+ 0x14ed383,
+ 0x2542,
+ 0x163c4a,
+ 0x18b84e,
+ 0x23d544,
+ 0x77605,
+ 0x13e2f743,
+ 0x3f0c3,
+ 0x234e83,
+ 0x24f044,
+ 0x224943,
+ 0x221b84,
+ 0x214503,
+ 0x1405c9,
+ 0x1a2ac6,
+ 0x211d83,
+ 0xe3e84,
+ 0x176943,
+ 0x20ce83,
+ 0x7085,
+ 0x204783,
+ 0x23f7c3,
+ 0x143d444,
+ 0x259703,
+ 0x1069c4,
+ 0x2050c3,
+ 0xa7c88,
+ 0x176186,
+ 0x1575744,
+ 0x16d005,
+ 0x14bd0a,
+ 0x1237c2,
+ 0x1a7ac6,
+ 0x55e11,
+ 0x14645889,
+ 0x16d088,
+ 0x4e388,
+ 0x1c7bc7,
+ 0x3002,
+ 0xe31ce,
+ 0x12924b,
+ 0x1355cb,
+ 0x19c68a,
+ 0x892ca,
+ 0x26807,
+ 0xa7c88,
+ 0x114748,
+ 0x4e87,
+ 0x1b01530b,
+ 0x1b587,
+ 0x1c782,
+ 0x5d4c7,
+ 0x27f0a,
+ 0x5588f,
+ 0x3cb4f,
+ 0x291c2,
+ 0x3102,
+ 0x864c8,
+ 0xe3aca,
+ 0xdde8a,
+ 0x52b0a,
+ 0x18ca48,
+ 0xc288,
+ 0x5bb48,
+ 0xde348,
+ 0x16c848,
+ 0x7682,
+ 0x3c8cf,
+ 0xa1f8b,
+ 0x18d648,
+ 0x39dc7,
+ 0x168a,
+ 0x13a0cb,
+ 0x35309,
+ 0x49547,
+ 0xc188,
+ 0x15fe8c,
+ 0x1385c7,
+ 0xdad4a,
+ 0xfcc8,
+ 0x2578e,
+ 0x25f4e,
+ 0x2664b,
+ 0x296cb,
+ 0x2c0cb,
+ 0x2cf89,
+ 0x6cb8b,
+ 0x6d68d,
+ 0xdc28b,
+ 0xf990d,
+ 0xf9c8d,
+ 0xfd7ca,
+ 0xfef4b,
+ 0x3b8cb,
+ 0x3f545,
+ 0x1b424010,
+ 0x174cf,
+ 0x13218f,
+ 0x6e90d,
+ 0x140790,
+ 0x69102,
+ 0x1ba1ed48,
+ 0x11d08,
+ 0xa1150,
+ 0x11578e,
+ 0x1bf68d45,
+ 0x4e18b,
+ 0x13f6d0,
+ 0x55548,
+ 0xc38a,
+ 0x29889,
+ 0x63007,
+ 0x63347,
+ 0x63507,
+ 0x63d47,
+ 0x65147,
+ 0x65747,
+ 0x66087,
+ 0x665c7,
0x67107,
- 0x67807,
- 0x67d47,
- 0x68287,
- 0x68607,
- 0x68cc7,
- 0x68e87,
- 0x69047,
+ 0x67487,
+ 0x67b47,
+ 0x67d07,
+ 0x67ec7,
+ 0x68087,
0x69207,
- 0x69947,
- 0x69cc7,
- 0x6a787,
- 0x6ab47,
- 0x6b107,
- 0x6b3c7,
- 0x6b587,
- 0x6c8c7,
- 0x6cd87,
- 0x6cf87,
- 0x6d347,
- 0x6d507,
- 0x6d6c7,
- 0x6ee07,
- 0x70247,
- 0x70647,
- 0x70e07,
- 0x710c7,
- 0x71447,
- 0x71607,
- 0x71a07,
- 0x72f87,
- 0x739c7,
+ 0x69ac7,
+ 0x6ac47,
+ 0x6b007,
+ 0x6b647,
+ 0x6b907,
+ 0x6bac7,
+ 0x6bdc7,
+ 0x6fe07,
+ 0x70007,
+ 0x703c7,
+ 0x70587,
+ 0x70747,
+ 0x71387,
+ 0x72987,
+ 0x72e07,
+ 0x73907,
+ 0x73bc7,
0x73f47,
0x74107,
- 0x742c7,
- 0x75b07,
- 0x76587,
- 0x76ac7,
- 0x770c7,
- 0x77287,
- 0x77607,
- 0x77b47,
- 0x37482,
- 0x5d54a,
- 0xe9787,
- 0x8b705,
- 0x9a3d1,
- 0x1d21c6,
- 0xf2f0a,
- 0xa5dca,
- 0x59706,
- 0x15578b,
+ 0x74507,
+ 0x755c7,
+ 0x75a07,
+ 0x75f87,
+ 0x76147,
+ 0x76307,
+ 0x76b87,
+ 0x77747,
+ 0x77c87,
+ 0x78207,
+ 0x783c7,
+ 0x78747,
+ 0x79347,
+ 0x4582,
+ 0x5bc4a,
+ 0xe3fc7,
+ 0x888c5,
+ 0xa6411,
+ 0x1b9e06,
+ 0xf5a8a,
+ 0x8634a,
+ 0x57b06,
+ 0xacf8b,
0x642,
- 0x2fad1,
- 0xb3dc9,
- 0x967c9,
- 0x7102,
- 0x8898a,
- 0xa8549,
- 0xa8c8f,
- 0xa928e,
- 0xaa8c8,
- 0x373c2,
- 0x108f09,
- 0x19774e,
- 0x1c848c,
- 0xeaa8f,
- 0x1b174e,
- 0x8284c,
- 0xe4e09,
- 0xe6711,
- 0xe6cc8,
- 0x19e052,
- 0x19f60d,
- 0x6eacd,
- 0x16f00b,
- 0x4da95,
- 0x504c9,
- 0x5c44a,
- 0x73109,
- 0x82c50,
- 0x8700b,
- 0x16e18f,
- 0x1ca50b,
- 0x916cc,
- 0x93b50,
- 0xa4cca,
- 0xa620d,
- 0xac4ce,
- 0xae70a,
- 0xaf0cc,
- 0x150094,
- 0xb3a51,
- 0xb7f0b,
- 0xb8f0f,
- 0xb9d0d,
- 0xba58e,
- 0xbed8c,
- 0xc1d8c,
- 0xc304b,
- 0xc3a0e,
- 0xc42d0,
- 0xc548b,
- 0x134c0d,
- 0x14288f,
- 0xcfc0c,
- 0xd0dce,
- 0xd2d11,
- 0xda08c,
- 0xf5587,
- 0xfc78d,
- 0x11274c,
- 0x1cf090,
- 0x102dcd,
- 0x11ac07,
- 0x15c2d0,
- 0x16f588,
- 0x184ccb,
- 0xb018f,
- 0x17f8c8,
- 0xf310d,
- 0x107d10,
- 0x175889,
- 0x1bab22c6,
- 0xb3143,
- 0xba245,
- 0x53a42,
- 0x3bc9,
- 0x5a34a,
- 0x1bf9e506,
- 0x1c27de84,
- 0x5acc6,
- 0x1d3ca,
- 0xe5d0d,
- 0x1c5313c9,
- 0x19a03,
- 0x114e0a,
- 0xde5d1,
- 0xdea09,
- 0xdfa47,
- 0xe0808,
+ 0x31b11,
+ 0x1522c9,
+ 0x98009,
+ 0x5ce02,
+ 0x8268a,
+ 0xa8c49,
+ 0xa938f,
+ 0xa998e,
+ 0xac2c8,
+ 0x5dc2,
+ 0x175c89,
+ 0x19b74e,
+ 0x1c1f4c,
+ 0xe534f,
+ 0x1b380e,
+ 0x2b3cc,
+ 0x6d309,
+ 0x6ee11,
+ 0x6f3c8,
+ 0x139312,
+ 0x13a8cd,
+ 0x16028d,
+ 0x172b4b,
+ 0x4e555,
+ 0x53889,
+ 0x5ac8a,
+ 0x5f309,
+ 0x74a50,
+ 0x7574b,
+ 0x8678f,
+ 0x171dcb,
+ 0x1c998c,
+ 0x91ad0,
+ 0x9748a,
+ 0xa2acd,
+ 0xabf4e,
+ 0xadcca,
+ 0xb00cc,
+ 0xc2a94,
+ 0x151f51,
+ 0xb5b0b,
+ 0xb7d0f,
+ 0xb970d,
+ 0xb9f8e,
+ 0xbc5cc,
+ 0xbe58c,
+ 0xc278b,
+ 0xc334e,
+ 0xc3c10,
+ 0xc4a0b,
+ 0x170d8d,
+ 0x14388f,
+ 0xcbe4c,
+ 0xcea0e,
+ 0xcfc11,
+ 0xd830c,
0xe0e07,
- 0xe9848,
- 0x45ecb,
- 0x12d8c9,
- 0xe9fd0,
- 0xea48c,
- 0xeaf48,
- 0xeb3c5,
- 0x1b9288,
- 0x1bcd8a,
- 0x19ac7,
- 0x12e547,
- 0x13c2,
- 0x13ec0a,
- 0x147488,
- 0x1c3689,
- 0x78505,
- 0x11a90a,
- 0x8f40f,
- 0x12a2cb,
- 0x1b4dcc,
- 0x15c812,
- 0x78845,
- 0xed2c8,
- 0x51c0a,
- 0x1caf7605,
- 0x17770c,
- 0x13b403,
- 0x1a1602,
- 0x10004a,
- 0x15003cc,
- 0x1a03c8,
- 0x110ec8,
- 0x1cf47506,
- 0x18c8c7,
- 0x16f82,
- 0x9482,
- 0x4ecd0,
- 0x72847,
- 0x2f0cf,
- 0x5bac6,
- 0x7c64e,
- 0x1592cb,
- 0x49f88,
- 0x80f49,
- 0x1991d2,
- 0x11570d,
- 0x115f88,
- 0xae909,
- 0xd8f4d,
- 0x18be89,
- 0x19628b,
- 0x1d1c08,
- 0x7c988,
- 0x7ec48,
- 0x7f089,
- 0x7f28a,
- 0x7ff4c,
- 0xea74a,
- 0x1c20c7,
- 0x55c8d,
- 0xe6fd1,
- 0x1d2ba886,
- 0x1b068b,
- 0x12bf0c,
- 0x10448,
- 0x48589,
- 0x17c5cd,
- 0x1a7d50,
- 0xd2c2,
- 0x14500d,
- 0x7d82,
- 0x1a6c2,
- 0x1c200a,
- 0x10c20a,
- 0xf2e0a,
- 0xf3c8b,
- 0x2a98c,
- 0x11c8cc,
- 0x11cbca,
- 0x11ce4e,
- 0x1dc80d,
- 0x1d5dcd05,
- 0x136288,
- 0xa842,
- 0x1430c68e,
- 0x14a0750e,
- 0x152046ca,
- 0x15b322ce,
- 0x16202f4e,
- 0x16b7350c,
- 0x142e5c7,
- 0x142e5c9,
- 0x140abc3,
- 0x173cd68c,
- 0x17a758c9,
- 0x18329b09,
- 0x18b37549,
- 0x2e82,
- 0x10c5d1,
- 0x7451,
- 0x460d,
- 0x132211,
- 0x2e91,
- 0x17344f,
- 0x1cd5cf,
- 0x7580c,
- 0x129a4c,
- 0x13748c,
- 0x14364d,
- 0x202d5,
- 0x581cc,
- 0x6964c,
- 0x133510,
- 0x17910c,
- 0x18954c,
- 0x199c99,
- 0x1a9299,
- 0x1b2559,
- 0x1c0f94,
- 0x1c3c94,
- 0x7ad4,
- 0x8554,
- 0x8ad4,
- 0x19258289,
- 0x19807d89,
- 0x1a269709,
- 0x146e6ec9,
- 0x2e82,
- 0x14ee6ec9,
- 0x2e82,
- 0x7aca,
- 0x2e82,
- 0x156e6ec9,
- 0x2e82,
- 0x7aca,
- 0x2e82,
- 0x15ee6ec9,
- 0x2e82,
- 0x166e6ec9,
- 0x2e82,
- 0x16ee6ec9,
- 0x2e82,
- 0x7aca,
- 0x2e82,
- 0x176e6ec9,
- 0x2e82,
- 0x7aca,
- 0x2e82,
- 0x17ee6ec9,
- 0x2e82,
- 0x186e6ec9,
- 0x2e82,
- 0x7aca,
- 0x2e82,
- 0x18ee6ec9,
- 0x2e82,
- 0x7aca,
- 0x2e82,
- 0x196e6ec9,
- 0x2e82,
- 0x19ee6ec9,
- 0x2e82,
- 0x1a6e6ec9,
- 0x2e82,
- 0x7aca,
- 0x2e82,
- 0x48fc5,
- 0x190184,
- 0x10c68e,
- 0x750e,
- 0x79d4e,
- 0x46ca,
- 0x1322ce,
- 0x2f4e,
- 0x17350c,
- 0x1cd68c,
- 0x758c9,
- 0x129b09,
- 0x137549,
- 0x58289,
- 0x7d89,
- 0x69709,
- 0x204cd,
- 0x8809,
- 0x8d89,
- 0x141e44,
- 0x1d5f44,
- 0x18d184,
- 0x149c84,
- 0xa3e84,
- 0x2c684,
- 0x36a04,
- 0x52644,
- 0x103a04,
- 0x159da03,
- 0x31b07,
- 0x3484c,
- 0x20c3,
- 0x758c2,
- 0x1dc803,
- 0x20c3,
- 0x35e03,
- 0x148702,
- 0x1da608,
- 0x12d947,
- 0x2942,
+ 0xeea0d,
+ 0xf6c0c,
+ 0x108c10,
+ 0x1ccf4d,
+ 0xfffc7,
+ 0x145d10,
+ 0x166548,
+ 0x1730cb,
+ 0xb184f,
+ 0x120648,
+ 0xf5c8d,
+ 0x103a10,
+ 0x17ef89,
+ 0x1c2b36c6,
+ 0xb4d43,
+ 0xba545,
+ 0x51b42,
+ 0x1b09,
+ 0x584ca,
+ 0x1c7397c6,
+ 0x1ca5d6c4,
+ 0x58e46,
+ 0x1d40a,
+ 0x81b0d,
+ 0x1cd68009,
+ 0x166c3,
+ 0x106cca,
+ 0xdd091,
+ 0xdd4c9,
+ 0xdde07,
+ 0xdeb88,
+ 0xdf187,
+ 0xe4088,
+ 0x3c9cb,
+ 0x125b89,
+ 0xe4810,
+ 0xe4ccc,
+ 0xe5808,
+ 0xe5c85,
+ 0xa088,
+ 0x10630a,
+ 0x139147,
+ 0x129f47,
+ 0x2f42,
+ 0x1403ca,
+ 0x14aac8,
+ 0x1c5009,
+ 0x79d05,
+ 0x11034a,
+ 0x8f30f,
+ 0x12284b,
+ 0x1b954c,
+ 0x146252,
+ 0x7ce85,
+ 0xe7948,
+ 0x4f34a,
+ 0x1d2f1585,
+ 0x1866cc,
+ 0x13d203,
+ 0x1a1642,
+ 0xfafcb,
+ 0xfc88a,
+ 0x14fcc0c,
+ 0x138948,
+ 0xf9ac8,
+ 0x1d74ab46,
+ 0x688c7,
+ 0x129c2,
+ 0x5fc2,
+ 0x4cb90,
+ 0x69387,
+ 0x3128f,
+ 0x1c6b46,
+ 0x15b10e,
+ 0x9640b,
+ 0x18fe88,
+ 0x356c9,
+ 0x17bf92,
+ 0x10ac0d,
+ 0x10b488,
+ 0xd6ec9,
+ 0x14c80d,
+ 0x19a249,
+ 0x5c8b,
+ 0x6bf48,
+ 0x79148,
+ 0x7ccc8,
+ 0x7ffc9,
+ 0x801ca,
+ 0x872cc,
+ 0x3bb8a,
+ 0xe898a,
+ 0x10a487,
+ 0x4840d,
+ 0x6f6d1,
+ 0x1daba286,
+ 0x1b1c4b,
+ 0x1241cc,
+ 0x2eb08,
+ 0x47309,
+ 0x18058d,
+ 0x1a7cd0,
+ 0x17dbcd,
+ 0x13602,
+ 0x66dcd,
+ 0x4cc2,
+ 0x187c2,
+ 0x10a3ca,
+ 0x124ca,
+ 0xf598a,
+ 0x11308b,
+ 0x261cc,
+ 0x11424a,
+ 0x1144ce,
+ 0x18820d,
+ 0x1dddd305,
+ 0x12d5c8,
+ 0x8c42,
+ 0x14b7704e,
+ 0x15203f4e,
+ 0x15a0260a,
+ 0x1636ccce,
+ 0x16b21f4e,
+ 0x172fbe8c,
+ 0x1430787,
+ 0x1430789,
+ 0x14ed383,
+ 0x17bbeccc,
+ 0x18342d09,
+ 0x18b44d49,
+ 0x1934bb09,
+ 0x2542,
+ 0x176f91,
+ 0x3e91,
+ 0x254d,
+ 0x16cc11,
+ 0x121e91,
+ 0xfbdcf,
+ 0x1bec0f,
+ 0x142c4c,
+ 0x144c8c,
+ 0x14ba4c,
+ 0x16880d,
+ 0x6a395,
+ 0x7eb8c,
+ 0x135ccc,
+ 0x17ca50,
+ 0x1947cc,
+ 0x1a9b4c,
+ 0x1ae759,
+ 0x1b4c99,
+ 0x1b6c19,
+ 0x1bb6d4,
+ 0x1c3194,
+ 0x1c42d4,
+ 0x1c5614,
+ 0x5014,
+ 0x19a7ec49,
+ 0x1a1c4589,
+ 0x1ab35d89,
+ 0x14e6f5c9,
+ 0x2542,
+ 0x1566f5c9,
+ 0x2542,
+ 0x500a,
+ 0x2542,
+ 0x15e6f5c9,
+ 0x2542,
+ 0x500a,
+ 0x2542,
+ 0x1666f5c9,
+ 0x2542,
+ 0x16e6f5c9,
+ 0x2542,
+ 0x1766f5c9,
+ 0x2542,
+ 0x500a,
+ 0x2542,
+ 0x17e6f5c9,
+ 0x2542,
+ 0x500a,
+ 0x2542,
+ 0x1866f5c9,
+ 0x2542,
+ 0x18e6f5c9,
+ 0x2542,
+ 0x500a,
+ 0x2542,
+ 0x1966f5c9,
+ 0x2542,
+ 0x500a,
+ 0x2542,
+ 0x19e6f5c9,
+ 0x2542,
+ 0x1a66f5c9,
+ 0x2542,
+ 0x1ae6f5c9,
+ 0x2542,
+ 0x500a,
+ 0x2542,
+ 0x55e05,
+ 0x19c684,
+ 0x17704e,
+ 0x3f4e,
+ 0x7b4ce,
+ 0x260a,
+ 0x16ccce,
+ 0x121f4e,
+ 0xfbe8c,
+ 0x1beccc,
+ 0x142d09,
+ 0x144d49,
+ 0x14bb09,
+ 0x7ec49,
+ 0x1c4589,
+ 0x135d89,
+ 0x6a58d,
+ 0x194889,
+ 0x52c9,
+ 0x1497c4,
+ 0x1d7144,
+ 0x69104,
+ 0x154b84,
+ 0xa4084,
+ 0x2dd44,
+ 0x37dc4,
+ 0x4df04,
+ 0xfe484,
+ 0x15a1203,
+ 0xe3687,
+ 0x35fcc,
+ 0x31643,
+ 0x69102,
+ 0x188203,
+ 0x31643,
+ 0x90f43,
+ 0x7842,
+ 0x7848,
+ 0x125c07,
+ 0x7682,
0x2000c2,
- 0x202782,
- 0x203dc2,
- 0x219d02,
+ 0x203102,
+ 0x201d02,
+ 0x2143c2,
0x200382,
0x2003c2,
- 0x209482,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x219c83,
- 0x206b43,
- 0x23cf83,
- 0xa14c8,
- 0x22d7c3,
- 0x233743,
- 0x206b43,
- 0x23cf83,
- 0xb243,
- 0x220583,
- 0x22884,
+ 0x205fc2,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x214343,
+ 0x20ce83,
+ 0x23f7c3,
+ 0xa7c88,
+ 0x22f743,
+ 0x234e83,
+ 0x20ce83,
+ 0x23f7c3,
+ 0xb9c3,
+ 0x224943,
+ 0x21b84,
0x2000c2,
- 0x24ce83,
- 0x1fa2d7c3,
- 0x38abc7,
- 0x220583,
- 0x214903,
- 0x205184,
- 0x206b43,
- 0x23cf83,
- 0x21d60a,
- 0x239605,
- 0x213c43,
- 0x21be02,
- 0xa14c8,
- 0xa14c8,
- 0x2782,
- 0x1392c2,
- 0x2033114b,
- 0x2062da44,
- 0x7ddc5,
- 0x5f85,
- 0x1d9c46,
- 0x20a05f85,
- 0x57243,
- 0x1080c3,
- 0x109744,
- 0x3283,
- 0x131905,
- 0x12dac5,
- 0xa14c8,
- 0x1b047,
- 0x2d7c3,
- 0x2123a4c7,
- 0x3686,
- 0x21573345,
- 0x3a5c7,
- 0xbb4a,
- 0xba08,
- 0xea47,
- 0x679ca,
- 0x183548,
- 0x33c87,
- 0x1a618f,
- 0x3e047,
- 0x52446,
- 0x13df10,
- 0xf43cf,
- 0x12789,
- 0x5ad44,
- 0x2183a68e,
- 0x50949,
- 0x69346,
- 0x1071c9,
- 0x18bb06,
- 0x1c4d06,
- 0x6c40c,
- 0x19f00a,
- 0x80d07,
- 0x1cd10a,
- 0x160a49,
- 0xef0cc,
- 0x1b4a8a,
- 0x60c0a,
- 0x131949,
- 0x5acc6,
- 0x80dca,
- 0x11658a,
- 0x9cf0a,
- 0x11a349,
- 0xdce88,
- 0xdd106,
- 0xe3a0d,
- 0xbacc5,
- 0x21f4df8c,
- 0x137987,
- 0x1051c9,
- 0xb4147,
- 0x10cad4,
- 0x10cfcb,
- 0x3fa0a,
- 0x19904a,
- 0xa65cd,
- 0x14f3e89,
- 0x1154cc,
- 0x115d8b,
- 0x18b03,
- 0x18b03,
- 0x29f46,
- 0x18b03,
- 0x1d9c48,
- 0x1cd543,
- 0x150c443,
- 0x54389,
- 0x14cfe83,
- 0x82ec7,
- 0x22dc6409,
- 0x12a06,
- 0x1081c9,
- 0x4ce83,
- 0xa14c8,
- 0x2782,
- 0x51184,
- 0x88dc3,
- 0x1da885,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x206b43,
- 0x23cf83,
- 0x20a683,
- 0x22d7c3,
- 0x233743,
- 0x228843,
- 0x220583,
- 0x205e03,
- 0x206b43,
- 0x23cf83,
- 0x296983,
- 0x207b83,
- 0x20a683,
- 0x241844,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x206b43,
- 0x23cf83,
- 0x204f03,
- 0x249c6505,
- 0x142c183,
- 0x22d7c3,
- 0x233743,
- 0x219d03,
- 0x228843,
- 0x220583,
- 0x222884,
- 0x37fa83,
- 0x22a243,
- 0x205e03,
- 0x206b43,
- 0x23cf83,
- 0x213c43,
- 0x2561dac3,
- 0x15c709,
- 0x2782,
- 0x2097c3,
- 0x2622d7c3,
- 0x233743,
- 0x24adc3,
- 0x220583,
- 0x217343,
- 0x22a243,
- 0x23cf83,
- 0x21c3c3,
- 0x369444,
- 0xa14c8,
- 0x26a2d7c3,
- 0x233743,
- 0x2aa983,
- 0x220583,
- 0x205e03,
- 0x205184,
- 0x206b43,
- 0x23cf83,
- 0x22ec43,
- 0xa14c8,
- 0x2722d7c3,
- 0x233743,
- 0x228843,
- 0x2013c3,
- 0x23cf83,
- 0xa14c8,
- 0x142e5c7,
- 0x24ce83,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x222884,
- 0x205184,
- 0x206b43,
- 0x23cf83,
- 0x12dac5,
- 0x14c47,
- 0x10cd0b,
- 0xdee04,
- 0xbacc5,
- 0x144b148,
- 0xaafcd,
- 0x286e75c5,
- 0x9a544,
- 0x2782,
- 0x1083,
- 0x175785,
- 0x2ebc2,
- 0x2b82,
- 0x3cc145,
- 0xa14c8,
- 0x18b02,
- 0x1d003,
- 0x16240f,
- 0x2782,
- 0xfd346,
- 0x2ebc2,
- 0x32c608,
- 0x241844,
- 0x340cc6,
- 0x343506,
- 0xa14c8,
- 0x301983,
- 0x2c6689,
+ 0x24af03,
+ 0x2022f743,
+ 0x38fa87,
+ 0x224943,
+ 0x20e943,
+ 0x209c04,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x21d64a,
+ 0x22a7c5,
+ 0x214e03,
+ 0x21a602,
+ 0xa7c88,
+ 0xa7c88,
+ 0x3102,
+ 0x1379c2,
+ 0x20b67d8b,
+ 0x20e2f9c4,
+ 0x5d605,
+ 0xe745,
+ 0x100a86,
+ 0x2120e745,
+ 0x54f03,
+ 0x1668c3,
+ 0x9c4,
+ 0x11c3,
+ 0x1273c5,
+ 0x129245,
+ 0xa7c88,
+ 0x1b587,
+ 0x2f743,
+ 0x21a3a407,
+ 0x15c6,
+ 0x21d6cb05,
+ 0x3a507,
+ 0xac8a,
+ 0xab48,
+ 0xcb47,
+ 0x6624a,
+ 0x18e448,
+ 0x64bc7,
+ 0x1a63cf,
+ 0x3f147,
+ 0x4dd06,
+ 0x13f6d0,
+ 0x7338f,
+ 0x19209,
+ 0x58ec4,
+ 0x2203a5ce,
+ 0x3ad49,
+ 0x681c6,
+ 0x102ec9,
+ 0x190b46,
+ 0x1a8ac6,
+ 0x18d40c,
+ 0x13a2ca,
+ 0x35487,
+ 0x12184a,
+ 0x176749,
+ 0xe938c,
+ 0x1b920a,
+ 0x8970a,
+ 0x127409,
+ 0x58e46,
+ 0x3554a,
+ 0x10bb0a,
+ 0x9fcca,
+ 0x112349,
+ 0xdb6c8,
+ 0xdb946,
+ 0xe0fcd,
+ 0xbaf85,
+ 0x2275308c,
+ 0x14bf47,
+ 0x1015c9,
+ 0xb3207,
+ 0x103e14,
+ 0x10430b,
+ 0x39c0a,
+ 0x17be0a,
+ 0xa5a0d,
+ 0x1513289,
+ 0x10a9cc,
+ 0x10b28b,
+ 0xfcc3,
+ 0xfcc3,
+ 0x25786,
+ 0xfcc3,
+ 0x100a88,
+ 0x156b03,
+ 0x35685,
+ 0x1412703,
+ 0x52449,
+ 0x14cc0c3,
+ 0x146dbc7,
+ 0x74cc7,
+ 0x235c7a89,
+ 0xcd46,
+ 0x174f49,
+ 0x4af03,
+ 0xa7c88,
+ 0x3102,
+ 0x4f044,
+ 0x7b83,
+ 0x7ac5,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x21c183,
+ 0x22f743,
+ 0x234e83,
+ 0x20d343,
+ 0x224943,
+ 0x211d83,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x2981c3,
+ 0x2050c3,
+ 0x21c183,
+ 0x250784,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x209983,
+ 0x251c7b85,
+ 0x142da83,
+ 0x22f743,
+ 0x234e83,
+ 0x2143c3,
+ 0x20d343,
+ 0x224943,
+ 0x221b84,
+ 0x201143,
+ 0x225a83,
+ 0x211d83,
+ 0x20ce83,
+ 0x71003,
+ 0x23f7c3,
+ 0x214e03,
+ 0x25e1e383,
+ 0x146149,
+ 0x3102,
+ 0x3a8583,
+ 0x26a2f743,
+ 0x234e83,
+ 0x249843,
+ 0x224943,
+ 0x215cc3,
+ 0x225a83,
+ 0x23f7c3,
+ 0x2f16c3,
+ 0x39cb04,
+ 0xa7c88,
+ 0x2722f743,
+ 0x234e83,
+ 0x2ac383,
+ 0x224943,
+ 0x211d83,
+ 0x209c04,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x230e03,
+ 0xa7c88,
+ 0x27a2f743,
+ 0x234e83,
+ 0x20d343,
+ 0x204783,
+ 0x23f7c3,
+ 0xa7c88,
+ 0x1430787,
+ 0x24af03,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x221b84,
+ 0x209c04,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x129245,
+ 0xe747,
+ 0x10404b,
+ 0xdd8c4,
+ 0xbaf85,
+ 0x14441c8,
+ 0x1e00d,
+ 0x28e6fcc5,
+ 0x81b84,
+ 0x3102,
+ 0xd103,
+ 0x17ee85,
+ 0x28002,
+ 0x1dc2,
+ 0x326705,
+ 0xa7c88,
+ 0xfcc2,
+ 0x2a83,
+ 0x16264f,
+ 0x3102,
+ 0xf7806,
+ 0x28002,
+ 0x3248c8,
+ 0x250784,
+ 0x348806,
+ 0x34b906,
+ 0xa7c88,
+ 0x31a3c3,
+ 0x2c5c09,
0x359a95,
0x159a9f,
- 0x22d7c3,
- 0x3c0b52,
- 0x16ed46,
- 0x17fe05,
- 0xe28a,
- 0x386c9,
- 0x3c090f,
- 0x2dd2c4,
- 0x25e605,
- 0x30e590,
- 0x2449c7,
- 0x2013c3,
- 0x2fb908,
- 0x10b906,
- 0x27ee0a,
- 0x206f84,
- 0x2f7043,
- 0x21be02,
- 0x2f060b,
- 0x13c3,
- 0x19c3c4,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x205e03,
- 0x206b43,
- 0x13c3,
- 0x23cf83,
- 0x2fe843,
- 0x202782,
- 0xe16c3,
- 0xf984,
- 0x206b43,
- 0x23cf83,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x205e03,
- 0x23cf83,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x214903,
- 0x226243,
- 0x23cf83,
- 0x4ce83,
- 0x202782,
- 0x22d7c3,
- 0x233743,
- 0x206b43,
- 0x13c3,
- 0x23cf83,
+ 0x22f743,
+ 0x3c2d52,
+ 0x172886,
+ 0x1825c5,
+ 0xc38a,
+ 0x29889,
+ 0x3c2b0f,
+ 0x2dbb04,
+ 0x36b785,
+ 0x304a10,
+ 0x245d47,
+ 0x204783,
+ 0x314d88,
+ 0x1324c6,
+ 0x29248a,
+ 0x203b04,
+ 0x2f0fc3,
+ 0x21a602,
+ 0x2eaa8b,
+ 0x4783,
+ 0x19fbc4,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x211d83,
+ 0x20ce83,
+ 0x4783,
+ 0x23f7c3,
+ 0x2f8f83,
+ 0x203102,
+ 0x1a95c3,
+ 0x6d84,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x211d83,
+ 0x23f7c3,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x20e943,
+ 0x225283,
+ 0x23f7c3,
+ 0x4af03,
+ 0x203102,
+ 0x22f743,
+ 0x234e83,
+ 0x20ce83,
+ 0x4783,
+ 0x23f7c3,
0x2000c2,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x206b43,
- 0x23cf83,
- 0x5f85,
- 0x241844,
- 0x22d7c3,
- 0x233743,
- 0x3216c4,
- 0x206b43,
- 0x23cf83,
- 0xa14c8,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x206b43,
- 0x6df83,
- 0x23cf83,
- 0x137249,
- 0x22d7c3,
- 0x233743,
- 0x228843,
- 0x209a03,
- 0x205e03,
- 0x206b43,
- 0x13c3,
- 0x23cf83,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x32ef44,
- 0x222884,
- 0x206b43,
- 0x23cf83,
- 0x207b83,
- 0x202782,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x206b43,
- 0x6df83,
- 0x23cf83,
- 0xa14c8,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x2067c3,
- 0x44b03,
- 0x14903,
- 0x206b43,
- 0x23cf83,
- 0x323aca,
- 0x345349,
- 0x35c04b,
- 0x35d44a,
- 0x3660ca,
- 0x376b8b,
- 0x38b8ca,
- 0x391f8a,
- 0x39858a,
- 0x39880b,
- 0x3bcac9,
- 0x3c94ca,
- 0x3c9c8b,
- 0x3d680b,
- 0x3db74a,
- 0x22d7c3,
- 0x233743,
- 0x228843,
- 0x205e03,
- 0x206b43,
- 0x13c3,
- 0x23cf83,
- 0x17830b,
- 0x5e148,
- 0xd9084,
- 0x46006,
- 0xec149,
- 0xa14c8,
- 0x22d7c3,
- 0xe284,
- 0x264b84,
- 0x20d142,
- 0x205184,
- 0x331e45,
- 0x20a683,
- 0x241844,
- 0x22d7c3,
- 0x236204,
- 0x233743,
- 0x251184,
- 0x2dd2c4,
- 0x222884,
- 0x22a243,
- 0x206b43,
- 0x23cf83,
- 0x3451c5,
- 0x204f03,
- 0x213c43,
- 0x210f43,
- 0x23d804,
- 0x309384,
- 0x308485,
- 0xa14c8,
- 0x2010c4,
- 0x3c4e86,
- 0x331a84,
- 0x202782,
- 0x35cc07,
- 0x249587,
- 0x24e444,
- 0x25bec5,
- 0x302fc5,
- 0x22e1c5,
- 0x222884,
- 0x3883c8,
- 0x239006,
- 0x34c488,
- 0x27a4c5,
- 0x2e43c5,
- 0x235fc4,
- 0x23cf83,
- 0x2f7dc4,
- 0x3751c6,
- 0x239703,
- 0x23d804,
- 0x243185,
- 0x203b44,
- 0x255ac4,
- 0x21be02,
- 0x39f906,
- 0x3aec06,
- 0x313d05,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x20ce83,
+ 0x23f7c3,
+ 0xe745,
+ 0x250784,
+ 0x22f743,
+ 0x234e83,
+ 0x346484,
+ 0x20ce83,
+ 0x23f7c3,
+ 0xa7c88,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x20ce83,
+ 0x71003,
+ 0x23f7c3,
+ 0x144a49,
+ 0x22f743,
+ 0x234e83,
+ 0x20d343,
+ 0x2083c3,
+ 0x211d83,
+ 0x20ce83,
+ 0x4783,
+ 0x23f7c3,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x342644,
+ 0x221b84,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x2050c3,
+ 0x203102,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x20ce83,
+ 0x71003,
+ 0x23f7c3,
+ 0xa7c88,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x203843,
+ 0x45e83,
+ 0xe943,
+ 0x20ce83,
+ 0x71003,
+ 0x23f7c3,
+ 0x31ac4a,
+ 0x346cc9,
+ 0x35db4b,
+ 0x35e24a,
+ 0x36630a,
+ 0x37a0cb,
+ 0x39090a,
+ 0x395f8a,
+ 0x39c18a,
+ 0x39c40b,
+ 0x3bcf09,
+ 0x3c8bca,
+ 0x3c910b,
+ 0x3d588b,
+ 0x3da58a,
+ 0x22f743,
+ 0x234e83,
+ 0x20d343,
+ 0x211d83,
+ 0x20ce83,
+ 0x4783,
+ 0x23f7c3,
+ 0x1872cb,
+ 0x5c848,
+ 0x14c944,
+ 0x3cb06,
+ 0xfda89,
+ 0xa7c88,
+ 0x22f743,
+ 0xc384,
+ 0x263004,
+ 0x213482,
+ 0x209c04,
+ 0x327905,
+ 0x21c183,
+ 0x250784,
+ 0x22f743,
+ 0x2375c4,
+ 0x234e83,
+ 0x24f044,
+ 0x2dbb04,
+ 0x221b84,
+ 0x225a83,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x266f85,
+ 0x209983,
+ 0x214e03,
+ 0x252c43,
+ 0x23bb84,
+ 0x376104,
+ 0x375205,
+ 0xa7c88,
+ 0x331c04,
+ 0x3a8c46,
+ 0x327544,
+ 0x203102,
+ 0x346647,
+ 0x247947,
+ 0x24bd44,
+ 0x25a1c5,
+ 0x3cd145,
+ 0x230145,
+ 0x221b84,
+ 0x38c348,
+ 0x22a1c6,
+ 0x34de48,
+ 0x27bc45,
+ 0x2e1985,
+ 0x265e44,
+ 0x23f7c3,
+ 0x2f2484,
+ 0x378f06,
+ 0x22a8c3,
+ 0x23bb84,
+ 0x234545,
+ 0x201a84,
+ 0x248244,
+ 0x21a602,
+ 0x337e86,
+ 0x3b01c6,
+ 0x308005,
0x2000c2,
- 0x24ce83,
- 0x30a02782,
- 0x21e604,
+ 0x24af03,
+ 0x31203102,
+ 0x21eec4,
0x200382,
- 0x205e03,
- 0x245ec2,
- 0x206b43,
+ 0x211d83,
+ 0x23c9c2,
+ 0x20ce83,
0x2003c2,
- 0x2f4786,
- 0x202003,
- 0x207b83,
- 0xab204,
- 0xa14c8,
- 0xa14c8,
- 0x220583,
- 0x6df83,
+ 0x2edc06,
+ 0x202443,
+ 0x2050c3,
+ 0xa7c88,
+ 0xa7c88,
+ 0x224943,
+ 0x71003,
0x2000c2,
- 0x31602782,
- 0x220583,
- 0x268fc3,
- 0x37fa83,
- 0x22da44,
- 0x206b43,
- 0x23cf83,
- 0xa14c8,
+ 0x31e03102,
+ 0x224943,
+ 0x264983,
+ 0x201143,
+ 0x22f9c4,
+ 0x20ce83,
+ 0x23f7c3,
+ 0xa7c88,
0x2000c2,
- 0x31e02782,
- 0x22d7c3,
- 0x206b43,
- 0x13c3,
- 0x23cf83,
+ 0x32603102,
+ 0x22f743,
+ 0x20ce83,
+ 0x4783,
+ 0x23f7c3,
0x682,
- 0x2062c2,
- 0x2195c2,
- 0x214903,
- 0x2ef083,
+ 0x205842,
+ 0x210782,
+ 0x20e943,
+ 0x2e9343,
0x2000c2,
- 0x12dac5,
- 0xa14c8,
- 0x14c47,
- 0x202782,
- 0x233743,
- 0x251184,
- 0x204183,
- 0x220583,
- 0x209a03,
- 0x205e03,
- 0x206b43,
- 0x212203,
- 0x23cf83,
- 0x234703,
- 0x1cb6d3,
- 0x127714,
- 0x12dac5,
- 0x14c47,
- 0x114486,
- 0x111b4b,
- 0x29f46,
- 0x58587,
- 0x5bec6,
+ 0x129245,
+ 0xa7c88,
+ 0xe747,
+ 0x203102,
+ 0x234e83,
+ 0x24f044,
+ 0x2020c3,
+ 0x224943,
+ 0x2083c3,
+ 0x211d83,
+ 0x20ce83,
+ 0x2130c3,
+ 0x23f7c3,
+ 0x22a803,
+ 0x11f293,
+ 0x125d94,
+ 0x129245,
+ 0xe747,
+ 0x109706,
+ 0x113ccb,
+ 0x25786,
+ 0x56387,
+ 0x5a1c6,
0x649,
- 0x10408a,
- 0x8af4d,
- 0x1a0d8c,
- 0x116f0a,
- 0xf9708,
- 0x45585,
- 0xbb88,
- 0x5bac6,
- 0x1be646,
- 0xec046,
+ 0xd39ca,
+ 0x8ab4d,
+ 0x14f50c,
+ 0x10c48a,
+ 0xf3dc8,
+ 0x1339c5,
+ 0xacc8,
+ 0x1c6b46,
+ 0x1c0ec6,
+ 0xfd986,
0x602,
- 0x2758c2,
- 0x7844,
- 0x9b106,
- 0x178050,
- 0x83a0e,
- 0x49c6,
- 0x177e0c,
- 0x336488cb,
- 0x12dac5,
- 0x1407cb,
- 0x33bbe584,
- 0x190347,
- 0x23ed1,
- 0x10388a,
- 0x22d7c3,
- 0x67945,
- 0x160308,
- 0x16f44,
- 0x5a545,
- 0x33d10886,
- 0x9a3c6,
- 0xbc406,
- 0x91d4a,
- 0x198ac3,
- 0x34242584,
- 0x54389,
- 0x1784a,
- 0x14cea89,
+ 0x269102,
+ 0x4284,
+ 0x90f46,
+ 0x187010,
+ 0x82e4e,
+ 0x2906,
+ 0x186dcc,
+ 0x33e5570b,
+ 0x129245,
+ 0x14420b,
+ 0x343c0e04,
+ 0x19c847,
+ 0x21fd1,
+ 0xfe30a,
+ 0x22f743,
+ 0x661c5,
+ 0x12a3c8,
+ 0x12984,
+ 0x586c5,
+ 0x3448e546,
+ 0xa6406,
+ 0xc1886,
+ 0x9224a,
+ 0x1a8383,
+ 0x34a436c4,
+ 0x52449,
+ 0x14dfc7,
+ 0x161ca,
+ 0x14cd7c9,
0x605,
- 0x110c83,
- 0x3479e587,
- 0xfc85,
- 0x1563046,
- 0x15584c,
- 0xfac48,
- 0xf084b,
- 0xdf44b,
- 0x34a4b78c,
- 0x140c0c3,
- 0xbbf88,
- 0xf0ac5,
- 0xa0c09,
- 0xf3f88,
- 0x141d306,
- 0x89947,
- 0x34f7c5c9,
- 0x12b3c7,
- 0x15e1ca,
- 0x115a4d,
- 0x140fc8,
- 0x20c3,
- 0x108943,
- 0x1d9c48,
- 0x103a04,
- 0x129285,
- 0xe8507,
- 0x35245dc3,
- 0x3575fec6,
- 0x35af8644,
- 0x35f00207,
- 0x1d9c44,
- 0x1d9c44,
- 0x1d9c44,
- 0x1d9c44,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x205e03,
- 0x206b43,
- 0x23cf83,
+ 0xfd743,
+ 0x34f39847,
+ 0x7085,
+ 0x1563286,
+ 0xad04c,
+ 0xf4f88,
+ 0xeaccb,
+ 0x10f9cb,
+ 0x35249bcc,
+ 0x1405a83,
+ 0xbc288,
+ 0xeaf45,
+ 0xa1e09,
+ 0x113388,
+ 0x141d346,
+ 0x891c7,
+ 0x35780589,
+ 0xc6787,
+ 0x17894a,
+ 0x10af4d,
+ 0x7608,
+ 0x31643,
+ 0x1756c3,
+ 0x100a88,
+ 0xfe484,
+ 0x120b85,
+ 0xe3387,
+ 0x35a3c8c3,
+ 0x35f54206,
+ 0x362f2d04,
+ 0x366fca47,
+ 0x100a84,
+ 0x100a84,
+ 0x100a84,
+ 0x100a84,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x211d83,
+ 0x20ce83,
+ 0x23f7c3,
0x2000c2,
- 0x202782,
- 0x220583,
- 0x2067c2,
- 0x206b43,
- 0x23cf83,
- 0x202003,
- 0x38054f,
- 0x38090e,
- 0xa14c8,
- 0x22d7c3,
- 0x43447,
- 0x233743,
- 0x220583,
- 0x219e43,
- 0x206b43,
- 0x23cf83,
- 0x4904,
- 0x33c4,
- 0xa04,
- 0x21cd03,
- 0x30a807,
- 0x201842,
- 0x2c9689,
- 0x200b02,
- 0x24efcb,
- 0x2a52ca,
- 0x2e2689,
+ 0x203102,
+ 0x224943,
+ 0x203842,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x202443,
+ 0x382e0f,
+ 0x3831ce,
+ 0xa7c88,
+ 0x22f743,
+ 0x447c7,
+ 0x234e83,
+ 0x224943,
+ 0x214503,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x2844,
+ 0x1304,
+ 0x131544,
+ 0x21c743,
+ 0x332907,
+ 0x202e82,
+ 0x2c9089,
+ 0x200ac2,
+ 0x24ce8b,
+ 0x29d7ca,
+ 0x268f09,
0x200542,
- 0x2750c6,
- 0x3ac995,
- 0x24f115,
- 0x230313,
- 0x24f693,
- 0x220f02,
- 0x220f05,
- 0x360e4c,
- 0x27680b,
- 0x296e05,
- 0x2020c2,
- 0x2ffe82,
- 0x38f886,
- 0x202442,
- 0x260646,
- 0x20e50d,
- 0x20fa0c,
- 0x224bc4,
+ 0x3be4c6,
+ 0x33ad55,
+ 0x24cfd5,
+ 0x3ad113,
+ 0x24d553,
+ 0x2197c2,
+ 0x21dbc5,
+ 0x32f1cc,
+ 0x2779cb,
+ 0x298645,
+ 0x202602,
+ 0x2fae02,
+ 0x393ac6,
+ 0x203002,
+ 0x37de46,
+ 0x20c60d,
+ 0x206e0c,
+ 0x224084,
0x200882,
- 0x20c882,
- 0x39e408,
+ 0x206c82,
+ 0x3396c8,
0x200202,
- 0x30f9c6,
- 0x30f9cf,
- 0x393e90,
- 0x3a39c4,
- 0x3acb55,
- 0x230493,
- 0x204dc3,
- 0x34320a,
- 0x20ee07,
- 0x35f709,
- 0x217707,
- 0x225a42,
+ 0x305bc6,
+ 0x305bcf,
+ 0x397e50,
+ 0x3a3c04,
+ 0x33af15,
+ 0x3ad293,
+ 0x209843,
+ 0x34850a,
+ 0x206207,
+ 0x36a889,
+ 0x216087,
+ 0x21c342,
0x200282,
- 0x3b2246,
- 0x207942,
- 0xa14c8,
- 0x201a42,
- 0x2010c2,
- 0x209247,
- 0x341247,
- 0x341251,
- 0x218105,
- 0x21810e,
- 0x21860f,
- 0x21c742,
- 0x394547,
- 0x21cd48,
- 0x207c02,
- 0x325802,
- 0x2a9746,
- 0x3418cf,
- 0x2a9750,
- 0x22b882,
- 0x205cc2,
- 0x32f488,
- 0x212283,
- 0x288f88,
- 0x30bd8d,
- 0x23af03,
- 0x3723c8,
- 0x23af0f,
- 0x23b2ce,
- 0x398d0a,
- 0x226e51,
- 0x2272d0,
- 0x2bd68d,
- 0x2bd9cc,
- 0x3c2447,
- 0x343387,
- 0x340d89,
- 0x224cc2,
- 0x201942,
- 0x259e0c,
- 0x25a10b,
- 0x2014c2,
- 0x2c3206,
- 0x22ec82,
+ 0x3b6906,
+ 0x204382,
+ 0xa7c88,
+ 0x208d42,
+ 0x209002,
+ 0x209007,
+ 0x268d07,
+ 0x268d11,
+ 0x217fc5,
+ 0x217fce,
+ 0x21a94f,
+ 0x21c782,
+ 0x398507,
+ 0x21cd88,
+ 0x205142,
+ 0x2bfa42,
+ 0x20f7c6,
+ 0x20f7cf,
+ 0x281750,
+ 0x22c542,
+ 0x207982,
+ 0x32b408,
+ 0x207983,
+ 0x25ed88,
+ 0x2e1d0d,
+ 0x280c03,
+ 0x34b748,
+ 0x280c0f,
+ 0x280fce,
+ 0x37baca,
+ 0x223111,
+ 0x223590,
+ 0x2c7bcd,
+ 0x2c7f0c,
+ 0x3a8407,
+ 0x348687,
+ 0x3488c9,
+ 0x21c302,
+ 0x201ec2,
+ 0x257f8c,
+ 0x25828b,
+ 0x200d42,
+ 0x2c2946,
+ 0x227f02,
0x200482,
- 0x2d5e42,
- 0x202782,
- 0x22dbc4,
- 0x23a187,
- 0x22bdc2,
- 0x23e4c7,
- 0x240787,
- 0x220282,
- 0x22eec2,
- 0x243305,
- 0x237982,
- 0x2e920e,
- 0x38288d,
- 0x233743,
- 0x397d0e,
- 0x2b628d,
- 0x341643,
- 0x201602,
- 0x286d04,
- 0x265582,
- 0x2029c2,
- 0x39b945,
- 0x39d087,
- 0x24a442,
- 0x219d02,
- 0x250d87,
- 0x254708,
- 0x2b06c2,
- 0x2788c6,
- 0x259c8c,
- 0x259fcb,
- 0x20e282,
- 0x260e8f,
- 0x261250,
- 0x26164f,
- 0x261a15,
- 0x261f54,
- 0x26244e,
- 0x2627ce,
- 0x262b4f,
- 0x262f0e,
- 0x263294,
- 0x263793,
- 0x263c4d,
- 0x277d09,
- 0x28cc43,
- 0x204182,
- 0x28dc85,
- 0x3c70c6,
+ 0x2291c2,
+ 0x203102,
+ 0x22fb44,
+ 0x23a0c7,
+ 0x22ca82,
+ 0x23ffc7,
+ 0x241a47,
+ 0x227d02,
+ 0x231082,
+ 0x244685,
+ 0x224502,
+ 0x2e738e,
+ 0x38564d,
+ 0x234e83,
+ 0x28814e,
+ 0x3d1a0d,
+ 0x348cc3,
+ 0x202102,
+ 0x286204,
+ 0x24ab42,
+ 0x2072c2,
+ 0x39ee05,
+ 0x3a0887,
+ 0x2491c2,
+ 0x2143c2,
+ 0x24ec47,
+ 0x2527c8,
+ 0x2b1d82,
+ 0x27cf06,
+ 0x257e0c,
+ 0x25814b,
+ 0x208142,
+ 0x25f7cf,
+ 0x25fb90,
+ 0x25ff8f,
+ 0x260355,
+ 0x260894,
+ 0x260d8e,
+ 0x26110e,
+ 0x26148f,
+ 0x26184e,
+ 0x261bd4,
+ 0x2620d3,
+ 0x26258d,
+ 0x279509,
+ 0x28ce83,
+ 0x2020c2,
+ 0x35ac05,
+ 0x3ce486,
0x200382,
- 0x367207,
- 0x220583,
+ 0x2b5787,
+ 0x224943,
0x200642,
- 0x232548,
- 0x227091,
- 0x2274d0,
- 0x200bc2,
- 0x28ba87,
- 0x201b82,
- 0x309a07,
- 0x253a42,
- 0x37ed89,
- 0x38f847,
- 0x318008,
- 0x3106c6,
- 0x2eef83,
- 0x3cbdc5,
- 0x2339c2,
+ 0x233b88,
+ 0x223351,
+ 0x223790,
+ 0x203702,
+ 0x28b387,
+ 0x201742,
+ 0x2a1687,
+ 0x251b42,
+ 0x3bde09,
+ 0x393a87,
+ 0x293348,
+ 0x28e386,
+ 0x2e9243,
+ 0x349345,
+ 0x212702,
0x2004c2,
- 0x3d5e45,
- 0x377b85,
- 0x200f82,
- 0x21c583,
- 0x340b47,
- 0x218447,
- 0x204042,
- 0x204044,
- 0x218983,
- 0x348009,
- 0x218988,
- 0x200b42,
- 0x208002,
- 0x22cec7,
- 0x235d05,
- 0x363388,
- 0x246a07,
- 0x209b83,
- 0x29af86,
- 0x2bd50d,
- 0x2bd88c,
- 0x2da786,
- 0x202282,
- 0x2df302,
- 0x2024c2,
- 0x23ad8f,
- 0x23b18e,
- 0x303047,
- 0x205e02,
- 0x3200c5,
- 0x3200c6,
- 0x202dc2,
- 0x200c02,
- 0x29f506,
- 0x210203,
- 0x309946,
- 0x2ccec5,
- 0x2ccecd,
- 0x2cd515,
- 0x2cdf4c,
- 0x2ce2cd,
- 0x2ce612,
- 0x200e82,
- 0x26cec2,
- 0x201342,
- 0x329906,
- 0x3c8346,
- 0x2013c2,
- 0x3c7146,
- 0x21a682,
- 0x2c71c5,
- 0x200d42,
- 0x2e9349,
- 0x222ecc,
- 0x22320b,
- 0x2003c2,
- 0x2550c8,
- 0x2039c2,
- 0x201002,
- 0x271746,
- 0x2e6e45,
- 0x309807,
- 0x226ac5,
- 0x25bc05,
- 0x2434c2,
- 0x20bc42,
+ 0x3d7045,
+ 0x386b45,
+ 0x201b02,
+ 0x22cb43,
+ 0x344587,
+ 0x20ea47,
+ 0x201f82,
+ 0x201f84,
+ 0x20fb43,
+ 0x2e64c9,
+ 0x20fb48,
+ 0x20e942,
+ 0x205542,
+ 0x2dcec7,
+ 0x2fa285,
+ 0x3635c8,
+ 0x227807,
+ 0x222303,
+ 0x290dc6,
+ 0x2c7a4d,
+ 0x2c7dcc,
+ 0x2d8a06,
+ 0x204482,
+ 0x2030c2,
+ 0x205982,
+ 0x280a8f,
+ 0x280e8e,
+ 0x3cd1c7,
+ 0x204802,
+ 0x31c445,
+ 0x31c446,
+ 0x21f382,
+ 0x200bc2,
+ 0x28fc06,
+ 0x20a643,
+ 0x20a646,
+ 0x2cb845,
+ 0x2cb84d,
+ 0x2cc255,
+ 0x2ccc8c,
+ 0x2cd00d,
+ 0x2cd352,
+ 0x204fc2,
+ 0x26ff42,
0x202142,
- 0x2ead87,
- 0x2f484d,
- 0x2f4bcc,
- 0x3abf47,
- 0x278842,
- 0x203d42,
- 0x20cb48,
- 0x203d48,
- 0x2e7c08,
- 0x2f30c4,
- 0x2c3c87,
- 0x27df03,
- 0x223802,
- 0x204f02,
- 0x2f5849,
- 0x22a347,
- 0x213c42,
- 0x271b45,
- 0x241f42,
- 0x21f4c2,
- 0x3bfe83,
- 0x3bfe86,
- 0x2fe542,
- 0x2ffa82,
+ 0x2fbc86,
+ 0x3c1e06,
+ 0x202f42,
+ 0x3ce506,
+ 0x218782,
+ 0x333105,
+ 0x2090c2,
+ 0x2e74c9,
+ 0x21980c,
+ 0x219b4b,
+ 0x2003c2,
+ 0x253188,
+ 0x201902,
+ 0x200a82,
+ 0x274246,
+ 0x26f545,
+ 0x200a87,
+ 0x222d85,
+ 0x277485,
+ 0x23cb02,
+ 0x20ad82,
+ 0x204ac2,
+ 0x2e5647,
+ 0x2edccd,
+ 0x2ee04c,
+ 0x3ac4c7,
+ 0x27ce82,
+ 0x201c82,
+ 0x20da88,
+ 0x201c88,
+ 0x2e2ac8,
+ 0x2f5c44,
+ 0x2c35c7,
+ 0x25d743,
+ 0x21a142,
+ 0x203b02,
+ 0x2ef7c9,
+ 0x225b87,
+ 0x214e02,
+ 0x274645,
+ 0x203542,
+ 0x228742,
+ 0x30b703,
+ 0x30b706,
+ 0x2f8c82,
+ 0x2faa02,
0x200402,
- 0x27ea46,
- 0x2ddb07,
- 0x213a42,
+ 0x278f46,
+ 0x2e2087,
+ 0x214c02,
0x200902,
- 0x288dcf,
- 0x397b4d,
- 0x3d364e,
- 0x2b610c,
- 0x202342,
- 0x204482,
- 0x310505,
- 0x3220c6,
- 0x202482,
- 0x206382,
+ 0x25ebcf,
+ 0x287f8d,
+ 0x39bb4e,
+ 0x3d188c,
+ 0x204542,
+ 0x2023c2,
+ 0x28e1c5,
+ 0x319386,
+ 0x200b82,
+ 0x2046c2,
0x200682,
- 0x246984,
- 0x2fee04,
- 0x355686,
- 0x209482,
- 0x27b0c7,
- 0x233ec3,
- 0x233ec8,
- 0x23ba08,
- 0x36ee87,
- 0x253cc6,
- 0x2037c2,
- 0x2398c3,
- 0x2b7387,
- 0x287c86,
- 0x2e3705,
- 0x2f3448,
- 0x203002,
- 0x274e87,
- 0x236082,
- 0x308102,
- 0x21bac2,
- 0x218789,
- 0x241542,
- 0xc2148,
- 0x201182,
- 0x24fac3,
- 0x331fc7,
- 0x201202,
- 0x22304c,
- 0x22334b,
- 0x2da806,
- 0x310bc5,
- 0x243982,
- 0x202b42,
- 0x2be3c6,
- 0x267343,
- 0x32ecc7,
- 0x288782,
+ 0x227784,
+ 0x2e1b84,
+ 0x3580c6,
+ 0x205fc2,
+ 0x27c847,
+ 0x23df83,
+ 0x23df88,
+ 0x23e6c8,
+ 0x3729c7,
+ 0x24fb06,
+ 0x201702,
+ 0x238f43,
+ 0x2ab4c7,
+ 0x30d6c6,
+ 0x2e4f85,
+ 0x2f5fc8,
+ 0x2026c2,
+ 0x3be287,
+ 0x234542,
+ 0x354282,
+ 0x205c42,
+ 0x21aac9,
+ 0x201082,
+ 0xbe948,
+ 0x202a02,
+ 0x24d983,
+ 0x203c47,
+ 0x205202,
+ 0x21998c,
+ 0x219c8b,
+ 0x2d8a86,
+ 0x2fd685,
+ 0x244d02,
+ 0x201942,
+ 0x2bdbc6,
+ 0x229043,
+ 0x3423c7,
+ 0x282482,
0x2008c2,
- 0x3ac815,
- 0x24f2d5,
- 0x2301d3,
- 0x24f813,
- 0x38a2c7,
- 0x25fad1,
- 0x266d10,
- 0x276c52,
- 0x27b891,
- 0x29a7c8,
- 0x29a7d0,
- 0x2a168f,
- 0x2a5093,
- 0x384f52,
- 0x3bc3d0,
- 0x2b240f,
- 0x2c0dd2,
- 0x3a2291,
- 0x2cca13,
- 0x2d7212,
- 0x2db24f,
- 0x2dc04e,
- 0x2e0392,
- 0x2e2491,
- 0x2ec80f,
- 0x2fe1ce,
- 0x2f0fd1,
- 0x2fae10,
- 0x2fbc92,
- 0x2fe8d1,
- 0x33c390,
- 0x354d0f,
- 0x3bd1d1,
- 0x3c9890,
- 0x31b8c6,
- 0x33bf87,
- 0x215907,
- 0x203b02,
- 0x2847c5,
- 0x30e307,
- 0x2195c2,
- 0x206042,
- 0x227d45,
- 0x202243,
- 0x308e06,
- 0x2f4a0d,
- 0x2f4d4c,
- 0x206842,
- 0x360ccb,
- 0x2766ca,
- 0x220dca,
- 0x2bce09,
- 0x2f284b,
- 0x246b4d,
- 0x30ea0c,
- 0x27250a,
- 0x2707cc,
- 0x27778b,
- 0x296c4c,
- 0x2b464e,
- 0x3560cb,
- 0x2b588c,
- 0x2e4083,
- 0x38bd86,
- 0x3bf082,
- 0x2fc182,
- 0x20f203,
- 0x214f82,
- 0x21e4c3,
- 0x32ae06,
- 0x261bc7,
- 0x2d3b06,
- 0x2e20c8,
- 0x3409c8,
- 0x31e8c6,
- 0x20a342,
- 0x3136cd,
- 0x313a0c,
- 0x2df607,
- 0x316d47,
- 0x2351c2,
- 0x213e42,
- 0x276c02,
- 0x279b42,
- 0x3388d6,
- 0x33d315,
- 0x340296,
- 0x343993,
- 0x344052,
- 0x353a93,
- 0x354012,
- 0x3adb0f,
- 0x3bdfd8,
- 0x3beb57,
- 0x3c0019,
- 0x3c1498,
- 0x3c2e18,
- 0x3c4197,
- 0x3c5a17,
- 0x3c6816,
- 0x3ce1d3,
- 0x3ce8d5,
- 0x3cf792,
- 0x3cfc13,
- 0x202782,
- 0x206b43,
- 0x23cf83,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x205e03,
- 0x205184,
- 0x206b43,
- 0x23cf83,
- 0x202003,
+ 0x33abd5,
+ 0x24d195,
+ 0x3acfd3,
+ 0x24d6d3,
+ 0x248f47,
+ 0x259d91,
+ 0x25e050,
+ 0x2652d2,
+ 0x275191,
+ 0x277e08,
+ 0x277e10,
+ 0x29784f,
+ 0x29d593,
+ 0x2a6812,
+ 0x2a7e50,
+ 0x30014f,
+ 0x373352,
+ 0x3bc7d1,
+ 0x2b3813,
+ 0x2c0892,
+ 0x3a22cf,
+ 0x2cb4ce,
+ 0x2d47d2,
+ 0x2d51d1,
+ 0x2d94cf,
+ 0x2da2ce,
+ 0x2de751,
+ 0x2dfa90,
+ 0x2f8812,
+ 0x2eb451,
+ 0x2f5150,
+ 0x2f900f,
+ 0x2fc451,
+ 0x3018d0,
+ 0x35efc6,
+ 0x3cbf07,
+ 0x2137c7,
+ 0x201a42,
+ 0x283c05,
+ 0x304787,
+ 0x210782,
+ 0x20e802,
+ 0x22ab45,
+ 0x21e5c3,
+ 0x375b86,
+ 0x2ede8d,
+ 0x2ee1cc,
+ 0x2038c2,
+ 0x32f04b,
+ 0x27788a,
+ 0x21da8a,
+ 0x2bd149,
+ 0x2ecb4b,
+ 0x22794d,
+ 0x304e8c,
+ 0x27680a,
+ 0x272f8c,
+ 0x2788cb,
+ 0x29848c,
+ 0x2ef24e,
+ 0x2b458b,
+ 0x36e20c,
+ 0x2e1643,
+ 0x34c706,
+ 0x3c0dc2,
+ 0x2f6602,
+ 0x206603,
+ 0x205d42,
+ 0x21ed83,
+ 0x323386,
+ 0x260507,
+ 0x2d2b06,
+ 0x2e3c88,
+ 0x344408,
+ 0x315a46,
+ 0x200f02,
+ 0x3079cd,
+ 0x307d0c,
+ 0x30fb87,
+ 0x30c2c7,
+ 0x236942,
+ 0x215002,
+ 0x277dc2,
+ 0x27b2c2,
+ 0x336d56,
+ 0x33ead5,
+ 0x341c16,
+ 0x344f93,
+ 0x345652,
+ 0x356693,
+ 0x356dd2,
+ 0x3af0cf,
+ 0x3bf998,
+ 0x3c0897,
+ 0x3c13d9,
+ 0x3c2258,
+ 0x3c3698,
+ 0x3c47d7,
+ 0x3c5b17,
+ 0x3c70d6,
+ 0x3cad53,
+ 0x3cb695,
+ 0x3cc2d2,
+ 0x3cc753,
+ 0x203102,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x211d83,
+ 0x209c04,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x202443,
0x2000c2,
- 0x206702,
- 0x37e938c5,
- 0x3828a305,
- 0x3867e706,
- 0xa14c8,
- 0x38ab2985,
- 0x202782,
- 0x203dc2,
- 0x38f2f1c5,
- 0x39282b45,
- 0x39683f47,
- 0x39a84c49,
- 0x39e37284,
+ 0x203782,
+ 0x386948c5,
+ 0x38a89f05,
+ 0x38e78c06,
+ 0xa7c88,
+ 0x392b3e85,
+ 0x203102,
+ 0x201d02,
+ 0x3972c885,
+ 0x39a82105,
+ 0x39e83387,
+ 0x3a284089,
+ 0x3a638644,
0x200382,
0x200642,
- 0x3a24d8c5,
- 0x3a698349,
- 0x3ab37f88,
- 0x3aeaef45,
- 0x3b317887,
- 0x3b613148,
- 0x3baed185,
- 0x3be45a86,
- 0x3c2496c9,
- 0x3c6d3388,
- 0x3cac3848,
- 0x3ce9898a,
- 0x3d2e1804,
- 0x3d60d685,
- 0x3dabf848,
- 0x3de03945,
- 0x212302,
- 0x3e237f83,
- 0x3e6a5746,
- 0x3eae6548,
- 0x3efb8806,
- 0x3f209388,
- 0x3f727d86,
- 0x3fa3dbc4,
- 0x3fe02642,
- 0x40301b47,
- 0x406ab6c4,
- 0x40a7a1c7,
- 0x40f2f7c7,
+ 0x3aa5f145,
+ 0x3ae99b89,
+ 0x3b336408,
+ 0x3b6b0985,
+ 0x3bb0ce07,
+ 0x3be20688,
+ 0x3c2e7805,
+ 0x3c63c586,
+ 0x3ca47a89,
+ 0x3cedb288,
+ 0x3d2c3188,
+ 0x3d69a1ca,
+ 0x3dba9704,
+ 0x3de08705,
+ 0x3e2bf288,
+ 0x3e601885,
+ 0x2131c2,
+ 0x3ea32003,
+ 0x3eea5146,
+ 0x3f26d148,
+ 0x3f602e46,
+ 0x3fa09148,
+ 0x3ff26406,
+ 0x40241f04,
+ 0x40608ac2,
+ 0x40fdb307,
+ 0x412acd84,
+ 0x4167b947,
+ 0x41b2b747,
0x2003c2,
- 0x4129dbc5,
- 0x41644704,
- 0x41ad29c7,
- 0x41e31c87,
- 0x42286b46,
- 0x42683785,
- 0x42a98447,
- 0x42ed3208,
- 0x4328e007,
- 0x437cf549,
- 0x43ad6385,
- 0x43f125c7,
- 0x44292f06,
- 0x9a54b,
- 0x44606548,
- 0x22824d,
- 0x27e1c9,
- 0x2a874b,
- 0x2aaa8b,
- 0x3199cb,
- 0x31758b,
- 0x3222cb,
- 0x32258b,
- 0x322ac9,
- 0x323d4b,
- 0x32400b,
- 0x3245cb,
- 0x3256ca,
- 0x325c0a,
- 0x32620c,
- 0x32a58b,
- 0x32b18a,
- 0x34240a,
- 0x34ad8e,
- 0x34bece,
- 0x34c24a,
- 0x34dd4a,
- 0x34eb0b,
- 0x34edcb,
- 0x34fa4b,
- 0x36bc8b,
- 0x36c28a,
- 0x36cf4b,
- 0x36d20a,
- 0x36d48a,
- 0x36d70a,
- 0x38d78b,
- 0x392f8b,
- 0x39588e,
- 0x395c0b,
- 0x39d24b,
- 0x3a198b,
- 0x3a51ca,
- 0x3a5449,
- 0x3a568a,
- 0x3a764a,
- 0x3bd9cb,
- 0x3c9f4b,
- 0x3ca7ca,
- 0x3cdc0b,
- 0x3d39cb,
- 0x3db18b,
- 0x44a854c8,
- 0x44e8a6c9,
- 0x452a0a89,
- 0x456e7748,
- 0x355405,
- 0x2017c3,
- 0x27fac4,
- 0x2be185,
- 0x236fc6,
- 0x245805,
- 0x289d84,
- 0x367108,
- 0x31c2c5,
- 0x294c44,
- 0x3c2887,
- 0x2a000a,
- 0x381e0a,
- 0x303147,
- 0x21a647,
- 0x2e0947,
- 0x27cfc7,
- 0x35b445,
- 0x211d46,
- 0x39f487,
- 0x360704,
- 0x2b5186,
- 0x2f1b86,
- 0x3bf885,
- 0x34a344,
- 0x2999c6,
- 0x29ecc7,
- 0x238186,
- 0x301747,
- 0x228883,
- 0x3d3c86,
- 0x2ff6c5,
- 0x284047,
- 0x269e8a,
- 0x232644,
- 0x212508,
- 0x312a09,
- 0x2cd2c7,
- 0x393846,
- 0x255348,
- 0x3b8f49,
- 0x32af04,
- 0x3a8c84,
- 0x2d8045,
- 0x2823c8,
- 0x2ca0c7,
- 0x2c4949,
- 0x229a08,
- 0x318dc6,
- 0x2e6006,
- 0x29ae08,
- 0x370586,
- 0x28a305,
- 0x286c06,
- 0x27aa48,
- 0x3a8d06,
- 0x23eacb,
- 0x2b1046,
- 0x29c80d,
- 0x3bf405,
- 0x2ab586,
- 0x213205,
- 0x349189,
- 0x247e07,
- 0x3badc8,
- 0x3666c6,
- 0x29b949,
- 0x3cb146,
- 0x269e05,
- 0x2a2dc6,
- 0x2704c6,
- 0x2cf6c9,
- 0x2bb246,
- 0x29fd07,
- 0x2a3445,
- 0x21b203,
- 0x223885,
- 0x29cac7,
- 0x3614c6,
- 0x3bf309,
- 0x27e706,
- 0x286e46,
- 0x211a09,
- 0x286609,
- 0x2a39c7,
- 0x384748,
- 0x29a209,
- 0x284448,
- 0x36bb06,
- 0x2dcc45,
- 0x31ef0a,
- 0x286ec6,
- 0x204c46,
- 0x2d3e45,
- 0x256488,
- 0x357487,
- 0x22f8ca,
- 0x251a06,
- 0x2f36c5,
- 0x2ffd46,
- 0x2d5607,
- 0x393707,
- 0x21b385,
- 0x269fc5,
- 0x2a95c6,
- 0x2b6806,
- 0x2d4686,
- 0x2bfd04,
- 0x285b89,
- 0x28b846,
- 0x2d03ca,
- 0x225c88,
- 0x3122c8,
- 0x381e0a,
- 0x223a45,
- 0x29ec05,
- 0x2311c8,
- 0x2baf48,
- 0x239f47,
- 0x2b7dc6,
- 0x33af48,
- 0x218d07,
- 0x2838c8,
- 0x2b9bc6,
- 0x287608,
- 0x297986,
- 0x27a647,
- 0x36fe46,
- 0x2999c6,
- 0x281f8a,
- 0x2da906,
- 0x2dcc49,
- 0x368146,
- 0x371d8a,
- 0x23dbc9,
- 0x2f5206,
- 0x2bba04,
- 0x28dd4d,
- 0x28a947,
- 0x28e8c6,
- 0x2c3705,
- 0x3cb1c5,
- 0x38ef06,
- 0x2d2809,
- 0x2eda47,
- 0x27bfc6,
- 0x2cbcc6,
- 0x289e09,
- 0x28a244,
- 0x241304,
- 0x201688,
- 0x35fb86,
- 0x2a2ec8,
- 0x2fd948,
- 0x3b9d47,
- 0x3b8209,
- 0x3b44c7,
- 0x2b284a,
- 0x2f630f,
- 0x2ec3ca,
- 0x310305,
- 0x27ac85,
- 0x2108c5,
- 0x3b7807,
- 0x23f643,
- 0x384948,
- 0x27d606,
- 0x27d709,
- 0x2eb646,
- 0x2cf507,
- 0x29b709,
- 0x3bacc8,
- 0x2d3f07,
- 0x31fe43,
- 0x355485,
- 0x2d5145,
- 0x2bfb4b,
- 0x203a04,
- 0x306384,
- 0x278ec6,
- 0x3204c7,
- 0x39aeca,
- 0x238007,
- 0x209887,
- 0x282b45,
- 0x3c0645,
- 0x292189,
- 0x2999c6,
- 0x237e8d,
- 0x3632c5,
- 0x2b5dc3,
- 0x226783,
- 0x21e685,
- 0x35b0c5,
- 0x255348,
- 0x27cc87,
- 0x241086,
- 0x2a0706,
- 0x2288c5,
- 0x233a07,
- 0x3b9847,
- 0x238ec7,
- 0x20d70a,
- 0x3d3d48,
- 0x2bfd04,
- 0x280887,
- 0x2805c7,
- 0x34f046,
- 0x297007,
- 0x2c8608,
- 0x304248,
- 0x247d06,
- 0x21a888,
- 0x2bb2c4,
- 0x39f486,
- 0x2656c6,
- 0x390946,
- 0x201b06,
- 0x21bb44,
- 0x27d086,
- 0x2c2346,
- 0x299d86,
- 0x20fd86,
- 0x3c7586,
- 0x244446,
- 0x240f88,
- 0x2b5008,
- 0x2d9608,
- 0x245a08,
- 0x231146,
- 0x20c245,
- 0x223846,
- 0x2aefc5,
- 0x391647,
- 0x229ac5,
- 0x20c503,
- 0x3c4785,
- 0x22ccc4,
- 0x3c76c5,
- 0x2039c3,
- 0x3a3547,
- 0x3426c8,
- 0x301806,
- 0x36694d,
- 0x27ac46,
- 0x299345,
- 0x218783,
- 0x2bf209,
- 0x28a3c6,
- 0x295746,
- 0x288904,
- 0x2ec347,
- 0x39fec6,
- 0x2edd05,
- 0x20fd43,
- 0x3d1ac4,
- 0x280786,
- 0x211e44,
- 0x2657c8,
- 0x3bb109,
- 0x306d89,
- 0x2a2cca,
- 0x29270d,
- 0x2329c7,
- 0x3c4bc6,
- 0x20bc84,
- 0x284c49,
- 0x289388,
- 0x28a546,
- 0x235606,
- 0x297007,
- 0x2bc186,
- 0x2266c6,
- 0x336886,
- 0x32f84a,
- 0x213148,
- 0x2a9e45,
- 0x372a49,
- 0x2ca84a,
- 0x3029c8,
- 0x29e408,
- 0x2956c8,
- 0x2a034c,
- 0x34ff85,
- 0x2a0988,
- 0x2b7b46,
- 0x344ec6,
- 0x3a1c07,
- 0x237f05,
- 0x286d85,
- 0x306c49,
- 0x3dc3c7,
- 0x27d6c5,
- 0x228707,
- 0x226783,
- 0x2cad05,
- 0x21ea48,
- 0x285907,
- 0x29e2c9,
- 0x2dcb05,
- 0x3b0b44,
- 0x2a4248,
- 0x301c87,
- 0x2d40c8,
- 0x3b5c08,
- 0x2ac3c5,
- 0x3b7bc6,
- 0x248186,
- 0x2d8409,
- 0x2b1847,
- 0x2af786,
- 0x21e147,
- 0x202183,
- 0x237284,
- 0x2d0a85,
- 0x280b04,
- 0x24ba44,
- 0x25e7c7,
- 0x268747,
- 0x27c184,
- 0x29e110,
- 0x372c47,
- 0x3c0645,
- 0x3308cc,
- 0x20f384,
- 0x35d248,
- 0x27a549,
- 0x383dc6,
- 0x2f40c8,
- 0x246544,
- 0x2791c8,
- 0x302346,
- 0x281e08,
- 0x29cd86,
- 0x39800b,
- 0x32cd85,
- 0x2d0908,
- 0x211444,
- 0x3bb54a,
- 0x29e2c9,
- 0x36fd46,
- 0x319348,
- 0x2a6105,
- 0x2be9c4,
- 0x35d146,
- 0x238d88,
- 0x2854c8,
- 0x33b7c6,
- 0x21fe04,
- 0x31ee86,
- 0x3b4547,
- 0x27a0c7,
- 0x29700f,
+ 0x41e9e485,
+ 0x42245a84,
+ 0x426d7fc7,
+ 0x42a31607,
+ 0x42e86046,
+ 0x43282bc5,
+ 0x43699c87,
+ 0x43adb108,
+ 0x43f2bac7,
+ 0x442b3489,
+ 0x446d4505,
+ 0x44b08a87,
+ 0x44e93f06,
+ 0x81b8b,
+ 0x45209d88,
+ 0x22034d,
+ 0x28bf09,
+ 0x2a8e4b,
+ 0x2ac48b,
+ 0x30f00b,
+ 0x30cb0b,
+ 0x31958b,
+ 0x31984b,
+ 0x319d89,
+ 0x31aecb,
+ 0x31b18b,
+ 0x31b70b,
+ 0x31ce0a,
+ 0x31d34a,
+ 0x31d94c,
+ 0x322b0b,
+ 0x3235ca,
+ 0x34340a,
+ 0x34cc8e,
+ 0x34d88e,
+ 0x34dc0a,
+ 0x34ffca,
+ 0x3509cb,
+ 0x350c8b,
+ 0x35190b,
+ 0x36ed0b,
+ 0x36f30a,
+ 0x36ffcb,
+ 0x37028a,
+ 0x37050a,
+ 0x37078a,
+ 0x3919cb,
+ 0x396f4b,
+ 0x39984e,
+ 0x399bcb,
+ 0x3a0a4b,
+ 0x3a19cb,
+ 0x3a540a,
+ 0x3a5689,
+ 0x3a58ca,
+ 0x3a75ca,
+ 0x3bf38b,
+ 0x3c93cb,
+ 0x3c9c8a,
+ 0x3ca78b,
+ 0x3d2f4b,
+ 0x3d9fcb,
+ 0x456849c8,
+ 0x45a8a2c9,
+ 0x45ea1c89,
+ 0x462e2608,
+ 0x357e45,
+ 0x209ec3,
+ 0x23d284,
+ 0x2c86c5,
+ 0x238386,
+ 0x23c305,
+ 0x289984,
+ 0x2b5688,
+ 0x312ec5,
+ 0x296184,
+ 0x3dc887,
+ 0x2a04ca,
+ 0x384bca,
+ 0x3cd2c7,
+ 0x218747,
+ 0x2decc7,
+ 0x27e007,
+ 0x35cf45,
+ 0x3cf6c6,
+ 0x33a747,
+ 0x32a7c4,
+ 0x2b6486,
+ 0x2ed886,
+ 0x3ce8c5,
+ 0x329d04,
+ 0x29b206,
+ 0x29f587,
+ 0x26c806,
+ 0x3daf07,
+ 0x27f503,
+ 0x3d3206,
+ 0x233105,
+ 0x283487,
+ 0x269c8a,
+ 0x233c84,
+ 0x218f88,
+ 0x346a89,
+ 0x2d2347,
+ 0x397806,
+ 0x36b848,
+ 0x203589,
+ 0x36aa44,
+ 0x35af84,
+ 0x2d5fc5,
+ 0x22af48,
+ 0x2c9ac7,
+ 0x2f7149,
+ 0x224d08,
+ 0x30e406,
+ 0x23d386,
+ 0x29bb48,
+ 0x373ac6,
+ 0x289f05,
+ 0x286106,
+ 0x27c1c8,
+ 0x280986,
+ 0x2405cb,
+ 0x366786,
+ 0x29d10d,
+ 0x3dc385,
+ 0x2acc46,
+ 0x202c45,
+ 0x367649,
+ 0x24c047,
+ 0x39cf08,
+ 0x292fc6,
+ 0x29c3c9,
+ 0x3bd346,
+ 0x269c05,
+ 0x2a2fc6,
+ 0x2bd946,
+ 0x2ce4c9,
+ 0x2bb546,
+ 0x2a01c7,
+ 0x2a3645,
+ 0x21a1c3,
+ 0x21a1c5,
+ 0x2ad647,
+ 0x32f846,
+ 0x3dc289,
+ 0x278c06,
+ 0x274886,
+ 0x3cf389,
+ 0x285b09,
+ 0x2a3bc7,
+ 0x3286c8,
+ 0x2a6249,
+ 0x283888,
+ 0x36eb86,
+ 0x2db485,
+ 0x31608a,
+ 0x274906,
+ 0x2096c6,
+ 0x2d2e45,
+ 0x253e48,
+ 0x2aa007,
+ 0x23190a,
+ 0x24f846,
+ 0x2f6245,
+ 0x2facc6,
+ 0x228987,
+ 0x3976c7,
+ 0x21b8c5,
+ 0x269dc5,
+ 0x2815c6,
+ 0x28e686,
+ 0x2a9cc6,
+ 0x2bf744,
+ 0x285089,
+ 0x28b146,
+ 0x2cf20a,
+ 0x21c588,
+ 0x308788,
+ 0x384bca,
+ 0x21b105,
+ 0x29f4c5,
+ 0x23b4c8,
+ 0x2bfc88,
+ 0x237187,
+ 0x2b7bc6,
+ 0x33cd48,
+ 0x20fec7,
+ 0x282d08,
+ 0x2b9e46,
+ 0x286e88,
+ 0x2991c6,
+ 0x27bdc7,
+ 0x2af486,
+ 0x29b206,
+ 0x26e40a,
+ 0x2d8b86,
+ 0x2db489,
+ 0x369786,
+ 0x2684ca,
+ 0x241f09,
+ 0x2ee686,
+ 0x2bbd04,
+ 0x35accd,
+ 0x28a547,
+ 0x32c386,
+ 0x2c3045,
+ 0x3bd3c5,
+ 0x393146,
+ 0x2d7e09,
+ 0x2ba7c7,
+ 0x27d386,
+ 0x2d0d06,
+ 0x289a09,
+ 0x289e44,
+ 0x242a84,
+ 0x327f08,
+ 0x265d46,
+ 0x2a30c8,
+ 0x2f7f88,
+ 0x32e307,
+ 0x3bb0c9,
+ 0x3b8c47,
+ 0x2b3d4a,
+ 0x2f028f,
+ 0x281e8a,
+ 0x28dfc5,
+ 0x27c405,
+ 0x2140c5,
+ 0x3ba6c7,
+ 0x228543,
+ 0x3288c8,
+ 0x25ce46,
+ 0x25cf49,
+ 0x2dbdc6,
+ 0x2ce307,
+ 0x29c189,
+ 0x39ce08,
+ 0x2d2f07,
+ 0x316fc3,
+ 0x357ec5,
+ 0x2284c5,
+ 0x2bf58b,
+ 0x201944,
+ 0x302084,
+ 0x27a646,
+ 0x317187,
+ 0x39e38a,
+ 0x232087,
+ 0x3a8647,
+ 0x282105,
+ 0x3c2845,
+ 0x2725c9,
+ 0x29b206,
+ 0x231f0d,
+ 0x363505,
+ 0x2b6e03,
+ 0x204943,
+ 0x21ef45,
+ 0x35cbc5,
+ 0x36b848,
+ 0x27dcc7,
+ 0x242806,
+ 0x2a1906,
+ 0x22b6c5,
+ 0x235147,
0x32de07,
- 0x2f52c7,
- 0x31ff85,
- 0x374345,
- 0x2a3689,
- 0x2e8ac6,
- 0x26b885,
- 0x286907,
- 0x3a1e88,
- 0x2fca45,
- 0x36fe46,
- 0x225ac8,
- 0x3b880a,
- 0x238a88,
- 0x28fa87,
- 0x2f6746,
- 0x372a06,
- 0x2003c3,
- 0x20ecc3,
- 0x2caa09,
- 0x29a089,
- 0x35d046,
- 0x2dcb05,
- 0x21ab08,
- 0x319348,
- 0x370708,
- 0x33690b,
- 0x366b87,
- 0x2fb749,
- 0x297288,
- 0x35e8c4,
- 0x390588,
- 0x291209,
- 0x2afa85,
- 0x3b7707,
- 0x237305,
- 0x2853c8,
- 0x29374b,
- 0x298190,
- 0x2ab305,
- 0x21138c,
- 0x241245,
- 0x282bc3,
- 0x2b4446,
- 0x2c1244,
- 0x370106,
- 0x29ecc7,
- 0x225b44,
- 0x241fc8,
- 0x38480d,
- 0x319205,
- 0x232a04,
- 0x2a2544,
- 0x2a2549,
- 0x2acbc8,
- 0x32d247,
- 0x3023c8,
- 0x285c48,
- 0x27c2c5,
- 0x205987,
- 0x27c247,
- 0x2c6447,
- 0x269fc9,
- 0x3365c9,
- 0x20b646,
- 0x2bdbc6,
- 0x2869c6,
- 0x34d6c5,
- 0x3a83c4,
- 0x3ba3c6,
- 0x3bf0c6,
- 0x27c308,
- 0x2d52cb,
- 0x267287,
- 0x20bc84,
- 0x39fe06,
- 0x2c8947,
- 0x244045,
- 0x244f45,
- 0x2ae104,
- 0x336546,
- 0x3ba448,
- 0x284c49,
- 0x25f446,
- 0x289188,
- 0x2eddc6,
- 0x35a6c8,
- 0x2b340c,
- 0x27c186,
- 0x29900d,
- 0x29948b,
- 0x29fdc5,
- 0x3b9987,
- 0x2bb346,
- 0x3935c8,
- 0x20b6c9,
- 0x3057c8,
- 0x3c0645,
- 0x360447,
- 0x284548,
- 0x2ff109,
- 0x39fb46,
- 0x25f34a,
- 0x393348,
- 0x30560b,
- 0x2133cc,
- 0x2792c8,
- 0x27fd46,
- 0x205388,
- 0x3b8487,
- 0x209509,
- 0x3179cd,
- 0x2998c6,
- 0x23f608,
- 0x2b4ec9,
- 0x2bfe08,
- 0x287708,
- 0x2c2d8c,
- 0x2c3e47,
- 0x2c4f47,
- 0x269e05,
- 0x2b89c7,
- 0x3a1d48,
- 0x35d1c6,
- 0x36b18c,
- 0x2cb288,
- 0x2d1f48,
- 0x2ff406,
- 0x2d4ec7,
- 0x20b844,
- 0x245a08,
- 0x31e9cc,
- 0x28b28c,
- 0x310385,
- 0x3bf907,
- 0x21fd86,
- 0x2d4e46,
- 0x349348,
- 0x21cfc4,
- 0x23818b,
- 0x27b20b,
- 0x2f6746,
- 0x384687,
- 0x3ccdc5,
- 0x271205,
- 0x2382c6,
- 0x2a60c5,
- 0x2039c5,
- 0x2cdd87,
- 0x3bfcc9,
- 0x2b69c4,
- 0x25ca05,
- 0x3ac2c5,
- 0x3b7f88,
- 0x28d3c5,
- 0x26e249,
- 0x375e47,
- 0x375e4b,
- 0x2f4f46,
- 0x240cc9,
- 0x34a288,
- 0x288405,
- 0x2c6548,
- 0x336608,
- 0x273547,
- 0x302147,
- 0x25e849,
- 0x281d47,
- 0x295309,
- 0x334f0c,
- 0x3cf448,
- 0x2b84c9,
- 0x2ba407,
- 0x285d09,
- 0x3617c7,
- 0x2134c8,
- 0x3b83c5,
- 0x39f406,
- 0x2c3748,
- 0x2f6848,
- 0x2ca709,
- 0x203a07,
- 0x271c05,
- 0x256089,
- 0x2d8746,
- 0x292f04,
- 0x31bd06,
- 0x2e63c8,
- 0x2ff8c7,
- 0x2d54c8,
- 0x21a949,
- 0x3286c7,
- 0x2a01c6,
- 0x3b9a44,
- 0x3c4809,
- 0x205808,
- 0x2ff2c7,
- 0x237c86,
- 0x2d5206,
- 0x204bc4,
- 0x36a2c6,
- 0x23a303,
- 0x32c909,
- 0x32cd46,
- 0x2ab805,
- 0x2a0706,
- 0x2cfa85,
+ 0x22a087,
+ 0x20878a,
+ 0x3d32c8,
+ 0x2bf744,
+ 0x280707,
+ 0x280447,
+ 0x350f06,
+ 0x298847,
+ 0x2d1348,
+ 0x2d3b88,
+ 0x24bf46,
+ 0x218988,
+ 0x2bb5c4,
+ 0x33a746,
+ 0x253a86,
+ 0x39d606,
+ 0x330946,
+ 0x21af84,
+ 0x27e0c6,
+ 0x2c1a86,
+ 0x29b5c6,
+ 0x231f06,
+ 0x204806,
+ 0x2457c6,
+ 0x242708,
+ 0x2b6308,
+ 0x2d72c8,
+ 0x23c508,
+ 0x23b446,
+ 0x20b3c5,
+ 0x21a186,
+ 0x2b0a05,
+ 0x395647,
+ 0x224dc5,
+ 0x20d443,
+ 0x3ceac5,
+ 0x22e384,
+ 0x204945,
+ 0x201903,
+ 0x3a3787,
+ 0x3436c8,
+ 0x3dafc6,
+ 0x2b4ecd,
+ 0x27c3c6,
+ 0x29ab85,
+ 0x21aac3,
+ 0x2bec49,
+ 0x289fc6,
+ 0x2969c6,
+ 0x282604,
+ 0x281e07,
+ 0x338446,
+ 0x2baa85,
+ 0x23c043,
+ 0x205b44,
+ 0x280606,
+ 0x3cf7c4,
+ 0x253b88,
+ 0x3d4a09,
+ 0x302a89,
+ 0x2a2eca,
+ 0x29370d,
+ 0x234007,
+ 0x3a8986,
+ 0x20adc4,
+ 0x284089,
+ 0x288c08,
+ 0x28a146,
+ 0x236d86,
+ 0x298847,
+ 0x2c1606,
+ 0x22d906,
+ 0x32ca06,
+ 0x32b7ca,
+ 0x220688,
+ 0x26ed05,
+ 0x36c209,
+ 0x2ca24a,
+ 0x2ffbc8,
+ 0x29ecc8,
+ 0x296948,
+ 0x2ad80c,
+ 0x351e45,
+ 0x2a1b88,
+ 0x2b7946,
+ 0x310e06,
+ 0x3a1c47,
+ 0x231f85,
+ 0x286285,
+ 0x302949,
+ 0x20d207,
+ 0x25cf05,
+ 0x238cc7,
+ 0x204943,
+ 0x2ca705,
+ 0x21a748,
+ 0x284e07,
+ 0x29eb89,
+ 0x2e2e05,
+ 0x3a6744,
+ 0x2a4448,
+ 0x3db447,
+ 0x2d30c8,
+ 0x3dd108,
+ 0x2adbc5,
+ 0x3baa86,
+ 0x24c3c6,
+ 0x2d6389,
+ 0x31c0c7,
+ 0x2b0e46,
+ 0x21ea07,
+ 0x202103,
+ 0x238644,
+ 0x2cf8c5,
+ 0x235284,
+ 0x2515c4,
+ 0x38c647,
+ 0x2675c7,
+ 0x27d544,
+ 0x29e9d0,
+ 0x36c407,
+ 0x3c2845,
+ 0x3303cc,
+ 0x206784,
+ 0x37f5c8,
+ 0x27bcc9,
+ 0x388d86,
+ 0x3134c8,
+ 0x23d044,
+ 0x27a948,
+ 0x3dbb06,
+ 0x26e288,
+ 0x29fb46,
+ 0x28ae8b,
+ 0x325045,
+ 0x2cf748,
+ 0x20f1c4,
+ 0x3d4e4a,
+ 0x29eb89,
+ 0x2af386,
+ 0x30e988,
+ 0x286685,
+ 0x2be1c4,
+ 0x37f4c6,
+ 0x229f48,
0x2849c8,
- 0x368547,
- 0x2ddcc6,
- 0x32f206,
- 0x3122c8,
- 0x2a3807,
- 0x299905,
- 0x29df08,
- 0x3ca348,
- 0x393348,
- 0x241105,
- 0x39f486,
- 0x306b49,
- 0x2d8284,
- 0x2cf90b,
- 0x2263cb,
- 0x2a9d49,
- 0x226783,
- 0x25aac5,
- 0x301606,
- 0x241c88,
- 0x2b6cc4,
- 0x301806,
- 0x20d849,
- 0x31e385,
- 0x2cdcc6,
- 0x301c86,
- 0x210984,
- 0x29e58a,
- 0x2ab748,
- 0x2f6846,
- 0x243e85,
- 0x3ccc47,
- 0x35b307,
- 0x3b7bc4,
- 0x226607,
- 0x229a84,
- 0x229a86,
- 0x205dc3,
- 0x269fc5,
- 0x2b0445,
- 0x368788,
- 0x280a45,
- 0x27bec9,
- 0x245847,
- 0x24584b,
- 0x2a554c,
- 0x2a5b4a,
- 0x317887,
- 0x201303,
- 0x26bd48,
- 0x2412c5,
- 0x2fcac5,
- 0x355544,
- 0x2133c6,
- 0x27a546,
- 0x36a307,
- 0x25560b,
- 0x21bb44,
- 0x3008c4,
- 0x2c9284,
- 0x2cf386,
- 0x225b44,
- 0x2824c8,
- 0x355345,
- 0x21b205,
- 0x370647,
- 0x3b9a89,
- 0x35b0c5,
- 0x38ef0a,
- 0x2a3349,
- 0x2a82ca,
- 0x32f989,
- 0x338e44,
- 0x2cbd85,
- 0x2bc288,
- 0x2d2a8b,
- 0x2d8045,
- 0x2fdac6,
- 0x240844,
- 0x27c406,
- 0x328549,
- 0x2c8a47,
- 0x27e8c8,
- 0x292a86,
- 0x3b44c7,
- 0x2854c8,
- 0x38f486,
- 0x3b9544,
- 0x380c47,
- 0x36e085,
- 0x382447,
- 0x245a84,
- 0x2bb2c6,
- 0x3026c8,
- 0x299648,
- 0x2fa2c7,
- 0x3294c8,
- 0x297a45,
- 0x226504,
- 0x381d08,
- 0x3201c4,
- 0x210845,
- 0x3028c4,
- 0x218e07,
- 0x28b907,
- 0x285e48,
- 0x2d4246,
- 0x2809c5,
- 0x27bcc8,
- 0x24bb48,
- 0x2a2c09,
- 0x2266c6,
- 0x22f948,
- 0x3bb3ca,
- 0x2440c8,
- 0x2ed185,
- 0x215686,
- 0x2a3208,
- 0x36050a,
- 0x357887,
- 0x2897c5,
- 0x293108,
- 0x2dd904,
- 0x256506,
- 0x2c52c8,
- 0x3c7586,
- 0x30a648,
- 0x2d6947,
- 0x3c2786,
- 0x2bba04,
- 0x281487,
- 0x2b5484,
- 0x328507,
- 0x36fa8d,
- 0x239fc5,
- 0x2d260b,
- 0x28b506,
- 0x2551c8,
- 0x241f84,
- 0x231346,
- 0x280786,
- 0x2056c7,
- 0x298ccd,
- 0x2fc607,
- 0x2b5d08,
- 0x284e05,
- 0x36a448,
- 0x2ca046,
- 0x297ac8,
- 0x39df06,
- 0x330647,
- 0x2861c9,
- 0x36a9c7,
- 0x28a808,
- 0x275c45,
- 0x228948,
- 0x2d4d85,
- 0x22a4c5,
- 0x32fc05,
- 0x251e03,
- 0x201b84,
- 0x244185,
- 0x2496c9,
- 0x36a0c6,
- 0x2c8708,
- 0x301f05,
- 0x2b8887,
- 0x344a4a,
- 0x2cdc09,
- 0x2703ca,
- 0x2d9688,
- 0x22854c,
- 0x28698d,
- 0x30d243,
- 0x30a548,
- 0x3d1a85,
- 0x3b85c6,
- 0x3bab46,
- 0x359205,
- 0x21e249,
- 0x361605,
- 0x27bcc8,
- 0x2590c6,
- 0x35dbc6,
- 0x2a4109,
- 0x3aae47,
- 0x293a06,
- 0x3449c8,
- 0x390848,
- 0x2e7947,
- 0x2c24ce,
- 0x2ca285,
- 0x2ff005,
- 0x3c7488,
- 0x2e9a87,
- 0x204c42,
- 0x2c2904,
- 0x37000a,
- 0x2ff388,
- 0x336746,
- 0x29b848,
- 0x248186,
- 0x361108,
- 0x2af788,
- 0x22a484,
- 0x2b8c45,
- 0x731a84,
- 0x731a84,
- 0x731a84,
- 0x2094c3,
- 0x2d5086,
- 0x27c186,
- 0x29fa8c,
- 0x20d8c3,
- 0x246446,
- 0x2133c4,
- 0x28a348,
- 0x20d685,
- 0x370106,
- 0x2bf948,
- 0x2daf86,
- 0x2ddc46,
- 0x3a88c8,
- 0x2d0b07,
- 0x281b09,
- 0x3114ca,
- 0x20d6c4,
- 0x229ac5,
- 0x2c4905,
- 0x2d65c6,
- 0x232a06,
- 0x29f406,
- 0x3cef46,
- 0x281c44,
- 0x281c4b,
- 0x229884,
- 0x240e45,
- 0x2ae605,
- 0x3b9e06,
- 0x3c2c08,
- 0x286847,
- 0x32ccc4,
- 0x25dfc3,
- 0x2dd405,
- 0x31bbc7,
- 0x28674b,
- 0x368687,
- 0x2bf848,
- 0x2b8d87,
- 0x26b246,
- 0x27e488,
- 0x25364b,
- 0x2be0c6,
- 0x20c249,
- 0x2537c5,
- 0x31fe43,
- 0x2cdcc6,
- 0x2d6848,
- 0x20d2c3,
- 0x2ad643,
- 0x2854c6,
- 0x248186,
- 0x37654a,
- 0x27fd85,
- 0x2805cb,
- 0x2a064b,
- 0x244e03,
- 0x202603,
- 0x2b27c4,
- 0x247f47,
- 0x2792c4,
- 0x28a344,
- 0x2b79c4,
- 0x2443c8,
- 0x243dc8,
- 0x20ec49,
- 0x2d6408,
- 0x32fe87,
- 0x20fd86,
- 0x2c834f,
- 0x2ca3c6,
- 0x2d8b84,
- 0x243c0a,
- 0x31bac7,
- 0x2b5586,
- 0x292f49,
- 0x20ebc5,
- 0x3688c5,
- 0x20ed06,
- 0x228a83,
- 0x2dd949,
- 0x2132c6,
- 0x21a709,
- 0x39aec6,
- 0x269fc5,
- 0x310785,
- 0x201b83,
- 0x248088,
- 0x32d407,
- 0x27d604,
- 0x28a1c8,
- 0x344c44,
- 0x304b46,
- 0x2b4446,
- 0x23cb46,
- 0x2d07c9,
- 0x2fca45,
- 0x2999c6,
- 0x22fec9,
- 0x2c8e86,
- 0x244446,
- 0x3a3946,
- 0x22b5c5,
- 0x3028c6,
- 0x330644,
- 0x3b83c5,
- 0x2c3744,
- 0x2b78c6,
- 0x363284,
- 0x203b03,
- 0x289445,
- 0x2346c8,
- 0x2e4947,
- 0x2b6d49,
- 0x2896c8,
- 0x29abd1,
- 0x301d0a,
- 0x2f6687,
- 0x304586,
- 0x2133c4,
- 0x2c3848,
- 0x3698c8,
- 0x29ad8a,
- 0x26e00d,
- 0x2a2dc6,
- 0x3a89c6,
- 0x281546,
- 0x21b207,
- 0x2b5dc5,
- 0x275187,
- 0x28a285,
- 0x375f84,
- 0x2aa746,
- 0x39f2c7,
- 0x2dd64d,
- 0x2a3147,
- 0x367008,
- 0x27bfc9,
- 0x215586,
- 0x39fac5,
- 0x231a84,
- 0x2e64c6,
- 0x3b7ac6,
- 0x2ff506,
- 0x29c0c8,
- 0x222e43,
- 0x2056c3,
- 0x37f685,
- 0x251386,
- 0x2af745,
- 0x292c88,
- 0x29ee8a,
- 0x3b7cc4,
- 0x28a348,
- 0x2956c8,
- 0x3b9c47,
- 0x301fc9,
- 0x2bf548,
- 0x284cc7,
- 0x2b7c46,
- 0x3c758a,
- 0x2e6548,
- 0x30d849,
- 0x2acc88,
- 0x21ae09,
- 0x304447,
- 0x2f9505,
- 0x336b06,
- 0x35d048,
- 0x3885c8,
- 0x39ea08,
- 0x210988,
- 0x240e45,
- 0x201484,
- 0x233088,
- 0x21f304,
- 0x32f784,
- 0x269fc5,
- 0x294c87,
- 0x3b9849,
- 0x2054c7,
- 0x211a85,
- 0x2790c6,
- 0x367dc6,
- 0x20c384,
- 0x2a4446,
- 0x27f8c4,
- 0x28c286,
- 0x3b9606,
- 0x20d106,
- 0x3c0645,
- 0x292b47,
- 0x201303,
- 0x272d49,
- 0x3120c8,
- 0x284b44,
- 0x284b4d,
- 0x299748,
- 0x2efe48,
- 0x30d7c6,
- 0x2862c9,
- 0x2cdc09,
- 0x328245,
- 0x29ef8a,
- 0x26e88a,
- 0x24e50c,
- 0x24e686,
- 0x2799c6,
- 0x2cac46,
- 0x26b6c9,
- 0x3b8806,
- 0x213546,
- 0x3616c6,
- 0x245a08,
- 0x238a86,
- 0x2d7b4b,
- 0x294e05,
- 0x21b205,
- 0x27a1c5,
- 0x201406,
- 0x226543,
- 0x23cac6,
- 0x2a30c7,
- 0x2c3705,
- 0x25c345,
- 0x3cb1c5,
- 0x37a286,
- 0x328304,
- 0x337e86,
- 0x2a4a09,
- 0x20128c,
- 0x375cc8,
- 0x238d04,
- 0x3025c6,
- 0x28b606,
- 0x2d6848,
- 0x319348,
- 0x201189,
- 0x3ccc47,
- 0x35f8c9,
- 0x2712c6,
- 0x22b984,
- 0x208044,
- 0x2842c4,
- 0x2854c8,
- 0x3b968a,
- 0x35b046,
- 0x369f87,
- 0x3826c7,
- 0x240dc5,
- 0x2c48c4,
- 0x2911c6,
- 0x2b5e06,
- 0x21d003,
- 0x311f07,
- 0x3b5b08,
- 0x32838a,
- 0x22b688,
- 0x209388,
- 0x3632c5,
- 0x29fec5,
- 0x267385,
- 0x241186,
- 0x38b006,
- 0x398bc5,
- 0x32cb49,
- 0x2c46cc,
- 0x267447,
- 0x29ae08,
- 0x2b1185,
- 0x731a84,
- 0x22c344,
- 0x285a44,
- 0x21a506,
- 0x2a1e0e,
- 0x368947,
- 0x21b405,
- 0x2d820c,
- 0x30e047,
- 0x39f247,
- 0x235a09,
- 0x2125c9,
- 0x2897c5,
- 0x3120c8,
- 0x306b49,
- 0x393205,
- 0x2c3648,
- 0x2b8706,
- 0x381f86,
- 0x23dbc4,
- 0x290008,
- 0x215743,
- 0x378384,
- 0x2dd485,
- 0x394c07,
- 0x2de485,
- 0x3bb289,
- 0x29608d,
- 0x2adc06,
- 0x3c2344,
- 0x2b7d48,
- 0x3bfb0a,
- 0x224887,
- 0x3cc385,
- 0x280a03,
- 0x2a080e,
- 0x24818c,
- 0x302ac7,
- 0x2a1fc7,
- 0x109d86,
- 0x205643,
- 0x3b8845,
- 0x285a45,
- 0x29bc08,
- 0x2987c9,
- 0x238c06,
- 0x2792c4,
- 0x2f65c6,
- 0x23f3cb,
- 0x2bd28c,
- 0x251ec7,
- 0x2d7e05,
- 0x3ca248,
- 0x2e7705,
- 0x243c07,
- 0x301b47,
- 0x39e885,
- 0x226543,
- 0x2193c4,
- 0x2e6285,
- 0x2b68c5,
- 0x2b68c6,
- 0x29c608,
- 0x39f2c7,
- 0x3bae46,
- 0x204ac6,
- 0x32fb46,
- 0x23f789,
- 0x205a87,
- 0x27f9c6,
- 0x2bd406,
- 0x2e1706,
- 0x2ab685,
- 0x20a7c6,
- 0x377645,
- 0x28d448,
- 0x29458b,
- 0x290f06,
- 0x382704,
- 0x2da549,
- 0x245844,
- 0x2b8688,
- 0x31be07,
- 0x287604,
- 0x2bebc8,
- 0x2c4d44,
- 0x2ab6c4,
- 0x28a105,
- 0x319246,
- 0x244307,
- 0x2166c3,
+ 0x33d5c6,
+ 0x321104,
+ 0x316006,
+ 0x3b8cc7,
+ 0x27b847,
+ 0x29884f,
+ 0x329587,
+ 0x2ee747,
+ 0x31c305,
+ 0x377fc5,
+ 0x2a3889,
+ 0x2e6c46,
+ 0x38c885,
+ 0x285e07,
+ 0x3a1ec8,
+ 0x3cf845,
+ 0x2af486,
+ 0x21c3c8,
+ 0x202e4a,
+ 0x229c48,
+ 0x28f987,
+ 0x2f06c6,
+ 0x36c1c6,
+ 0x2003c3,
+ 0x2060c3,
+ 0x2ca409,
+ 0x2a60c9,
+ 0x2b3386,
+ 0x2e2e05,
+ 0x218c08,
+ 0x30e988,
+ 0x373c48,
+ 0x32ca8b,
+ 0x2b5107,
+ 0x314bc9,
+ 0x298ac8,
+ 0x35bb44,
+ 0x39d248,
+ 0x291489,
+ 0x2b1145,
+ 0x3ba5c7,
+ 0x2386c5,
+ 0x2848c8,
+ 0x29474b,
+ 0x2999d0,
+ 0x2ac885,
+ 0x20f10c,
+ 0x2429c5,
+ 0x282183,
+ 0x2ef046,
+ 0x2c0d04,
+ 0x2af746,
+ 0x29f587,
+ 0x21c444,
+ 0x243108,
+ 0x32878d,
+ 0x30e845,
+ 0x234044,
+ 0x294e44,
+ 0x294e49,
+ 0x2c4008,
+ 0x325507,
+ 0x3dbb88,
+ 0x285148,
+ 0x27d685,
+ 0x211907,
+ 0x27d607,
+ 0x2c59c7,
+ 0x269dc9,
+ 0x32d909,
+ 0x20bdc6,
+ 0x2c8106,
+ 0x285ec6,
+ 0x34d0c5,
+ 0x3adbc4,
+ 0x3bff46,
+ 0x3c19c6,
+ 0x27d6c8,
+ 0x22864b,
+ 0x2658c7,
+ 0x20adc4,
+ 0x338386,
+ 0x2d1687,
+ 0x2453c5,
+ 0x333385,
+ 0x227044,
+ 0x32d886,
+ 0x3bffc8,
+ 0x284089,
+ 0x247086,
+ 0x288a08,
+ 0x2bab46,
+ 0x35c1c8,
+ 0x2b8c0c,
+ 0x27d546,
+ 0x29a84d,
+ 0x29accb,
0x2a0285,
- 0x2f4344,
- 0x2ff046,
- 0x3282c8,
- 0x3293c5,
- 0x294249,
- 0x256285,
- 0x246448,
- 0x358447,
- 0x32ce48,
- 0x2be807,
- 0x2f5389,
- 0x27cf06,
- 0x334ac6,
- 0x29a344,
- 0x300805,
- 0x312f4c,
- 0x27a1c7,
- 0x27ab47,
- 0x232648,
- 0x2adc06,
- 0x2a3004,
- 0x37af04,
- 0x25e6c9,
- 0x2cad46,
- 0x292207,
- 0x205304,
- 0x2a4546,
- 0x348c85,
- 0x2d3d87,
- 0x2d7ac6,
- 0x25f209,
- 0x2e8cc7,
- 0x297007,
- 0x2a3f86,
- 0x237bc5,
- 0x283748,
- 0x213148,
- 0x20ff86,
- 0x329405,
- 0x2c5e86,
- 0x203883,
- 0x29ba89,
- 0x29f18e,
- 0x2be548,
- 0x344d48,
- 0x20fd8b,
- 0x294486,
- 0x327d84,
- 0x286584,
- 0x29f28a,
- 0x211287,
- 0x27fa85,
- 0x20c249,
- 0x2c2405,
- 0x32f7c7,
- 0x2310c4,
- 0x291547,
- 0x2fd848,
- 0x2cd386,
- 0x2bb449,
- 0x2bf64a,
- 0x211206,
- 0x299286,
- 0x2ae585,
- 0x3961c5,
- 0x38cc47,
- 0x2479c8,
- 0x348bc8,
- 0x22a486,
- 0x310805,
- 0x23278e,
- 0x2bfd04,
- 0x20ff05,
- 0x278a49,
- 0x2e88c8,
- 0x28f9c6,
- 0x29da0c,
- 0x29ea90,
- 0x2a1a4f,
- 0x2a3588,
- 0x317887,
- 0x3c0645,
- 0x244185,
- 0x244189,
- 0x293309,
- 0x31ef86,
- 0x2d80c7,
- 0x300705,
- 0x239f49,
- 0x34f0c6,
- 0x3b864d,
- 0x284189,
- 0x28a344,
- 0x2be2c8,
- 0x233149,
- 0x35b206,
- 0x26bf45,
- 0x334ac6,
- 0x27e789,
- 0x2063c8,
- 0x20c245,
- 0x290004,
- 0x29dbcb,
- 0x35b0c5,
- 0x241d06,
- 0x286cc6,
- 0x206dc6,
- 0x2a294b,
- 0x294349,
- 0x2096c5,
- 0x391547,
- 0x301c86,
- 0x3a8ac6,
- 0x2857c8,
- 0x282649,
- 0x366dcc,
- 0x31b9c8,
- 0x31b4c6,
- 0x33b7c3,
- 0x37cd86,
- 0x2a2785,
- 0x281188,
- 0x310206,
- 0x2d3fc8,
- 0x238085,
- 0x3882c5,
- 0x358588,
- 0x390707,
- 0x3baa87,
- 0x36a307,
- 0x2f40c8,
- 0x2d66c8,
- 0x2d1886,
- 0x2b7707,
- 0x237147,
- 0x2a264a,
- 0x246603,
- 0x201406,
- 0x232705,
- 0x244704,
- 0x27bfc9,
- 0x2f5304,
- 0x2b9f84,
- 0x29ce04,
- 0x2a1fcb,
- 0x32d347,
- 0x2329c5,
- 0x297748,
- 0x2790c6,
- 0x2790c8,
- 0x27fcc6,
- 0x28ff45,
- 0x290205,
- 0x291bc6,
- 0x292548,
- 0x292e88,
- 0x27c186,
- 0x29758f,
- 0x29b550,
- 0x3bf405,
- 0x201303,
- 0x22ba45,
- 0x2fb688,
- 0x293209,
- 0x393348,
- 0x2d7ec8,
- 0x2506c8,
- 0x32d407,
- 0x278d89,
- 0x2d41c8,
- 0x2fcf84,
- 0x29cc88,
- 0x3b8049,
- 0x2b81c7,
- 0x29cc04,
- 0x205588,
- 0x29290a,
- 0x2cc046,
- 0x2a2dc6,
- 0x226589,
- 0x29ecc7,
- 0x2d0648,
- 0x20a408,
- 0x205188,
- 0x38a405,
- 0x396f85,
- 0x21b205,
- 0x285a05,
- 0x2b4d07,
- 0x226545,
- 0x2c3705,
- 0x3c2646,
- 0x393287,
- 0x2d29c7,
- 0x292c06,
- 0x2d9bc5,
- 0x241d06,
- 0x26be05,
- 0x2badc8,
- 0x300684,
- 0x2c8f06,
- 0x348ac4,
- 0x2be9c8,
- 0x2c900a,
- 0x27cc8c,
- 0x255805,
- 0x21b2c6,
- 0x366f86,
+ 0x32df47,
+ 0x2bb646,
+ 0x397588,
+ 0x20be49,
+ 0x3b2508,
+ 0x3c2845,
+ 0x32a507,
+ 0x283988,
+ 0x232b49,
+ 0x3380c6,
+ 0x27f74a,
+ 0x397308,
+ 0x3b234b,
+ 0x22090c,
+ 0x27aa48,
+ 0x27fdc6,
+ 0x211308,
+ 0x202ac7,
+ 0x2092c9,
+ 0x30cf4d,
+ 0x29b106,
+ 0x239808,
+ 0x2b61c9,
+ 0x2bf848,
+ 0x286f88,
+ 0x2c24cc,
+ 0x2c3787,
+ 0x2c44c7,
+ 0x269c05,
+ 0x2b91c7,
+ 0x3a1d88,
0x37f546,
- 0x2fb884,
- 0x3693c5,
- 0x27f607,
- 0x29ed49,
- 0x2cf7c7,
- 0x731a84,
- 0x731a84,
- 0x32d1c5,
- 0x2177c4,
- 0x29d3ca,
- 0x278f46,
- 0x306944,
- 0x3bf885,
- 0x2b3945,
- 0x2b5d04,
- 0x286907,
- 0x256207,
- 0x2cf388,
- 0x2c5f88,
- 0x3c8009,
- 0x3201c8,
- 0x29d58b,
- 0x2442c4,
- 0x3a8bc5,
- 0x26b905,
- 0x36a289,
- 0x282649,
- 0x2da448,
- 0x229888,
- 0x2dea44,
- 0x28b645,
- 0x2017c3,
- 0x2d6585,
- 0x299a46,
- 0x29860c,
- 0x2131c6,
- 0x26be46,
- 0x28fc45,
- 0x37a308,
- 0x3194c6,
- 0x304706,
- 0x2a2dc6,
- 0x22b40c,
- 0x26b9c4,
- 0x32fc8a,
- 0x28fb88,
- 0x298447,
- 0x2f4246,
- 0x238cc7,
- 0x2f61c5,
- 0x237c86,
- 0x365e46,
- 0x374207,
- 0x2bf344,
- 0x218f05,
- 0x278a44,
- 0x376007,
- 0x278c88,
- 0x27984a,
- 0x2843c7,
- 0x2ab8c7,
- 0x317807,
- 0x2e7849,
- 0x29860a,
- 0x20ff83,
- 0x2e4905,
- 0x20d143,
- 0x2b7a09,
- 0x2d6a88,
- 0x31ff87,
- 0x393449,
- 0x213246,
- 0x32df48,
- 0x3a34c5,
- 0x24bc4a,
- 0x384ac9,
- 0x247bc9,
- 0x3a1c07,
- 0x3699c9,
- 0x20d008,
- 0x361306,
- 0x21b488,
- 0x3c1c47,
- 0x281d47,
+ 0x246f0c,
+ 0x2f4408,
+ 0x2d0648,
+ 0x232e46,
+ 0x228247,
+ 0x20bfc4,
+ 0x23c508,
+ 0x315b4c,
+ 0x28844c,
+ 0x28e045,
+ 0x3ce947,
+ 0x321086,
+ 0x2281c6,
+ 0x367808,
+ 0x21d004,
+ 0x26c80b,
+ 0x27c98b,
+ 0x2f06c6,
+ 0x328607,
+ 0x331e05,
+ 0x273d05,
+ 0x26c946,
+ 0x286645,
+ 0x201905,
+ 0x2ccac7,
+ 0x3c6349,
+ 0x28e844,
+ 0x25b245,
+ 0x30b645,
+ 0x3bae48,
+ 0x28d605,
+ 0x2a0ec9,
+ 0x2e8247,
+ 0x2e824b,
+ 0x2ee3c6,
+ 0x242449,
+ 0x329c48,
+ 0x2919c5,
+ 0x2c5ac8,
+ 0x32d948,
+ 0x264587,
+ 0x3db907,
+ 0x38c6c9,
+ 0x26e1c7,
+ 0x29cec9,
+ 0x308fcc,
+ 0x2b3388,
+ 0x2bb089,
+ 0x2bc447,
+ 0x285209,
+ 0x23bec7,
+ 0x220a08,
+ 0x202a05,
+ 0x33a6c6,
+ 0x2c3088,
+ 0x2f07c8,
+ 0x2ca109,
+ 0x201947,
+ 0x274705,
+ 0x248809,
+ 0x2d66c6,
+ 0x293f04,
+ 0x35f406,
+ 0x26cfc8,
+ 0x2fa847,
+ 0x228848,
+ 0x218a49,
+ 0x32b087,
+ 0x2a0686,
+ 0x32e004,
+ 0x3ceb49,
+ 0x211788,
+ 0x232d07,
+ 0x22e7c6,
+ 0x228586,
+ 0x209644,
+ 0x36d946,
+ 0x2048c3,
+ 0x324bc9,
+ 0x325006,
+ 0x2acec5,
+ 0x2a1906,
+ 0x2ce885,
+ 0x283e08,
+ 0x369b87,
+ 0x2feac6,
+ 0x32c8c6,
+ 0x308788,
+ 0x2a3a07,
+ 0x29b145,
+ 0x29e7c8,
+ 0x3c97c8,
+ 0x397308,
+ 0x242885,
+ 0x33a746,
+ 0x302849,
+ 0x2d6204,
+ 0x2ce70b,
+ 0x22d60b,
+ 0x26ec09,
+ 0x204943,
+ 0x258c45,
+ 0x23d606,
+ 0x242dc8,
+ 0x2aae04,
+ 0x3dafc6,
+ 0x2088c9,
+ 0x2d0445,
+ 0x2cca06,
+ 0x3db446,
+ 0x214184,
+ 0x29ee4a,
+ 0x2ace08,
+ 0x2f07c6,
+ 0x245205,
+ 0x328487,
+ 0x35ce07,
+ 0x3baa84,
+ 0x22d847,
+ 0x224d84,
+ 0x224d86,
+ 0x210143,
+ 0x269dc5,
+ 0x2b1b05,
+ 0x369dc8,
+ 0x2808c5,
+ 0x27d289,
+ 0x23c347,
+ 0x23c34b,
+ 0x2a4f4c,
+ 0x2a554a,
+ 0x30ce07,
+ 0x202e03,
+ 0x38cd48,
+ 0x242a45,
+ 0x3cf8c5,
+ 0x357f84,
+ 0x220906,
+ 0x27bcc6,
+ 0x36d987,
+ 0x247d8b,
+ 0x21af84,
+ 0x2fd104,
+ 0x2b52c4,
+ 0x2ce186,
+ 0x21c444,
+ 0x22b048,
+ 0x357d85,
+ 0x21b745,
+ 0x373b87,
+ 0x32e049,
+ 0x35cbc5,
+ 0x39314a,
+ 0x2a3549,
+ 0x2afb0a,
+ 0x32b909,
+ 0x350204,
+ 0x2d0dc5,
+ 0x2c1708,
+ 0x2d808b,
+ 0x2d5fc5,
+ 0x2f8106,
+ 0x241b04,
+ 0x27d7c6,
+ 0x32af09,
+ 0x2d1787,
+ 0x278dc8,
+ 0x293a86,
+ 0x3b8c47,
+ 0x2849c8,
+ 0x3936c6,
+ 0x3c1c04,
+ 0x383507,
+ 0x371cc5,
+ 0x385207,
+ 0x23c584,
+ 0x2bb5c6,
+ 0x2ff8c8,
+ 0x29ae88,
+ 0x2f1d87,
+ 0x320dc8,
+ 0x299285,
+ 0x204784,
+ 0x384ac8,
+ 0x31c544,
+ 0x214045,
+ 0x2ffac4,
+ 0x20ffc7,
+ 0x28b207,
+ 0x285348,
+ 0x2d3246,
+ 0x280845,
+ 0x27d088,
+ 0x2516c8,
+ 0x2a2e09,
+ 0x22d906,
+ 0x231988,
+ 0x3d4cca,
+ 0x245448,
+ 0x2e7805,
+ 0x21a386,
+ 0x2a3408,
+ 0x32a5ca,
+ 0x2aaa07,
+ 0x289045,
+ 0x294108,
+ 0x3d2484,
+ 0x253ec6,
+ 0x2c4848,
+ 0x204806,
+ 0x3ca308,
+ 0x358587,
+ 0x3dc786,
+ 0x2bbd04,
+ 0x26c187,
+ 0x2b6784,
+ 0x32aec7,
+ 0x2af0cd,
+ 0x237205,
+ 0x2d7c0b,
+ 0x2886c6,
+ 0x253288,
+ 0x2430c4,
+ 0x23b646,
+ 0x280606,
+ 0x211647,
+ 0x29a50d,
+ 0x2f6a87,
+ 0x2b6d48,
+ 0x284245,
+ 0x37b488,
+ 0x2c9a46,
+ 0x299308,
+ 0x360146,
+ 0x330147,
+ 0x2856c9,
+ 0x35fac7,
+ 0x28a408,
+ 0x276cc5,
+ 0x22b748,
+ 0x228105,
+ 0x225d05,
+ 0x34b085,
+ 0x24f543,
+ 0x286184,
+ 0x245505,
+ 0x247a89,
+ 0x36d746,
+ 0x2d1448,
+ 0x3db6c5,
+ 0x2b9087,
+ 0x31098a,
+ 0x2cc949,
+ 0x2bd84a,
+ 0x2d7348,
+ 0x238b0c,
+ 0x285e8d,
+ 0x3cc203,
+ 0x3ca208,
+ 0x205b05,
+ 0x202c06,
+ 0x39cc86,
+ 0x35a985,
+ 0x21eb09,
+ 0x36b3c5,
+ 0x27d088,
+ 0x2574c6,
+ 0x35e9c6,
+ 0x2a4309,
+ 0x3ab3c7,
+ 0x294a06,
+ 0x310908,
+ 0x39d508,
+ 0x2e2807,
+ 0x2c1c0e,
+ 0x2c9c85,
+ 0x232a45,
+ 0x204708,
+ 0x2e42c7,
+ 0x200e42,
+ 0x2c2044,
+ 0x2af64a,
+ 0x232dc8,
+ 0x32da86,
+ 0x29c2c8,
+ 0x24c3c6,
+ 0x32f488,
+ 0x2b0e48,
+ 0x225cc4,
+ 0x2b9445,
+ 0x727544,
+ 0x727544,
+ 0x727544,
+ 0x208343,
+ 0x228406,
+ 0x27d546,
+ 0x29ff4c,
+ 0x204743,
+ 0x23cf46,
+ 0x21c4c4,
+ 0x289f48,
+ 0x208705,
+ 0x2af746,
+ 0x2bf388,
+ 0x2d9206,
+ 0x2fea46,
+ 0x3ae0c8,
+ 0x2cf947,
+ 0x26df89,
+ 0x31a70a,
+ 0x208744,
+ 0x224dc5,
+ 0x23d345,
+ 0x358206,
+ 0x234046,
+ 0x2a0a86,
+ 0x3cce06,
+ 0x26e0c4,
+ 0x26e0cb,
+ 0x224b84,
+ 0x2425c5,
+ 0x2affc5,
+ 0x32e3c6,
+ 0x204c88,
+ 0x285d47,
+ 0x324f84,
+ 0x25c6c3,
+ 0x3d1f85,
+ 0x35f2c7,
+ 0x285c4b,
+ 0x369cc7,
+ 0x2bf288,
+ 0x2b9587,
+ 0x26b786,
+ 0x28c1c8,
+ 0x272b0b,
+ 0x2c8606,
+ 0x20df49,
+ 0x272c85,
+ 0x316fc3,
+ 0x2cca06,
+ 0x358488,
+ 0x213603,
+ 0x28c7c3,
+ 0x209e86,
+ 0x24c3c6,
+ 0x379a8a,
+ 0x27fe05,
+ 0x28044b,
+ 0x2a184b,
+ 0x246183,
+ 0x20a043,
+ 0x2b3cc4,
+ 0x24c187,
+ 0x27aa44,
+ 0x289f44,
+ 0x2b77c4,
+ 0x245748,
+ 0x245148,
+ 0x206049,
+ 0x2d4588,
+ 0x2686c7,
+ 0x231f06,
+ 0x2d108f,
+ 0x2c9dc6,
+ 0x2d6b04,
+ 0x244f8a,
+ 0x35f1c7,
+ 0x2b6886,
+ 0x293f49,
+ 0x205fc5,
+ 0x369f05,
+ 0x206106,
+ 0x22b883,
+ 0x3d24c9,
+ 0x220806,
+ 0x218809,
+ 0x39e386,
+ 0x269dc5,
+ 0x28e445,
+ 0x20a703,
+ 0x24c2c8,
+ 0x3256c7,
+ 0x25ce44,
+ 0x289dc8,
+ 0x310b84,
+ 0x300f46,
+ 0x2ef046,
+ 0x23ebc6,
+ 0x2cf609,
+ 0x3cf845,
+ 0x29b206,
+ 0x2a1509,
+ 0x2c8886,
+ 0x2457c6,
+ 0x3a3b86,
+ 0x203685,
+ 0x2ffac6,
+ 0x330144,
+ 0x202a05,
+ 0x2c3084,
+ 0x2b76c6,
+ 0x3634c4,
+ 0x201a43,
+ 0x288cc5,
+ 0x235e48,
+ 0x22cdc7,
+ 0x2aae89,
+ 0x288f48,
+ 0x29b911,
+ 0x3db4ca,
+ 0x2f0607,
+ 0x2d3ec6,
+ 0x21c4c4,
+ 0x2c3188,
+ 0x3cf988,
+ 0x29baca,
+ 0x2a0c8d,
+ 0x2a2fc6,
+ 0x3ae1c6,
+ 0x26c246,
+ 0x21b747,
+ 0x2b6e05,
+ 0x3be587,
+ 0x289e85,
+ 0x2e8384,
+ 0x2adec6,
+ 0x33a587,
+ 0x3d21cd,
0x2a3347,
- 0x2d3208,
- 0x3d02c6,
- 0x2926c5,
- 0x27f607,
- 0x298d88,
- 0x348a44,
- 0x2d0284,
- 0x293907,
- 0x2afb07,
- 0x3069ca,
- 0x361286,
- 0x3696ca,
- 0x2c2847,
- 0x2bfac7,
- 0x218fc4,
- 0x2953c4,
- 0x2d3c86,
- 0x3a0144,
- 0x3a014c,
- 0x306885,
- 0x2107c9,
- 0x2465c4,
- 0x2b5dc5,
- 0x3bfa88,
- 0x28ea85,
- 0x38ef06,
- 0x293444,
- 0x2a6c8a,
- 0x2b1746,
- 0x23ed0a,
- 0x28e007,
- 0x2d5605,
- 0x228a85,
- 0x240e0a,
- 0x39e945,
- 0x244146,
- 0x21f304,
- 0x2b2946,
- 0x38cd05,
- 0x3102c6,
- 0x2fa2cc,
- 0x2db94a,
- 0x26e984,
- 0x20fd86,
- 0x29ecc7,
- 0x2d7a44,
- 0x245a08,
- 0x2e37c6,
- 0x382549,
- 0x2c1b89,
- 0x3cf549,
- 0x2cfac6,
- 0x3c1d46,
- 0x21b5c7,
- 0x32ca88,
- 0x3c1b49,
- 0x32d347,
- 0x2978c6,
- 0x3b4547,
- 0x281405,
- 0x2bfd04,
- 0x21b187,
- 0x237305,
- 0x28a045,
- 0x2f9e47,
- 0x39e748,
- 0x3ca1c6,
- 0x299bcd,
- 0x29be0f,
- 0x2a064d,
- 0x20d884,
- 0x2347c6,
- 0x2dbd08,
- 0x361685,
- 0x2a2808,
- 0x27340a,
- 0x28a344,
- 0x2f1c86,
- 0x2d8c07,
- 0x21bb47,
- 0x2d0bc9,
- 0x21b445,
- 0x2b5d04,
- 0x2b8b8a,
- 0x2bf109,
- 0x369ac7,
- 0x299e86,
- 0x35b206,
- 0x28b586,
- 0x380d06,
- 0x2db60f,
- 0x2dbbc9,
- 0x238a86,
- 0x388206,
- 0x32c149,
- 0x2b7807,
- 0x21a003,
- 0x22b586,
- 0x20ecc3,
- 0x3590c8,
- 0x2d4747,
- 0x2a3789,
- 0x2b42c8,
- 0x3babc8,
- 0x361906,
- 0x30c049,
- 0x37c885,
- 0x2b78c4,
- 0x2f95c7,
- 0x26b745,
- 0x20d884,
- 0x232a88,
- 0x211544,
- 0x2b7547,
- 0x342646,
- 0x2a9685,
- 0x2acc88,
- 0x35b0cb,
- 0x3125c7,
- 0x241086,
- 0x2ca444,
- 0x327d06,
- 0x269fc5,
- 0x237305,
- 0x2834c9,
- 0x286509,
- 0x281d84,
- 0x281dc5,
- 0x20fdc5,
- 0x24bac6,
- 0x3121c8,
- 0x2c1646,
- 0x3b594b,
- 0x383c4a,
- 0x2be905,
- 0x290286,
- 0x27d305,
- 0x3c2585,
- 0x295847,
- 0x201688,
- 0x2925c4,
- 0x265cc6,
- 0x292f06,
- 0x20d1c7,
- 0x31fe04,
- 0x280786,
- 0x3b7905,
- 0x3b7909,
- 0x2dc984,
- 0x2c4a49,
- 0x27c186,
- 0x2c3f08,
- 0x20fdc5,
- 0x3827c5,
- 0x3102c6,
- 0x366cc9,
- 0x2125c9,
- 0x26bec6,
- 0x2e89c8,
- 0x2961c8,
- 0x27d2c4,
- 0x2b99c4,
- 0x2b99c8,
- 0x28e9c8,
- 0x35f9c9,
- 0x2999c6,
- 0x2a2dc6,
- 0x33ae0d,
- 0x301806,
- 0x2b32c9,
- 0x223945,
- 0x20ed06,
- 0x206548,
- 0x337dc5,
- 0x237184,
- 0x269fc5,
- 0x286048,
- 0x29d189,
- 0x278b04,
+ 0x2b5588,
+ 0x27d389,
+ 0x21a286,
+ 0x338045,
+ 0x230344,
+ 0x26d0c6,
+ 0x3ba986,
+ 0x232f46,
+ 0x29cb48,
+ 0x219783,
+ 0x209e43,
+ 0x320405,
+ 0x35b006,
+ 0x2b0e05,
+ 0x293c88,
+ 0x29f74a,
+ 0x3bab84,
+ 0x289f48,
+ 0x296948,
+ 0x32e207,
+ 0x3db789,
+ 0x2bef88,
+ 0x284107,
+ 0x2b7a46,
+ 0x20480a,
+ 0x26d148,
+ 0x390e89,
+ 0x2c40c8,
+ 0x226c49,
+ 0x2d3d87,
+ 0x2f3bc5,
+ 0x32cc86,
+ 0x37f3c8,
+ 0x253408,
+ 0x339cc8,
+ 0x214188,
+ 0x2425c5,
+ 0x200d04,
+ 0x2347c8,
+ 0x241884,
+ 0x32b704,
+ 0x269dc5,
+ 0x2961c7,
+ 0x32de09,
+ 0x211447,
+ 0x2319c5,
+ 0x27a846,
+ 0x369406,
+ 0x202fc4,
+ 0x2a4646,
+ 0x27f244,
+ 0x292b46,
+ 0x32dbc6,
+ 0x213446,
+ 0x3c2845,
+ 0x293b47,
+ 0x202e03,
+ 0x269889,
+ 0x308588,
+ 0x283f84,
+ 0x283f8d,
+ 0x29af88,
+ 0x2ec008,
+ 0x390e06,
+ 0x2857c9,
+ 0x2cc949,
+ 0x32ac05,
+ 0x29f84a,
+ 0x25364a,
+ 0x27108c,
+ 0x271206,
+ 0x27b146,
+ 0x2ca646,
+ 0x39eec9,
+ 0x202e46,
+ 0x220a86,
+ 0x36b486,
+ 0x23c508,
+ 0x229c46,
+ 0x2d5acb,
+ 0x296345,
+ 0x21b745,
+ 0x27b945,
+ 0x327c86,
+ 0x2047c3,
+ 0x23eb46,
+ 0x2a32c7,
+ 0x2c3045,
+ 0x25ab85,
+ 0x3bd3c5,
+ 0x312906,
+ 0x32acc4,
+ 0x336306,
+ 0x2abc89,
+ 0x327b0c,
+ 0x2e80c8,
+ 0x229ec4,
+ 0x2ff7c6,
+ 0x2887c6,
+ 0x358488,
+ 0x30e988,
+ 0x327a09,
+ 0x328487,
+ 0x265a89,
+ 0x273dc6,
+ 0x22c644,
+ 0x205584,
+ 0x283704,
+ 0x2849c8,
+ 0x32dc4a,
+ 0x35cb46,
+ 0x36d607,
+ 0x385487,
+ 0x242545,
+ 0x2f70c4,
+ 0x291446,
+ 0x2b6e46,
+ 0x202a83,
+ 0x3083c7,
+ 0x3dd008,
+ 0x32ad4a,
+ 0x23d9c8,
+ 0x209148,
+ 0x363505,
+ 0x2a0385,
+ 0x2659c5,
+ 0x242906,
+ 0x390046,
+ 0x37b985,
+ 0x324e09,
+ 0x2f6ecc,
+ 0x380907,
+ 0x29bb48,
+ 0x296685,
+ 0x727544,
+ 0x2270c4,
+ 0x284f44,
+ 0x218606,
+ 0x2a268e,
+ 0x369f87,
+ 0x21b945,
+ 0x2d618c,
+ 0x3cb3c7,
+ 0x33a507,
+ 0x358fc9,
+ 0x219049,
+ 0x289045,
+ 0x308588,
+ 0x302849,
+ 0x3971c5,
+ 0x2c2f88,
0x2bb2c6,
- 0x30da0a,
- 0x3029c8,
- 0x306b49,
- 0x26a8ca,
- 0x3933c6,
- 0x29bfc8,
- 0x2439c5,
- 0x29f608,
- 0x2f6245,
- 0x213109,
- 0x33d7c9,
- 0x219482,
- 0x2537c5,
- 0x270f46,
- 0x27c0c7,
- 0x244705,
- 0x2f35c6,
- 0x316b48,
- 0x2adc06,
- 0x2bc149,
- 0x27ac46,
- 0x285648,
- 0x26c285,
- 0x34b8c6,
- 0x330748,
- 0x2854c8,
- 0x304348,
- 0x318e48,
- 0x20a7c4,
- 0x250c83,
- 0x2bc384,
- 0x2845c6,
- 0x281444,
- 0x344c87,
- 0x304609,
- 0x2c9285,
- 0x20a406,
- 0x22b586,
- 0x29c44b,
- 0x2b54c6,
- 0x363506,
- 0x2cda88,
- 0x2e6006,
- 0x26e303,
- 0x3da583,
- 0x2bfd04,
- 0x22f845,
- 0x2edc07,
- 0x278c88,
- 0x278c8f,
- 0x27f50b,
- 0x311fc8,
- 0x2bb346,
- 0x3122ce,
- 0x241243,
- 0x2edb84,
- 0x2b5445,
- 0x2b5b86,
- 0x2912cb,
- 0x294d46,
- 0x225b49,
- 0x2a9685,
- 0x253dc8,
- 0x3c7cc8,
- 0x21248c,
- 0x2a2006,
- 0x2d65c6,
- 0x2dcb05,
- 0x28a5c8,
- 0x27cc85,
- 0x35e8c8,
- 0x29dd8a,
- 0x2a0a89,
- 0x731a84,
+ 0x384d46,
+ 0x241f04,
+ 0x290108,
+ 0x21a443,
+ 0x387344,
+ 0x3d2005,
+ 0x398bc7,
+ 0x22c405,
+ 0x3d4b89,
+ 0x2a4c0d,
+ 0x371086,
+ 0x3b9904,
+ 0x2b7b48,
+ 0x3c618a,
+ 0x221e07,
+ 0x326945,
+ 0x280883,
+ 0x2a1a0e,
+ 0x24c3cc,
+ 0x2ffcc7,
+ 0x2a2847,
+ 0x40b06207,
+ 0x1282c6,
+ 0x81b84,
+ 0x202e83,
+ 0x202e85,
+ 0x284f45,
+ 0x29c688,
+ 0x29a009,
+ 0x229dc6,
+ 0x27aa44,
+ 0x2f0546,
+ 0x2395cb,
+ 0x2c77cc,
+ 0x24f607,
+ 0x2d5d85,
+ 0x3c96c8,
+ 0x2e25c5,
+ 0x244f87,
+ 0x3db307,
+ 0x339b45,
+ 0x2047c3,
+ 0x210584,
+ 0x23d245,
+ 0x28e745,
+ 0x28e746,
+ 0x2a8a48,
+ 0x33a587,
+ 0x39cf86,
+ 0x209546,
+ 0x34afc6,
+ 0x239989,
+ 0x211a07,
+ 0x27f346,
+ 0x2c7946,
+ 0x3a9606,
+ 0x2acd45,
+ 0x208bc6,
+ 0x386605,
+ 0x28d688,
+ 0x295b4b,
+ 0x290cc6,
+ 0x3854c4,
+ 0x2d87c9,
+ 0x23c344,
+ 0x2bb248,
+ 0x35f507,
+ 0x286e84,
+ 0x2be3c8,
+ 0x2c42c4,
+ 0x2acd84,
+ 0x289d05,
+ 0x30e886,
+ 0x245687,
+ 0x2172c3,
+ 0x2a0745,
+ 0x273304,
+ 0x232a86,
+ 0x32ac88,
+ 0x320cc5,
+ 0x295809,
+ 0x248a05,
+ 0x23cf48,
+ 0x3d28c7,
+ 0x325108,
+ 0x2be007,
+ 0x2ee809,
+ 0x27df46,
+ 0x370c46,
+ 0x2a6384,
+ 0x2fd045,
+ 0x30724c,
+ 0x27b947,
+ 0x27c2c7,
+ 0x233c88,
+ 0x371086,
+ 0x2a3204,
+ 0x3415c4,
+ 0x38c549,
+ 0x2ca746,
+ 0x272647,
+ 0x211284,
+ 0x2a4746,
+ 0x37adc5,
+ 0x2d2d87,
+ 0x2d5a46,
+ 0x27f609,
+ 0x2e6e47,
+ 0x298847,
+ 0x2a4186,
+ 0x22e705,
+ 0x282b88,
+ 0x220688,
+ 0x2dccc6,
+ 0x320d05,
+ 0x2c5406,
+ 0x2017c3,
+ 0x29c509,
+ 0x2a080e,
+ 0x2bdd48,
+ 0x310c88,
+ 0x2dcacb,
+ 0x295a46,
+ 0x326404,
+ 0x285a84,
+ 0x2a090a,
+ 0x20f007,
+ 0x27f405,
+ 0x20df49,
+ 0x2c1b45,
+ 0x32b747,
+ 0x2329c4,
+ 0x297307,
+ 0x2f7e88,
+ 0x2d2406,
+ 0x2bb749,
+ 0x2bf08a,
+ 0x20ef86,
+ 0x29aac6,
+ 0x2aff45,
+ 0x39a185,
+ 0x31fa87,
+ 0x246d08,
+ 0x37ad08,
+ 0x225cc6,
+ 0x28e4c5,
+ 0x233dce,
+ 0x2bf744,
+ 0x29c605,
+ 0x27a1c9,
+ 0x2e6a48,
+ 0x28f8c6,
+ 0x29e2cc,
+ 0x29f350,
+ 0x2a22cf,
+ 0x2a3788,
+ 0x30ce07,
+ 0x3c2845,
+ 0x245505,
+ 0x245509,
+ 0x294309,
+ 0x316106,
+ 0x2d6047,
+ 0x2fcf45,
+ 0x237189,
+ 0x350f86,
+ 0x202c8d,
+ 0x2835c9,
+ 0x289f44,
+ 0x2bdac8,
+ 0x234889,
+ 0x35cd06,
+ 0x38cf45,
+ 0x370c46,
+ 0x278c89,
+ 0x212348,
+ 0x20b3c5,
+ 0x290104,
+ 0x29e48b,
+ 0x35cbc5,
+ 0x242e46,
+ 0x2861c6,
+ 0x32eb86,
+ 0x29524b,
+ 0x295909,
+ 0x209485,
+ 0x395547,
+ 0x3db446,
+ 0x3ae2c6,
+ 0x284cc8,
+ 0x22b1c9,
+ 0x2b534c,
+ 0x35f0c8,
+ 0x3118c6,
+ 0x33d5c3,
+ 0x2ff4c6,
+ 0x295085,
+ 0x281348,
+ 0x28dec6,
+ 0x2d2fc8,
+ 0x232105,
+ 0x29bc85,
+ 0x3d2a08,
+ 0x39d3c7,
+ 0x39cbc7,
+ 0x36d987,
+ 0x3134c8,
+ 0x358308,
+ 0x2d1bc6,
+ 0x2b7507,
+ 0x238507,
+ 0x294f4a,
+ 0x2292c3,
+ 0x327c86,
+ 0x22a005,
+ 0x245a84,
+ 0x27d389,
+ 0x2ee784,
+ 0x203c44,
+ 0x29fbc4,
+ 0x2a284b,
+ 0x325607,
+ 0x234005,
+ 0x298f88,
+ 0x27a846,
+ 0x27a848,
+ 0x27fd46,
+ 0x290045,
+ 0x290305,
+ 0x2920c6,
+ 0x293548,
+ 0x293e88,
+ 0x27d546,
+ 0x298dcf,
+ 0x29bfd0,
+ 0x3dc385,
+ 0x202e03,
+ 0x22c705,
+ 0x314b08,
+ 0x294209,
+ 0x397308,
+ 0x2d5e48,
+ 0x23aac8,
+ 0x3256c7,
+ 0x27a509,
+ 0x2d31c8,
+ 0x291204,
+ 0x29fa48,
+ 0x3baf09,
+ 0x2b87c7,
+ 0x2ad784,
+ 0x211508,
+ 0x29390a,
+ 0x2ddc86,
+ 0x2a2fc6,
+ 0x22d7c9,
+ 0x29f587,
+ 0x2cf488,
+ 0x2e21c8,
+ 0x209c08,
+ 0x249085,
+ 0x39af85,
+ 0x21b745,
+ 0x284f05,
+ 0x2b6007,
+ 0x2047c5,
+ 0x2c3045,
+ 0x2389c6,
+ 0x397247,
+ 0x2d7fc7,
+ 0x293c06,
+ 0x2d7885,
+ 0x242e46,
+ 0x2b9605,
+ 0x2bfb08,
+ 0x2fcec4,
+ 0x2c8906,
+ 0x323484,
+ 0x2be1c8,
+ 0x2c8a0a,
+ 0x27dccc,
+ 0x247f85,
+ 0x21b806,
+ 0x2b5506,
+ 0x3202c6,
+ 0x311944,
+ 0x39ca85,
+ 0x27ef87,
+ 0x29f609,
+ 0x2ce5c7,
+ 0x727544,
+ 0x727544,
+ 0x325485,
+ 0x216144,
+ 0x29dc8a,
+ 0x27a6c6,
+ 0x302644,
+ 0x3ce8c5,
+ 0x2b5a05,
+ 0x2b6d44,
+ 0x285e07,
+ 0x248987,
+ 0x2ce188,
+ 0x2c5508,
+ 0x20b3c9,
+ 0x31c548,
+ 0x29de4b,
+ 0x245644,
+ 0x3ae3c5,
+ 0x38c905,
+ 0x36d909,
+ 0x22b1c9,
+ 0x2d86c8,
+ 0x224b88,
+ 0x2dd504,
+ 0x288805,
+ 0x209ec3,
+ 0x3581c5,
+ 0x29b286,
+ 0x299e4c,
+ 0x211186,
+ 0x38ce46,
+ 0x28fb45,
+ 0x312988,
+ 0x30eb06,
+ 0x2d4046,
+ 0x2a2fc6,
+ 0x23d74c,
+ 0x38c9c4,
+ 0x34b10a,
+ 0x28fa88,
+ 0x299c87,
+ 0x273206,
+ 0x229e87,
+ 0x2f0145,
+ 0x22e7c6,
+ 0x366086,
+ 0x377e87,
+ 0x22ce84,
+ 0x2100c5,
+ 0x27a1c4,
+ 0x2e8407,
+ 0x27a408,
+ 0x27afca,
+ 0x283807,
+ 0x2ac947,
+ 0x30cd87,
+ 0x2e2709,
+ 0x299e4a,
+ 0x22c603,
+ 0x22cd85,
+ 0x213483,
+ 0x2b7809,
+ 0x3586c8,
+ 0x31c307,
+ 0x397409,
+ 0x220786,
+ 0x3296c8,
+ 0x3a3705,
+ 0x2517ca,
+ 0x328a49,
+ 0x24be09,
+ 0x3a1c47,
+ 0x3cfa89,
+ 0x213348,
+ 0x32f686,
+ 0x21b9c8,
+ 0x3c3e47,
+ 0x26e1c7,
+ 0x2a3547,
+ 0x2db108,
+ 0x2ff646,
+ 0x2936c5,
+ 0x27ef87,
+ 0x29a5c8,
+ 0x34af44,
+ 0x2cf0c4,
+ 0x294907,
+ 0x2b11c7,
+ 0x3026ca,
+ 0x32f606,
+ 0x37b28a,
+ 0x2c1f87,
+ 0x2bf507,
+ 0x210184,
+ 0x29cf84,
+ 0x2d2c86,
+ 0x3386c4,
+ 0x3386cc,
+ 0x302585,
+ 0x213fc9,
+ 0x23d0c4,
+ 0x2b6e05,
+ 0x3c6108,
+ 0x293f45,
+ 0x393146,
+ 0x294444,
+ 0x2ae3ca,
+ 0x31bfc6,
+ 0x24080a,
+ 0x32bac7,
+ 0x228985,
+ 0x22b885,
+ 0x24258a,
+ 0x339c05,
+ 0x2454c6,
+ 0x241884,
+ 0x2b3e46,
+ 0x31fb45,
+ 0x28df86,
+ 0x2f1d8c,
+ 0x2d9bca,
+ 0x253744,
+ 0x231f06,
+ 0x29f587,
+ 0x2d59c4,
+ 0x23c508,
+ 0x2e5046,
+ 0x385309,
+ 0x2cbc49,
+ 0x2b3489,
+ 0x2ce8c6,
+ 0x3c3f46,
+ 0x21bb07,
+ 0x324d48,
+ 0x3c3d49,
+ 0x325607,
+ 0x299106,
+ 0x3b8cc7,
+ 0x26c105,
+ 0x2bf744,
+ 0x21b6c7,
+ 0x2386c5,
+ 0x289c45,
+ 0x200cc7,
+ 0x339a08,
+ 0x3c9646,
+ 0x29b40d,
+ 0x29c88f,
+ 0x2a184d,
+ 0x208904,
+ 0x235f46,
+ 0x2d9f88,
+ 0x36b445,
+ 0x295108,
+ 0x26444a,
+ 0x289f44,
+ 0x2ed986,
+ 0x2d6b87,
+ 0x21af87,
+ 0x2cfa09,
+ 0x21b985,
+ 0x2b6d44,
+ 0x2b938a,
+ 0x2beb49,
+ 0x3cfb87,
+ 0x2eecc6,
+ 0x35cd06,
+ 0x288746,
+ 0x3835c6,
+ 0x2d988f,
+ 0x2d9e49,
+ 0x229c46,
+ 0x38c186,
+ 0x324409,
+ 0x2b7607,
+ 0x222b43,
+ 0x23d8c6,
+ 0x2060c3,
+ 0x35a848,
+ 0x2a9d87,
+ 0x2a3989,
+ 0x2eeec8,
+ 0x39cd08,
+ 0x23c006,
+ 0x2110c9,
+ 0x380845,
+ 0x273204,
+ 0x2f3c87,
+ 0x39ef45,
+ 0x208904,
+ 0x2340c8,
+ 0x20f2c4,
+ 0x2b7347,
+ 0x343646,
+ 0x281685,
+ 0x2c40c8,
+ 0x35cbcb,
+ 0x308a87,
+ 0x242806,
+ 0x2c9e44,
+ 0x326386,
+ 0x269dc5,
+ 0x2386c5,
+ 0x282909,
+ 0x285a09,
+ 0x26e204,
+ 0x26e245,
+ 0x231f45,
+ 0x251646,
+ 0x308688,
+ 0x2c1086,
+ 0x3dce4b,
+ 0x388c0a,
+ 0x2be105,
+ 0x290386,
+ 0x25cb45,
+ 0x2e1fc5,
+ 0x296ac7,
+ 0x327f08,
+ 0x265a84,
+ 0x264046,
+ 0x293f06,
+ 0x213507,
+ 0x316f84,
+ 0x280606,
+ 0x3ba7c5,
+ 0x3ba7c9,
+ 0x20d344,
+ 0x2f7249,
+ 0x27d546,
+ 0x2c3848,
+ 0x231f45,
+ 0x385585,
+ 0x28df86,
+ 0x2b5249,
+ 0x219049,
+ 0x38cec6,
+ 0x2e6b48,
+ 0x2a4d48,
+ 0x25cb04,
+ 0x2b9c44,
+ 0x2b9c48,
+ 0x32c488,
+ 0x265b89,
+ 0x29b206,
+ 0x2a2fc6,
+ 0x33cc0d,
+ 0x3dafc6,
+ 0x2b8ac9,
+ 0x3bb285,
+ 0x206106,
+ 0x209d88,
+ 0x336245,
+ 0x238544,
+ 0x269dc5,
+ 0x285548,
+ 0x29da49,
+ 0x27a284,
+ 0x2bb5c6,
+ 0x39104a,
+ 0x2ffbc8,
+ 0x302849,
+ 0x26ad8a,
+ 0x397386,
+ 0x29ca48,
+ 0x244d45,
+ 0x28fd08,
+ 0x2f01c5,
+ 0x220649,
+ 0x33ef89,
+ 0x210642,
+ 0x272c85,
+ 0x273a46,
+ 0x27d487,
+ 0x245a85,
+ 0x2f6146,
+ 0x30c0c8,
+ 0x371086,
+ 0x2c15c9,
+ 0x27c3c6,
+ 0x284b48,
+ 0x38d285,
+ 0x2fe046,
+ 0x330248,
+ 0x2849c8,
+ 0x2d3c88,
+ 0x30e488,
+ 0x208bc4,
+ 0x23b083,
+ 0x2c1804,
+ 0x283a06,
+ 0x26c144,
+ 0x310bc7,
+ 0x2d3f49,
+ 0x2c8c85,
+ 0x2e21c6,
+ 0x23d8c6,
+ 0x2a888b,
+ 0x2b67c6,
+ 0x363746,
+ 0x2cc7c8,
+ 0x23d386,
+ 0x228783,
+ 0x2077c3,
+ 0x2bf744,
+ 0x231885,
+ 0x2ba987,
+ 0x27a408,
+ 0x27a40f,
+ 0x27ee8b,
+ 0x308488,
+ 0x2bb646,
+ 0x30878e,
+ 0x232ac3,
+ 0x2ba904,
+ 0x2b6745,
+ 0x2b6bc6,
+ 0x29154b,
+ 0x296286,
+ 0x21c449,
+ 0x281685,
+ 0x24fc08,
+ 0x208208,
+ 0x218f0c,
+ 0x2a2886,
+ 0x358206,
+ 0x2e2e05,
+ 0x28a1c8,
+ 0x27dcc5,
+ 0x35bb48,
+ 0x29e64a,
+ 0x2a1c89,
+ 0x727544,
0x2000c2,
- 0x45e02782,
+ 0x46a03102,
0x200382,
- 0x222884,
- 0x2024c2,
- 0x3216c4,
- 0x202642,
- 0x13c3,
+ 0x221b84,
+ 0x205982,
+ 0x346484,
+ 0x208ac2,
+ 0x4783,
0x2003c2,
- 0x202002,
- 0xa14c8,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x205e03,
- 0x206b43,
- 0x23cf83,
- 0x24ce83,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x222884,
- 0x206b43,
- 0x23cf83,
- 0x240b03,
- 0x241844,
- 0x22d7c3,
- 0x236204,
- 0x233743,
- 0x2dd2c4,
- 0x220583,
- 0x2449c7,
- 0x205e03,
- 0x2013c3,
- 0x2fb908,
- 0x23cf83,
- 0x27ee0b,
- 0x2f7043,
- 0x239606,
- 0x21be02,
- 0x2f060b,
- 0x233743,
- 0x220583,
- 0x206b43,
- 0x23cf83,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x23cf83,
- 0x206a03,
- 0x217583,
+ 0x202442,
+ 0xa7c88,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x211d83,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x24af03,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x221b84,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x232d43,
+ 0x250784,
+ 0x22f743,
+ 0x2375c4,
+ 0x234e83,
+ 0x2dbb04,
+ 0x224943,
+ 0x245d47,
+ 0x211d83,
+ 0x204783,
+ 0x314d88,
+ 0x23f7c3,
+ 0x29248b,
+ 0x2f0fc3,
+ 0x22a7c6,
+ 0x21a602,
+ 0x2eaa8b,
+ 0x234e83,
+ 0x224943,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x23f7c3,
+ 0x203a83,
+ 0x207cc3,
0x2000c2,
- 0xa14c8,
- 0x216685,
- 0x237388,
- 0x300ec8,
- 0x202782,
- 0x32ee85,
- 0x3b4687,
- 0x201242,
- 0x2421c7,
+ 0xa7c88,
+ 0x217285,
+ 0x238748,
+ 0x2f9448,
+ 0x203102,
+ 0x342585,
+ 0x3b8e07,
+ 0x201bc2,
+ 0x243307,
0x200382,
- 0x25d047,
- 0x308789,
- 0x2c99c8,
- 0x205009,
- 0x20b2c2,
- 0x3c7e87,
- 0x36b004,
- 0x3b4747,
- 0x383b47,
- 0x25d602,
- 0x205e03,
- 0x200e82,
- 0x202642,
+ 0x256d07,
+ 0x375509,
+ 0x2c93c8,
+ 0x209a89,
+ 0x20ba42,
+ 0x3bb387,
+ 0x2dc944,
+ 0x3b8ec7,
+ 0x388b07,
+ 0x25bd02,
+ 0x211d83,
+ 0x204fc2,
+ 0x208ac2,
0x2003c2,
- 0x202142,
+ 0x204ac2,
0x200902,
- 0x202002,
- 0x2abec5,
- 0x2a9785,
- 0x2782,
- 0x33743,
- 0x22d7c3,
- 0x233743,
- 0x2053c3,
- 0x220583,
- 0x209a03,
- 0x206b43,
- 0x23cf83,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x206b43,
- 0x23cf83,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x205e03,
- 0x206b43,
- 0x6df83,
- 0x23cf83,
- 0xaec3,
+ 0x202442,
+ 0x20a745,
+ 0x20f805,
+ 0x3102,
+ 0x34e83,
+ 0x22f743,
+ 0x234e83,
+ 0x211343,
+ 0x224943,
+ 0x2083c3,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x211d83,
+ 0x20ce83,
+ 0x71003,
+ 0x23f7c3,
+ 0x8d43,
0x101,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x222884,
- 0x219e43,
- 0x206b43,
- 0x6df83,
- 0x23cf83,
- 0x214703,
- 0x490726c6,
- 0x45dc3,
- 0xca685,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x206b43,
- 0x23cf83,
- 0x202782,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x206b43,
- 0x6df83,
- 0x23cf83,
- 0x6942,
- 0xa14c8,
- 0x12bd03,
- 0x13c3,
- 0x6df83,
- 0x47984,
- 0x1421d04,
- 0xe7b05,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x221b84,
+ 0x214503,
+ 0x20ce83,
+ 0x71003,
+ 0x23f7c3,
+ 0x2158c3,
+ 0x49c27bc6,
+ 0x3c8c3,
+ 0xca085,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x203102,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x20ce83,
+ 0x71003,
+ 0x23f7c3,
+ 0x39c2,
+ 0xa7c88,
+ 0x123fc3,
+ 0x4783,
+ 0x71003,
+ 0x46cc4,
+ 0x1421004,
+ 0xe29c5,
0x2000c2,
- 0x391904,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x23d9c3,
- 0x22e1c5,
- 0x219e43,
- 0x214903,
- 0x206b43,
- 0x251ac3,
- 0x23cf83,
- 0x202003,
- 0x2418c3,
- 0x207b83,
+ 0x395904,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x250483,
+ 0x230145,
+ 0x214503,
+ 0x20e943,
+ 0x20ce83,
+ 0x22c483,
+ 0x23f7c3,
+ 0x202443,
+ 0x250803,
+ 0x2050c3,
0x5c2,
- 0x2ebc2,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x206b43,
- 0x23cf83,
+ 0x28002,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x20ce83,
+ 0x23f7c3,
0x2000c2,
- 0x24ce83,
- 0x202782,
- 0x233743,
- 0x220583,
- 0x222884,
- 0x206b43,
- 0x23cf83,
- 0x202002,
- 0xa14c8,
- 0x220583,
- 0x6df83,
- 0xa14c8,
- 0x6df83,
- 0x26f283,
- 0x22d7c3,
- 0x230944,
- 0x233743,
- 0x220583,
- 0x2067c2,
- 0x205e03,
- 0x206b43,
- 0x23cf83,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x2067c2,
- 0x22a243,
- 0x206b43,
- 0x23cf83,
- 0x2ef083,
- 0x202003,
+ 0x24af03,
+ 0x203102,
+ 0x234e83,
+ 0x224943,
+ 0x221b84,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x202442,
+ 0xa7c88,
+ 0x224943,
+ 0x71003,
+ 0xa7c88,
+ 0x71003,
+ 0x271803,
+ 0x22f743,
+ 0x232244,
+ 0x234e83,
+ 0x224943,
+ 0x203842,
+ 0x211d83,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x203842,
+ 0x225a83,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x2e9343,
+ 0x202443,
0x2000c2,
- 0x202782,
- 0x220583,
- 0x206b43,
- 0x23cf83,
- 0x239605,
- 0x11a406,
- 0x241844,
- 0x21be02,
- 0xa14c8,
+ 0x203102,
+ 0x224943,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x22a7c5,
+ 0x112406,
+ 0x250784,
+ 0x21a602,
+ 0xa7c88,
0x2000c2,
- 0x12dac5,
- 0x1cb48,
- 0x161c03,
- 0x202782,
- 0x4d8947c6,
- 0xe184,
- 0x10cd0b,
- 0x35246,
- 0x5f07,
- 0x233743,
- 0x4c108,
- 0x4c10b,
- 0x4c58b,
- 0x4cc0b,
- 0x4cf4b,
- 0x4d20b,
- 0x4d64b,
- 0x9d86,
- 0x220583,
- 0x1b8e85,
- 0x131844,
- 0x218dc3,
- 0x118c87,
- 0xe1284,
- 0x6d0c4,
- 0x206b43,
- 0x6bfc6,
- 0xb2bc4,
- 0x6df83,
- 0x23cf83,
- 0x2f7dc4,
- 0x12d947,
- 0x11a009,
- 0x10cac8,
- 0x14a504,
- 0xec046,
- 0x140fc8,
- 0x141185,
- 0x1da6c9,
- 0x2fe03,
- 0x12dac5,
- 0x202782,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x205e03,
- 0x2013c3,
- 0x23cf83,
- 0x2f7043,
- 0x21be02,
- 0xa14c8,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x219c83,
- 0x205184,
- 0x206b43,
- 0x13c3,
- 0x23cf83,
- 0x22d7c3,
- 0x233743,
- 0x2dd2c4,
- 0x220583,
- 0x206b43,
- 0x23cf83,
- 0x239606,
- 0x233743,
- 0x220583,
- 0x3d443,
- 0x6df83,
- 0x23cf83,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x206b43,
- 0x23cf83,
- 0x12dac5,
- 0x5f07,
- 0xe9c3,
- 0x2fe03,
- 0xa14c8,
- 0x220583,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x89003,
- 0x206b43,
- 0x23cf83,
- 0x50e2d7c3,
- 0x233743,
- 0x206b43,
- 0x23cf83,
- 0xa14c8,
+ 0x129245,
+ 0x1cb88,
+ 0x133c43,
+ 0x203102,
+ 0x4e495d86,
+ 0xc284,
+ 0x10404b,
+ 0x369c6,
+ 0x11e87,
+ 0x234e83,
+ 0x4a308,
+ 0x4a30b,
+ 0x4a78b,
+ 0x4ac8b,
+ 0x4afcb,
+ 0x4b28b,
+ 0x4b6cb,
+ 0x1c6986,
+ 0x224943,
+ 0x34c5,
+ 0x128c44,
+ 0x20ff83,
+ 0x10e2c7,
+ 0xdf604,
+ 0x70144,
+ 0x20ce83,
+ 0x18cfc6,
+ 0xb40c4,
+ 0x71003,
+ 0x23f7c3,
+ 0x2f2484,
+ 0x125c07,
+ 0x112009,
+ 0x103e08,
+ 0x127304,
+ 0xfd986,
+ 0x7608,
+ 0x68c45,
+ 0x7909,
+ 0x31e43,
+ 0x129245,
+ 0x203102,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x211d83,
+ 0x204783,
+ 0x23f7c3,
+ 0x2f0fc3,
+ 0x21a602,
+ 0xa7c88,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x214343,
+ 0x209c04,
+ 0x20ce83,
+ 0x4783,
+ 0x23f7c3,
+ 0x22f743,
+ 0x234e83,
+ 0x2dbb04,
+ 0x224943,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x22a7c6,
+ 0x234e83,
+ 0x224943,
+ 0x3fc83,
+ 0x71003,
+ 0x23f7c3,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x129245,
+ 0x11e87,
+ 0x4b83,
+ 0x31e43,
+ 0xa7c88,
+ 0x224943,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x5ee03,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x51a2f743,
+ 0x234e83,
+ 0x20ce83,
+ 0x23f7c3,
+ 0xa7c88,
0x2000c2,
- 0x202782,
- 0x22d7c3,
- 0x220583,
- 0x206b43,
+ 0x203102,
+ 0x22f743,
+ 0x224943,
+ 0x20ce83,
0x2003c2,
- 0x23cf83,
- 0x33dd07,
- 0x2c67cb,
- 0x2165c3,
- 0x31ec48,
- 0x32c807,
- 0x20f286,
- 0x215b85,
- 0x32efc9,
- 0x205b88,
- 0x37ab89,
- 0x3a5d10,
- 0x37ab8b,
- 0x2e1d89,
- 0x20e9c3,
- 0x2f0cc9,
- 0x232006,
- 0x23200c,
- 0x216748,
- 0x3d8588,
- 0x308c49,
- 0x2b948e,
- 0x30854b,
- 0x336d4c,
- 0x20a683,
- 0x2802cc,
- 0x3c6089,
- 0x306487,
- 0x23368c,
- 0x2b0cca,
- 0x24ec04,
- 0x305a8d,
- 0x280188,
- 0x3c544d,
- 0x287b86,
- 0x24184b,
- 0x31a189,
- 0x388487,
- 0x372586,
- 0x274c09,
- 0x327eca,
- 0x3243c8,
- 0x2f6c44,
- 0x38dc07,
- 0x231447,
- 0x201c84,
- 0x217444,
- 0x200ac9,
- 0x371bc9,
- 0x28da08,
- 0x20ab05,
- 0x20b205,
- 0x3dc286,
- 0x305949,
- 0x27368d,
- 0x2fdbc8,
- 0x3dc187,
- 0x215c08,
- 0x250a06,
- 0x22e3c4,
- 0x2850c5,
- 0x3c1a46,
- 0x3c33c4,
- 0x3c5f87,
- 0x3d10ca,
- 0x20c184,
- 0x211146,
- 0x212109,
- 0x21210f,
- 0x212e0d,
- 0x2136c6,
- 0x21c750,
- 0x21cb46,
- 0x21d247,
- 0x21da87,
- 0x21da8f,
- 0x21ec49,
- 0x224a46,
- 0x225087,
- 0x225088,
- 0x225e89,
- 0x3d2008,
- 0x2ece07,
- 0x216683,
- 0x22d646,
- 0x3c3ac8,
- 0x2b974a,
- 0x3785c9,
- 0x205cc3,
- 0x32ed86,
- 0x265b0a,
- 0x2f2087,
- 0x3062ca,
- 0x21f60e,
- 0x21ed86,
- 0x2df347,
- 0x2aa086,
- 0x242d46,
- 0x396d8b,
- 0x21608a,
- 0x2c6e0d,
- 0x3c1e07,
- 0x268908,
- 0x268909,
- 0x26890f,
- 0x2b6ecc,
- 0x2729c9,
- 0x2e454e,
- 0x244aca,
- 0x2d5a86,
- 0x3d9b86,
- 0x3264cc,
- 0x33934c,
- 0x34b0c8,
- 0x36a8c7,
- 0x235905,
- 0x294b44,
- 0x20278e,
- 0x2663c4,
- 0x329007,
- 0x3d6d0a,
- 0x22c794,
- 0x22d08f,
- 0x21dc48,
- 0x22d508,
- 0x351a8d,
- 0x351a8e,
- 0x22d989,
- 0x22e808,
- 0x22e80f,
- 0x23338c,
- 0x23338f,
- 0x234507,
- 0x236b0a,
- 0x24748b,
- 0x239c48,
- 0x23ac47,
- 0x26014d,
- 0x336146,
- 0x305c46,
- 0x23c949,
- 0x25b608,
- 0x242b48,
- 0x242b4e,
- 0x2c68c7,
- 0x2fc1c5,
- 0x247745,
- 0x200f04,
- 0x20f546,
- 0x28d908,
- 0x30ae43,
- 0x2cb98e,
- 0x260508,
- 0x2a688b,
- 0x26f447,
- 0x22a2c5,
- 0x26ec06,
- 0x2ad3c7,
- 0x347a08,
- 0x38ca49,
- 0x3cee45,
- 0x289488,
- 0x221746,
- 0x3a7a4a,
- 0x202689,
- 0x233749,
- 0x23374b,
- 0x30a308,
- 0x201b49,
- 0x20abc6,
- 0x24998a,
- 0x35660a,
- 0x236d0c,
- 0x335f07,
- 0x2c97ca,
- 0x346ecb,
- 0x346ed9,
- 0x32ab08,
- 0x239685,
- 0x260306,
- 0x26aec9,
- 0x2c9ec6,
- 0x378d0a,
- 0x205d86,
- 0x202404,
- 0x2cc70d,
- 0x202407,
- 0x221b09,
- 0x24adc5,
- 0x24b648,
- 0x24bec9,
+ 0x23f7c3,
+ 0x33f4c7,
+ 0x2c5d4b,
+ 0x2171c3,
+ 0x315dc8,
+ 0x324ac7,
+ 0x206686,
+ 0x213a45,
+ 0x3426c9,
+ 0x211b08,
+ 0x37e609,
+ 0x3a5f50,
+ 0x37e60b,
+ 0x2e3949,
+ 0x204b83,
+ 0x2eb149,
+ 0x233646,
+ 0x23364c,
+ 0x217348,
+ 0x3d7e08,
+ 0x3759c9,
+ 0x2b828e,
+ 0x3752cb,
+ 0x32cecc,
+ 0x21c183,
+ 0x28764c,
+ 0x3c7709,
+ 0x302187,
+ 0x234dcc,
+ 0x2b238a,
+ 0x23d544,
+ 0x3b27cd,
+ 0x287508,
+ 0x35460d,
+ 0x30d5c6,
+ 0x25078b,
+ 0x312189,
+ 0x38c407,
+ 0x2fb986,
+ 0x3be009,
+ 0x32a88a,
+ 0x31a548,
+ 0x2f0bc4,
+ 0x391e47,
+ 0x23b747,
+ 0x330ac4,
+ 0x215dc4,
+ 0x331609,
+ 0x268309,
+ 0x28dc48,
+ 0x2ed2c5,
+ 0x20b985,
+ 0x2045c6,
+ 0x3b2689,
+ 0x2646cd,
+ 0x2f8208,
+ 0x2044c7,
+ 0x213ac8,
+ 0x23ae06,
+ 0x3a1344,
+ 0x284505,
+ 0x3c3c46,
+ 0x3c4d44,
+ 0x3c7607,
+ 0x3d030a,
+ 0x20d144,
+ 0x20eec6,
+ 0x212fc9,
+ 0x212fcf,
+ 0x213ccd,
+ 0x214886,
+ 0x21c790,
+ 0x21cb86,
+ 0x21d287,
+ 0x21e347,
+ 0x21e34f,
+ 0x21f549,
+ 0x223f06,
+ 0x224f07,
+ 0x224f08,
+ 0x226e89,
+ 0x3b9c48,
+ 0x3ac987,
+ 0x217283,
+ 0x22f5c6,
+ 0x3c5448,
+ 0x2b854a,
+ 0x387589,
+ 0x211c43,
+ 0x342486,
+ 0x263e8a,
+ 0x2ec387,
+ 0x301fca,
+ 0x366ece,
+ 0x21f686,
+ 0x30f8c7,
+ 0x22d3c6,
+ 0x243e86,
+ 0x39ad8b,
+ 0x216c8a,
+ 0x2c638d,
+ 0x3c4007,
+ 0x267788,
+ 0x267789,
+ 0x26778f,
+ 0x2ab00c,
+ 0x269509,
+ 0x2d368e,
+ 0x245e4a,
+ 0x228e06,
+ 0x3009c6,
+ 0x31b40c,
+ 0x31dc0c,
+ 0x337a48,
+ 0x35f9c7,
+ 0x237085,
+ 0x22adc4,
+ 0x32fa8e,
+ 0x264b44,
+ 0x320907,
+ 0x3d5d8a,
+ 0x22de54,
+ 0x22f00f,
+ 0x21e508,
+ 0x22f488,
+ 0x36174d,
+ 0x36174e,
+ 0x22f909,
+ 0x2309c8,
+ 0x2309cf,
+ 0x234acc,
+ 0x234acf,
+ 0x235c87,
+ 0x237eca,
+ 0x2467cb,
+ 0x2392c8,
+ 0x23b187,
+ 0x25e68d,
+ 0x32d486,
+ 0x3b2986,
+ 0x23e9c9,
+ 0x259788,
+ 0x243c88,
+ 0x243c8e,
+ 0x2c5e47,
+ 0x2f6645,
+ 0x246a85,
+ 0x20a544,
+ 0x206946,
+ 0x28db48,
+ 0x332f43,
+ 0x2f190e,
+ 0x25ea48,
+ 0x2a5ccb,
+ 0x2719c7,
+ 0x225b05,
+ 0x2877c6,
+ 0x2aeb87,
+ 0x3139c8,
+ 0x268a49,
+ 0x3cbc05,
+ 0x288d08,
+ 0x217b46,
+ 0x3a79ca,
+ 0x32f989,
+ 0x234e89,
+ 0x234e8b,
+ 0x33dd48,
+ 0x330989,
+ 0x2ed386,
+ 0x36baca,
+ 0x2b4aca,
+ 0x2380cc,
+ 0x3448c7,
+ 0x2c91ca,
+ 0x34a50b,
+ 0x34a519,
+ 0x323088,
+ 0x22a845,
+ 0x25e846,
+ 0x2167c9,
+ 0x2c98c6,
+ 0x387cca,
+ 0x211d06,
+ 0x2227c4,
+ 0x2cb1cd,
+ 0x331247,
+ 0x2227c9,
+ 0x249845,
+ 0x249a88,
+ 0x24a0c9,
+ 0x24bd44,
+ 0x24c9c7,
+ 0x24c9c8,
+ 0x24db87,
+ 0x266708,
+ 0x2529c7,
+ 0x338285,
+ 0x25928c,
+ 0x259989,
+ 0x2def0a,
+ 0x3ab249,
+ 0x2eb249,
+ 0x38bf4c,
+ 0x25c58b,
+ 0x25dbc8,
+ 0x25ef88,
+ 0x262984,
+ 0x286b48,
+ 0x287dc9,
+ 0x2b2447,
+ 0x213206,
+ 0x29fd87,
+ 0x291009,
+ 0x31f6cb,
+ 0x326207,
+ 0x390347,
+ 0x32bc07,
+ 0x354584,
+ 0x354585,
+ 0x2db805,
+ 0x3577cb,
+ 0x3b7bc4,
+ 0x34fa88,
+ 0x2f478a,
+ 0x217c07,
+ 0x3d7a47,
+ 0x290852,
+ 0x292a46,
+ 0x231b06,
+ 0x31fe4e,
+ 0x293286,
+ 0x2967c8,
+ 0x296e0f,
+ 0x3549c8,
+ 0x39b9c8,
+ 0x343b4a,
+ 0x343b51,
+ 0x2a48ce,
+ 0x20228a,
+ 0x20228c,
+ 0x230bc7,
+ 0x230bd0,
+ 0x3c1a48,
+ 0x2a4ac5,
+ 0x2af8ca,
+ 0x3c4d8c,
+ 0x29944d,
+ 0x3c1cc6,
+ 0x3c1cc7,
+ 0x3c1ccc,
+ 0x3ced4c,
+ 0x31540c,
+ 0x2b028b,
+ 0x38f704,
+ 0x22d944,
+ 0x2b1c49,
+ 0x341647,
+ 0x39ff49,
+ 0x2b4909,
+ 0x2b2047,
+ 0x2b2206,
+ 0x2b2209,
+ 0x2b2603,
+ 0x37118a,
+ 0x316987,
+ 0x36c5cb,
+ 0x2c620a,
+ 0x2dc9c4,
+ 0x37c586,
+ 0x283a89,
+ 0x338544,
+ 0x2f630a,
+ 0x242b05,
+ 0x2bfe85,
+ 0x2bfe8d,
+ 0x2c01ce,
+ 0x2c1945,
+ 0x33e186,
+ 0x22a3c7,
+ 0x25950a,
+ 0x2dafc6,
+ 0x2e8fc4,
+ 0x3b2b47,
+ 0x2cd98b,
+ 0x266407,
0x24e444,
- 0x24eb07,
- 0x24eb08,
- 0x24fcc7,
- 0x267e88,
- 0x254907,
- 0x39fd05,
- 0x25b10c,
- 0x25b809,
- 0x2e0b8a,
- 0x3aacc9,
- 0x2f0dc9,
- 0x387fcc,
- 0x25de8b,
- 0x25f048,
- 0x260908,
- 0x264044,
- 0x2872c8,
- 0x288c09,
- 0x2b0d87,
- 0x212346,
- 0x29cfc7,
- 0x29b1c9,
- 0x3cbb0b,
- 0x327b87,
- 0x38b307,
- 0x28e147,
- 0x3c53c4,
- 0x3c53c5,
- 0x2dcfc5,
- 0x354a0b,
- 0x3b6784,
- 0x3a1308,
- 0x2cb60a,
- 0x221807,
- 0x3d81c7,
- 0x290a92,
- 0x28c186,
- 0x22fac6,
- 0x37f0ce,
- 0x317f46,
- 0x295548,
- 0x295b8f,
- 0x3c5808,
- 0x3979c8,
- 0x342b4a,
- 0x342b51,
- 0x2a46ce,
- 0x20434a,
- 0x20434c,
- 0x22ea07,
- 0x22ea10,
- 0x3bf148,
- 0x2a48c5,
- 0x2ad9ca,
- 0x3c340c,
- 0x297c0d,
- 0x209a06,
- 0x3c8207,
- 0x3c820c,
- 0x209a0c,
- 0x21c44c,
- 0x2af28b,
- 0x38a844,
- 0x226704,
- 0x2b0589,
- 0x37af87,
- 0x39c749,
- 0x356449,
- 0x2b0987,
- 0x2b0b46,
- 0x2b0b49,
- 0x2b0f43,
- 0x2add0a,
- 0x31f807,
- 0x372e0b,
- 0x2c6c8a,
- 0x36b084,
- 0x3997c6,
- 0x284649,
- 0x39ffc4,
- 0x2f378a,
- 0x241385,
- 0x2c03c5,
- 0x2c03cd,
- 0x2c070e,
- 0x2bc4c5,
- 0x33c9c6,
- 0x239207,
- 0x25b38a,
- 0x2666c6,
- 0x2ee984,
- 0x305e07,
- 0x2d934b,
- 0x267b87,
- 0x2503c4,
- 0x2b1a46,
- 0x2b1a4d,
- 0x2dfc0c,
- 0x212a06,
- 0x2fddca,
- 0x2a9b06,
- 0x2f7888,
- 0x23aa87,
- 0x24b30a,
- 0x249bc6,
- 0x2066c3,
- 0x2066c6,
- 0x3c3948,
- 0x2b070a,
- 0x287887,
- 0x287888,
- 0x2d4344,
- 0x291007,
- 0x2d87c8,
- 0x29f788,
- 0x292348,
- 0x2d198a,
- 0x2e43c5,
- 0x30bc87,
- 0x3a8e13,
- 0x2588c6,
- 0x21a048,
- 0x222049,
- 0x242088,
- 0x36198b,
- 0x3baf48,
- 0x26a304,
- 0x358686,
- 0x322146,
- 0x319089,
- 0x3d8747,
- 0x25b208,
- 0x29f906,
- 0x2f9d44,
- 0x3a4dc5,
- 0x2d00c8,
- 0x203e4a,
- 0x2cc388,
- 0x2d1406,
- 0x29c1ca,
- 0x2b6a48,
- 0x2d7848,
- 0x2d8dc8,
- 0x2d9886,
- 0x2dbf06,
- 0x3aa78c,
- 0x2dc3d0,
- 0x2a6345,
- 0x31dfc8,
- 0x31dfd0,
- 0x3c5610,
- 0x3a5b8e,
- 0x3aa40e,
- 0x3aa414,
- 0x3b008f,
- 0x3b0446,
- 0x204211,
- 0x201d53,
- 0x2021c8,
- 0x360c45,
- 0x31f188,
- 0x37e385,
- 0x33304c,
- 0x227989,
- 0x294989,
- 0x227e07,
- 0x235fc9,
- 0x3788c7,
- 0x35b4c6,
- 0x284ec7,
- 0x2075c5,
- 0x20af03,
- 0x30b009,
- 0x24c8c9,
- 0x23d443,
- 0x2192c4,
- 0x21ff8d,
- 0x38ce0f,
- 0x2f9d85,
- 0x332f46,
- 0x217c47,
- 0x2164c7,
- 0x3da906,
- 0x3da90b,
- 0x2a5d05,
- 0x25c706,
- 0x303647,
- 0x254e09,
- 0x224446,
- 0x384245,
- 0x3cc78b,
- 0x3b5086,
- 0x3c7a05,
- 0x23da48,
- 0x28bf48,
- 0x2a100c,
- 0x2a1010,
- 0x2a7a49,
- 0x2b1e87,
- 0x324c8b,
- 0x2eb106,
- 0x2eccca,
- 0x206a8b,
- 0x2ee08a,
- 0x2ee306,
- 0x2eef45,
- 0x32c706,
- 0x27ae08,
- 0x227eca,
- 0x35171c,
- 0x2f710c,
- 0x2f7408,
- 0x239605,
- 0x38a147,
- 0x21f4c6,
- 0x3494c5,
- 0x215f46,
- 0x3daac8,
- 0x2bf387,
- 0x2b9388,
- 0x25898a,
- 0x217d4c,
- 0x2c7289,
- 0x20a587,
- 0x246984,
- 0x247806,
- 0x39754a,
- 0x356545,
- 0x2170cc,
- 0x21bf48,
- 0x2aa388,
- 0x2d49cc,
- 0x3587cc,
- 0x36abc9,
- 0x36ae07,
- 0x24a14c,
- 0x228184,
- 0x24a60a,
- 0x314a4c,
- 0x25690b,
- 0x256f8b,
- 0x259b06,
- 0x25ee87,
- 0x22ec47,
- 0x22ec4f,
- 0x307851,
- 0x2e2e12,
- 0x2641cd,
- 0x2641ce,
- 0x26450e,
- 0x3b0248,
- 0x3b0252,
- 0x269ac8,
- 0x222687,
- 0x2528ca,
- 0x2a8108,
- 0x317f05,
- 0x2b4b4a,
- 0x21cec7,
- 0x2e8684,
- 0x203843,
- 0x236745,
- 0x342dc7,
- 0x34e287,
- 0x297e0e,
- 0x31d5cd,
- 0x326a89,
- 0x255c85,
- 0x352a03,
- 0x337986,
- 0x25cd05,
- 0x2a6ac8,
- 0x2bcf89,
- 0x260345,
- 0x26034f,
- 0x2dadc7,
- 0x215a05,
- 0x26fe0a,
- 0x3bf6c6,
- 0x2f9889,
- 0x37b50c,
- 0x3bcfc9,
- 0x3d1b06,
- 0x2cb40c,
- 0x33b8c6,
- 0x304fc8,
- 0x305fc6,
- 0x33f806,
- 0x2b5644,
- 0x31ddc3,
- 0x32358a,
- 0x28e451,
- 0x2818ca,
- 0x27d185,
- 0x355ac7,
- 0x258d07,
- 0x2d88c4,
- 0x2d88cb,
- 0x204e88,
- 0x2be3c6,
- 0x2326c5,
- 0x32a284,
- 0x243089,
+ 0x310fc6,
+ 0x310fcd,
+ 0x2ddfcc,
+ 0x20cd46,
+ 0x2f840a,
+ 0x26ce06,
+ 0x230448,
+ 0x380b87,
+ 0x2bd50a,
+ 0x23ef46,
+ 0x203743,
+ 0x203746,
+ 0x3c52c8,
+ 0x2b1dca,
+ 0x287107,
+ 0x287108,
+ 0x2d3344,
+ 0x28fe87,
+ 0x2d6748,
+ 0x29bcc8,
+ 0x272788,
+ 0x2d1cca,
+ 0x2e1985,
+ 0x2e1c07,
+ 0x2566d3,
+ 0x26b306,
+ 0x376588,
+ 0x221349,
+ 0x2431c8,
+ 0x23c08b,
+ 0x39d088,
+ 0x287cc4,
+ 0x3d2b06,
+ 0x319406,
+ 0x30e6c9,
+ 0x3d7fc7,
+ 0x259388,
+ 0x29be46,
+ 0x200bc4,
+ 0x3a5005,
+ 0x2cef08,
+ 0x201d8a,
+ 0x2cae48,
+ 0x2d0246,
+ 0x29cc4a,
+ 0x28e8c8,
+ 0x2d57c8,
+ 0x2d6d48,
+ 0x2d7546,
+ 0x2da186,
+ 0x3aad0c,
+ 0x2da650,
+ 0x2a2c05,
+ 0x3547c8,
+ 0x3b48d0,
+ 0x3547d0,
+ 0x3a5dce,
+ 0x3aa98e,
+ 0x3aa994,
+ 0x3b164f,
+ 0x3b1a06,
+ 0x202151,
+ 0x330b93,
+ 0x331008,
+ 0x32efc5,
+ 0x316308,
+ 0x383a45,
+ 0x33580c,
+ 0x295f49,
+ 0x22ac09,
+ 0x2fa547,
+ 0x265e49,
+ 0x387887,
+ 0x35cfc6,
+ 0x284307,
+ 0x204005,
+ 0x208d83,
+ 0x23fc83,
+ 0x210484,
+ 0x34290d,
+ 0x34944f,
+ 0x200c05,
+ 0x335706,
+ 0x212b07,
+ 0x2170c7,
+ 0x207b46,
+ 0x207b4b,
+ 0x2a5705,
+ 0x25af46,
+ 0x300847,
+ 0x252ec9,
+ 0x21fcc6,
+ 0x389205,
+ 0x36820b,
+ 0x3a8f06,
+ 0x207f45,
+ 0x241d88,
+ 0x292808,
+ 0x2a77cc,
+ 0x2a77d0,
+ 0x3524c9,
+ 0x2b2b47,
+ 0x34e14b,
+ 0x2e59c6,
+ 0x3ac84a,
+ 0x306a4b,
+ 0x2e85ca,
+ 0x2e8846,
+ 0x2e9205,
+ 0x3249c6,
+ 0x27c588,
+ 0x2fa60a,
+ 0x3613dc,
+ 0x2f108c,
+ 0x2f1388,
+ 0x22a7c5,
+ 0x38ef47,
+ 0x2b7ec6,
+ 0x367985,
+ 0x216b46,
+ 0x207d08,
+ 0x2bedc7,
+ 0x2b8188,
+ 0x26b3ca,
+ 0x212c0c,
+ 0x3331c9,
+ 0x2e2347,
+ 0x227784,
+ 0x246b46,
+ 0x39b54a,
+ 0x2b4a05,
+ 0x215a4c,
+ 0x219408,
+ 0x28eb48,
+ 0x227d4c,
+ 0x3d2c4c,
+ 0x2dc509,
+ 0x2dc747,
+ 0x35b44c,
+ 0x220284,
+ 0x24baca,
+ 0x309ccc,
+ 0x25204b,
+ 0x25450b,
+ 0x254c06,
+ 0x257c47,
+ 0x230e07,
+ 0x230e0f,
+ 0x303551,
+ 0x2e03d2,
+ 0x25a48d,
+ 0x25a48e,
+ 0x25a7ce,
+ 0x3b1808,
+ 0x3b1812,
+ 0x262b08,
+ 0x221987,
+ 0x250bca,
+ 0x2a86c8,
+ 0x293245,
+ 0x2b5e4a,
+ 0x21cf07,
+ 0x2e6804,
+ 0x201783,
+ 0x237b05,
+ 0x343dc7,
+ 0x306547,
+ 0x29964e,
+ 0x31e1cd,
+ 0x3372c9,
+ 0x248405,
+ 0x356b83,
+ 0x34bf46,
+ 0x25b545,
+ 0x2a5f08,
+ 0x321b09,
+ 0x25e885,
+ 0x25e88f,
+ 0x2d9047,
+ 0x2138c5,
+ 0x27238a,
+ 0x3dc646,
+ 0x2f3f49,
+ 0x38200c,
+ 0x3cbd09,
+ 0x205b86,
+ 0x2f458c,
+ 0x33d6c6,
+ 0x3013c8,
+ 0x301cc6,
+ 0x340fc6,
+ 0x2b6944,
+ 0x315343,
+ 0x318f4a,
+ 0x32bf11,
+ 0x26c5ca,
+ 0x25c9c5,
+ 0x27e1c7,
+ 0x257107,
+ 0x2d6844,
+ 0x2d684b,
+ 0x209908,
+ 0x2bdbc6,
+ 0x233d05,
+ 0x322804,
+ 0x234449,
0x2008c4,
- 0x242987,
- 0x380385,
- 0x380387,
- 0x37f305,
+ 0x243ac7,
+ 0x349b05,
+ 0x349b07,
+ 0x320085,
0x2535c3,
- 0x222548,
- 0x31f38a,
- 0x2166c3,
- 0x2166ca,
- 0x27eb06,
- 0x2600cf,
- 0x3d3489,
- 0x2cb910,
- 0x2fd448,
- 0x2d2049,
- 0x298b07,
- 0x2b19cf,
- 0x393804,
- 0x2dd344,
- 0x21c9c6,
- 0x3ac106,
- 0x2ed80a,
- 0x2574c6,
- 0x394fc7,
- 0x3152c8,
- 0x3154c7,
- 0x316907,
- 0x31820a,
- 0x31720b,
- 0x328805,
- 0x2e2a48,
- 0x21b2c3,
- 0x3ba74c,
- 0x351e0f,
- 0x23570d,
- 0x259307,
- 0x326bc9,
- 0x225547,
- 0x23be88,
- 0x22c98c,
- 0x26a208,
- 0x23d708,
- 0x33290e,
- 0x345b14,
- 0x346024,
- 0x35d98a,
- 0x37b14b,
- 0x378984,
- 0x378989,
- 0x2f1d08,
- 0x2484c5,
- 0x30a94a,
- 0x260747,
- 0x21e744,
- 0x24ce83,
- 0x22d7c3,
- 0x236204,
- 0x233743,
- 0x220583,
- 0x222884,
- 0x219e43,
- 0x205e03,
- 0x2dc3c6,
- 0x205184,
- 0x206b43,
- 0x23cf83,
- 0x213c43,
+ 0x221848,
+ 0x31650a,
+ 0x2172c3,
+ 0x2172ca,
+ 0x279006,
+ 0x25e60f,
+ 0x3d16c9,
+ 0x2f1890,
+ 0x2f7908,
+ 0x2d0749,
+ 0x29a347,
+ 0x310f4f,
+ 0x3977c4,
+ 0x2dbb84,
+ 0x21ca06,
+ 0x3ac686,
+ 0x2e7e8a,
+ 0x250346,
+ 0x398f87,
+ 0x30a7c8,
+ 0x30a9c7,
+ 0x30be87,
+ 0x30d84a,
+ 0x30c78b,
+ 0x32b1c5,
+ 0x2e0008,
+ 0x21b803,
+ 0x3c02cc,
+ 0x361acf,
+ 0x236e8d,
+ 0x257707,
+ 0x337409,
+ 0x22bac7,
+ 0x240b48,
+ 0x22e04c,
+ 0x287bc8,
+ 0x23ba88,
+ 0x328d4e,
+ 0x347494,
+ 0x3479a4,
+ 0x35e78a,
+ 0x37eacb,
+ 0x387944,
+ 0x387949,
+ 0x2eda08,
+ 0x247245,
+ 0x332a4a,
+ 0x291287,
+ 0x21f004,
+ 0x24af03,
+ 0x22f743,
+ 0x2375c4,
+ 0x234e83,
+ 0x224943,
+ 0x221b84,
+ 0x214503,
+ 0x211d83,
+ 0x2da646,
+ 0x209c04,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x214e03,
0x2000c2,
- 0x24ce83,
- 0x202782,
- 0x22d7c3,
- 0x236204,
- 0x233743,
- 0x220583,
- 0x219e43,
- 0x2dc3c6,
- 0x206b43,
- 0x23cf83,
- 0xa14c8,
- 0x22d7c3,
- 0x233743,
- 0x228843,
- 0x206b43,
- 0x6df83,
- 0x23cf83,
- 0xa14c8,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x205e03,
- 0x205184,
- 0x206b43,
- 0x23cf83,
+ 0x24af03,
+ 0x203102,
+ 0x22f743,
+ 0x2375c4,
+ 0x234e83,
+ 0x224943,
+ 0x214503,
+ 0x2da646,
+ 0x20ce83,
+ 0x23f7c3,
+ 0xa7c88,
+ 0x22f743,
+ 0x234e83,
+ 0x20d343,
+ 0x20ce83,
+ 0x71003,
+ 0x23f7c3,
+ 0xa7c88,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x211d83,
+ 0x209c04,
+ 0x20ce83,
+ 0x23f7c3,
0x2000c2,
- 0x24de03,
- 0x202782,
- 0x233743,
- 0x220583,
- 0x205e03,
- 0x206b43,
- 0x23cf83,
- 0x205cc2,
- 0x235d82,
- 0x202782,
- 0x22d7c3,
- 0x206742,
+ 0x24e8c3,
+ 0x203102,
+ 0x234e83,
+ 0x224943,
+ 0x211d83,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x207982,
+ 0x247502,
+ 0x203102,
+ 0x22f743,
+ 0x2037c2,
0x2005c2,
- 0x222884,
- 0x3216c4,
- 0x228d42,
- 0x205184,
+ 0x221b84,
+ 0x346484,
+ 0x2254c2,
+ 0x209c04,
0x2003c2,
- 0x23cf83,
- 0x213c43,
- 0x259b06,
- 0x2195c2,
- 0x207d82,
- 0x223f82,
- 0x5361f043,
- 0x53a04343,
- 0x59646,
- 0x59646,
- 0x241844,
- 0x2013c3,
- 0x8d78a,
- 0x1721cc,
- 0x1dca0c,
- 0xca48d,
- 0x12dac5,
- 0x8cf0c,
- 0x2afc7,
- 0xc946,
- 0x13848,
- 0x1b047,
- 0x20a08,
- 0x18930a,
- 0x1142c7,
- 0x5468d145,
- 0xdee89,
- 0x34f8b,
- 0x17830b,
- 0x1c6408,
- 0x5f89,
- 0x18c58a,
- 0x17598e,
- 0x8f68d,
- 0x1441e8b,
- 0xdfaca,
- 0xe184,
- 0x5c846,
- 0x160308,
- 0x6c648,
- 0x3fbc7,
- 0xbb45,
- 0x19447,
- 0x80b89,
- 0x1a0047,
- 0x18b08,
- 0x29009,
- 0x4aec4,
- 0x4fe45,
- 0x16364e,
- 0x6c2cd,
- 0x5d88,
- 0x54a6e4c6,
- 0x55571a08,
- 0x76248,
- 0x13df10,
- 0x5784c,
- 0x65247,
- 0x66287,
- 0x6a407,
- 0x70c47,
- 0x37482,
- 0x13be07,
- 0x1c1f46,
- 0x1624c,
- 0x198c85,
- 0x1cc607,
- 0xa7906,
- 0xa8549,
- 0xaa8c8,
- 0x373c2,
+ 0x23f7c3,
+ 0x214e03,
+ 0x254c06,
+ 0x210782,
+ 0x204cc2,
+ 0x222082,
+ 0x5421f943,
+ 0x54602283,
+ 0x57a46,
+ 0x57a46,
+ 0x250784,
+ 0x204783,
+ 0x8d9ca,
+ 0x14b54c,
+ 0x18840c,
+ 0xc9e8d,
+ 0x129245,
+ 0x8d14c,
+ 0x26807,
+ 0xd886,
+ 0x14a08,
+ 0x1b587,
+ 0x20048,
+ 0x19458a,
+ 0x109547,
+ 0x5528d385,
+ 0xdd949,
+ 0x3670b,
+ 0x1872cb,
+ 0x1c7a88,
+ 0x11f09,
+ 0x153a4a,
+ 0x17f08e,
+ 0x8f58d,
+ 0x1442fcb,
+ 0xdde8a,
+ 0xc284,
+ 0x5b086,
+ 0x12a3c8,
+ 0x18d648,
+ 0x39dc7,
+ 0xac85,
+ 0x10607,
+ 0x35309,
+ 0x1385c7,
+ 0xfcc8,
+ 0x229c9,
+ 0x48cc4,
+ 0x49945,
+ 0x16388e,
+ 0x18d2cd,
+ 0x11d08,
+ 0x556a1146,
+ 0x561669c8,
+ 0x772c8,
+ 0x13f6d0,
+ 0x5504c,
+ 0x636c7,
+ 0x64a07,
+ 0x6a8c7,
+ 0x73747,
+ 0x4582,
+ 0x113707,
+ 0x16e4c,
+ 0x17ba45,
+ 0x126bc7,
+ 0xa7686,
+ 0xa8c49,
+ 0xac2c8,
+ 0x5dc2,
0x5c2,
- 0x18bb06,
- 0x1c4a0b,
- 0x1c4d06,
- 0x1091c4,
- 0x45647,
- 0xe4e09,
- 0x504c9,
- 0x17f8c8,
- 0x4d442,
- 0x191789,
- 0xc548,
- 0xed64a,
- 0x6d06,
- 0xcea89,
- 0xdfa47,
- 0xe0189,
- 0xe22c8,
- 0xe32c7,
- 0xe4349,
- 0xe9c45,
- 0xe9fd0,
- 0x178f46,
- 0x45585,
- 0x1667c7,
- 0xebccd,
- 0x409c5,
- 0xf0bc6,
- 0xf1407,
- 0xf7dd8,
- 0x1a03c8,
- 0x10ba8a,
- 0x16f82,
- 0x56d4a,
- 0x6ca4d,
- 0x1bc2,
- 0x5bac6,
- 0x51488,
- 0x49f88,
- 0x6d8c9,
- 0x115f88,
- 0x7b54e,
- 0x6db08,
- 0x137987,
- 0x55b08104,
- 0x10ec4d,
- 0x100185,
- 0x109f48,
- 0x1abcc8,
- 0x10f346,
- 0xd2c2,
- 0x53844,
- 0x33d86,
- 0xec046,
- 0xa842,
+ 0x190b46,
+ 0x1a87cb,
+ 0x1a8ac6,
+ 0x175f44,
+ 0x133a87,
+ 0x6d309,
+ 0x53889,
+ 0x120648,
+ 0x4b4c2,
+ 0x195789,
+ 0xd488,
+ 0xe7cca,
+ 0x12eac6,
+ 0xcd7c9,
+ 0xdde07,
+ 0xde549,
+ 0xdf8c8,
+ 0xe0887,
+ 0xe1909,
+ 0xe4485,
+ 0xe4810,
+ 0x1bb506,
+ 0x1339c5,
+ 0x930c7,
+ 0x6d84d,
+ 0x41c85,
+ 0xeb046,
+ 0xeb887,
+ 0xf2498,
+ 0x138948,
+ 0x17638a,
+ 0x129c2,
+ 0x542ca,
+ 0x64e0d,
+ 0x5c82,
+ 0x1c6b46,
+ 0x9d3c8,
+ 0x18fe88,
+ 0x70949,
+ 0x10b488,
+ 0x74e4e,
+ 0x70b88,
+ 0x14bf47,
+ 0x56766904,
+ 0xecd4d,
+ 0xfc9c5,
+ 0x1769c8,
+ 0x1ac248,
+ 0x105546,
+ 0x13602,
+ 0x72d04,
+ 0x64cc6,
+ 0xfd986,
+ 0x56934b0b,
+ 0x8c42,
0x401,
- 0x5ed07,
- 0x117c83,
- 0x54ef8644,
- 0x55296943,
+ 0x5d807,
+ 0x10d203,
+ 0x55af2d04,
+ 0x55e98183,
0xc1,
- 0x11746,
+ 0x1cf0c6,
0xc1,
0x201,
- 0x11746,
- 0x117c83,
- 0x418c3,
- 0x9a544,
- 0x147da45,
- 0x52184,
- 0x65387,
- 0x2782,
- 0x24ec04,
- 0x22d7c3,
- 0x251184,
- 0x222884,
- 0x206b43,
- 0x221f05,
- 0x214703,
- 0x25b583,
- 0x3da885,
- 0x207b83,
- 0xe583,
- 0x56a2d7c3,
- 0x233743,
- 0x4183,
- 0x220583,
+ 0x1cf0c6,
+ 0x10d203,
+ 0x50803,
+ 0x81b84,
+ 0x305c7,
+ 0x50c7,
+ 0x145d285,
+ 0x4ff04,
+ 0x63807,
+ 0x3102,
+ 0x23d544,
+ 0x22f743,
+ 0x24f044,
+ 0x221b84,
+ 0x20ce83,
+ 0x221205,
+ 0x2158c3,
+ 0x259703,
+ 0x207ac5,
+ 0x2050c3,
+ 0x6e83,
+ 0x57a2f743,
+ 0x234e83,
+ 0x4f044,
+ 0x20c3,
+ 0x224943,
0x200181,
- 0x14903,
- 0x205e03,
- 0x3216c4,
- 0x205184,
- 0x206b43,
- 0x23cf83,
- 0x202003,
- 0xa14c8,
+ 0xe943,
+ 0x211d83,
+ 0x346484,
+ 0x209c04,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x202443,
+ 0xa7c88,
0x2000c2,
- 0x24ce83,
- 0x202782,
- 0x22d7c3,
- 0x233743,
- 0x228843,
+ 0x24af03,
+ 0x203102,
+ 0x22f743,
+ 0x234e83,
+ 0x20d343,
0x2005c2,
- 0x222884,
- 0x219e43,
- 0x205e03,
- 0x206b43,
- 0x2013c3,
- 0x23cf83,
- 0x207b83,
- 0xa14c8,
- 0x1213c7,
- 0x2782,
- 0x1a4d45,
- 0x5798f,
- 0xdac46,
- 0x144b148,
- 0x11630e,
- 0x57a0f9c2,
- 0x32bd88,
- 0x310446,
- 0x252306,
- 0x30fdc7,
- 0x57e01cc2,
- 0x583d3308,
- 0x21538a,
- 0x264cc8,
- 0x200b02,
- 0x31f649,
- 0x328847,
- 0x2122c6,
- 0x222289,
- 0x30bdc4,
- 0x20f186,
- 0x2c5bc4,
- 0x2072c4,
- 0x25ab09,
- 0x314786,
- 0x22c345,
- 0x2684c5,
- 0x22df07,
- 0x2c2ac7,
- 0x28c3c4,
- 0x310006,
- 0x2f9045,
- 0x218c85,
- 0x27d245,
- 0x2af587,
- 0x26f285,
- 0x24c349,
- 0x3ccec5,
- 0x347b44,
- 0x266607,
- 0x330b8e,
- 0x360849,
- 0x37ef89,
- 0x335d46,
- 0x23e788,
- 0x24378b,
- 0x367ecc,
- 0x34d746,
- 0x336c07,
- 0x2b2a45,
- 0x21744a,
- 0x28db09,
- 0x203489,
- 0x3d5546,
- 0x303405,
- 0x247ac5,
- 0x34a009,
- 0x27d3cb,
- 0x2e1886,
- 0x350706,
- 0x202c44,
- 0x290746,
- 0x2fc248,
- 0x3b7506,
- 0x357086,
- 0x3c6d48,
- 0x3d1907,
- 0x3d5309,
- 0x3d7485,
- 0xa14c8,
- 0x3cedc4,
- 0x316e84,
- 0x20b085,
- 0x343e09,
- 0x2214c7,
- 0x2214cb,
- 0x2245ca,
- 0x2278c5,
- 0x586022c2,
- 0x2c6b47,
- 0x58a27bc8,
- 0x3d5787,
- 0x2bdf05,
- 0x35cd4a,
- 0x2782,
- 0x279acb,
- 0x27f74a,
- 0x24c7c6,
- 0x22a2c3,
- 0x36f7cd,
- 0x3a864c,
- 0x3b568d,
- 0x231085,
- 0x27a785,
- 0x30ae87,
- 0x3dac89,
- 0x215286,
- 0x257345,
- 0x2eed48,
- 0x290643,
- 0x3011c8,
- 0x290648,
- 0x2c7d47,
- 0x32af88,
- 0x3a8449,
- 0x2cbec7,
- 0x2c6347,
- 0x27d8c8,
- 0x31ad44,
- 0x31ad47,
- 0x287a88,
- 0x35e006,
- 0x39990f,
- 0x2e5007,
- 0x358d86,
- 0x36af45,
- 0x224103,
- 0x249d47,
- 0x387183,
- 0x24ff86,
- 0x252086,
- 0x252f86,
- 0x294045,
- 0x267e83,
- 0x391408,
- 0x388d49,
- 0x39a54b,
- 0x253108,
- 0x2545c5,
- 0x2563c5,
- 0x58eb06c2,
- 0x284f89,
- 0x222907,
- 0x25c785,
- 0x25aa07,
- 0x25c046,
- 0x380bc5,
- 0x25cb4b,
- 0x25f044,
- 0x264885,
- 0x2649c7,
- 0x277f46,
- 0x278385,
- 0x2874c7,
- 0x287e07,
- 0x2d2944,
- 0x28cd0a,
- 0x28ee48,
- 0x243a49,
- 0x368a85,
- 0x2b2dc6,
- 0x2fc40a,
- 0x2683c6,
- 0x22cd47,
- 0x2c9b4d,
- 0x2a5849,
- 0x341d45,
- 0x202d07,
- 0x330f88,
- 0x330508,
- 0x21fa47,
- 0x32e906,
- 0x222c87,
- 0x251b03,
- 0x314704,
- 0x37d145,
- 0x3a9b07,
- 0x3ae709,
- 0x22ac48,
- 0x22cc45,
- 0x24b544,
- 0x24cac5,
- 0x2532cd,
- 0x202082,
- 0x2c1346,
- 0x25ba06,
- 0x2fe5ca,
- 0x390dc6,
- 0x397485,
- 0x2c6085,
- 0x2c6087,
- 0x3a788c,
- 0x2760ca,
- 0x290406,
- 0x2dbe05,
- 0x290586,
- 0x2908c7,
- 0x292046,
- 0x293f4c,
- 0x2223c9,
- 0x59211bc7,
- 0x295f45,
- 0x295f46,
- 0x2963c8,
- 0x2bca45,
- 0x2a6545,
- 0x2a6f08,
- 0x2a710a,
- 0x5967a482,
- 0x59a08402,
- 0x300945,
- 0x281443,
- 0x229d88,
- 0x20b443,
- 0x2a7384,
- 0x2f99cb,
- 0x3c72c8,
- 0x2b1588,
- 0x59fcc049,
- 0x2abbc9,
- 0x2ac306,
- 0x2ad048,
- 0x2ad249,
- 0x2ae3c6,
- 0x2ae545,
- 0x24a8c6,
- 0x2aed09,
- 0x2ba987,
- 0x34b786,
- 0x21d087,
- 0x3731c7,
- 0x21f1c4,
- 0x5a3a06c9,
- 0x349708,
- 0x3d3208,
- 0x23fd07,
- 0x2caf06,
- 0x3c7789,
- 0x2522c7,
- 0x348f8a,
- 0x369508,
- 0x212c47,
- 0x224f06,
- 0x2ad5ca,
- 0x231808,
- 0x2e8745,
- 0x2269c5,
- 0x351147,
- 0x31c689,
- 0x3208cb,
- 0x355d88,
- 0x3ccf49,
- 0x253a47,
- 0x2bbd8c,
- 0x2bc60c,
- 0x2bc90a,
- 0x2bcb8c,
+ 0x221b84,
+ 0x214503,
+ 0x211d83,
+ 0x20ce83,
+ 0x204783,
+ 0x23f7c3,
+ 0x2050c3,
+ 0xa7c88,
+ 0x1daa47,
+ 0x3102,
+ 0x1a4f85,
+ 0x5518f,
+ 0xd8ec6,
+ 0x14441c8,
+ 0x10b88e,
+ 0x58a06dc2,
+ 0x324048,
+ 0x28e106,
+ 0x250086,
+ 0x305fc7,
+ 0x58e00c82,
+ 0x593d1548,
+ 0x210eca,
+ 0x263148,
+ 0x200ac2,
+ 0x3167c9,
+ 0x32b207,
+ 0x213186,
+ 0x221589,
+ 0x2e1d44,
+ 0x206586,
+ 0x2c5144,
+ 0x295a04,
+ 0x258c89,
+ 0x309a06,
+ 0x2270c5,
+ 0x267345,
+ 0x22fe87,
+ 0x2c2207,
+ 0x292c84,
+ 0x35aa06,
+ 0x2f3705,
+ 0x20fe45,
+ 0x25ca85,
+ 0x2b0587,
+ 0x271805,
+ 0x24a549,
+ 0x321605,
+ 0x313b04,
+ 0x2daf07,
+ 0x32e50e,
+ 0x36afc9,
+ 0x31fd09,
+ 0x344706,
+ 0x240288,
+ 0x244b0b,
+ 0x36950c,
+ 0x34d146,
+ 0x32cd87,
+ 0x2b3f45,
+ 0x215dca,
+ 0x28dd49,
+ 0x2013c9,
+ 0x3d6746,
+ 0x300605,
+ 0x246e05,
+ 0x354009,
+ 0x25cc0b,
+ 0x3a9786,
+ 0x352886,
+ 0x2044c4,
+ 0x26de46,
+ 0x2f66c8,
+ 0x3ba3c6,
+ 0x2aa506,
+ 0x3ce108,
+ 0x3d4887,
+ 0x3d6509,
+ 0x3d9a85,
+ 0xa7c88,
+ 0x3cbb84,
+ 0x30c404,
+ 0x20b805,
+ 0x345409,
+ 0x220d87,
+ 0x220d8b,
+ 0x223b8a,
+ 0x2293c5,
+ 0x5960f7c2,
+ 0x2c60c7,
+ 0x59a2a9c8,
+ 0x3d6987,
+ 0x2c8445,
+ 0x34678a,
+ 0x3102,
+ 0x27b24b,
+ 0x27f0ca,
+ 0x24a9c6,
+ 0x207683,
+ 0x2aee0d,
+ 0x3ade4c,
+ 0x3dcb8d,
+ 0x232985,
+ 0x27bf05,
+ 0x332f87,
+ 0x20a3c9,
+ 0x210dc6,
+ 0x2501c5,
+ 0x2ea2c8,
+ 0x26dd43,
+ 0x2f9748,
+ 0x26dd48,
+ 0x2c71c7,
+ 0x36aac8,
+ 0x3adc49,
+ 0x2d0f07,
+ 0x2c58c7,
+ 0x25d108,
+ 0x29b744,
+ 0x29b747,
+ 0x30d4c8,
+ 0x35ee06,
+ 0x37c6cf,
+ 0x26d507,
+ 0x35a506,
+ 0x2dc885,
+ 0x222203,
+ 0x248b47,
+ 0x38b103,
+ 0x24e006,
+ 0x24fe06,
+ 0x251286,
+ 0x295605,
+ 0x266703,
+ 0x395408,
+ 0x38de49,
+ 0x39da0b,
+ 0x251408,
+ 0x252685,
+ 0x253d85,
+ 0x59eb1d82,
+ 0x2843c9,
+ 0x221c07,
+ 0x25afc5,
+ 0x258b87,
+ 0x25a346,
+ 0x383485,
+ 0x25b38b,
+ 0x25dbc4,
+ 0x262d05,
+ 0x262e47,
+ 0x279746,
+ 0x279b85,
+ 0x286d47,
+ 0x287947,
+ 0x2d7f44,
+ 0x28cf4a,
+ 0x28ed48,
+ 0x244dc9,
+ 0x36a0c5,
+ 0x2b42c6,
+ 0x2f688a,
+ 0x267246,
+ 0x22e407,
+ 0x2c954d,
+ 0x2a5249,
+ 0x36b2c5,
+ 0x321d07,
+ 0x32e908,
+ 0x330008,
+ 0x3491c7,
+ 0x367306,
+ 0x2195c7,
+ 0x24f243,
+ 0x309984,
+ 0x380f85,
+ 0x3aa087,
+ 0x3afcc9,
+ 0x226488,
+ 0x22e305,
+ 0x249204,
+ 0x25dd85,
+ 0x266acd,
+ 0x200cc2,
+ 0x2b71c6,
+ 0x259b86,
+ 0x2f8d0a,
+ 0x394dc6,
+ 0x39b485,
+ 0x2c5605,
+ 0x2c5607,
+ 0x3a780c,
+ 0x27714a,
+ 0x290506,
+ 0x202fc5,
+ 0x26dc86,
+ 0x290687,
+ 0x292e86,
+ 0x29550c,
+ 0x2216c9,
+ 0x5a3cf547,
+ 0x2971c5,
+ 0x2971c6,
+ 0x297c08,
+ 0x2bcd85,
+ 0x2a5985,
+ 0x2a6c88,
+ 0x2a6e8a,
+ 0x5a67bc02,
+ 0x5aa05942,
+ 0x2fd185,
+ 0x26c143,
+ 0x22bf08,
+ 0x20bbc3,
+ 0x2a7104,
+ 0x2f408b,
+ 0x3ce688,
+ 0x31be08,
+ 0x5af26609,
+ 0x2ad349,
+ 0x2adb06,
+ 0x2ae808,
+ 0x2aea09,
+ 0x2afd86,
+ 0x2aff05,
+ 0x249346,
+ 0x2b0749,
+ 0x2ba387,
+ 0x2fdf06,
+ 0x21d0c7,
+ 0x36c987,
+ 0x21fac4,
+ 0x5b338c49,
+ 0x367bc8,
+ 0x3d1448,
+ 0x239f07,
+ 0x2ca906,
+ 0x204a09,
+ 0x250047,
+ 0x36744a,
+ 0x37b0c8,
+ 0x20cf87,
+ 0x20ed46,
+ 0x28c74a,
+ 0x2ff188,
+ 0x2e68c5,
+ 0x227385,
+ 0x355107,
+ 0x311c49,
+ 0x3179cb,
+ 0x36dec8,
+ 0x321689,
+ 0x251b47,
+ 0x2bc08c,
+ 0x2bc94c,
+ 0x2bcc4a,
+ 0x2bcecc,
+ 0x2c4cc8,
+ 0x2c4ec8,
+ 0x2c50c4,
+ 0x2c6949,
+ 0x2c6b89,
+ 0x2c6dca,
+ 0x2c7049,
+ 0x2c7387,
+ 0x3d6d4c,
+ 0x20d986,
+ 0x2c8f08,
+ 0x267306,
+ 0x3a35c6,
+ 0x36b1c7,
+ 0x36bd08,
+ 0x206b4b,
+ 0x3d6847,
+ 0x258949,
+ 0x27e309,
+ 0x2845c7,
+ 0x2c5384,
+ 0x200fc7,
+ 0x2fe8c6,
+ 0x20e3c6,
+ 0x2f85c5,
+ 0x3d8108,
+ 0x295e44,
+ 0x295e46,
+ 0x27700b,
+ 0x371489,
+ 0x23aec6,
+ 0x2aa709,
+ 0x20b8c6,
+ 0x201f88,
+ 0x20fb43,
+ 0x300785,
+ 0x21bdc9,
+ 0x221d85,
+ 0x353404,
+ 0x2785c6,
+ 0x237485,
+ 0x2553c6,
+ 0x310047,
+ 0x34a406,
+ 0x22c7cb,
+ 0x36b9c7,
+ 0x247c46,
+ 0x2dcd86,
+ 0x22ff46,
+ 0x292c49,
+ 0x2f200a,
+ 0x2bdec5,
+ 0x3a900d,
+ 0x2a6f86,
+ 0x2f4986,
+ 0x2f1786,
+ 0x2303c5,
+ 0x2e4b07,
+ 0x225dc7,
+ 0x275c0e,
+ 0x211d83,
+ 0x2ca8c9,
+ 0x333449,
+ 0x22fbc7,
+ 0x26bc07,
+ 0x2a0b85,
+ 0x22e8c5,
+ 0x5b73174f,
+ 0x2d0987,
+ 0x2d0b48,
+ 0x2d2284,
+ 0x2d2586,
+ 0x5ba46b02,
+ 0x2d77c6,
+ 0x2da646,
+ 0x33360e,
+ 0x2f958a,
+ 0x3d1cc6,
+ 0x21ae4a,
+ 0x3dc989,
+ 0x23e105,
+ 0x3b21c8,
+ 0x31e486,
+ 0x29e0c8,
+ 0x2fbb08,
+ 0x27ad0b,
+ 0x3060c5,
+ 0x271888,
+ 0x3ce24c,
+ 0x2c8307,
+ 0x250b06,
+ 0x2fa0c8,
+ 0x206808,
+ 0x5be4dc02,
+ 0x20634b,
+ 0x3d9c89,
+ 0x28d809,
+ 0x21bc47,
+ 0x3a8d48,
+ 0x5c39b048,
+ 0x20c8cb,
+ 0x3204c9,
+ 0x25c24d,
+ 0x320ec8,
+ 0x28c948,
+ 0x5c601e02,
+ 0x31fc44,
+ 0x5ca28002,
+ 0x3b1fc6,
+ 0x5ce06ec2,
+ 0x2ee48a,
+ 0x2a5806,
+ 0x26c9c8,
+ 0x3c11c8,
+ 0x255d06,
+ 0x32d286,
+ 0x2f7686,
+ 0x2a5e85,
+ 0x23a104,
+ 0x5d229a44,
+ 0x357fc6,
+ 0x298687,
+ 0x5d60d5c7,
+ 0x38d08b,
+ 0x3d6b89,
+ 0x27bf4a,
+ 0x2039c4,
0x2c5748,
- 0x2c5948,
- 0x2c5b44,
- 0x2c74c9,
- 0x2c7709,
- 0x2c794a,
- 0x2c7bc9,
- 0x2c7f07,
- 0x3d5b4c,
- 0x20ca46,
- 0x2c9508,
- 0x268486,
- 0x3a3386,
- 0x341c47,
- 0x21fbc8,
- 0x20f74b,
- 0x3d5647,
- 0x25a7c9,
- 0x285189,
- 0x355c07,
- 0x2c5e04,
- 0x2fa147,
- 0x20a286,
- 0x20ddc6,
- 0x2fdf85,
- 0x2cec48,
- 0x294884,
- 0x294886,
- 0x275f8b,
- 0x2ae009,
- 0x250ac6,
- 0x357289,
- 0x20b146,
- 0x204048,
- 0x218983,
- 0x303585,
- 0x222a89,
- 0x224805,
- 0x37e504,
- 0x277486,
- 0x23c705,
- 0x257bc6,
- 0x31a607,
- 0x346dc6,
- 0x22bb0b,
- 0x249887,
- 0x2554c6,
- 0x210046,
- 0x22dfc6,
- 0x28c389,
- 0x2fa54a,
- 0x2be6c5,
- 0x3b518d,
- 0x2a7206,
- 0x38fac6,
- 0x2cb806,
- 0x2f7805,
- 0x2ea2c7,
- 0x22a587,
- 0x273bce,
- 0x205e03,
- 0x2caec9,
- 0x245009,
- 0x22dc47,
- 0x226247,
- 0x237d85,
- 0x210205,
- 0x5a600c0f,
- 0x2d2287,
- 0x2d2448,
- 0x2d3144,
- 0x2d3586,
- 0x5aa477c2,
- 0x2d9b06,
- 0x2dc3c6,
- 0x2451ce,
- 0x30100a,
- 0x2b6546,
- 0x21ba0a,
- 0x3c2989,
- 0x234045,
- 0x305488,
- 0x31d886,
- 0x29d808,
- 0x329788,
- 0x27958b,
- 0x30fec5,
- 0x26f308,
- 0x3c6e8c,
- 0x2bddc7,
- 0x252806,
- 0x2e5888,
- 0x20f408,
- 0x5ae4fd42,
- 0x20ef4b,
- 0x3d7689,
- 0x28d5c9,
- 0x21b707,
- 0x3c4f88,
- 0x5b397048,
- 0x20e7cb,
- 0x37f749,
- 0x25db4d,
- 0x3295c8,
- 0x2ad7c8,
- 0x5b601642,
- 0x3cbec4,
- 0x5ba2ebc2,
- 0x3b0a06,
- 0x5be01102,
- 0x2f500a,
- 0x2ab406,
- 0x238348,
- 0x3be948,
- 0x248ec6,
- 0x337106,
- 0x2fd1c6,
- 0x2a6a45,
- 0x23a1c4,
- 0x5c238884,
- 0x355586,
- 0x296e47,
- 0x5c60c687,
- 0x26c08b,
- 0x3d5989,
- 0x27a7ca,
- 0x206944,
- 0x2c61c8,
- 0x34b54d,
- 0x2f5b89,
- 0x2f5dc8,
- 0x2f6049,
- 0x2f7dc4,
- 0x247344,
- 0x25ebc5,
- 0x36824b,
- 0x3c7246,
- 0x3553c5,
- 0x2eb909,
- 0x3100c8,
- 0x238a04,
- 0x2175c9,
- 0x237605,
- 0x2c2b08,
- 0x2c6a07,
- 0x37f388,
- 0x284846,
- 0x3d1ec7,
- 0x2e1049,
- 0x3cc909,
- 0x3c7a85,
- 0x36ff45,
- 0x5ca12cc2,
- 0x347904,
- 0x217fc5,
- 0x30fcc6,
- 0x37a1c5,
- 0x2edec7,
- 0x299f85,
- 0x277f84,
- 0x335e06,
- 0x2573c7,
- 0x2ff786,
- 0x321d85,
- 0x210608,
- 0x310645,
- 0x214887,
- 0x221109,
- 0x2ae14a,
- 0x22b147,
- 0x22b14c,
- 0x22c306,
- 0x23ce09,
- 0x37ff05,
- 0x38ad48,
- 0x209f43,
- 0x20ab85,
- 0x209f45,
- 0x303b07,
- 0x5ce03542,
- 0x2f0187,
- 0x2e7f46,
- 0x3ce746,
- 0x2eb246,
- 0x20f346,
- 0x2ddf88,
- 0x31f2c5,
- 0x358e47,
- 0x358e4d,
- 0x203843,
- 0x20cf05,
- 0x26fbc7,
- 0x2f04c8,
- 0x26f785,
- 0x213e88,
- 0x39c646,
- 0x2df047,
- 0x2c9445,
- 0x30ff46,
- 0x391985,
- 0x21504a,
- 0x2f9406,
- 0x282187,
- 0x31e445,
- 0x3a6707,
- 0x305d84,
- 0x37e486,
- 0x3053c5,
- 0x216bcb,
- 0x20a109,
- 0x24df0a,
- 0x3c7b08,
- 0x348348,
- 0x30d40c,
- 0x30ef47,
- 0x311dc8,
- 0x313f88,
- 0x314d05,
- 0x350f0a,
- 0x352a09,
- 0x5d202702,
- 0x3c0806,
- 0x246dc4,
- 0x246dc9,
- 0x270a09,
- 0x277987,
- 0x2b4907,
- 0x3562c9,
- 0x2d1b88,
- 0x2d1b8f,
- 0x223686,
- 0x2deb4b,
- 0x2669c5,
- 0x2669c7,
- 0x374c49,
- 0x217546,
- 0x217547,
- 0x2e3185,
- 0x230f84,
- 0x267586,
- 0x221684,
- 0x2b5287,
- 0x2b3688,
- 0x5d703308,
- 0x304885,
- 0x3049c7,
- 0x32ac89,
- 0x20ed04,
- 0x240588,
- 0x5da72b88,
- 0x2d88c4,
- 0x347e48,
- 0x372644,
- 0x3b5489,
- 0x219f85,
- 0x5de1be02,
- 0x2236c5,
- 0x2e38c5,
- 0x202b48,
- 0x234347,
- 0x5e2008c2,
- 0x2389c5,
- 0x2d76c6,
- 0x232e06,
- 0x3478c8,
- 0x34ab88,
- 0x37a186,
- 0x37ae06,
- 0x321489,
- 0x3ce686,
- 0x2195cb,
- 0x31f585,
- 0x2a8046,
- 0x2755c8,
- 0x3333c6,
- 0x39ec86,
- 0x21434a,
- 0x2abf8a,
- 0x273305,
- 0x30dcc7,
- 0x2f33c6,
- 0x5e606842,
- 0x26fd07,
- 0x25e345,
- 0x2fc384,
- 0x2fc385,
- 0x206846,
- 0x271847,
- 0x21c9c5,
- 0x21fc44,
- 0x2d39c8,
- 0x39ed45,
- 0x3c9707,
- 0x3d4145,
- 0x214f85,
- 0x2ae9c4,
- 0x2e6ac9,
- 0x2f8e88,
- 0x23a946,
- 0x3b7ec6,
- 0x3cae86,
- 0x5eb0f4c8,
- 0x30f6c7,
- 0x31174d,
- 0x312c4c,
- 0x313249,
- 0x313489,
- 0x5ef73c82,
- 0x3d2fc3,
- 0x20a343,
- 0x20a345,
- 0x3a9c0a,
- 0x33fbc6,
- 0x24e305,
- 0x31af04,
- 0x31af0b,
- 0x3340cc,
- 0x33534c,
- 0x335655,
- 0x337b4d,
- 0x33964f,
- 0x339a12,
- 0x339e8f,
- 0x33a252,
- 0x33a6d3,
- 0x33ab8d,
- 0x33b14d,
- 0x33b4ce,
- 0x33ba4e,
- 0x33c78c,
- 0x33cb4c,
- 0x33cf8b,
- 0x33da0e,
- 0x33e312,
- 0x33f98c,
- 0x33fe90,
- 0x34ba52,
- 0x34c6cc,
- 0x34cd8d,
- 0x34d0cc,
- 0x34f611,
- 0x35088d,
- 0x352c4d,
- 0x35324a,
- 0x3534cc,
- 0x3547cc,
- 0x3550cc,
- 0x35688c,
- 0x35a253,
- 0x35a8d0,
- 0x35acd0,
- 0x35b64d,
- 0x35bc4c,
- 0x35d6c9,
- 0x35ef4d,
- 0x35f293,
- 0x361fd1,
- 0x3627d3,
- 0x363c8f,
- 0x36404c,
- 0x36434f,
- 0x36470d,
- 0x364d0f,
- 0x3650d0,
- 0x365b4e,
- 0x369c8e,
- 0x36b490,
- 0x36bf4d,
- 0x36c8ce,
- 0x36cc4c,
- 0x36dc13,
- 0x37028e,
- 0x370910,
- 0x370d11,
- 0x37114f,
- 0x371513,
- 0x37380d,
- 0x373b4f,
- 0x373f0e,
- 0x374490,
- 0x374889,
- 0x3761d0,
- 0x3767cf,
- 0x376e4f,
- 0x377212,
- 0x37940e,
- 0x379e0d,
- 0x37a54d,
- 0x37a88d,
- 0x37b80d,
- 0x37bb4d,
- 0x37be90,
- 0x37c28b,
- 0x37cf0c,
- 0x37d28c,
- 0x37d88c,
- 0x37db8e,
- 0x38b4d0,
- 0x38ddd2,
- 0x38e24b,
- 0x38e58e,
- 0x38e90e,
- 0x38f18e,
- 0x38f60b,
- 0x5f38fc56,
- 0x390acd,
- 0x390f54,
- 0x391c4d,
- 0x3939d5,
- 0x39554d,
- 0x395ecf,
- 0x39654f,
- 0x39a80f,
- 0x39abce,
- 0x39b14d,
- 0x39cc91,
- 0x3a2b4c,
- 0x3a2e4c,
- 0x3a314b,
- 0x3a370c,
- 0x3a3d8f,
- 0x3a4152,
- 0x3a480d,
- 0x3a590c,
- 0x3a68cc,
- 0x3a6bcd,
- 0x3a6f0f,
- 0x3a72ce,
- 0x3a98cc,
- 0x3a9e8d,
- 0x3aa1cb,
- 0x3aaa8c,
- 0x3ab38d,
- 0x3ab6ce,
- 0x3aba49,
- 0x3ad093,
- 0x3ad7cd,
- 0x3adecd,
- 0x3ae4cc,
- 0x3ae94e,
- 0x3af04f,
- 0x3af40c,
- 0x3af70d,
- 0x3afa4f,
- 0x3afe0c,
- 0x3b0c4c,
- 0x3b110c,
- 0x3b140c,
- 0x3b1acd,
- 0x3b1e12,
- 0x3b2b8c,
- 0x3b2e8c,
- 0x3b3191,
- 0x3b35cf,
- 0x3b398f,
- 0x3b3d53,
- 0x3b5e0e,
- 0x3b618f,
- 0x3b654c,
- 0x5f7b688e,
- 0x3b6c0f,
- 0x3b6fd6,
+ 0x2fdccd,
+ 0x2efb09,
+ 0x2efd48,
+ 0x2effc9,
+ 0x2f2484,
+ 0x246684,
+ 0x39f245,
+ 0x36988b,
+ 0x3ce606,
+ 0x357e05,
+ 0x2dc089,
+ 0x35aac8,
+ 0x229bc4,
+ 0x215f49,
+ 0x3d2685,
+ 0x2c2248,
+ 0x2c5f87,
+ 0x320108,
+ 0x283c86,
+ 0x3b9b07,
+ 0x2df3c9,
+ 0x368389,
+ 0x207fc5,
+ 0x2af585,
+ 0x5da0a202,
+ 0x3138c4,
+ 0x212e85,
+ 0x305ec6,
+ 0x312845,
+ 0x2bac47,
+ 0x2eedc5,
+ 0x21dd04,
+ 0x3447c6,
+ 0x250247,
+ 0x2331c6,
+ 0x318745,
+ 0x20b208,
+ 0x28e305,
+ 0x20e8c7,
+ 0x21f309,
+ 0x3715ca,
+ 0x226987,
+ 0x22698c,
+ 0x227086,
+ 0x23f649,
+ 0x3826c5,
+ 0x38fc08,
+ 0x225003,
+ 0x2ed345,
+ 0x2fe585,
+ 0x27da07,
+ 0x5de01482,
+ 0x2ea607,
+ 0x2e5b06,
+ 0x37e946,
+ 0x2e9086,
+ 0x206746,
+ 0x2fed88,
+ 0x316445,
+ 0x35a5c7,
+ 0x35a5cd,
+ 0x201783,
+ 0x20de45,
+ 0x272147,
+ 0x2ea948,
+ 0x271d05,
+ 0x215048,
+ 0x39fe46,
+ 0x2ddb07,
+ 0x2c8e45,
+ 0x306146,
+ 0x395985,
+ 0x210b8a,
+ 0x2f3ac6,
+ 0x26e607,
+ 0x2d0505,
+ 0x383d47,
+ 0x3b2ac4,
+ 0x353386,
+ 0x3b2105,
+ 0x2177cb,
+ 0x2fe749,
+ 0x24e9ca,
+ 0x208048,
+ 0x304588,
+ 0x313f4c,
+ 0x382c47,
+ 0x308288,
+ 0x309f88,
+ 0x30f645,
+ 0x354eca,
+ 0x356b89,
+ 0x5e202302,
+ 0x3c2a06,
+ 0x227bc4,
+ 0x2bd2c9,
+ 0x3050c9,
+ 0x2769c7,
+ 0x2ef507,
+ 0x2b4789,
+ 0x2d1ec8,
+ 0x2d1ecf,
+ 0x219fc6,
+ 0x2dd60b,
+ 0x25b885,
+ 0x25b887,
+ 0x3794c9,
+ 0x2108c6,
+ 0x215ec7,
+ 0x2e0745,
+ 0x232884,
+ 0x380a46,
+ 0x220f44,
+ 0x2b6587,
+ 0x2b8e88,
+ 0x5e700508,
+ 0x300c85,
+ 0x300dc7,
+ 0x323209,
+ 0x206104,
+ 0x241848,
+ 0x5ea696c8,
+ 0x2d6844,
+ 0x2e6308,
+ 0x2fba44,
+ 0x3299c9,
+ 0x3a9305,
+ 0x5ee1a602,
+ 0x21a005,
+ 0x2e5145,
+ 0x32fe48,
+ 0x235ac7,
+ 0x5f2008c2,
+ 0x229b85,
+ 0x2d5646,
+ 0x233306,
+ 0x313888,
+ 0x315108,
+ 0x312806,
+ 0x3414c6,
+ 0x3dab09,
+ 0x37e886,
+ 0x21078b,
+ 0x316705,
+ 0x2a8606,
+ 0x3be9c8,
+ 0x335b86,
+ 0x339f46,
+ 0x21550a,
+ 0x20a80a,
+ 0x25f505,
+ 0x391307,
+ 0x2f5f46,
+ 0x5f6038c2,
+ 0x272287,
+ 0x23be05,
+ 0x2f6804,
+ 0x2f6805,
+ 0x2038c6,
+ 0x274347,
+ 0x21ca05,
+ 0x20a984,
+ 0x2d29c8,
+ 0x33a005,
+ 0x3c8e07,
+ 0x3d36c5,
+ 0x210ac5,
+ 0x26f1c4,
+ 0x26f1c9,
+ 0x2f3548,
+ 0x23a886,
+ 0x3bad86,
+ 0x28c486,
+ 0x5fb056c8,
+ 0x3058c7,
+ 0x30670d,
+ 0x306f4c,
+ 0x307549,
+ 0x307789,
+ 0x5ff77902,
+ 0x3d1203,
+ 0x2010c3,
+ 0x2fe985,
+ 0x3aa18a,
+ 0x341386,
+ 0x244545,
+ 0x311304,
+ 0x31130b,
+ 0x3344cc,
+ 0x334dcc,
+ 0x3350d5,
+ 0x335fcd,
+ 0x33b44f,
+ 0x33b812,
+ 0x33bc8f,
+ 0x33c052,
+ 0x33c4d3,
+ 0x33c98d,
+ 0x33cf4d,
+ 0x33d2ce,
+ 0x33d84e,
+ 0x33df4c,
+ 0x33e30c,
+ 0x33e74b,
+ 0x33f1ce,
+ 0x33fad2,
+ 0x34114c,
+ 0x341810,
+ 0x34d412,
+ 0x34e4cc,
+ 0x34eb8d,
+ 0x34eecc,
+ 0x3514d1,
+ 0x352a0d,
+ 0x35584d,
+ 0x355e4a,
+ 0x3560cc,
+ 0x35758c,
+ 0x357b0c,
+ 0x3588cc,
+ 0x35bd53,
+ 0x35c3d0,
+ 0x35c7d0,
+ 0x35d14d,
+ 0x35d74c,
+ 0x35e4c9,
+ 0x360a4d,
+ 0x360d93,
+ 0x362211,
+ 0x362a13,
+ 0x363ecf,
+ 0x36428c,
+ 0x36458f,
+ 0x36494d,
+ 0x364f4f,
+ 0x365310,
+ 0x365d8e,
+ 0x36d30e,
+ 0x36e510,
+ 0x36efcd,
+ 0x36f94e,
+ 0x36fccc,
+ 0x371853,
+ 0x3737ce,
+ 0x373e50,
+ 0x374251,
+ 0x37468f,
+ 0x374a53,
+ 0x37748d,
+ 0x3777cf,
+ 0x377b8e,
+ 0x378110,
+ 0x378509,
+ 0x379710,
+ 0x379d0f,
+ 0x37a38f,
+ 0x37a752,
+ 0x37ce4e,
+ 0x37d84d,
+ 0x37dfcd,
+ 0x37e30d,
+ 0x37f7cd,
+ 0x37fb0d,
+ 0x37fe50,
+ 0x38024b,
+ 0x380d4c,
+ 0x3810cc,
+ 0x3816cc,
+ 0x3819ce,
+ 0x390510,
+ 0x392012,
+ 0x39248b,
+ 0x3927ce,
+ 0x392b4e,
+ 0x3933ce,
+ 0x39384b,
+ 0x60393f56,
+ 0x394acd,
+ 0x394f54,
+ 0x395c4d,
+ 0x397995,
+ 0x39950d,
+ 0x399e8f,
+ 0x39a54f,
+ 0x39dccf,
+ 0x39e08e,
+ 0x39e60d,
+ 0x3a0491,
+ 0x3a2d8c,
+ 0x3a308c,
+ 0x3a338b,
+ 0x3a394c,
+ 0x3a3fcf,
+ 0x3a4392,
+ 0x3a4a4d,
+ 0x3a5b4c,
+ 0x3a684c,
+ 0x3a6b4d,
+ 0x3a6e8f,
+ 0x3a724e,
+ 0x3a9e4c,
+ 0x3aa40d,
+ 0x3aa74b,
+ 0x3ab00c,
+ 0x3ab90d,
+ 0x3abc4e,
+ 0x3abfc9,
+ 0x3ad753,
+ 0x3aed8d,
+ 0x3af48d,
+ 0x3afa8c,
+ 0x3aff0e,
+ 0x3b060f,
+ 0x3b09cc,
+ 0x3b0ccd,
+ 0x3b100f,
+ 0x3b13cc,
+ 0x3b2d0c,
+ 0x3b31cc,
+ 0x3b34cc,
+ 0x3b3b8d,
+ 0x3b3ed2,
+ 0x3b52cc,
+ 0x3b55cc,
+ 0x3b58d1,
+ 0x3b5d0f,
+ 0x3b60cf,
+ 0x3b6493,
+ 0x3b724e,
+ 0x3b75cf,
+ 0x3b798c,
+ 0x607b7cce,
+ 0x3b804f,
+ 0x3b8416,
0x3b9f92,
- 0x3bc7cc,
- 0x3bd60f,
- 0x3bdc8d,
- 0x3c878f,
- 0x3c8b4c,
- 0x3c8e4d,
- 0x3c918d,
- 0x3caa4e,
- 0x3cdecc,
- 0x3d044c,
- 0x3d0750,
- 0x3d2351,
- 0x3d278b,
- 0x3d2bcc,
- 0x3d2ece,
- 0x3d4591,
- 0x3d49ce,
- 0x3d4d4d,
- 0x3d894b,
- 0x3d924f,
- 0x3d9e54,
- 0x2068c2,
- 0x2068c2,
- 0x202e03,
- 0x2068c2,
- 0x202e03,
- 0x2068c2,
- 0x20c682,
- 0x24a905,
- 0x3d428c,
- 0x2068c2,
- 0x2068c2,
- 0x20c682,
- 0x2068c2,
- 0x296a45,
- 0x2ae145,
- 0x2068c2,
- 0x2068c2,
- 0x2010c2,
- 0x296a45,
- 0x338309,
- 0x361ccc,
- 0x2068c2,
- 0x2068c2,
- 0x2068c2,
- 0x2068c2,
- 0x24a905,
- 0x2068c2,
- 0x2068c2,
- 0x2068c2,
- 0x2068c2,
- 0x2010c2,
- 0x338309,
- 0x2068c2,
- 0x2068c2,
- 0x2068c2,
- 0x2ae145,
- 0x2068c2,
- 0x2ae145,
- 0x361ccc,
- 0x3d428c,
- 0x24ce83,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x222884,
- 0x206b43,
- 0x23cf83,
- 0x60314887,
- 0x1c618f,
- 0x24c8,
- 0x7b684,
- 0x13c3,
- 0x1a20c8,
- 0x7c44,
+ 0x3bcc0c,
+ 0x3befcf,
+ 0x3bf64d,
+ 0x3c7e8f,
+ 0x3c824c,
+ 0x3c854d,
+ 0x3c888d,
+ 0x3c9f0e,
+ 0x3caa4c,
+ 0x3cd48c,
+ 0x3cd790,
+ 0x3d0591,
+ 0x3d09cb,
+ 0x3d0e0c,
+ 0x3d110e,
+ 0x3d3b11,
+ 0x3d3f4e,
+ 0x3d42cd,
+ 0x3d830b,
+ 0x3d8c0f,
+ 0x3d95d4,
+ 0x203942,
+ 0x203942,
+ 0x226a83,
+ 0x203942,
+ 0x226a83,
+ 0x203942,
+ 0x207a82,
+ 0x249385,
+ 0x3d380c,
+ 0x203942,
+ 0x203942,
+ 0x207a82,
+ 0x203942,
+ 0x298285,
+ 0x3715c5,
+ 0x203942,
+ 0x203942,
+ 0x209002,
+ 0x298285,
+ 0x336789,
+ 0x361f0c,
+ 0x203942,
+ 0x203942,
+ 0x203942,
+ 0x203942,
+ 0x249385,
+ 0x203942,
+ 0x203942,
+ 0x203942,
+ 0x203942,
+ 0x209002,
+ 0x336789,
+ 0x203942,
+ 0x203942,
+ 0x203942,
+ 0x3715c5,
+ 0x203942,
+ 0x3715c5,
+ 0x361f0c,
+ 0x3d380c,
+ 0x24af03,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x221b84,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x61309b07,
+ 0x1c780f,
+ 0x131308,
+ 0x74f84,
+ 0x4783,
+ 0x1a2108,
+ 0x5184,
0x2000c2,
- 0x60a02782,
- 0x23fec3,
- 0x250604,
- 0x204183,
- 0x3dc504,
- 0x22fac6,
- 0x20ad83,
- 0x30e184,
- 0x24d985,
- 0x205e03,
- 0x206b43,
- 0x6df83,
- 0x23cf83,
- 0x21d60a,
- 0x259b06,
- 0x38ec8c,
- 0xa14c8,
- 0x202782,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x22a243,
- 0x2dc3c6,
- 0x206b43,
- 0x23cf83,
- 0x213c43,
- 0x2fe03,
+ 0x61a03102,
+ 0x241183,
+ 0x2539c4,
+ 0x2020c3,
+ 0x2d4704,
+ 0x231b06,
+ 0x3c6f83,
+ 0x3cb504,
+ 0x25f205,
+ 0x211d83,
+ 0x20ce83,
+ 0x71003,
+ 0x23f7c3,
+ 0x21d64a,
+ 0x254c06,
+ 0x392ecc,
0xa7c88,
- 0x6157eac5,
- 0x4b8c7,
- 0x12dac5,
- 0x178449,
- 0xdcc2,
- 0x6237e2c5,
- 0x12dac5,
- 0x2afc7,
- 0x6da08,
- 0x820e,
- 0x8abd2,
- 0x11f94b,
- 0x1143c6,
- 0x6268d145,
- 0x62a8d14c,
- 0x5e4c7,
- 0x14c47,
- 0x1a0eca,
- 0x3b650,
- 0x173345,
- 0x10cd0b,
- 0x6c648,
- 0x3fbc7,
- 0x19ee0b,
- 0x80b89,
- 0x4aac7,
- 0x1a0047,
- 0xe1ac7,
- 0x35186,
- 0x18b08,
- 0x63029f46,
- 0x49ec7,
- 0x15c646,
- 0x6c2cd,
- 0x1a0890,
- 0x634758c2,
- 0x5d88,
- 0x3c010,
- 0x1818cc,
- 0x63b89fcd,
- 0x5d348,
- 0x5d7cb,
- 0x6ad07,
- 0x16a549,
- 0x59706,
- 0x965c8,
- 0x7102,
- 0x8898a,
- 0xde307,
- 0x1cc607,
- 0xa8549,
- 0xaa8c8,
- 0x1b8e85,
- 0x18bb06,
- 0x1c4d06,
- 0xf6cce,
- 0x23b4e,
- 0xa9f4f,
- 0xe4e09,
- 0x504c9,
- 0x8850b,
- 0xa224f,
- 0xc334c,
- 0xbb64b,
- 0xe0ac8,
- 0x144707,
- 0x166308,
- 0x18da0b,
- 0x194d8c,
- 0x19bd4c,
- 0x1a3a8c,
- 0xafccd,
- 0x17f8c8,
- 0xefdc2,
- 0x191789,
- 0xf9708,
- 0x1921cb,
- 0xcb106,
- 0xd6f8b,
- 0x13de4b,
- 0xe28ca,
- 0xe3485,
- 0xe9fd0,
- 0xec646,
- 0x12e406,
- 0x45585,
- 0x1667c7,
- 0xfd6c8,
- 0xf1407,
- 0xf16c7,
- 0x1c6647,
- 0x1b084a,
- 0xa134a,
- 0x5bac6,
- 0x94ecd,
- 0x49f88,
- 0x115f88,
- 0xae909,
- 0xbacc5,
- 0x1aed4c,
- 0xafecb,
- 0x10d704,
- 0x10f109,
- 0x10f346,
- 0x159546,
- 0x1b4886,
- 0x7d82,
- 0xec046,
- 0x10b9cb,
- 0x11d447,
- 0xa842,
- 0xcd9c5,
- 0x26c44,
+ 0x203102,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x225a83,
+ 0x2da646,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x214e03,
+ 0x31e43,
+ 0xa8248,
+ 0x625bdb45,
+ 0x49d07,
+ 0x129245,
+ 0x187409,
+ 0xe2c2,
+ 0x1b448a,
+ 0x63383985,
+ 0x129245,
+ 0x26807,
+ 0x70a88,
+ 0x574e,
+ 0x8a7d2,
+ 0x116acb,
+ 0x109646,
+ 0x6368d385,
+ 0x63a8d38c,
+ 0x16b647,
+ 0xe747,
+ 0x14f64a,
+ 0x3dbd0,
+ 0x16cb05,
+ 0x10404b,
+ 0x18d648,
+ 0x39dc7,
+ 0x13a0cb,
+ 0x35309,
+ 0x49547,
+ 0x1385c7,
+ 0x1a99c7,
+ 0x36906,
+ 0xfcc8,
+ 0x64025786,
+ 0x18fdc7,
+ 0x146086,
+ 0x18d2cd,
+ 0x138e10,
+ 0x64469102,
+ 0x11d08,
+ 0x40cd0,
+ 0x18468c,
+ 0x64b8edcd,
+ 0x5ba48,
+ 0x5becb,
+ 0x6b1c7,
+ 0x17b589,
+ 0x57b06,
+ 0x97e08,
+ 0x5ce02,
+ 0x8268a,
+ 0x2c287,
+ 0x126bc7,
+ 0xa8c49,
+ 0xac2c8,
+ 0x34c5,
+ 0x190b46,
+ 0x1a8ac6,
+ 0xf0c4e,
+ 0x1b20e,
+ 0x2d28f,
+ 0x6d309,
+ 0x53889,
+ 0x8220b,
+ 0x94b4f,
+ 0xb0b0c,
+ 0xbb94b,
+ 0xdee48,
+ 0x110647,
+ 0x15ddc8,
+ 0x191c4b,
+ 0x198d4c,
+ 0x19f54c,
+ 0x1a3ccc,
+ 0xb138d,
+ 0x120648,
+ 0xea082,
+ 0x195789,
+ 0xf3dc8,
+ 0x1961cb,
+ 0xcab06,
+ 0xd4f4b,
+ 0x13f60b,
+ 0xdfe8a,
+ 0xe0a45,
+ 0xe4810,
+ 0xe5f86,
+ 0x129e06,
+ 0x1339c5,
+ 0x930c7,
+ 0xf7d08,
+ 0xeb887,
+ 0xebb47,
+ 0x1c7cc7,
+ 0xbf9c6,
+ 0x1b1e0a,
+ 0xa7b0a,
+ 0x1c6b46,
+ 0xab84d,
+ 0x18fe88,
+ 0x10b488,
+ 0xd6ec9,
+ 0xbaf85,
+ 0x1b030c,
+ 0xb158b,
+ 0x190d44,
+ 0x105309,
+ 0x105546,
+ 0x4ab06,
+ 0x1b9006,
+ 0x4cc2,
+ 0xfd986,
+ 0x1762cb,
+ 0x111e87,
+ 0x8c42,
+ 0xcc705,
+ 0x22f04,
0x101,
- 0x568c3,
- 0x62e81606,
- 0x96943,
+ 0x54283,
+ 0x63e6c306,
+ 0x98183,
0x382,
- 0x29144,
- 0xb02,
- 0x41844,
+ 0x22b04,
+ 0xac2,
+ 0x50784,
0x882,
- 0x2202,
- 0x2c42,
- 0x25a42,
- 0x5cc2,
- 0x8d142,
- 0x14c2,
- 0xd5e42,
- 0x36d82,
- 0x37982,
- 0x2942,
- 0x52282,
- 0x33743,
+ 0x4602,
+ 0x19c2,
+ 0x1c342,
+ 0x7982,
+ 0x8d382,
+ 0xd42,
+ 0x291c2,
+ 0x38142,
+ 0x24502,
+ 0x7682,
+ 0x50002,
+ 0x34e83,
0x942,
- 0x1242,
- 0x19d02,
- 0xe282,
+ 0x1bc2,
+ 0x143c2,
+ 0x8142,
0x642,
- 0x320c2,
- 0x373c2,
- 0x3d82,
- 0x5e42,
+ 0x33702,
+ 0x5dc2,
+ 0x1cc2,
+ 0xf42,
0x5c2,
- 0x19e43,
- 0x1b82,
- 0x6102,
- 0x4d442,
- 0x53a42,
- 0xb42,
- 0x8002,
- 0xf1c2,
- 0xdf302,
- 0x24c2,
- 0x1582,
- 0x6cec2,
- 0x45ec2,
- 0x6b43,
+ 0x14503,
+ 0x1742,
+ 0x51c2,
+ 0x4b4c2,
+ 0x51b42,
+ 0xe942,
+ 0x5542,
+ 0x65c2,
+ 0x30c2,
+ 0x5982,
+ 0x127e02,
+ 0x6ff42,
+ 0x3c9c2,
+ 0xce83,
0x602,
- 0x4fd42,
- 0x13c2,
- 0xcc82,
- 0x1c7a05,
- 0x6a82,
- 0x41f42,
- 0x3c883,
+ 0x4dc02,
+ 0x2f42,
+ 0xdbc2,
+ 0x7f45,
+ 0x7702,
+ 0x3542,
+ 0x3e903,
0x682,
- 0x16f82,
- 0x1bc2,
- 0x37c2,
- 0x3842,
+ 0x129c2,
+ 0x5c82,
+ 0x1702,
+ 0x1782,
0x8c2,
- 0xd2c2,
- 0x7d82,
- 0x5f85,
- 0x63e0c682,
- 0x642cfe83,
- 0x20c3,
- 0x6460c682,
- 0x20c3,
- 0x83cc7,
- 0x20c443,
+ 0x13602,
+ 0x4cc2,
+ 0xe745,
+ 0x64e07a82,
+ 0x652cc0c3,
+ 0x31643,
+ 0x65607a82,
+ 0x31643,
+ 0x83107,
+ 0x20b7c3,
0x2000c2,
- 0x22d7c3,
- 0x233743,
- 0x228843,
+ 0x22f743,
+ 0x234e83,
+ 0x20d343,
0x2005c3,
- 0x22a243,
- 0x206b43,
- 0x2013c3,
- 0x23cf83,
- 0x296983,
- 0xfc105,
- 0x1083,
- 0xa14c8,
- 0x22d7c3,
- 0x233743,
- 0x228843,
- 0x205e03,
- 0x206b43,
- 0x2013c3,
- 0x6df83,
- 0x23cf83,
- 0x22d7c3,
- 0x233743,
- 0x23cf83,
- 0x22d7c3,
- 0x233743,
- 0x220583,
+ 0x225a83,
+ 0x20ce83,
+ 0x204783,
+ 0x23f7c3,
+ 0x2981c3,
+ 0xf6585,
+ 0xd103,
+ 0xa7c88,
+ 0x22f743,
+ 0x234e83,
+ 0x20d343,
+ 0x211d83,
+ 0x20ce83,
+ 0x204783,
+ 0x71003,
+ 0x23f7c3,
+ 0x22f743,
+ 0x234e83,
+ 0x23f7c3,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
0x200181,
- 0x205e03,
- 0x206b43,
- 0x251ac3,
- 0x23cf83,
- 0x10c9c4,
- 0x24ce83,
- 0x22d7c3,
- 0x233743,
- 0x205d83,
- 0x228843,
- 0x251383,
- 0x22f503,
- 0x2ab3c3,
- 0x249743,
- 0x220583,
- 0x222884,
- 0x206b43,
- 0x23cf83,
- 0x207b83,
- 0x201844,
- 0x2534c3,
- 0xa683,
- 0x3c38c3,
- 0x32a148,
- 0x2ad604,
+ 0x211d83,
+ 0x20ce83,
+ 0x22c483,
+ 0x23f7c3,
+ 0x177384,
+ 0x24af03,
+ 0x22f743,
+ 0x234e83,
+ 0x211d03,
+ 0x20d343,
+ 0x35b003,
+ 0x207c03,
+ 0x2a57c3,
+ 0x228c43,
+ 0x224943,
+ 0x221b84,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x2050c3,
+ 0x330684,
+ 0x22cf03,
+ 0x1c183,
+ 0x3c5243,
+ 0x3226c8,
+ 0x28c784,
0x20020a,
- 0x250846,
- 0x12aa84,
- 0x383407,
- 0x21dd8a,
- 0x223549,
- 0x3ad507,
- 0x3b41ca,
- 0x24ce83,
- 0x3009cb,
- 0x2d5809,
- 0x2d86c5,
- 0x3b0f47,
- 0x2782,
- 0x22d7c3,
- 0x237987,
- 0x2e5505,
- 0x2c5cc9,
- 0x233743,
- 0x308386,
- 0x2c5103,
- 0xa1c3,
- 0x119746,
- 0x10b206,
- 0xad07,
- 0x221986,
- 0x225a85,
- 0x3d7547,
- 0x316747,
- 0x67220583,
- 0x34c907,
- 0x3b4983,
- 0x20be85,
- 0x222884,
- 0x26ef88,
- 0x379b0c,
- 0x2b12c5,
- 0x2a59c6,
- 0x237847,
- 0x20a647,
- 0x2660c7,
- 0x270048,
- 0x31868f,
- 0x223785,
- 0x23ffc7,
- 0x20d547,
- 0x2a74ca,
- 0x2eeb89,
- 0x322805,
- 0x32484a,
- 0x130246,
- 0xbb147,
- 0x2c5185,
- 0x38e484,
- 0x248e06,
- 0xbdfc6,
- 0x381b47,
- 0x2efcc7,
- 0x3dae88,
- 0x21a205,
- 0x2e5406,
- 0x25388,
- 0x357005,
- 0x1571c6,
- 0x23bd85,
- 0x28ca84,
- 0x2376c7,
- 0x2dddca,
- 0x255988,
- 0x361386,
- 0x2a243,
- 0x2e43c5,
- 0x3291c6,
- 0x3d5d86,
- 0x245486,
- 0x205e03,
- 0x3a4a87,
- 0x20d4c5,
- 0x206b43,
- 0x2e2b8d,
- 0x2013c3,
- 0x3daf88,
- 0x219344,
- 0x278245,
- 0x2a73c6,
- 0x394206,
- 0x2a7f47,
- 0x25da07,
- 0x283385,
- 0x23cf83,
- 0x2e9987,
- 0x344809,
- 0x36a6c9,
- 0x32e64a,
- 0x2434c2,
- 0x20be44,
- 0x2ecbc4,
- 0x2efb87,
- 0x2f0048,
- 0x2f24c9,
- 0x20cdc9,
- 0x2f3a07,
- 0xffc09,
- 0x3720c6,
- 0xf6a46,
- 0x2f7dc4,
- 0x2f83ca,
- 0x2fb488,
- 0x2fd089,
- 0x3ac386,
- 0x2b5e85,
- 0x255848,
- 0x2cc48a,
- 0x210f43,
- 0x2019c6,
- 0x2f3b07,
- 0x357785,
- 0x390485,
- 0x239703,
- 0x23d804,
- 0x226985,
- 0x287f07,
- 0x2f8fc5,
- 0x2eea46,
- 0x13c285,
- 0x28a243,
- 0x2b6609,
- 0x27800c,
- 0x2b9f4c,
- 0x2d6d88,
- 0x2a4b47,
- 0x306148,
- 0x106787,
- 0x306fca,
- 0x30768b,
- 0x2d5948,
- 0x394308,
- 0x239106,
- 0x3cad45,
- 0x30a10a,
- 0x2cfec5,
- 0x21be02,
- 0x2c9307,
- 0x251646,
- 0x375145,
- 0x30de89,
- 0x206145,
- 0x31fec5,
- 0x2752c9,
- 0x329106,
- 0x3ba5c8,
- 0x26a183,
- 0x209046,
- 0x2773c6,
- 0x31c485,
- 0x31c489,
- 0x2f2c09,
- 0x27e387,
- 0x11d2c4,
- 0x31d2c7,
- 0x20ccc9,
- 0x21df85,
- 0x3a2c8,
- 0x340ec5,
- 0x274b05,
- 0x377a09,
- 0x2020c2,
- 0x2e4884,
- 0x203f42,
- 0x201b82,
- 0x38c145,
- 0x32a808,
- 0x2bac05,
- 0x2c80c3,
- 0x2c80c5,
- 0x2d9d03,
- 0x209002,
- 0x302284,
- 0x2b69c3,
- 0x201002,
- 0x3cb604,
- 0x2ed143,
- 0x204f02,
- 0x2bac83,
- 0x303a84,
- 0x2fd643,
- 0x25cfc4,
- 0x209482,
- 0x213b43,
- 0x21bb03,
- 0x203002,
- 0x308102,
- 0x2f2a49,
- 0x219082,
- 0x28ba04,
- 0x202242,
- 0x2556c4,
- 0x372084,
- 0x206f04,
- 0x207d82,
- 0x238d42,
- 0x36ad83,
- 0x307443,
- 0x237b44,
- 0x248804,
- 0x2ba344,
- 0x2d1544,
- 0x2fb643,
- 0x2446c3,
- 0x3301c4,
- 0x31fdc4,
- 0x3203c6,
- 0x22c202,
- 0x2782,
- 0x409c3,
- 0x202782,
- 0x233743,
- 0x220583,
- 0x206b43,
- 0x23cf83,
+ 0x23ac46,
+ 0x123004,
+ 0x38e307,
+ 0x21e64a,
+ 0x219e89,
+ 0x3b4307,
+ 0x3b894a,
+ 0x24af03,
+ 0x2fd20b,
+ 0x228b89,
+ 0x2d6645,
+ 0x3b3007,
+ 0x3102,
+ 0x22f743,
+ 0x224507,
+ 0x26e885,
+ 0x2c5249,
+ 0x234e83,
+ 0x375106,
+ 0x2c4683,
+ 0xe5b83,
+ 0x10ed86,
+ 0x1327c6,
+ 0x1c6f07,
+ 0x217d86,
+ 0x21c385,
+ 0x3d9b47,
+ 0x30bcc7,
+ 0x68224943,
+ 0x34e707,
+ 0x3b9103,
+ 0x20afc5,
+ 0x221b84,
+ 0x271508,
+ 0x37d54c,
+ 0x2b28c5,
+ 0x2a53c6,
+ 0x2243c7,
+ 0x2e2407,
+ 0x25f607,
+ 0x263b48,
+ 0x30dccf,
+ 0x21a0c5,
+ 0x241287,
+ 0x2085c7,
+ 0x2a724a,
+ 0x2ea109,
+ 0x319ac5,
+ 0x31b98a,
+ 0x148f06,
+ 0xbb447,
+ 0x2c4705,
+ 0x3926c4,
+ 0x255c46,
+ 0xc8506,
+ 0x384907,
+ 0x2e9f87,
+ 0x36ac88,
+ 0x218305,
+ 0x26e786,
+ 0x225c8,
+ 0x2aa485,
+ 0xaa646,
+ 0x22e585,
+ 0x26cd44,
+ 0x3d2747,
+ 0x2febca,
+ 0x248108,
+ 0x32f706,
+ 0x25a83,
+ 0x2e1985,
+ 0x320ac6,
+ 0x3d6f86,
+ 0x3338c6,
+ 0x211d83,
+ 0x3a4cc7,
+ 0x208545,
+ 0x20ce83,
+ 0x2e014d,
+ 0x204783,
+ 0x36ad88,
+ 0x210504,
+ 0x279a45,
+ 0x2a7146,
+ 0x3981c6,
+ 0x2a8507,
+ 0x25c107,
+ 0x28ba85,
+ 0x23f7c3,
+ 0x2e41c7,
+ 0x310749,
+ 0x37b709,
+ 0x32a04a,
+ 0x23cb02,
+ 0x20af84,
+ 0x39a444,
+ 0x2e9e47,
+ 0x2ea4c8,
+ 0x2ec7c9,
+ 0x20dd09,
+ 0x2ed507,
+ 0xfab89,
+ 0x34b446,
+ 0xf09c6,
+ 0x2f2484,
+ 0x2f2a8a,
+ 0x2f57c8,
+ 0x2f7549,
+ 0x2f7b06,
+ 0x2b6ec5,
+ 0x247fc8,
+ 0x2caf4a,
+ 0x252c43,
+ 0x330806,
+ 0x2ed607,
+ 0x2aa905,
+ 0x39c985,
+ 0x22a8c3,
+ 0x23bb84,
+ 0x227345,
+ 0x287a47,
+ 0x2f3685,
+ 0x2f1c46,
+ 0x1017c5,
+ 0x289e43,
+ 0x3d1d89,
+ 0x27980c,
+ 0x2b994c,
+ 0x2d4d48,
+ 0x2abdc7,
+ 0x301e48,
+ 0x102487,
+ 0x302cca,
+ 0x30338b,
+ 0x228cc8,
+ 0x3982c8,
+ 0x22a2c6,
+ 0x28c345,
+ 0x33db4a,
+ 0x2cc105,
+ 0x21a602,
+ 0x2c8d07,
+ 0x250e06,
+ 0x378e85,
+ 0x3cb209,
+ 0x2120c5,
+ 0x31c245,
+ 0x3be6c9,
+ 0x320a06,
+ 0x3c0148,
+ 0x269f83,
+ 0x208e06,
+ 0x278506,
+ 0x311a45,
+ 0x311a49,
+ 0x21de09,
+ 0x28c0c7,
+ 0x114944,
+ 0x314947,
+ 0x20dc09,
+ 0x21e845,
+ 0x3a208,
+ 0x348a05,
+ 0x2fb885,
+ 0x3869c9,
+ 0x202602,
+ 0x22cd04,
+ 0x201e82,
+ 0x201742,
+ 0x2fb305,
+ 0x322d88,
+ 0x2baec5,
+ 0x2c7543,
+ 0x2c7545,
+ 0x2d79c3,
+ 0x2075c2,
+ 0x3dba44,
+ 0x28e843,
+ 0x200a82,
+ 0x3bd804,
+ 0x2e77c3,
+ 0x203b02,
+ 0x2baf43,
+ 0x2fe504,
+ 0x2f7c83,
+ 0x256c84,
+ 0x205fc2,
+ 0x214d03,
+ 0x21af43,
+ 0x2026c2,
+ 0x354282,
+ 0x21dc49,
+ 0x210242,
+ 0x28b304,
+ 0x205e02,
+ 0x247e44,
+ 0x34b404,
+ 0x32ecc4,
+ 0x204cc2,
+ 0x229f02,
+ 0x2dc6c3,
+ 0x303143,
+ 0x22e684,
+ 0x26a004,
+ 0x2d0384,
+ 0x2ed784,
+ 0x314ac3,
+ 0x245a43,
+ 0x348e84,
+ 0x316f44,
+ 0x317086,
+ 0x224682,
+ 0x3102,
+ 0x41c83,
+ 0x203102,
+ 0x234e83,
+ 0x224943,
+ 0x20ce83,
+ 0x23f7c3,
0x2000c2,
- 0x24ce83,
- 0x22d7c3,
- 0x233743,
- 0x208903,
- 0x220583,
- 0x222884,
- 0x2f2d04,
- 0x205184,
- 0x206b43,
- 0x23cf83,
- 0x213c43,
- 0x2f8984,
- 0x32bd43,
- 0x2a8fc3,
- 0x37a0c4,
- 0x340cc6,
- 0x218a43,
- 0x12dac5,
- 0x14c47,
- 0x2e6e03,
- 0x68a4abc8,
- 0x2416c3,
- 0x2b3883,
- 0x20bec3,
- 0x22a243,
- 0x35ff85,
- 0x1b0f03,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x206b43,
- 0x23cf83,
- 0x3410c3,
- 0x22f0c3,
- 0xa14c8,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x219e43,
- 0x206b43,
- 0x23b484,
- 0x6df83,
- 0x23cf83,
- 0x21f4c4,
- 0x12dac5,
- 0x2c1745,
- 0x14c47,
- 0x202782,
- 0x203dc2,
+ 0x24af03,
+ 0x22f743,
+ 0x234e83,
+ 0x2053c3,
+ 0x224943,
+ 0x221b84,
+ 0x21df04,
+ 0x209c04,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x214e03,
+ 0x2f3044,
+ 0x324003,
+ 0x2a96c3,
+ 0x37db04,
+ 0x348806,
+ 0x20fc03,
+ 0x129245,
+ 0xe747,
+ 0x26f503,
+ 0x69a49648,
+ 0x250603,
+ 0x2b5943,
+ 0x20b003,
+ 0x225a83,
+ 0x3542c5,
+ 0x1b2fc3,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x207703,
+ 0x231283,
+ 0xa7c88,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x214503,
+ 0x20ce83,
+ 0x281184,
+ 0x71003,
+ 0x23f7c3,
+ 0x2b7ec4,
+ 0x129245,
+ 0x2c1185,
+ 0xe747,
+ 0x203102,
+ 0x201d02,
0x200382,
- 0x202642,
- 0x13c3,
+ 0x208ac2,
+ 0x4783,
0x2003c2,
- 0x3304,
- 0x22d7c3,
- 0x236204,
- 0x233743,
- 0x220583,
- 0x205e03,
- 0x206b43,
- 0x23cf83,
- 0xa14c8,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x205e03,
- 0x205184,
- 0x206b43,
- 0x13c3,
- 0x23cf83,
- 0x202003,
- 0x241844,
- 0xa14c8,
- 0x22d7c3,
- 0x2013c3,
- 0x1083,
- 0x14d5c4,
- 0x24ec04,
- 0xa14c8,
- 0x22d7c3,
- 0x251184,
- 0x222884,
- 0x2013c3,
- 0x201642,
- 0x6df83,
- 0x23cf83,
- 0x25b583,
- 0x3d804,
- 0x3da885,
- 0x21be02,
- 0x3094c3,
- 0x131949,
- 0xdff06,
- 0x109548,
+ 0x1244,
+ 0x22f743,
+ 0x2375c4,
+ 0x234e83,
+ 0x224943,
+ 0x211d83,
+ 0x20ce83,
+ 0x23f7c3,
+ 0xa7c88,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x211d83,
+ 0x209c04,
+ 0x20ce83,
+ 0x4783,
+ 0x23f7c3,
+ 0x202443,
+ 0x250784,
+ 0xa7c88,
+ 0x22f743,
+ 0x204783,
+ 0xd103,
+ 0x14cfc4,
+ 0x23d544,
+ 0xa7c88,
+ 0x22f743,
+ 0x24f044,
+ 0x221b84,
+ 0x204783,
+ 0x201e02,
+ 0x71003,
+ 0x23f7c3,
+ 0x259703,
+ 0x3bb84,
+ 0x207ac5,
+ 0x21a602,
+ 0x376243,
+ 0x127409,
+ 0xde2c6,
+ 0x148b08,
0x2000c2,
- 0xa14c8,
- 0x202782,
- 0x233743,
- 0x220583,
+ 0xa7c88,
+ 0x203102,
+ 0x234e83,
+ 0x224943,
0x2005c2,
- 0x13c3,
- 0x23cf83,
- 0x79c2,
+ 0x4783,
+ 0x23f7c3,
+ 0x4f02,
0x82,
0x2000c2,
- 0x1b4387,
- 0x135b49,
- 0x7c303,
- 0xa14c8,
- 0x25a03,
- 0x6c356e87,
- 0x2d7c3,
- 0x1c0708,
- 0x233743,
- 0x220583,
- 0x3d346,
- 0x219e43,
- 0x95988,
- 0xc4108,
- 0x11f086,
- 0x205e03,
- 0xcf188,
- 0xedf43,
- 0x6c4e3d46,
- 0xea9c5,
- 0x33947,
- 0x6b43,
- 0x4e283,
- 0x3cf83,
- 0x2102,
- 0x19c44a,
- 0x4cc3,
- 0x18c203,
- 0x300204,
- 0x11848b,
- 0x118a48,
- 0x91a82,
- 0x1457987,
- 0x1530e07,
- 0x14c8188,
- 0x151e703,
- 0x1289cb,
- 0x12d947,
- 0x6a04,
+ 0x1b8b07,
+ 0x142149,
+ 0x7d6c3,
+ 0xa7c88,
+ 0x1c303,
+ 0x6d34f3c7,
+ 0x2f743,
+ 0x1c2908,
+ 0x234e83,
+ 0x224943,
+ 0x3fb86,
+ 0x214503,
+ 0x96c08,
+ 0xc3a48,
+ 0x116206,
+ 0x211d83,
+ 0xcdf88,
+ 0xbacc3,
+ 0x6d4e1306,
+ 0xe5285,
+ 0x35087,
+ 0xce83,
+ 0x444c3,
+ 0x3f7c3,
+ 0xda42,
+ 0x19fc4a,
+ 0x8283,
+ 0xfb3c3,
+ 0x2fca44,
+ 0x10dacb,
+ 0x10e088,
+ 0x91f82,
+ 0x1455187,
+ 0x152e787,
+ 0x14c7608,
+ 0x1515883,
+ 0x12708b,
+ 0xba42,
+ 0x125c07,
+ 0x1069c4,
0x2000c2,
- 0x202782,
- 0x236204,
- 0x220583,
- 0x205e03,
- 0x206b43,
- 0x23cf83,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x22a243,
- 0x206b43,
- 0x23cf83,
- 0x21f4c3,
- 0x202003,
- 0x2fe03,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x206b43,
- 0x23cf83,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x206b43,
- 0x23cf83,
- 0x1083,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x222884,
- 0x22a243,
- 0x206b43,
- 0x23cf83,
- 0x2195c2,
+ 0x203102,
+ 0x2375c4,
+ 0x224943,
+ 0x211d83,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x225a83,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x228743,
+ 0x202443,
+ 0x31e43,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x602,
+ 0xd103,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x221b84,
+ 0x225a83,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x210782,
0x2000c1,
0x2000c2,
0x200201,
- 0x339742,
- 0xa14c8,
- 0x21c745,
+ 0x33b542,
+ 0xa7c88,
+ 0x21c785,
0x200101,
- 0x2d7c3,
- 0x30944,
- 0x200f01,
+ 0x2f743,
+ 0x32244,
+ 0x2015c1,
0x200501,
- 0x202401,
- 0x24a882,
- 0x387184,
- 0x24a883,
+ 0x2014c1,
+ 0x249302,
+ 0x38b104,
+ 0x249303,
0x200041,
0x200801,
0x200181,
0x200701,
- 0x37e6c7,
- 0x31d9cf,
- 0x319886,
+ 0x3535c7,
+ 0x31e5cf,
+ 0x30eec6,
0x2004c1,
- 0x34d606,
- 0x200c01,
+ 0x34d006,
+ 0x200bc1,
0x200581,
- 0x3d8b8e,
+ 0x3d854e,
0x2003c1,
- 0x23cf83,
- 0x201001,
- 0x2e4d05,
- 0x202102,
- 0x239605,
+ 0x23f7c3,
+ 0x200a81,
+ 0x22d185,
+ 0x20da42,
+ 0x22a7c5,
0x200401,
0x200741,
0x2007c1,
- 0x21be02,
+ 0x21a602,
0x200081,
- 0x201ec1,
- 0x203301,
- 0x201081,
- 0x20a781,
- 0x54389,
- 0xa14c8,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x206b43,
- 0x23cf83,
- 0x214703,
- 0x22d7c3,
- 0x220583,
- 0x919c8,
- 0x205e03,
- 0x206b43,
- 0x4e703,
- 0x23cf83,
- 0x14ee5c8,
- 0x140fc8,
- 0x12dac5,
- 0xa14c8,
- 0x13c3,
- 0x12dac5,
- 0x43fc4,
- 0x3c2c8,
- 0x47984,
- 0x54389,
- 0x14ee5ca,
- 0xa14c8,
- 0x6df83,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x206b43,
- 0x23cf83,
- 0x20a683,
- 0xa14c8,
- 0x22d7c3,
- 0x233743,
- 0x2dd2c4,
- 0x23cf83,
- 0x3451c5,
- 0x31f384,
- 0x22d7c3,
- 0x206b43,
- 0x23cf83,
- 0x2003,
- 0xa7d8a,
- 0xf3e84,
- 0x122c86,
- 0x202782,
- 0x22d7c3,
- 0x230ec9,
- 0x233743,
- 0x2ab989,
- 0x220583,
- 0x205e03,
- 0x206b43,
- 0x6bfc4,
- 0x13c3,
- 0x23cf83,
- 0x2f7bc8,
- 0x2319c7,
- 0x3da885,
- 0x1d29c8,
- 0x1b4387,
- 0xf02ca,
- 0x6f54b,
- 0x14d847,
- 0x3e648,
- 0x1a050a,
- 0x11808,
- 0x135b49,
- 0x26847,
- 0x374c7,
- 0x14c8,
- 0x1c0708,
- 0x4028f,
- 0x19a45,
- 0x18b307,
- 0x3d346,
- 0x4e1c7,
- 0x122946,
- 0x95988,
- 0x9e786,
- 0x128f07,
- 0x12ea49,
- 0x10ec7,
- 0xb2f09,
- 0xbb909,
- 0xc14c6,
- 0xc4108,
- 0xc2c45,
- 0x7a30a,
- 0xcf188,
- 0xedf43,
- 0xdaa88,
- 0x33947,
- 0x172945,
- 0x5f550,
- 0x4e283,
- 0x6df83,
- 0x128d87,
- 0x22d85,
- 0xf19c8,
- 0x68885,
- 0x18c203,
- 0x7048,
- 0xc0246,
- 0x17c949,
- 0xad447,
- 0x131c0b,
- 0x6d144,
- 0x10e984,
- 0x11848b,
- 0x118a48,
- 0x119647,
- 0x12dac5,
- 0x22d7c3,
- 0x233743,
- 0x228843,
- 0x23cf83,
- 0x23de43,
- 0x220583,
- 0x6df83,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x205e03,
- 0x206b43,
- 0x23cf83,
- 0x8864b,
+ 0x202d01,
+ 0x201241,
+ 0x2018c1,
+ 0x2086c1,
+ 0x52449,
+ 0xa7c88,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x2158c3,
+ 0x22f743,
+ 0x224943,
+ 0x91ec8,
+ 0x211d83,
+ 0x20ce83,
+ 0x71283,
+ 0x23f7c3,
+ 0x14e8c08,
+ 0x7608,
+ 0x129245,
+ 0xa7c88,
+ 0x4783,
+ 0x129245,
+ 0x45344,
+ 0x40f88,
+ 0x46cc4,
+ 0xbd485,
+ 0x52449,
+ 0x14e8c0a,
+ 0xa7c88,
+ 0x71003,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x21c183,
+ 0xa7c88,
+ 0x22f743,
+ 0x234e83,
+ 0x2dbb04,
+ 0x23f7c3,
+ 0x266f85,
+ 0x316504,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x205982,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x2443,
+ 0xa834a,
+ 0x113284,
+ 0x119f46,
+ 0x24af03,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x203102,
+ 0x22f743,
+ 0x2327c9,
+ 0x234e83,
+ 0x2aca09,
+ 0x224943,
+ 0x211d83,
+ 0x20ce83,
+ 0x18cfc4,
+ 0x4783,
+ 0x23f7c3,
+ 0x2f2288,
+ 0x230287,
+ 0x207ac5,
+ 0x1d0c08,
+ 0x1b8b07,
+ 0xea74a,
+ 0x71acb,
+ 0x14d247,
+ 0x40148,
+ 0x138a8a,
+ 0x1cf188,
+ 0x142149,
+ 0x27207,
+ 0x38887,
+ 0x127d48,
+ 0x1c2908,
+ 0x4154f,
+ 0x16705,
+ 0x190347,
+ 0x3fb86,
+ 0x44407,
+ 0x119c06,
+ 0x96c08,
+ 0x9f046,
+ 0x120807,
+ 0x121409,
+ 0x1c0607,
+ 0xb2689,
+ 0xbbc09,
+ 0xc0f06,
+ 0xc3a48,
+ 0xc2385,
+ 0x7ba8a,
+ 0xcdf88,
+ 0xbacc3,
+ 0xd8d08,
+ 0x35087,
+ 0x16c105,
+ 0x7f950,
+ 0x444c3,
+ 0x71003,
+ 0x121287,
+ 0x196c5,
+ 0xebe48,
+ 0x67705,
+ 0xfb3c3,
+ 0x176b88,
+ 0x1c67c6,
+ 0x1ae489,
+ 0xaec07,
+ 0x1276cb,
+ 0x701c4,
+ 0x104e04,
+ 0x10dacb,
+ 0x10e088,
+ 0x10ec87,
+ 0x129245,
+ 0x22f743,
+ 0x234e83,
+ 0x20d343,
+ 0x23f7c3,
+ 0x23f343,
+ 0x224943,
+ 0x71003,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x211d83,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x8234b,
0x2000c2,
- 0x202782,
- 0x23cf83,
- 0xa14c8,
- 0x2782,
+ 0x203102,
+ 0x23f7c3,
+ 0xa7c88,
+ 0x3102,
0x2000c2,
- 0x202782,
+ 0x203102,
0x200382,
0x2005c2,
- 0x205e02,
- 0x206b43,
- 0x132f46,
+ 0x204802,
+ 0x20ce83,
+ 0x135706,
0x2003c2,
- 0x3d804,
+ 0x3bb84,
0x2000c2,
- 0x24ce83,
- 0x202782,
- 0x22d7c3,
- 0x233743,
+ 0x24af03,
+ 0x203102,
+ 0x22f743,
+ 0x234e83,
0x200382,
- 0x220583,
- 0x219e43,
- 0x205e03,
- 0x205184,
- 0x206b43,
- 0x212203,
- 0x13c3,
- 0x23cf83,
- 0x300204,
- 0x207b83,
- 0x220583,
- 0x202782,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x205e03,
- 0x206b43,
- 0x2013c3,
- 0x23cf83,
- 0x3bcc87,
- 0x22d7c3,
- 0x27c507,
- 0x366486,
- 0x201f83,
- 0x219d03,
- 0x220583,
- 0x209a03,
- 0x222884,
- 0x3975c4,
- 0x2df1c6,
- 0x201d43,
- 0x206b43,
- 0x23cf83,
- 0x3451c5,
- 0x309e84,
- 0x3a13c3,
- 0x2c7183,
- 0x2c9307,
- 0x2c6985,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x205e03,
- 0x206b43,
- 0x23cf83,
- 0x52507,
- 0x1667c7,
- 0x1a2a05,
- 0x20c882,
- 0x24a0c3,
- 0x20ee03,
- 0x24ce83,
- 0x7622d7c3,
- 0x206742,
- 0x233743,
- 0x204183,
- 0x220583,
- 0x222884,
- 0x37fa83,
- 0x223783,
- 0x205e03,
- 0x205184,
- 0x76602a42,
- 0x206b43,
- 0x23cf83,
- 0x204f03,
- 0x21c4c3,
- 0x212bc3,
- 0x2195c2,
- 0x207b83,
- 0xa14c8,
- 0x220583,
- 0x1083,
- 0x21e744,
- 0x24ce83,
- 0x202782,
- 0x22d7c3,
- 0x236204,
- 0x233743,
- 0x220583,
- 0x222884,
- 0x219e43,
- 0x3b7d44,
- 0x3216c4,
- 0x2dc3c6,
- 0x205184,
- 0x206b43,
- 0x23cf83,
- 0x213c43,
- 0x251646,
- 0x3540b,
- 0x29f46,
- 0xebe8a,
- 0x11c10a,
- 0xa14c8,
- 0x225344,
- 0x77a2d7c3,
- 0x329384,
- 0x233743,
- 0x2aea44,
- 0x220583,
- 0x2067c3,
- 0x205e03,
- 0x206b43,
- 0x6df83,
- 0x23cf83,
- 0x4b283,
- 0x3487cb,
- 0x3c94ca,
- 0x3db44c,
- 0xe4148,
+ 0x224943,
+ 0x214503,
+ 0x211d83,
+ 0x209c04,
+ 0x20ce83,
+ 0x2130c3,
+ 0x4783,
+ 0x23f7c3,
+ 0x2fca44,
+ 0x2050c3,
+ 0x224943,
+ 0x203102,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x211d83,
+ 0x20ce83,
+ 0x204783,
+ 0x23f7c3,
+ 0x3bd0c7,
+ 0x22f743,
+ 0x27d8c7,
+ 0x35df46,
+ 0x20a8c3,
+ 0x2143c3,
+ 0x224943,
+ 0x2083c3,
+ 0x221b84,
+ 0x39b5c4,
+ 0x30f746,
+ 0x202143,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x266f85,
+ 0x3283c4,
+ 0x34fb43,
+ 0x2c6703,
+ 0x2c8d07,
+ 0x2c5f05,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x211d83,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x772fc18c,
+ 0x4ddc7,
+ 0xdd286,
+ 0x930c7,
+ 0x1a29c5,
+ 0x206c82,
+ 0x38ffc3,
+ 0x206203,
+ 0x24af03,
+ 0x77e2f743,
+ 0x2037c2,
+ 0x234e83,
+ 0x2020c3,
+ 0x224943,
+ 0x221b84,
+ 0x201143,
+ 0x21a0c3,
+ 0x211d83,
+ 0x209c04,
+ 0x78205682,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x209983,
+ 0x222f03,
+ 0x20cf03,
+ 0x210782,
+ 0x2050c3,
+ 0xa7c88,
+ 0x224943,
+ 0xd103,
+ 0x21f004,
+ 0x24af03,
+ 0x203102,
+ 0x22f743,
+ 0x2375c4,
+ 0x234e83,
+ 0x224943,
+ 0x221b84,
+ 0x214503,
+ 0x3bac04,
+ 0x346484,
+ 0x2da646,
+ 0x209c04,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x214e03,
+ 0x250e06,
+ 0x36b8b,
+ 0x25786,
+ 0x6da0a,
+ 0x112d0a,
+ 0xa7c88,
+ 0x222584,
+ 0x7962f743,
+ 0x320c84,
+ 0x234e83,
+ 0x2d7004,
+ 0x224943,
+ 0x203843,
+ 0x211d83,
+ 0x20ce83,
+ 0x71003,
+ 0x23f7c3,
+ 0xa1c3,
+ 0x349f4b,
+ 0x3c8bca,
+ 0x3da28c,
+ 0xe1708,
0x2000c2,
- 0x202782,
+ 0x203102,
0x200382,
- 0x22e1c5,
- 0x222884,
- 0x2024c2,
- 0x205e03,
- 0x3216c4,
- 0x202642,
+ 0x230145,
+ 0x221b84,
+ 0x205982,
+ 0x211d83,
+ 0x346484,
+ 0x208ac2,
0x2003c2,
- 0x202002,
- 0x2195c2,
- 0x4ce83,
- 0x35d82,
- 0x2c1f89,
- 0x33f688,
- 0x2294c9,
- 0x21f009,
- 0x2b718a,
- 0x32324a,
- 0x20a602,
- 0x2d5e42,
- 0x2782,
- 0x22d7c3,
- 0x22bdc2,
- 0x240186,
- 0x376cc2,
- 0x203742,
- 0x26f8ce,
- 0x213b8e,
- 0x281287,
- 0x212ac7,
- 0x251bc2,
- 0x233743,
- 0x220583,
- 0x2191c2,
+ 0x202442,
+ 0x210782,
+ 0x4af03,
+ 0x47502,
+ 0x2be789,
+ 0x340e48,
+ 0x2247c9,
+ 0x21f909,
+ 0x2ab2ca,
+ 0x318c0a,
+ 0x214c42,
+ 0x2291c2,
+ 0x3102,
+ 0x22f743,
+ 0x22ca82,
+ 0x241446,
+ 0x37a202,
+ 0x201682,
+ 0x271e4e,
+ 0x214d4e,
+ 0x281447,
+ 0x20ce07,
+ 0x24f302,
+ 0x234e83,
+ 0x224943,
+ 0x207282,
0x2005c2,
- 0x19c83,
- 0x23640f,
- 0x237542,
- 0x355f47,
- 0x2b5707,
- 0x2c8c47,
- 0x2d164c,
- 0x2d36cc,
- 0x21e404,
- 0x25ea0a,
- 0x213ac2,
- 0x253a42,
- 0x2bd1c4,
+ 0x14343,
+ 0x2377cf,
+ 0x238902,
+ 0x2b4407,
+ 0x36e087,
+ 0x2b6a07,
+ 0x2d198c,
+ 0x2d26cc,
+ 0x21ecc4,
+ 0x39f08a,
+ 0x214c82,
+ 0x251b42,
+ 0x2bd784,
0x200702,
- 0x2af602,
- 0x2d3904,
- 0x212302,
- 0x200b42,
- 0x14903,
- 0x29e807,
- 0x23f2c5,
- 0x20f1c2,
- 0x24e144,
- 0x201582,
- 0x2e3ec8,
- 0x206b43,
- 0x3754c8,
- 0x204082,
- 0x21e5c5,
- 0x394b06,
- 0x23cf83,
- 0x206a82,
- 0x2f2707,
- 0x2102,
- 0x3a46c5,
- 0x21fe85,
- 0x213f82,
- 0x202c02,
- 0x204d4a,
- 0x28320a,
- 0x2801c2,
- 0x29ce84,
- 0x201202,
- 0x20bd08,
- 0x20a742,
- 0x304d48,
- 0x314187,
- 0x315089,
- 0x21ff02,
- 0x31a585,
- 0x36a1c5,
- 0x21a2cb,
- 0x2df74c,
- 0x22b8c8,
- 0x32d788,
- 0x22c202,
- 0x2a8002,
+ 0x2b0602,
+ 0x2d2904,
+ 0x2131c2,
+ 0x20e942,
+ 0xe943,
+ 0x29f0c7,
+ 0x23a9c5,
+ 0x2065c2,
+ 0x244384,
+ 0x327e02,
+ 0x2e1488,
+ 0x20ce83,
+ 0x379208,
+ 0x201fc2,
+ 0x21ee85,
+ 0x398ac6,
+ 0x23f7c3,
+ 0x207702,
+ 0x2eca07,
+ 0xda42,
+ 0x3a4905,
+ 0x321185,
+ 0x205d02,
+ 0x20ba82,
+ 0x2097ca,
+ 0x28b90a,
+ 0x287542,
+ 0x29fc44,
+ 0x205202,
+ 0x20ae48,
+ 0x208c02,
+ 0x301148,
+ 0x309407,
+ 0x30a189,
+ 0x2e5d02,
+ 0x30ffc5,
+ 0x36d845,
+ 0x2183cb,
+ 0x30fccc,
+ 0x22c588,
+ 0x325a48,
+ 0x224682,
+ 0x2a85c2,
0x2000c2,
- 0xa14c8,
- 0x202782,
- 0x22d7c3,
+ 0xa7c88,
+ 0x203102,
+ 0x22f743,
0x200382,
- 0x202642,
- 0x13c3,
+ 0x208ac2,
+ 0x4783,
0x2003c2,
- 0x23cf83,
- 0x202002,
+ 0x23f7c3,
+ 0x202442,
0x2000c2,
- 0x12dac5,
- 0x78e02782,
- 0x79620583,
- 0x214903,
- 0x2024c2,
- 0x206b43,
- 0x379083,
- 0x79a3cf83,
- 0x2ef083,
- 0x283dc6,
- 0x1602003,
- 0x12dac5,
- 0x132e0b,
- 0xa14c8,
- 0x793caf88,
- 0x60ac7,
- 0x6d807,
- 0x45585,
- 0xaafcd,
- 0x3d142,
- 0x119042,
- 0xa8a0a,
- 0x83047,
- 0x256c4,
- 0x25703,
- 0x1b4904,
- 0x7a205342,
- 0x7a600b02,
- 0x7aa02442,
- 0x7ae026c2,
- 0x7b20d242,
- 0x7b605cc2,
- 0x14c47,
- 0x7ba02782,
- 0x7be2eec2,
- 0x7c21ed42,
- 0x7c602942,
- 0x213b83,
- 0x16f44,
- 0x2399c3,
- 0x7ca0dd82,
- 0x5d348,
- 0x7ce05282,
- 0x71d87,
- 0x7d200042,
- 0x7d6012c2,
- 0x7da00182,
- 0x7de067c2,
- 0x7e205e42,
- 0x7e6005c2,
- 0xd8605,
- 0x251e03,
- 0x39ffc4,
- 0x7ea00702,
- 0x7ee03942,
- 0x7f206ac2,
- 0x7af0b,
- 0x7f601442,
- 0x7fe4ab82,
- 0x802024c2,
- 0x80605e02,
- 0x80a02dc2,
- 0x80e00c02,
- 0x81200e82,
- 0x8166cec2,
- 0x81a02a42,
- 0x81e09a42,
- 0x82202642,
- 0x82616202,
- 0x82a6ef42,
- 0x82e09b42,
- 0xb2bc4,
- 0x217a43,
- 0x8320a302,
- 0x836137c2,
- 0x83a11b82,
- 0x83e006c2,
- 0x842003c2,
- 0x84601002,
- 0x887c7,
- 0x84a13c42,
- 0x84e04482,
- 0x85202002,
- 0x85600ec2,
- 0x1aed4c,
- 0x85a43982,
- 0x85e28202,
- 0x86203082,
- 0x86606842,
- 0x86a0a342,
- 0x86e76c02,
- 0x87205302,
- 0x8760adc2,
- 0x87a77742,
- 0x87e77c82,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x17343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x7fb7fa83,
- 0x217343,
- 0x360004,
- 0x2293c6,
- 0x2fe843,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x308b49,
- 0x235d82,
- 0x3d3c43,
- 0x2bbc03,
- 0x202ac5,
- 0x204183,
- 0x37fa83,
- 0x217343,
- 0x2a6343,
- 0x243283,
- 0x245b89,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x235d82,
- 0x235d82,
- 0x37fa83,
- 0x217343,
- 0x8862d7c3,
- 0x233743,
- 0x21f243,
- 0x205e03,
- 0x206b43,
- 0x13c3,
- 0x23cf83,
- 0xa14c8,
- 0x202782,
- 0x22d7c3,
- 0x206b43,
- 0x23cf83,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x205e03,
- 0x206b43,
- 0x13c3,
- 0x23cf83,
- 0x24ec04,
- 0x202782,
- 0x22d7c3,
- 0x309703,
- 0x233743,
- 0x251184,
- 0x228843,
- 0x220583,
- 0x222884,
- 0x219e43,
- 0x205e03,
- 0x206b43,
- 0x23cf83,
- 0x25b583,
- 0x3da885,
- 0x243283,
- 0x207b83,
- 0x13c3,
- 0x202782,
- 0x22d7c3,
- 0x37fa83,
- 0x206b43,
- 0x23cf83,
+ 0x129245,
+ 0x7aa03102,
+ 0x7b224943,
+ 0x20e943,
+ 0x205982,
+ 0x20ce83,
+ 0x3bb643,
+ 0x7b63f7c3,
+ 0x2e9343,
+ 0x283206,
+ 0x1602443,
+ 0x129245,
+ 0x1355cb,
+ 0xa7c88,
+ 0x7ae8c588,
+ 0x895c7,
+ 0x70887,
+ 0x1339c5,
+ 0x1e00d,
+ 0x3f982,
+ 0x10e682,
+ 0xa910a,
+ 0x8b747,
+ 0x1bfc4,
+ 0x1c003,
+ 0x1b9084,
+ 0x7be048c2,
+ 0x7c200ac2,
+ 0x7c603002,
+ 0x7ca04182,
+ 0x7ce09fc2,
+ 0x7d207982,
+ 0xe747,
+ 0x7d603102,
+ 0x7da31082,
+ 0x7de1f642,
+ 0x7e207682,
+ 0x214d43,
+ 0x12984,
+ 0x239043,
+ 0x7e60e382,
+ 0x5ba48,
+ 0x7ea02ec2,
+ 0x4f947,
+ 0x7ee00042,
+ 0x7f200d82,
+ 0x7f600182,
+ 0x7fa03842,
+ 0x7fe00f42,
+ 0x802005c2,
+ 0xd6585,
+ 0x24f543,
+ 0x338544,
+ 0x80600702,
+ 0x80a01882,
+ 0x80e04b42,
+ 0x7c68b,
+ 0x81200c42,
+ 0x81a49602,
+ 0x81e05982,
+ 0x82204802,
+ 0x8261f382,
+ 0x82a00bc2,
+ 0x82e04fc2,
+ 0x8326ff42,
+ 0x83605682,
+ 0x83a04bc2,
+ 0x83e08ac2,
+ 0x84216e02,
+ 0x8463d2c2,
+ 0x84a24a82,
+ 0xb40c4,
+ 0x2163c3,
+ 0x84e00ec2,
+ 0x85210482,
+ 0x85602f82,
+ 0x85a006c2,
+ 0x85e003c2,
+ 0x86200a82,
+ 0x824c7,
+ 0x86614e02,
+ 0x86a023c2,
+ 0x86e02442,
+ 0x87214d02,
+ 0x1b030c,
+ 0x87644d02,
+ 0x87a20302,
+ 0x87e02742,
+ 0x882038c2,
+ 0x88600f02,
+ 0x88a77dc2,
+ 0x88e02d02,
+ 0x8921c902,
+ 0x89678882,
+ 0x89a79482,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x15cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x81601143,
+ 0x215cc3,
+ 0x354344,
+ 0x2246c6,
+ 0x2f8f83,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x3758c9,
+ 0x247502,
+ 0x3d31c3,
+ 0x2bbf03,
+ 0x32fdc5,
+ 0x2020c3,
+ 0x201143,
+ 0x215cc3,
+ 0x2a2c03,
+ 0x229143,
+ 0x23c689,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x247502,
+ 0x247502,
+ 0x201143,
+ 0x215cc3,
+ 0x8a22f743,
+ 0x234e83,
+ 0x21fb43,
+ 0x211d83,
+ 0x20ce83,
+ 0x4783,
+ 0x23f7c3,
+ 0xa7c88,
+ 0x203102,
+ 0x22f743,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x8ace63c2,
+ 0x211d83,
+ 0x20ce83,
+ 0x4783,
+ 0x23f7c3,
+ 0x15c1,
+ 0x23d544,
+ 0x203102,
+ 0x22f743,
+ 0x200983,
+ 0x234e83,
+ 0x24f044,
+ 0x20d343,
+ 0x224943,
+ 0x221b84,
+ 0x214503,
+ 0x211d83,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x259703,
+ 0x207ac5,
+ 0x229143,
+ 0x2050c3,
+ 0x4783,
+ 0x203102,
+ 0x22f743,
+ 0x201143,
+ 0x20ce83,
+ 0x23f7c3,
0x2000c2,
- 0x24ce83,
- 0xa14c8,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x22fac6,
- 0x222884,
- 0x219e43,
- 0x205184,
- 0x206b43,
- 0x23cf83,
- 0x213c43,
- 0x22d7c3,
- 0x233743,
- 0x206b43,
- 0x23cf83,
- 0x2ebc2,
- 0x2b42,
- 0x144de07,
- 0x492c7,
- 0x22d7c3,
- 0x29f46,
- 0x233743,
- 0x220583,
- 0xe7e06,
- 0x206b43,
- 0x23cf83,
- 0x329fc8,
- 0x32d5c9,
- 0x341f49,
- 0x34a9c8,
- 0x396bc8,
- 0x396bc9,
- 0x323aca,
- 0x35d44a,
- 0x391f8a,
- 0x39858a,
- 0x3c94ca,
- 0x3d680b,
- 0x24704d,
- 0x3676cf,
- 0x272190,
- 0x35eacd,
- 0x37d58c,
- 0x3982cb,
- 0x6da08,
- 0x147d48,
- 0xb1005,
- 0x1489947,
- 0xcd9c5,
+ 0x24af03,
+ 0xa7c88,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x231b06,
+ 0x221b84,
+ 0x214503,
+ 0x209c04,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x214e03,
+ 0x22f743,
+ 0x234e83,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x28002,
+ 0x1942,
+ 0x144e8c7,
+ 0x56107,
+ 0x22f743,
+ 0x25786,
+ 0x234e83,
+ 0x224943,
+ 0xe2cc6,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x322548,
+ 0x325889,
+ 0x342f49,
+ 0x34c4c8,
+ 0x39abc8,
+ 0x39abc9,
+ 0x31ac4a,
+ 0x35e24a,
+ 0x395f8a,
+ 0x39c18a,
+ 0x3c8bca,
+ 0x3d588b,
+ 0x24638d,
+ 0x368e4f,
+ 0x276490,
+ 0x3605cd,
+ 0x3813cc,
+ 0x39becb,
+ 0x70a88,
+ 0xe6208,
+ 0x166745,
+ 0x14891c7,
+ 0xcc705,
0x2000c2,
- 0x2c67c5,
- 0x200b03,
- 0x8c202782,
- 0x233743,
- 0x220583,
- 0x38d5c7,
- 0x20bec3,
- 0x205e03,
- 0x206b43,
- 0x251ac3,
- 0x20c243,
- 0x2013c3,
- 0x23cf83,
- 0x259b06,
- 0x21be02,
- 0x207b83,
- 0xa14c8,
+ 0x2c5d45,
+ 0x20e903,
+ 0x8e203102,
+ 0x234e83,
+ 0x224943,
+ 0x391807,
+ 0x20b003,
+ 0x211d83,
+ 0x20ce83,
+ 0x22c483,
+ 0x2130c3,
+ 0x20b3c3,
+ 0x204783,
+ 0x23f7c3,
+ 0x254c06,
+ 0x21a602,
+ 0x2050c3,
+ 0xa7c88,
0x2000c2,
- 0x24ce83,
- 0x202782,
- 0x22d7c3,
- 0x233743,
- 0x220583,
- 0x222884,
- 0x205e03,
- 0x206b43,
- 0x23cf83,
- 0x202003,
- 0x492c7,
- 0x131944,
- 0x153fd06,
+ 0x24af03,
+ 0x203102,
+ 0x22f743,
+ 0x234e83,
+ 0x224943,
+ 0x221b84,
+ 0x211d83,
+ 0x20ce83,
+ 0x23f7c3,
+ 0x202443,
+ 0x56107,
+ 0xba42,
+ 0x127404,
+ 0x15c8f86,
0x2000c2,
- 0x202782,
- 0x220583,
- 0x205e03,
- 0x23cf83,
+ 0x203102,
+ 0x224943,
+ 0x211d83,
+ 0x23f7c3,
}
// children is the list of nodes' children, the parent's wildcard bit and the
@@ -9395,568 +9427,576 @@ var children = [...]uint32{
0x40000000,
0x50000000,
0x60000000,
- 0x1824603,
+ 0x1820602,
+ 0x1824608,
0x1828609,
- 0x182c60a,
- 0x185060b,
- 0x19ac614,
- 0x19c466b,
- 0x19d8671,
- 0x19f0676,
- 0x1a1067c,
- 0x1a28684,
- 0x1a4068a,
- 0x1a58690,
- 0x1a5c696,
- 0x1a84697,
- 0x1a886a1,
- 0x1aa06a2,
+ 0x184c60a,
+ 0x19a8613,
+ 0x19c066a,
+ 0x19d4670,
+ 0x19ec675,
+ 0x1a0c67b,
+ 0x1a24683,
+ 0x1a3c689,
+ 0x1a5468f,
+ 0x1a58695,
+ 0x1a80696,
+ 0x1a846a0,
+ 0x1a9c6a1,
+ 0x1aa06a7,
0x1aa46a8,
- 0x1aa86a9,
- 0x1ae46aa,
- 0x1ae86b9,
- 0x61af06ba,
- 0x21af86bc,
- 0x1b406be,
- 0x1b446d0,
- 0x1b646d1,
- 0x1b786d9,
- 0x1b7c6de,
- 0x1bac6df,
- 0x1bc86eb,
- 0x1bf06f2,
- 0x1c006fc,
- 0x1c04700,
- 0x1c9c701,
- 0x1cb0727,
- 0x1cc472c,
- 0x1cfc731,
- 0x1d0c73f,
- 0x1d20743,
- 0x1d38748,
- 0x1ddc74e,
- 0x1fe0777,
- 0x1fe47f8,
- 0x20507f9,
- 0x20bc814,
- 0x20d482f,
- 0x20e8835,
- 0x20ec83a,
- 0x20f483b,
- 0x210883d,
- 0x210c842,
- 0x2128843,
- 0x217884a,
- 0x217c85e,
- 0x2218085f,
- 0x219c860,
- 0x21a0867,
- 0x21a4868,
- 0x21c8869,
- 0x2208872,
- 0x220c882,
- 0x62210883,
- 0x2228884,
- 0x224888a,
- 0x2254892,
- 0x2264895,
- 0x2318899,
- 0x231c8c6,
- 0x2232c8c7,
- 0x223308cb,
- 0x223388cc,
- 0x23948ce,
- 0x23988e5,
- 0x28848e6,
- 0x2292ca21,
- 0x22930a4b,
- 0x22934a4c,
- 0x22940a4d,
+ 0x1ae06a9,
+ 0x1ae46b8,
+ 0x61aec6b9,
+ 0x21af46bb,
+ 0x1b3c6bd,
+ 0x1b406cf,
+ 0x1b686d0,
+ 0x1b6c6da,
+ 0x1b706db,
+ 0x1b846dc,
+ 0x1b886e1,
+ 0x1bb86e2,
+ 0x1bd46ee,
+ 0x1bfc6f5,
+ 0x1c0c6ff,
+ 0x1c10703,
+ 0x1ca8704,
+ 0x1cbc72a,
+ 0x1cd072f,
+ 0x1d08734,
+ 0x1d18742,
+ 0x1d2c746,
+ 0x1d4474b,
+ 0x1de8751,
+ 0x1fec77a,
+ 0x1ff07fb,
+ 0x205c7fc,
+ 0x20c8817,
+ 0x20e0832,
+ 0x20f4838,
+ 0x20f883d,
+ 0x210083e,
+ 0x2114840,
+ 0x2118845,
+ 0x2134846,
+ 0x218484d,
+ 0x2188861,
+ 0x2218c862,
+ 0x21a8863,
+ 0x21ac86a,
+ 0x21b086b,
+ 0x21d486c,
+ 0x2214875,
+ 0x2218885,
+ 0x6221c886,
+ 0x2234887,
+ 0x225488d,
+ 0x2260895,
+ 0x2270898,
+ 0x232489c,
+ 0x23288c9,
+ 0x223388ca,
+ 0x2233c8ce,
+ 0x223448cf,
+ 0x239c8d1,
+ 0x23a08e7,
+ 0x28948e8,
+ 0x2293ca25,
+ 0x22940a4f,
0x22944a50,
0x22950a51,
0x22954a54,
- 0x22958a55,
- 0x2295ca56,
- 0x22960a57,
+ 0x22960a55,
0x22964a58,
- 0x22970a59,
+ 0x22968a59,
+ 0x2296ca5a,
+ 0x22970a5b,
0x22974a5c,
0x22980a5d,
0x22984a60,
- 0x22988a61,
- 0x2298ca62,
- 0x22998a63,
+ 0x22990a61,
+ 0x22994a64,
+ 0x22998a65,
0x2299ca66,
0x229a8a67,
0x229aca6a,
- 0x229b0a6b,
- 0x229b4a6c,
- 0x29b8a6d,
+ 0x229b8a6b,
0x229bca6e,
- 0x229c8a6f,
+ 0x229c0a6f,
+ 0x229c4a70,
+ 0x29c8a71,
0x229cca72,
- 0x29d4a73,
- 0x2a18a75,
- 0x22a38a86,
- 0x22a3ca8e,
- 0x22a40a8f,
- 0x22a48a90,
+ 0x229d8a73,
+ 0x229dca76,
+ 0x29e4a77,
+ 0x2a28a79,
+ 0x22a48a8a,
0x22a4ca92,
- 0x2a50a93,
- 0x22a54a94,
- 0x22a58a95,
+ 0x22a50a93,
+ 0x22a58a94,
0x22a5ca96,
- 0x2a64a97,
- 0x2a68a99,
- 0x2a6ca9a,
- 0x2a88a9b,
- 0x2aa0aa2,
- 0x2aa4aa8,
- 0x2ab4aa9,
- 0x2ac0aad,
- 0x2af4ab0,
- 0x2af8abd,
- 0x2b10abe,
- 0x22b18ac4,
- 0x22b1cac6,
- 0x22b24ac7,
- 0x2c14ac9,
- 0x22c18b05,
- 0x2c20b06,
- 0x2c24b08,
+ 0x2a60a97,
+ 0x22a64a98,
+ 0x22a68a99,
+ 0x22a6ca9a,
+ 0x2a74a9b,
+ 0x2a78a9d,
+ 0x2a7ca9e,
+ 0x2a98a9f,
+ 0x2ab0aa6,
+ 0x2ab4aac,
+ 0x2ac4aad,
+ 0x2ad0ab1,
+ 0x2b04ab4,
+ 0x2b08ac1,
+ 0x2b20ac2,
+ 0x22b28ac8,
+ 0x22b2caca,
+ 0x22b34acb,
+ 0x2c24acd,
0x22c28b09,
- 0x2c2cb0a,
- 0x2c3cb0b,
- 0x2c40b0f,
- 0x2c44b10,
- 0x2c48b11,
- 0x2c60b12,
- 0x2c74b18,
- 0x2c9cb1d,
- 0x2cbcb27,
- 0x2cc0b2f,
- 0x62cc4b30,
- 0x2cf4b31,
- 0x2cf8b3d,
- 0x22cfcb3e,
- 0x2d00b3f,
- 0x2d28b40,
- 0x2d2cb4a,
- 0x2d50b4b,
- 0x2d54b54,
- 0x2d68b55,
- 0x2d6cb5a,
+ 0x2c30b0a,
+ 0x2c34b0c,
+ 0x22c38b0d,
+ 0x2c3cb0e,
+ 0x2c54b0f,
+ 0x2c58b15,
+ 0x2c5cb16,
+ 0x2c60b17,
+ 0x2c78b18,
+ 0x2c8cb1e,
+ 0x2cb4b23,
+ 0x2cd4b2d,
+ 0x2cd8b35,
+ 0x62cdcb36,
+ 0x2d10b37,
+ 0x2d14b44,
+ 0x22d18b45,
+ 0x2d1cb46,
+ 0x2d44b47,
+ 0x2d48b51,
+ 0x2d6cb52,
0x2d70b5b,
- 0x2d90b5c,
- 0x2dacb64,
- 0x2db0b6b,
- 0x22db4b6c,
- 0x2db8b6d,
- 0x2dbcb6e,
- 0x2dc0b6f,
- 0x2dc8b70,
- 0x2ddcb72,
- 0x2de0b77,
- 0x2de4b78,
- 0x2de8b79,
- 0x2e58b7a,
- 0x2e5cb96,
- 0x2e60b97,
- 0x2e80b98,
- 0x2e94ba0,
- 0x2ea8ba5,
- 0x2ec0baa,
- 0x2edcbb0,
- 0x2ef4bb7,
- 0x2ef8bbd,
+ 0x2d84b5c,
+ 0x2d88b61,
+ 0x2d8cb62,
+ 0x2dacb63,
+ 0x2dc8b6b,
+ 0x2dccb72,
+ 0x22dd0b73,
+ 0x2dd4b74,
+ 0x2dd8b75,
+ 0x2ddcb76,
+ 0x2de4b77,
+ 0x2df8b79,
+ 0x2dfcb7e,
+ 0x2e00b7f,
+ 0x2e04b80,
+ 0x2e74b81,
+ 0x2e78b9d,
+ 0x2e7cb9e,
+ 0x2e9cb9f,
+ 0x2eb0ba7,
+ 0x2ec4bac,
+ 0x2edcbb1,
+ 0x2ef8bb7,
0x2f10bbe,
- 0x2f2cbc4,
- 0x2f30bcb,
- 0x2f50bcc,
- 0x2f70bd4,
- 0x2f8cbdc,
- 0x2fecbe3,
- 0x3008bfb,
- 0x3018c02,
- 0x301cc06,
- 0x3034c07,
- 0x3078c0d,
- 0x30f8c1e,
- 0x312cc3e,
- 0x3130c4b,
- 0x313cc4c,
- 0x315cc4f,
- 0x3160c57,
- 0x3184c58,
- 0x318cc61,
- 0x31c8c63,
- 0x3218c72,
- 0x321cc86,
- 0x3220c87,
- 0x32e4c88,
- 0x232e8cb9,
- 0x232eccba,
- 0x32f0cbb,
- 0x232f4cbc,
- 0x232f8cbd,
- 0x232fccbe,
- 0x2330ccbf,
- 0x23310cc3,
+ 0x2f14bc4,
+ 0x2f2cbc5,
+ 0x2f48bcb,
+ 0x2f4cbd2,
+ 0x2f6cbd3,
+ 0x2f8cbdb,
+ 0x2fa8be3,
+ 0x300cbea,
+ 0x3028c03,
+ 0x3038c0a,
+ 0x303cc0e,
+ 0x3054c0f,
+ 0x3098c15,
+ 0x3118c26,
+ 0x3148c46,
+ 0x314cc52,
+ 0x3158c53,
+ 0x3178c56,
+ 0x317cc5e,
+ 0x31a0c5f,
+ 0x31a8c68,
+ 0x31e4c6a,
+ 0x3234c79,
+ 0x3238c8d,
+ 0x323cc8e,
+ 0x3304c8f,
+ 0x23308cc1,
+ 0x2330ccc2,
+ 0x3310cc3,
0x23314cc4,
0x23318cc5,
0x2331ccc6,
- 0x3334cc7,
- 0x3358ccd,
- 0x3378cd6,
- 0x39e4cde,
- 0x39f0e79,
- 0x3a10e7c,
- 0x3bd0e84,
- 0x3ca0ef4,
- 0x3d10f28,
- 0x3d68f44,
- 0x3e50f5a,
- 0x3ea8f94,
- 0x3ee4faa,
- 0x3fe0fb9,
- 0x40acff8,
- 0x414502b,
- 0x41d5051,
- 0x4239075,
- 0x447108e,
- 0x452911c,
- 0x45f514a,
- 0x464117d,
- 0x46c9190,
- 0x47051b2,
- 0x47551c1,
- 0x47cd1d5,
- 0x647d11f3,
- 0x647d51f4,
- 0x647d91f5,
- 0x48551f6,
- 0x48b1215,
- 0x492d22c,
- 0x49a524b,
- 0x4a25269,
- 0x4a91289,
- 0x4bbd2a4,
- 0x4c152ef,
- 0x64c19305,
- 0x4cb1306,
- 0x4cb532c,
- 0x4d3d32d,
- 0x4d8934f,
- 0x4df1362,
- 0x4e9937c,
- 0x4f613a6,
- 0x4fc93d8,
- 0x50dd3f2,
- 0x650e1437,
- 0x650e5438,
- 0x5141439,
- 0x519d450,
- 0x522d467,
- 0x52a948b,
- 0x52ed4aa,
- 0x53d14bb,
- 0x54054f4,
- 0x5465501,
- 0x54d9519,
- 0x5561536,
- 0x55a1558,
- 0x5611568,
- 0x65615584,
- 0x563d585,
- 0x564158f,
- 0x5659590,
- 0x5675596,
- 0x56b959d,
- 0x56c95ae,
- 0x56e15b2,
- 0x57595b8,
- 0x57615d6,
- 0x577d5d8,
- 0x57915df,
- 0x57ad5e4,
- 0x57d95eb,
- 0x57dd5f6,
- 0x57e55f7,
- 0x57f95f9,
- 0x58195fe,
- 0x5829606,
- 0x583560a,
- 0x587160d,
- 0x587961c,
- 0x588d61e,
- 0x58b1623,
- 0x58bd62c,
- 0x58c562f,
- 0x58e9631,
- 0x590d63a,
- 0x5925643,
- 0x5929649,
- 0x593164a,
- 0x593564c,
- 0x59d164d,
- 0x59d5674,
- 0x59d9675,
- 0x59dd676,
- 0x5a01677,
- 0x5a25680,
- 0x5a41689,
- 0x5a55690,
- 0x5a69695,
- 0x5a7169a,
- 0x5a7969c,
- 0x5a8169e,
- 0x5a996a0,
- 0x5aa96a6,
- 0x5aad6aa,
- 0x5ac96ab,
- 0x63596b2,
- 0x63918d6,
- 0x63bd8e4,
- 0x63d98ef,
- 0x63f98f6,
+ 0x2332ccc7,
+ 0x23330ccb,
+ 0x23334ccc,
+ 0x23338ccd,
+ 0x2333ccce,
+ 0x3354ccf,
+ 0x3378cd5,
+ 0x3398cde,
+ 0x3a04ce6,
+ 0x3a10e81,
+ 0x3a30e84,
+ 0x3bf0e8c,
+ 0x3cc0efc,
+ 0x3d30f30,
+ 0x3d88f4c,
+ 0x3e70f62,
+ 0x3ec8f9c,
+ 0x3f04fb2,
+ 0x4000fc1,
+ 0x40cd000,
+ 0x4165033,
+ 0x41f5059,
+ 0x425907d,
+ 0x4491096,
+ 0x4549124,
+ 0x4615152,
+ 0x4661185,
+ 0x46e9198,
+ 0x47251ba,
+ 0x47751c9,
+ 0x47ed1dd,
+ 0x647f11fb,
+ 0x647f51fc,
+ 0x647f91fd,
+ 0x48751fe,
+ 0x48d121d,
+ 0x494d234,
+ 0x49c5253,
+ 0x4a45271,
+ 0x4ab1291,
+ 0x4bdd2ac,
+ 0x4c352f7,
+ 0x64c3930d,
+ 0x4cd130e,
+ 0x4cd9334,
+ 0x24cdd336,
+ 0x4d65337,
+ 0x4db1359,
+ 0x4e1936c,
+ 0x4ec1386,
+ 0x4f893b0,
+ 0x4ff13e2,
+ 0x51053fc,
+ 0x65109441,
+ 0x6510d442,
+ 0x5169443,
+ 0x51c545a,
+ 0x5255471,
+ 0x52d1495,
+ 0x53154b4,
+ 0x53f94c5,
+ 0x542d4fe,
+ 0x548d50b,
+ 0x5501523,
+ 0x5589540,
+ 0x55c9562,
+ 0x5639572,
+ 0x6563d58e,
+ 0x566558f,
+ 0x5669599,
+ 0x568159a,
+ 0x569d5a0,
+ 0x56e15a7,
+ 0x56f15b8,
+ 0x57095bc,
+ 0x57815c2,
+ 0x57895e0,
+ 0x57a55e2,
+ 0x57b95e9,
+ 0x57d55ee,
+ 0x58015f5,
+ 0x5805600,
+ 0x580d601,
+ 0x5821603,
+ 0x5841608,
+ 0x5851610,
+ 0x585d614,
+ 0x5899617,
+ 0x58a1626,
+ 0x58b5628,
+ 0x58d962d,
+ 0x58e5636,
+ 0x58ed639,
+ 0x591163b,
+ 0x5935644,
+ 0x594d64d,
+ 0x5951653,
+ 0x5959654,
+ 0x595d656,
+ 0x59f9657,
+ 0x59fd67e,
+ 0x5a0167f,
+ 0x5a05680,
+ 0x5a29681,
+ 0x5a4d68a,
+ 0x5a69693,
+ 0x5a7d69a,
+ 0x5a9169f,
+ 0x5a996a4,
+ 0x5aa16a6,
+ 0x5aa96a8,
+ 0x5ac16aa,
+ 0x5ad16b0,
+ 0x5ad56b4,
+ 0x5af16b5,
+ 0x63796bc,
+ 0x63b18de,
+ 0x63dd8ec,
+ 0x63f98f7,
0x64198fe,
- 0x645d906,
- 0x6465917,
- 0x26469919,
- 0x2646d91a,
- 0x647591b,
- 0x663d91d,
- 0x2664198f,
- 0x26651990,
- 0x26659994,
- 0x26665996,
- 0x6669999,
- 0x2667199a,
- 0x668199c,
- 0x66a99a0,
- 0x66dd9aa,
- 0x66e19b7,
- 0x67199b8,
- 0x67399c6,
- 0x72919ce,
- 0x7295ca4,
- 0x7299ca5,
- 0x2729dca6,
- 0x72a1ca7,
- 0x272a5ca8,
- 0x72a9ca9,
- 0x272b5caa,
- 0x72b9cad,
- 0x72bdcae,
- 0x272c1caf,
+ 0x6439906,
+ 0x647d90e,
+ 0x648591f,
+ 0x26489921,
+ 0x2648d922,
+ 0x6495923,
+ 0x665d925,
+ 0x26661997,
+ 0x26671998,
+ 0x2667999c,
+ 0x2668599e,
+ 0x66899a1,
+ 0x266919a2,
+ 0x66999a4,
+ 0x66a99a6,
+ 0x66d19aa,
+ 0x67099b4,
+ 0x670d9c2,
+ 0x67459c3,
+ 0x67659d1,
+ 0x72bd9d9,
+ 0x72c1caf,
0x72c5cb0,
- 0x272cdcb1,
- 0x72d1cb3,
+ 0x272c9cb1,
+ 0x72cdcb2,
+ 0x272d1cb3,
0x72d5cb4,
- 0x272e5cb5,
+ 0x272e1cb5,
+ 0x72e5cb8,
0x72e9cb9,
- 0x72edcba,
+ 0x272edcba,
0x72f1cbb,
- 0x72f5cbc,
- 0x272f9cbd,
+ 0x272f9cbc,
0x72fdcbe,
0x7301cbf,
- 0x7305cc0,
- 0x7309cc1,
- 0x27311cc2,
+ 0x27311cc0,
0x7315cc4,
0x7319cc5,
0x731dcc6,
- 0x27321cc7,
- 0x7325cc8,
- 0x2732dcc9,
- 0x27331ccb,
- 0x734dccc,
- 0x7365cd3,
- 0x27369cd9,
- 0x73adcda,
- 0x73b1ceb,
- 0x73d5cec,
- 0x73e1cf5,
- 0x73e5cf8,
- 0x73e9cf9,
- 0x759dcfa,
- 0x275a1d67,
- 0x275a9d68,
- 0x275add6a,
- 0x275b1d6b,
- 0x75b9d6c,
- 0x7695d6e,
- 0x276a1da5,
- 0x276a5da8,
- 0x276a9da9,
- 0x276addaa,
- 0x76b1dab,
- 0x76dddac,
- 0x76e1db7,
+ 0x7321cc7,
+ 0x27325cc8,
+ 0x7329cc9,
+ 0x732dcca,
+ 0x7331ccb,
+ 0x7335ccc,
+ 0x2733dccd,
+ 0x7341ccf,
+ 0x7345cd0,
+ 0x7349cd1,
+ 0x2734dcd2,
+ 0x7351cd3,
+ 0x27359cd4,
+ 0x2735dcd6,
+ 0x7379cd7,
+ 0x7391cde,
+ 0x27395ce4,
+ 0x73d9ce5,
+ 0x73ddcf6,
+ 0x7401cf7,
+ 0x740dd00,
+ 0x7411d03,
+ 0x7415d04,
+ 0x75d1d05,
+ 0x275d5d74,
+ 0x275ddd75,
+ 0x275e1d77,
+ 0x275e5d78,
+ 0x75edd79,
+ 0x76c9d7b,
+ 0x276d5db2,
+ 0x276d9db5,
+ 0x276dddb6,
+ 0x276e1db7,
0x76e5db8,
- 0x7709db9,
- 0x7715dc2,
- 0x7735dc5,
- 0x7739dcd,
- 0x7771dce,
- 0x7a21ddc,
- 0x7adde88,
- 0x7ae1eb7,
- 0x7ae5eb8,
- 0x7af9eb9,
- 0x7b2debe,
- 0x7b65ecb,
- 0x27b69ed9,
- 0x7b85eda,
- 0x7badee1,
- 0x7bb1eeb,
- 0x7bd5eec,
- 0x7bf1ef5,
- 0x7c19efc,
- 0x7c29f06,
- 0x7c2df0a,
- 0x7c31f0b,
- 0x7c69f0c,
- 0x7c75f1a,
- 0x7c9df1d,
- 0x7d1df27,
- 0x27d21f47,
- 0x7d31f48,
- 0x7d3df4c,
- 0x7d59f4f,
- 0x7d79f56,
- 0x7d7df5e,
- 0x7d91f5f,
- 0x7da5f64,
- 0x7da9f69,
- 0x7dc9f6a,
- 0x7e71f72,
- 0x7e75f9c,
- 0x7e91f9d,
- 0x7eb5fa4,
- 0x7eb9fad,
- 0x7ec1fae,
- 0x7ed9fb0,
- 0x7ee1fb6,
- 0x7ef5fb8,
- 0x7f15fbd,
- 0x7f25fc5,
- 0x7f31fc9,
- 0x7f69fcc,
- 0x803dfda,
- 0x804200f,
- 0x8056010,
- 0x805e015,
- 0x8076017,
- 0x807a01d,
- 0x808601e,
- 0x808a021,
- 0x808e022,
- 0x80b2023,
- 0x80f202c,
- 0x80f603c,
- 0x811603d,
- 0x8166045,
- 0x8182059,
- 0x818a060,
- 0x81e2062,
- 0x81e6078,
- 0x81ea079,
- 0x81ee07a,
- 0x823207b,
- 0x824208c,
- 0x8282090,
- 0x82860a0,
- 0x82b60a1,
- 0x83fe0ad,
- 0x84260ff,
- 0x8456109,
- 0x8476115,
- 0x2847e11d,
- 0x848611f,
- 0x8492121,
- 0x85a6124,
- 0x85b2169,
- 0x85be16c,
- 0x85ca16f,
- 0x85d6172,
- 0x85e2175,
- 0x85ee178,
- 0x85fa17b,
- 0x860617e,
- 0x8612181,
+ 0x7711db9,
+ 0x7715dc4,
+ 0x7719dc5,
+ 0x773ddc6,
+ 0x7749dcf,
+ 0x7769dd2,
+ 0x776ddda,
+ 0x77a5ddb,
+ 0x7a55de9,
+ 0x7b11e95,
+ 0x7b15ec4,
+ 0x7b19ec5,
+ 0x7b2dec6,
+ 0x7b61ecb,
+ 0x7b99ed8,
+ 0x27b9dee6,
+ 0x7bb9ee7,
+ 0x7be1eee,
+ 0x7be5ef8,
+ 0x7c09ef9,
+ 0x7c25f02,
+ 0x7c4df09,
+ 0x7c5df13,
+ 0x7c61f17,
+ 0x7c65f18,
+ 0x7c9df19,
+ 0x7ca9f27,
+ 0x7cd1f2a,
+ 0x7d51f34,
+ 0x27d55f54,
+ 0x7d65f55,
+ 0x7d75f59,
+ 0x7d91f5d,
+ 0x7db1f64,
+ 0x7db5f6c,
+ 0x7dc9f6d,
+ 0x7dddf72,
+ 0x7de1f77,
+ 0x7de5f78,
+ 0x7e05f79,
+ 0x7eadf81,
+ 0x7eb1fab,
+ 0x7ecdfac,
+ 0x7ef1fb3,
+ 0x7ef5fbc,
+ 0x7efdfbd,
+ 0x7f19fbf,
+ 0x7f21fc6,
+ 0x7f35fc8,
+ 0x7f55fcd,
+ 0x7f71fd5,
+ 0x7f7dfdc,
+ 0x7f95fdf,
+ 0x7fcdfe5,
+ 0x80a1ff3,
+ 0x80a6028,
+ 0x80ba029,
+ 0x80c202e,
+ 0x80da030,
+ 0x80de036,
+ 0x80ea037,
+ 0x80ee03a,
+ 0x80f203b,
+ 0x811603c,
+ 0x8156045,
+ 0x815a055,
+ 0x817a056,
+ 0x81ca05e,
+ 0x81ea072,
+ 0x281ee07a,
+ 0x81f607b,
+ 0x824e07d,
+ 0x8252093,
+ 0x8256094,
+ 0x825a095,
+ 0x829e096,
+ 0x82ae0a7,
+ 0x82ee0ab,
+ 0x82f20bb,
+ 0x83220bc,
+ 0x846a0c8,
+ 0x849211a,
+ 0x84c2124,
+ 0x84e2130,
+ 0x284ea138,
+ 0x84f213a,
+ 0x84fe13c,
+ 0x861213f,
0x861e184,
0x862a187,
0x863618a,
0x864218d,
- 0x864a190,
- 0x8656192,
- 0x8662195,
- 0x866e198,
- 0x867a19b,
- 0x868619e,
- 0x86921a1,
- 0x869e1a4,
- 0x86aa1a7,
- 0x86b61aa,
+ 0x864e190,
+ 0x865a193,
+ 0x8666196,
+ 0x8672199,
+ 0x867e19c,
+ 0x868a19f,
+ 0x86961a2,
+ 0x86a21a5,
+ 0x86ae1a8,
+ 0x86b61ab,
0x86c21ad,
0x86ce1b0,
- 0x86fa1b3,
- 0x87061be,
- 0x87121c1,
- 0x871e1c4,
- 0x872a1c7,
- 0x87361ca,
- 0x873e1cd,
- 0x874a1cf,
- 0x87561d2,
- 0x87621d5,
- 0x876e1d8,
- 0x877a1db,
- 0x87861de,
- 0x87921e1,
- 0x879e1e4,
- 0x87aa1e7,
+ 0x86da1b3,
+ 0x86e61b6,
+ 0x86f21b9,
+ 0x86fe1bc,
+ 0x870a1bf,
+ 0x87161c2,
+ 0x87221c5,
+ 0x872e1c8,
+ 0x873a1cb,
+ 0x87661ce,
+ 0x87721d9,
+ 0x877e1dc,
+ 0x878a1df,
+ 0x87961e2,
+ 0x87a21e5,
+ 0x87aa1e8,
0x87b61ea,
0x87c21ed,
0x87ce1f0,
0x87da1f3,
- 0x87e21f6,
- 0x87ee1f8,
- 0x87fa1fb,
- 0x88061fe,
- 0x8812201,
- 0x881e204,
- 0x882a207,
- 0x883620a,
- 0x884220d,
- 0x8846210,
- 0x8852211,
- 0x886e214,
- 0x887221b,
- 0x888221c,
- 0x889e220,
- 0x88e2227,
- 0x88e6238,
- 0x88fa239,
- 0x892e23e,
- 0x893e24b,
- 0x894624f,
- 0x896a251,
- 0x898225a,
- 0x899a260,
- 0x89b2266,
- 0x89c626c,
- 0x28a0a271,
- 0x8a0e282,
- 0x8a3a283,
- 0x8a4628e,
- 0x8a5a291,
+ 0x87e61f6,
+ 0x87f21f9,
+ 0x87fe1fc,
+ 0x880a1ff,
+ 0x8816202,
+ 0x8822205,
+ 0x882e208,
+ 0x883a20b,
+ 0x884620e,
+ 0x884e211,
+ 0x885a213,
+ 0x8866216,
+ 0x8872219,
+ 0x887e21c,
+ 0x888a21f,
+ 0x8896222,
+ 0x88a2225,
+ 0x88ae228,
+ 0x88b222b,
+ 0x88be22c,
+ 0x88da22f,
+ 0x88de236,
+ 0x88ee237,
+ 0x890e23b,
+ 0x8912243,
+ 0x8956244,
+ 0x895a255,
+ 0x896e256,
+ 0x89a225b,
+ 0x89b2268,
+ 0x89ba26c,
+ 0x89de26e,
+ 0x89f6277,
+ 0x8a0e27d,
+ 0x8a26283,
+ 0x8a3a289,
+ 0x28a8228e,
+ 0x8a862a0,
+ 0x8ab22a1,
+ 0x8ac22ac,
+ 0x8ad62b0,
}
-// max children 563 (capacity 1023)
-// max text offset 30521 (capacity 32767)
+// max children 571 (capacity 1023)
+// max text offset 30545 (capacity 32767)
// max text length 36 (capacity 63)
-// max hi 8854 (capacity 16383)
-// max lo 8849 (capacity 16383)
+// max hi 8885 (capacity 16383)
+// max lo 8880 (capacity 16383)
diff --git a/vendor/golang.org/x/net/webdav/webdav.go b/vendor/golang.org/x/net/webdav/webdav.go
index 01aed8cc9..d88995f9f 100644
--- a/vendor/golang.org/x/net/webdav/webdav.go
+++ b/vendor/golang.org/x/net/webdav/webdav.go
@@ -323,7 +323,7 @@ func (h *Handler) handleCopyMove(w http.ResponseWriter, r *http.Request) (status
if err != nil {
return http.StatusBadRequest, errInvalidDestination
}
- if u.Host != r.Host {
+ if u.Host != "" && u.Host != r.Host {
return http.StatusBadGateway, errInvalidDestination
}
diff --git a/vendor/golang.org/x/oauth2/README.md b/vendor/golang.org/x/oauth2/README.md
index 0f443e693..8cfd6063e 100644
--- a/vendor/golang.org/x/oauth2/README.md
+++ b/vendor/golang.org/x/oauth2/README.md
@@ -16,15 +16,16 @@ Or you can manually git clone the repository to
See godoc for further documentation and examples.
-* [godoc.org/golang.org/x/oauth2](http://godoc.org/golang.org/x/oauth2)
-* [godoc.org/golang.org/x/oauth2/google](http://godoc.org/golang.org/x/oauth2/google)
+* [godoc.org/golang.org/x/oauth2](https://godoc.org/golang.org/x/oauth2)
+* [godoc.org/golang.org/x/oauth2/google](https://godoc.org/golang.org/x/oauth2/google)
## Policy for new packages
-We no longer accept new provider-specific packages in this repo. For
-defining provider endpoints and provider-specific OAuth2 behavior, we
-encourage you to create packages elsewhere. We'll keep the existing
-packages for compatibility.
+We no longer accept new provider-specific packages in this repo if all
+they do is add a single endpoint variable. If you just want to add a
+single endpoint, add it to the
+[godoc.org/golang.org/x/oauth2/endpoints](https://godoc.org/golang.org/x/oauth2/endpoints)
+package.
## Report Issues / Send Patches
diff --git a/vendor/golang.org/x/oauth2/transport.go b/vendor/golang.org/x/oauth2/transport.go
index aa0d34f1e..90657915f 100644
--- a/vendor/golang.org/x/oauth2/transport.go
+++ b/vendor/golang.org/x/oauth2/transport.go
@@ -6,7 +6,7 @@ package oauth2
import (
"errors"
- "io"
+ "log"
"net/http"
"sync"
)
@@ -25,9 +25,6 @@ type Transport struct {
// Base is the base RoundTripper used to make HTTP requests.
// If nil, http.DefaultTransport is used.
Base http.RoundTripper
-
- mu sync.Mutex // guards modReq
- modReq map[*http.Request]*http.Request // original -> modified
}
// RoundTrip authorizes and authenticates the request with an
@@ -52,35 +49,22 @@ func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error) {
req2 := cloneRequest(req) // per RoundTripper contract
token.SetAuthHeader(req2)
- t.setModReq(req, req2)
- res, err := t.base().RoundTrip(req2)
- // req.Body is assumed to have been closed by the base RoundTripper.
+ // req.Body is assumed to be closed by the base RoundTripper.
reqBodyClosed = true
-
- if err != nil {
- t.setModReq(req, nil)
- return nil, err
- }
- res.Body = &onEOFReader{
- rc: res.Body,
- fn: func() { t.setModReq(req, nil) },
- }
- return res, nil
+ return t.base().RoundTrip(req2)
}
-// CancelRequest cancels an in-flight request by closing its connection.
+var cancelOnce sync.Once
+
+// CancelRequest does nothing. It used to be a legacy cancellation mechanism
+// but now only it only logs on first use to warn that it's deprecated.
+//
+// Deprecated: use contexts for cancellation instead.
func (t *Transport) CancelRequest(req *http.Request) {
- type canceler interface {
- CancelRequest(*http.Request)
- }
- if cr, ok := t.base().(canceler); ok {
- t.mu.Lock()
- modReq := t.modReq[req]
- delete(t.modReq, req)
- t.mu.Unlock()
- cr.CancelRequest(modReq)
- }
+ cancelOnce.Do(func() {
+ log.Printf("deprecated: golang.org/x/oauth2: Transport.CancelRequest no longer does anything; use contexts")
+ })
}
func (t *Transport) base() http.RoundTripper {
@@ -90,19 +74,6 @@ func (t *Transport) base() http.RoundTripper {
return http.DefaultTransport
}
-func (t *Transport) setModReq(orig, mod *http.Request) {
- t.mu.Lock()
- defer t.mu.Unlock()
- if t.modReq == nil {
- t.modReq = make(map[*http.Request]*http.Request)
- }
- if mod == nil {
- delete(t.modReq, orig)
- } else {
- t.modReq[orig] = mod
- }
-}
-
// cloneRequest returns a clone of the provided *http.Request.
// The clone is a shallow copy of the struct and its Header map.
func cloneRequest(r *http.Request) *http.Request {
@@ -116,29 +87,3 @@ func cloneRequest(r *http.Request) *http.Request {
}
return r2
}
-
-type onEOFReader struct {
- rc io.ReadCloser
- fn func()
-}
-
-func (r *onEOFReader) Read(p []byte) (n int, err error) {
- n, err = r.rc.Read(p)
- if err == io.EOF {
- r.runFunc()
- }
- return
-}
-
-func (r *onEOFReader) Close() error {
- err := r.rc.Close()
- r.runFunc()
- return err
-}
-
-func (r *onEOFReader) runFunc() {
- if fn := r.fn; fn != nil {
- fn()
- r.fn = nil
- }
-}
diff --git a/vendor/golang.org/x/sys/cpu/cpu_arm64.go b/vendor/golang.org/x/sys/cpu/cpu_arm64.go
index 6ac0b3535..9c87677ae 100644
--- a/vendor/golang.org/x/sys/cpu/cpu_arm64.go
+++ b/vendor/golang.org/x/sys/cpu/cpu_arm64.go
@@ -10,9 +10,13 @@ const cacheLineSize = 64
func init() {
switch runtime.GOOS {
- case "darwin":
- // iOS does not seem to allow reading these registers
- case "android", "linux":
+ case "android", "darwin":
+ // Android and iOS don't seem to allow reading these registers.
+ // Fake the minimal features expected by
+ // TestARM64minimalFeatures.
+ ARM64.HasASIMD = true
+ ARM64.HasFP = true
+ case "linux":
doinit()
default:
readARM64Registers()
diff --git a/vendor/golang.org/x/sys/unix/asm_linux_riscv64.s b/vendor/golang.org/x/sys/unix/asm_linux_riscv64.s
index 6db717de5..3cfefed2e 100644
--- a/vendor/golang.org/x/sys/unix/asm_linux_riscv64.s
+++ b/vendor/golang.org/x/sys/unix/asm_linux_riscv64.s
@@ -23,10 +23,6 @@ TEXT ·SyscallNoError(SB),NOSPLIT,$0-48
MOV a1+8(FP), A0
MOV a2+16(FP), A1
MOV a3+24(FP), A2
- MOV $0, A3
- MOV $0, A4
- MOV $0, A5
- MOV $0, A6
MOV trap+0(FP), A7 // syscall entry
ECALL
MOV A0, r1+32(FP) // r1
@@ -44,9 +40,6 @@ TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48
MOV a1+8(FP), A0
MOV a2+16(FP), A1
MOV a3+24(FP), A2
- MOV ZERO, A3
- MOV ZERO, A4
- MOV ZERO, A5
MOV trap+0(FP), A7 // syscall entry
ECALL
MOV A0, r1+32(FP)
diff --git a/vendor/golang.org/x/sys/unix/fcntl.go b/vendor/golang.org/x/sys/unix/fcntl.go
index 39c03f1ef..4dc534864 100644
--- a/vendor/golang.org/x/sys/unix/fcntl.go
+++ b/vendor/golang.org/x/sys/unix/fcntl.go
@@ -9,12 +9,11 @@ package unix
import "unsafe"
// fcntl64Syscall is usually SYS_FCNTL, but is overridden on 32-bit Linux
-// systems by flock_linux_32bit.go to be SYS_FCNTL64.
+// systems by fcntl_linux_32bit.go to be SYS_FCNTL64.
var fcntl64Syscall uintptr = SYS_FCNTL
-// FcntlInt performs a fcntl syscall on fd with the provided command and argument.
-func FcntlInt(fd uintptr, cmd, arg int) (int, error) {
- valptr, _, errno := Syscall(fcntl64Syscall, fd, uintptr(cmd), uintptr(arg))
+func fcntl(fd int, cmd, arg int) (int, error) {
+ valptr, _, errno := Syscall(fcntl64Syscall, uintptr(fd), uintptr(cmd), uintptr(arg))
var err error
if errno != 0 {
err = errno
@@ -22,6 +21,11 @@ func FcntlInt(fd uintptr, cmd, arg int) (int, error) {
return int(valptr), err
}
+// FcntlInt performs a fcntl syscall on fd with the provided command and argument.
+func FcntlInt(fd uintptr, cmd, arg int) (int, error) {
+ return fcntl(int(fd), cmd, arg)
+}
+
// FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command.
func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error {
_, _, errno := Syscall(fcntl64Syscall, fd, uintptr(cmd), uintptr(unsafe.Pointer(lk)))
diff --git a/vendor/golang.org/x/sys/unix/mkerrors.sh b/vendor/golang.org/x/sys/unix/mkerrors.sh
index b5462b85f..96bf2a919 100644
--- a/vendor/golang.org/x/sys/unix/mkerrors.sh
+++ b/vendor/golang.org/x/sys/unix/mkerrors.sh
@@ -186,6 +186,7 @@ struct ltchars {
#include <sys/select.h>
#include <sys/signalfd.h>
#include <sys/socket.h>
+#include <sys/uio.h>
#include <sys/xattr.h>
#include <linux/bpf.h>
#include <linux/can.h>
@@ -485,7 +486,7 @@ ccflags="$@"
$2 ~ /^TCSET/ ||
$2 ~ /^TC(FLSH|SBRKP?|XONC)$/ ||
$2 !~ "RTF_BITS" &&
- $2 ~ /^(IFF|IFT|NET_RT|RTM|RTF|RTV|RTA|RTAX)_/ ||
+ $2 ~ /^(IFF|IFT|NET_RT|RTM(GRP)?|RTF|RTV|RTA|RTAX)_/ ||
$2 ~ /^BIOC/ ||
$2 ~ /^RUSAGE_(SELF|CHILDREN|THREAD)/ ||
$2 ~ /^RLIMIT_(AS|CORE|CPU|DATA|FSIZE|LOCKS|MEMLOCK|MSGQUEUE|NICE|NOFILE|NPROC|RSS|RTPRIO|RTTIME|SIGPENDING|STACK)|RLIM_INFINITY/ ||
@@ -526,6 +527,7 @@ ccflags="$@"
$2 ~ /^WDIOC_/ ||
$2 ~ /^NFN/ ||
$2 ~ /^XDP_/ ||
+ $2 ~ /^RWF_/ ||
$2 ~ /^(HDIO|WIN|SMART)_/ ||
$2 ~ /^CRYPTO_/ ||
$2 ~ /^TIPC_/ ||
diff --git a/vendor/golang.org/x/sys/unix/syscall_bsd.go b/vendor/golang.org/x/sys/unix/syscall_bsd.go
index d52bcc41c..68605db62 100644
--- a/vendor/golang.org/x/sys/unix/syscall_bsd.go
+++ b/vendor/golang.org/x/sys/unix/syscall_bsd.go
@@ -510,6 +510,23 @@ func SysctlRaw(name string, args ...int) ([]byte, error) {
return buf[:n], nil
}
+func SysctlClockinfo(name string) (*Clockinfo, error) {
+ mib, err := sysctlmib(name)
+ if err != nil {
+ return nil, err
+ }
+
+ n := uintptr(SizeofClockinfo)
+ var ci Clockinfo
+ if err := sysctl(mib, (*byte)(unsafe.Pointer(&ci)), &n, nil, 0); err != nil {
+ return nil, err
+ }
+ if n != SizeofClockinfo {
+ return nil, EIO
+ }
+ return &ci, nil
+}
+
//sys utimes(path string, timeval *[2]Timeval) (err error)
func Utimes(path string, tv []Timeval) error {
@@ -577,8 +594,6 @@ func Futimes(fd int, tv []Timeval) error {
return futimes(fd, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
}
-//sys fcntl(fd int, cmd int, arg int) (val int, err error)
-
//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error)
func Poll(fds []PollFd, timeout int) (n int, err error) {
diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin.go b/vendor/golang.org/x/sys/unix/syscall_darwin.go
index 0a1cc74b3..9a5a6ee54 100644
--- a/vendor/golang.org/x/sys/unix/syscall_darwin.go
+++ b/vendor/golang.org/x/sys/unix/syscall_darwin.go
@@ -155,23 +155,6 @@ func getAttrList(path string, attrList attrList, attrBuf []byte, options uint) (
//sys getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error)
-func SysctlClockinfo(name string) (*Clockinfo, error) {
- mib, err := sysctlmib(name)
- if err != nil {
- return nil, err
- }
-
- n := uintptr(SizeofClockinfo)
- var ci Clockinfo
- if err := sysctl(mib, (*byte)(unsafe.Pointer(&ci)), &n, nil, 0); err != nil {
- return nil, err
- }
- if n != SizeofClockinfo {
- return nil, EIO
- }
- return &ci, nil
-}
-
//sysnb pipe() (r int, w int, err error)
func Pipe(p []int) (err error) {
@@ -333,6 +316,8 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) error {
* Wrapped
*/
+//sys fcntl(fd int, cmd int, arg int) (val int, err error)
+
//sys kill(pid int, signum int, posix int) (err error)
func Kill(pid int, signum syscall.Signal) (err error) { return kill(pid, int(signum), 1) }
diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin_arm.1_11.go b/vendor/golang.org/x/sys/unix/syscall_darwin_arm.1_11.go
index c81510da2..0e3f25aca 100644
--- a/vendor/golang.org/x/sys/unix/syscall_darwin_arm.1_11.go
+++ b/vendor/golang.org/x/sys/unix/syscall_darwin_arm.1_11.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 darwin,386,!go1.12
+// +build darwin,arm,!go1.12
package unix
diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd.go b/vendor/golang.org/x/sys/unix/syscall_freebsd.go
index 34918d8ed..6b2eca493 100644
--- a/vendor/golang.org/x/sys/unix/syscall_freebsd.go
+++ b/vendor/golang.org/x/sys/unix/syscall_freebsd.go
@@ -529,12 +529,6 @@ func PtraceGetRegs(pid int, regsout *Reg) (err error) {
return ptrace(PTRACE_GETREGS, pid, uintptr(unsafe.Pointer(regsout)), 0)
}
-func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
- ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint(countin)}
- err = ptrace(PTRACE_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
- return int(ioDesc.Len), err
-}
-
func PtraceLwpEvents(pid int, enable int) (err error) {
return ptrace(PTRACE_LWPEVENTS, pid, 0, enable)
}
diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go b/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go
index dcc56457a..0a5a66fab 100644
--- a/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go
+++ b/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go
@@ -54,3 +54,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
}
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
+
+func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
+ ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint32(countin)}
+ err = ptrace(PTRACE_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
+ return int(ioDesc.Len), err
+}
diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go
index 321c3bace..8025b22d0 100644
--- a/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go
+++ b/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go
@@ -54,3 +54,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
}
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
+
+func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
+ ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint64(countin)}
+ err = ptrace(PTRACE_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
+ return int(ioDesc.Len), err
+}
diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go b/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go
index 697700831..4ea45bce5 100644
--- a/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go
+++ b/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go
@@ -54,3 +54,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
}
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
+
+func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
+ ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint32(countin)}
+ err = ptrace(PTRACE_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
+ return int(ioDesc.Len), err
+}
diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go b/vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go
index dbbbfd603..aa5326db1 100644
--- a/vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go
+++ b/vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go
@@ -54,3 +54,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
}
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
+
+func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
+ ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint64(countin)}
+ err = ptrace(PTRACE_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
+ return int(ioDesc.Len), err
+}
diff --git a/vendor/golang.org/x/sys/unix/syscall_linux.go b/vendor/golang.org/x/sys/unix/syscall_linux.go
index 26903bca8..95f7a159a 100644
--- a/vendor/golang.org/x/sys/unix/syscall_linux.go
+++ b/vendor/golang.org/x/sys/unix/syscall_linux.go
@@ -1555,8 +1555,8 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
//sys Acct(path string) (err error)
//sys AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error)
//sys Adjtimex(buf *Timex) (state int, err error)
-//sys Capget(hdr *CapUserHeader, data *CapUserData) (err error)
-//sys Capset(hdr *CapUserHeader, data *CapUserData) (err error)
+//sysnb Capget(hdr *CapUserHeader, data *CapUserData) (err error)
+//sysnb Capset(hdr *CapUserHeader, data *CapUserData) (err error)
//sys Chdir(path string) (err error)
//sys Chroot(path string) (err error)
//sys ClockGetres(clockid int32, res *Timespec) (err error)
@@ -1575,7 +1575,6 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
//sys Fchdir(fd int) (err error)
//sys Fchmod(fd int, mode uint32) (err error)
//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
-//sys fcntl(fd int, cmd int, arg int) (val int, err error)
//sys Fdatasync(fd int) (err error)
//sys Fgetxattr(fd int, attr string, dest []byte) (sz int, err error)
//sys FinitModule(fd int, params string, flags int) (err error)
@@ -1631,6 +1630,17 @@ func Getpgrp() (pid int) {
//sysnb Settimeofday(tv *Timeval) (err error)
//sys Setns(fd int, nstype int) (err error)
+// PrctlRetInt performs a prctl operation specified by option and further
+// optional arguments arg2 through arg5 depending on option. It returns a
+// non-negative integer that is returned by the prctl syscall.
+func PrctlRetInt(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (int, error) {
+ ret, _, err := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
+ if err != 0 {
+ return 0, err
+ }
+ return int(ret), nil
+}
+
// issue 1435.
// On linux Setuid and Setgid only affects the current thread, not the process.
// This does not match what most callers expect so we must return an error
@@ -1644,6 +1654,30 @@ func Setgid(uid int) (err error) {
return EOPNOTSUPP
}
+// SetfsgidRetGid sets fsgid for current thread and returns previous fsgid set.
+// setfsgid(2) will return a non-nil error only if its caller lacks CAP_SETUID capability.
+// If the call fails due to other reasons, current fsgid will be returned.
+func SetfsgidRetGid(gid int) (int, error) {
+ return setfsgid(gid)
+}
+
+// SetfsuidRetUid sets fsuid for current thread and returns previous fsuid set.
+// setfsgid(2) will return a non-nil error only if its caller lacks CAP_SETUID capability
+// If the call fails due to other reasons, current fsuid will be returned.
+func SetfsuidRetUid(uid int) (int, error) {
+ return setfsuid(uid)
+}
+
+func Setfsgid(gid int) error {
+ _, err := setfsgid(gid)
+ return err
+}
+
+func Setfsuid(uid int) error {
+ _, err := setfsuid(uid)
+ return err
+}
+
func Signalfd(fd int, sigmask *Sigset_t, flags int) (newfd int, err error) {
return signalfd(fd, sigmask, _C__NSIG/8, flags)
}
@@ -1666,6 +1700,123 @@ func Signalfd(fd int, sigmask *Sigset_t, flags int) (newfd int, err error) {
//sys exitThread(code int) (err error) = SYS_EXIT
//sys readlen(fd int, p *byte, np int) (n int, err error) = SYS_READ
//sys writelen(fd int, p *byte, np int) (n int, err error) = SYS_WRITE
+//sys readv(fd int, iovs []Iovec) (n int, err error) = SYS_READV
+//sys writev(fd int, iovs []Iovec) (n int, err error) = SYS_WRITEV
+//sys preadv(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) = SYS_PREADV
+//sys pwritev(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) = SYS_PWRITEV
+//sys preadv2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) = SYS_PREADV2
+//sys pwritev2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) = SYS_PWRITEV2
+
+func bytes2iovec(bs [][]byte) []Iovec {
+ iovecs := make([]Iovec, len(bs))
+ for i, b := range bs {
+ iovecs[i].SetLen(len(b))
+ if len(b) > 0 {
+ iovecs[i].Base = &b[0]
+ } else {
+ iovecs[i].Base = (*byte)(unsafe.Pointer(&_zero))
+ }
+ }
+ return iovecs
+}
+
+// offs2lohi splits offs into its lower and upper unsigned long. On 64-bit
+// systems, hi will always be 0. On 32-bit systems, offs will be split in half.
+// preadv/pwritev chose this calling convention so they don't need to add a
+// padding-register for alignment on ARM.
+func offs2lohi(offs int64) (lo, hi uintptr) {
+ return uintptr(offs), uintptr(uint64(offs) >> SizeofLong)
+}
+
+func Readv(fd int, iovs [][]byte) (n int, err error) {
+ iovecs := bytes2iovec(iovs)
+ n, err = readv(fd, iovecs)
+ readvRacedetect(iovecs, n, err)
+ return n, err
+}
+
+func Preadv(fd int, iovs [][]byte, offset int64) (n int, err error) {
+ iovecs := bytes2iovec(iovs)
+ lo, hi := offs2lohi(offset)
+ n, err = preadv(fd, iovecs, lo, hi)
+ readvRacedetect(iovecs, n, err)
+ return n, err
+}
+
+func Preadv2(fd int, iovs [][]byte, offset int64, flags int) (n int, err error) {
+ iovecs := bytes2iovec(iovs)
+ lo, hi := offs2lohi(offset)
+ n, err = preadv2(fd, iovecs, lo, hi, flags)
+ readvRacedetect(iovecs, n, err)
+ return n, err
+}
+
+func readvRacedetect(iovecs []Iovec, n int, err error) {
+ if !raceenabled {
+ return
+ }
+ for i := 0; n > 0 && i < len(iovecs); i++ {
+ m := int(iovecs[i].Len)
+ if m > n {
+ m = n
+ }
+ n -= m
+ if m > 0 {
+ raceWriteRange(unsafe.Pointer(iovecs[i].Base), m)
+ }
+ }
+ if err == nil {
+ raceAcquire(unsafe.Pointer(&ioSync))
+ }
+}
+
+func Writev(fd int, iovs [][]byte) (n int, err error) {
+ iovecs := bytes2iovec(iovs)
+ if raceenabled {
+ raceReleaseMerge(unsafe.Pointer(&ioSync))
+ }
+ n, err = writev(fd, iovecs)
+ writevRacedetect(iovecs, n)
+ return n, err
+}
+
+func Pwritev(fd int, iovs [][]byte, offset int64) (n int, err error) {
+ iovecs := bytes2iovec(iovs)
+ if raceenabled {
+ raceReleaseMerge(unsafe.Pointer(&ioSync))
+ }
+ lo, hi := offs2lohi(offset)
+ n, err = pwritev(fd, iovecs, lo, hi)
+ writevRacedetect(iovecs, n)
+ return n, err
+}
+
+func Pwritev2(fd int, iovs [][]byte, offset int64, flags int) (n int, err error) {
+ iovecs := bytes2iovec(iovs)
+ if raceenabled {
+ raceReleaseMerge(unsafe.Pointer(&ioSync))
+ }
+ lo, hi := offs2lohi(offset)
+ n, err = pwritev2(fd, iovecs, lo, hi, flags)
+ writevRacedetect(iovecs, n)
+ return n, err
+}
+
+func writevRacedetect(iovecs []Iovec, n int) {
+ if !raceenabled {
+ return
+ }
+ for i := 0; n > 0 && i < len(iovecs); i++ {
+ m := int(iovecs[i].Len)
+ if m > n {
+ m = n
+ }
+ n -= m
+ if m > 0 {
+ raceReadRange(unsafe.Pointer(iovecs[i].Base), m)
+ }
+ }
+}
// mmap varies by architecture; see syscall_linux_*.go.
//sys munmap(addr uintptr, length uintptr) (err error)
diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_386.go b/vendor/golang.org/x/sys/unix/syscall_linux_386.go
index e7fa665e6..a8374b67c 100644
--- a/vendor/golang.org/x/sys/unix/syscall_linux_386.go
+++ b/vendor/golang.org/x/sys/unix/syscall_linux_386.go
@@ -70,8 +70,8 @@ func Pipe2(p []int, flags int) (err error) {
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
-//sys Setfsgid(gid int) (err error) = SYS_SETFSGID32
-//sys Setfsuid(uid int) (err error) = SYS_SETFSUID32
+//sys setfsgid(gid int) (prev int, err error) = SYS_SETFSGID32
+//sys setfsuid(uid int) (prev int, err error) = SYS_SETFSUID32
//sysnb Setregid(rgid int, egid int) (err error) = SYS_SETREGID32
//sysnb Setresgid(rgid int, egid int, sgid int) (err error) = SYS_SETRESGID32
//sysnb Setresuid(ruid int, euid int, suid int) (err error) = SYS_SETRESUID32
diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go b/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
index 088ce0f93..8ed1d546f 100644
--- a/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
+++ b/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
@@ -55,8 +55,8 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
}
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
-//sys Setfsgid(gid int) (err error)
-//sys Setfsuid(uid int) (err error)
+//sys setfsgid(gid int) (prev int, err error)
+//sys setfsuid(uid int) (prev int, err error)
//sysnb Setregid(rgid int, egid int) (err error)
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_arm.go b/vendor/golang.org/x/sys/unix/syscall_linux_arm.go
index 11930fc8f..99ae61373 100644
--- a/vendor/golang.org/x/sys/unix/syscall_linux_arm.go
+++ b/vendor/golang.org/x/sys/unix/syscall_linux_arm.go
@@ -98,8 +98,8 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
-//sys Setfsgid(gid int) (err error) = SYS_SETFSGID32
-//sys Setfsuid(uid int) (err error) = SYS_SETFSUID32
+//sys setfsgid(gid int) (prev int, err error) = SYS_SETFSGID32
+//sys setfsuid(uid int) (prev int, err error) = SYS_SETFSUID32
//sysnb Setregid(rgid int, egid int) (err error) = SYS_SETREGID32
//sysnb Setresgid(rgid int, egid int, sgid int) (err error) = SYS_SETRESGID32
//sysnb Setresuid(ruid int, euid int, suid int) (err error) = SYS_SETRESUID32
diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go b/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
index 251e2d971..807a0b20c 100644
--- a/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
+++ b/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
@@ -42,8 +42,8 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
}
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
-//sys Setfsgid(gid int) (err error)
-//sys Setfsuid(uid int) (err error)
+//sys setfsgid(gid int) (prev int, err error)
+//sys setfsuid(uid int) (prev int, err error)
//sysnb Setregid(rgid int, egid int) (err error)
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go b/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go
index 7562fe97b..af77e6e25 100644
--- a/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go
+++ b/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go
@@ -36,8 +36,8 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
}
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
-//sys Setfsgid(gid int) (err error)
-//sys Setfsuid(uid int) (err error)
+//sys setfsgid(gid int) (prev int, err error)
+//sys setfsuid(uid int) (prev int, err error)
//sysnb Setregid(rgid int, egid int) (err error)
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
@@ -216,6 +216,10 @@ func (cmsg *Cmsghdr) SetLen(length int) {
cmsg.Len = uint64(length)
}
+func InotifyInit() (fd int, err error) {
+ return InotifyInit1(0)
+}
+
//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error)
func Poll(fds []PollFd, timeout int) (n int, err error) {
diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go b/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
index a939ff8f2..e286c6ba3 100644
--- a/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
+++ b/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
@@ -31,8 +31,8 @@ func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr,
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
-//sys Setfsgid(gid int) (err error)
-//sys Setfsuid(uid int) (err error)
+//sys setfsgid(gid int) (prev int, err error)
+//sys setfsuid(uid int) (prev int, err error)
//sysnb Setregid(rgid int, egid int) (err error)
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go b/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go
index 28d6d0f22..ca0345aab 100644
--- a/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go
+++ b/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go
@@ -34,8 +34,8 @@ package unix
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
-//sys Setfsgid(gid int) (err error)
-//sys Setfsuid(uid int) (err error)
+//sys setfsgid(gid int) (prev int, err error)
+//sys setfsuid(uid int) (prev int, err error)
//sysnb Setregid(rgid int, egid int) (err error)
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go b/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
index 6798c2625..abdabbac3 100644
--- a/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
+++ b/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
@@ -41,8 +41,8 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
}
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
-//sys Setfsgid(gid int) (err error)
-//sys Setfsuid(uid int) (err error)
+//sys setfsgid(gid int) (prev int, err error)
+//sys setfsuid(uid int) (prev int, err error)
//sysnb Setregid(rgid int, egid int) (err error)
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go b/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go
index eb5cb1a71..533e9305e 100644
--- a/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go
+++ b/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go
@@ -34,8 +34,8 @@ import (
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
-//sys Setfsgid(gid int) (err error)
-//sys Setfsuid(uid int) (err error)
+//sys setfsgid(gid int) (prev int, err error)
+//sys setfsuid(uid int) (prev int, err error)
//sysnb Setregid(rgid int, egid int) (err error)
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go b/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go
index 37321c12e..d890a227b 100644
--- a/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go
+++ b/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go
@@ -30,8 +30,8 @@ package unix
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
-//sys Setfsgid(gid int) (err error)
-//sys Setfsuid(uid int) (err error)
+//sys setfsgid(gid int) (prev int, err error)
+//sys setfsuid(uid int) (prev int, err error)
//sysnb Setregid(rgid int, egid int) (err error)
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
diff --git a/vendor/golang.org/x/sys/unix/syscall_netbsd.go b/vendor/golang.org/x/sys/unix/syscall_netbsd.go
index 6135d383c..45b50a610 100644
--- a/vendor/golang.org/x/sys/unix/syscall_netbsd.go
+++ b/vendor/golang.org/x/sys/unix/syscall_netbsd.go
@@ -106,23 +106,6 @@ func direntNamlen(buf []byte) (uint64, bool) {
return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
}
-func SysctlClockinfo(name string) (*Clockinfo, error) {
- mib, err := sysctlmib(name)
- if err != nil {
- return nil, err
- }
-
- n := uintptr(SizeofClockinfo)
- var ci Clockinfo
- if err := sysctl(mib, (*byte)(unsafe.Pointer(&ci)), &n, nil, 0); err != nil {
- return nil, err
- }
- if n != SizeofClockinfo {
- return nil, EIO
- }
- return &ci, nil
-}
-
//sysnb pipe() (fd1 int, fd2 int, err error)
func Pipe(p []int) (err error) {
if len(p) != 2 {
@@ -270,6 +253,7 @@ func Statvfs(path string, buf *Statvfs_t) (err error) {
//sys Close(fd int) (err error)
//sys Dup(fd int) (nfd int, err error)
//sys Dup2(from int, to int) (err error)
+//sys Dup3(from int, to int, flags int) (err error)
//sys Exit(code int)
//sys ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
//sys ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
@@ -295,7 +279,7 @@ func Statvfs(path string, buf *Statvfs_t) (err error) {
//sys Fpathconf(fd int, name int) (val int, err error)
//sys Fstat(fd int, stat *Stat_t) (err error)
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
-//sys Fstatvfs1(fd int, buf *Statvfs_t) (err error) = SYS_FSTATVFS1
+//sys Fstatvfs1(fd int, buf *Statvfs_t, flags int) (err error) = SYS_FSTATVFS1
//sys Fsync(fd int) (err error)
//sys Ftruncate(fd int, length int64) (err error)
//sysnb Getegid() (egid int)
@@ -352,7 +336,7 @@ func Statvfs(path string, buf *Statvfs_t) (err error) {
//sysnb Settimeofday(tp *Timeval) (err error)
//sysnb Setuid(uid int) (err error)
//sys Stat(path string, stat *Stat_t) (err error)
-//sys Statvfs1(path string, buf *Statvfs_t) (err error) = SYS_STATVFS1
+//sys Statvfs1(path string, buf *Statvfs_t, flags int) (err error) = SYS_STATVFS1
//sys Symlink(path string, link string) (err error)
//sys Symlinkat(oldpath string, newdirfd int, newpath string) (err error)
//sys Sync() (err error)
diff --git a/vendor/golang.org/x/sys/unix/syscall_openbsd.go b/vendor/golang.org/x/sys/unix/syscall_openbsd.go
index 92ed67de0..a266e92a9 100644
--- a/vendor/golang.org/x/sys/unix/syscall_openbsd.go
+++ b/vendor/golang.org/x/sys/unix/syscall_openbsd.go
@@ -55,23 +55,6 @@ func direntNamlen(buf []byte) (uint64, bool) {
return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
}
-func SysctlClockinfo(name string) (*Clockinfo, error) {
- mib, err := sysctlmib(name)
- if err != nil {
- return nil, err
- }
-
- n := uintptr(SizeofClockinfo)
- var ci Clockinfo
- if err := sysctl(mib, (*byte)(unsafe.Pointer(&ci)), &n, nil, 0); err != nil {
- return nil, err
- }
- if n != SizeofClockinfo {
- return nil, EIO
- }
- return &ci, nil
-}
-
func SysctlUvmexp(name string) (*Uvmexp, error) {
mib, err := sysctlmib(name)
if err != nil {
@@ -89,16 +72,20 @@ func SysctlUvmexp(name string) (*Uvmexp, error) {
return &u, nil
}
-//sysnb pipe(p *[2]_C_int) (err error)
func Pipe(p []int) (err error) {
+ return Pipe2(p, 0)
+}
+
+//sysnb pipe2(p *[2]_C_int, flags int) (err error)
+func Pipe2(p []int, flags int) error {
if len(p) != 2 {
return EINVAL
}
var pp [2]_C_int
- err = pipe(&pp)
+ err := pipe2(&pp, flags)
p[0] = int(pp[0])
p[1] = int(pp[1])
- return
+ return err
}
//sys Getdents(fd int, buf []byte) (n int, err error)
@@ -248,6 +235,7 @@ func Uname(uname *Utsname) error {
//sys Close(fd int) (err error)
//sys Dup(fd int) (nfd int, err error)
//sys Dup2(from int, to int) (err error)
+//sys Dup3(from int, to int, flags int) (err error)
//sys Exit(code int)
//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
//sys Fchdir(fd int) (err error)
@@ -352,7 +340,6 @@ func Uname(uname *Utsname) error {
// clock_settime
// closefrom
// execve
-// fcntl
// fhopen
// fhstat
// fhstatfs
diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_386.go b/vendor/golang.org/x/sys/unix/zerrors_linux_386.go
index 9ac523000..72066f808 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_386.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_386.go
@@ -243,6 +243,7 @@ const (
BPF_F_LOCK = 0x4
BPF_F_MARK_ENFORCE = 0x40
BPF_F_MARK_MANGLED_0 = 0x20
+ BPF_F_MMAPABLE = 0x400
BPF_F_NO_COMMON_LRU = 0x2
BPF_F_NO_PREALLOC = 0x1
BPF_F_NUMA_NODE = 0x4
@@ -417,8 +418,10 @@ const (
CLOCK_TXFROMRX = 0x4
CLOCK_TXINT = 0x3
CLONE_ARGS_SIZE_VER0 = 0x40
+ CLONE_ARGS_SIZE_VER1 = 0x50
CLONE_CHILD_CLEARTID = 0x200000
CLONE_CHILD_SETTID = 0x1000000
+ CLONE_CLEAR_SIGHAND = 0x100000000
CLONE_DETACHED = 0x400000
CLONE_FILES = 0x400
CLONE_FS = 0x200
@@ -716,8 +719,9 @@ const (
FSCRYPT_POLICY_FLAGS_PAD_4 = 0x0
FSCRYPT_POLICY_FLAGS_PAD_8 = 0x1
FSCRYPT_POLICY_FLAGS_PAD_MASK = 0x3
- FSCRYPT_POLICY_FLAGS_VALID = 0x7
+ FSCRYPT_POLICY_FLAGS_VALID = 0xf
FSCRYPT_POLICY_FLAG_DIRECT_KEY = 0x4
+ FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64 = 0x8
FSCRYPT_POLICY_V1 = 0x0
FSCRYPT_POLICY_V2 = 0x2
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
@@ -747,7 +751,7 @@ const (
FS_POLICY_FLAGS_PAD_4 = 0x0
FS_POLICY_FLAGS_PAD_8 = 0x1
FS_POLICY_FLAGS_PAD_MASK = 0x3
- FS_POLICY_FLAGS_VALID = 0x7
+ FS_POLICY_FLAGS_VALID = 0xf
FUTEXFS_SUPER_MAGIC = 0xbad1dea
F_ADD_SEALS = 0x409
F_DUPFD = 0x0
@@ -1229,6 +1233,7 @@ const (
LOOP_SET_STATUS64 = 0x4c04
LO_KEY_SIZE = 0x20
LO_NAME_SIZE = 0x40
+ MADV_COLD = 0x14
MADV_DODUMP = 0x11
MADV_DOFORK = 0xb
MADV_DONTDUMP = 0x10
@@ -1241,6 +1246,7 @@ const (
MADV_MERGEABLE = 0xc
MADV_NOHUGEPAGE = 0xf
MADV_NORMAL = 0x0
+ MADV_PAGEOUT = 0x15
MADV_RANDOM = 0x1
MADV_REMOVE = 0x9
MADV_SEQUENTIAL = 0x2
@@ -1583,6 +1589,7 @@ const (
PERF_EVENT_IOC_SET_FILTER = 0x40042406
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
PIPEFS_MAGIC = 0x50495045
+ PPC_CMM_MAGIC = 0xc7571590
PPPIOCATTACH = 0x4004743d
PPPIOCATTCHAN = 0x40047438
PPPIOCCONNECT = 0x4004743a
@@ -1593,6 +1600,8 @@ const (
PPPIOCGDEBUG = 0x80047441
PPPIOCGFLAGS = 0x8004745a
PPPIOCGIDLE = 0x8008743f
+ PPPIOCGIDLE32 = 0x8008743f
+ PPPIOCGIDLE64 = 0x8010743f
PPPIOCGL2TPSTATS = 0x80487436
PPPIOCGMRU = 0x80047453
PPPIOCGNPMODE = 0xc008744c
@@ -1929,12 +1938,28 @@ const (
RTF_UP = 0x1
RTF_WINDOW = 0x80
RTF_XRESOLVE = 0x800
+ RTMGRP_DECnet_IFADDR = 0x1000
+ RTMGRP_DECnet_ROUTE = 0x4000
+ RTMGRP_IPV4_IFADDR = 0x10
+ RTMGRP_IPV4_MROUTE = 0x20
+ RTMGRP_IPV4_ROUTE = 0x40
+ RTMGRP_IPV4_RULE = 0x80
+ RTMGRP_IPV6_IFADDR = 0x100
+ RTMGRP_IPV6_IFINFO = 0x800
+ RTMGRP_IPV6_MROUTE = 0x200
+ RTMGRP_IPV6_PREFIX = 0x20000
+ RTMGRP_IPV6_ROUTE = 0x400
+ RTMGRP_LINK = 0x1
+ RTMGRP_NEIGH = 0x4
+ RTMGRP_NOTIFY = 0x2
+ RTMGRP_TC = 0x8
RTM_BASE = 0x10
RTM_DELACTION = 0x31
RTM_DELADDR = 0x15
RTM_DELADDRLABEL = 0x49
RTM_DELCHAIN = 0x65
RTM_DELLINK = 0x11
+ RTM_DELLINKPROP = 0x6d
RTM_DELMDB = 0x55
RTM_DELNEIGH = 0x1d
RTM_DELNETCONF = 0x51
@@ -1958,6 +1983,7 @@ const (
RTM_GETCHAIN = 0x66
RTM_GETDCB = 0x4e
RTM_GETLINK = 0x12
+ RTM_GETLINKPROP = 0x6e
RTM_GETMDB = 0x56
RTM_GETMULTICAST = 0x3a
RTM_GETNEIGH = 0x1e
@@ -1971,13 +1997,14 @@ const (
RTM_GETSTATS = 0x5e
RTM_GETTCLASS = 0x2a
RTM_GETTFILTER = 0x2e
- RTM_MAX = 0x6b
+ RTM_MAX = 0x6f
RTM_NEWACTION = 0x30
RTM_NEWADDR = 0x14
RTM_NEWADDRLABEL = 0x48
RTM_NEWCACHEREPORT = 0x60
RTM_NEWCHAIN = 0x64
RTM_NEWLINK = 0x10
+ RTM_NEWLINKPROP = 0x6c
RTM_NEWMDB = 0x54
RTM_NEWNDUSEROPT = 0x44
RTM_NEWNEIGH = 0x1c
@@ -1992,8 +2019,8 @@ const (
RTM_NEWSTATS = 0x5c
RTM_NEWTCLASS = 0x28
RTM_NEWTFILTER = 0x2c
- RTM_NR_FAMILIES = 0x17
- RTM_NR_MSGTYPES = 0x5c
+ RTM_NR_FAMILIES = 0x18
+ RTM_NR_MSGTYPES = 0x60
RTM_SETDCB = 0x4f
RTM_SETLINK = 0x13
RTM_SETNEIGHTBL = 0x43
@@ -2035,6 +2062,13 @@ const (
RUSAGE_CHILDREN = -0x1
RUSAGE_SELF = 0x0
RUSAGE_THREAD = 0x1
+ RWF_APPEND = 0x10
+ RWF_DSYNC = 0x2
+ RWF_HIPRI = 0x1
+ RWF_NOWAIT = 0x8
+ RWF_SUPPORTED = 0x1f
+ RWF_SYNC = 0x4
+ RWF_WRITE_LIFE_NOT_SET = 0x0
SCM_CREDENTIALS = 0x2
SCM_RIGHTS = 0x1
SCM_TIMESTAMP = 0x1d
@@ -2201,7 +2235,7 @@ const (
SOL_TLS = 0x11a
SOL_X25 = 0x106
SOL_XDP = 0x11b
- SOMAXCONN = 0x80
+ SOMAXCONN = 0x1000
SO_ACCEPTCONN = 0x1e
SO_ATTACH_BPF = 0x32
SO_ATTACH_FILTER = 0x1a
@@ -2307,6 +2341,7 @@ const (
STATX_ATTR_ENCRYPTED = 0x800
STATX_ATTR_IMMUTABLE = 0x10
STATX_ATTR_NODUMP = 0x40
+ STATX_ATTR_VERITY = 0x100000
STATX_BASIC_STATS = 0x7ff
STATX_BLOCKS = 0x400
STATX_BTIME = 0x800
@@ -2427,6 +2462,7 @@ const (
TCP_THIN_DUPACK = 0x11
TCP_THIN_LINEAR_TIMEOUTS = 0x10
TCP_TIMESTAMP = 0x18
+ TCP_TX_DELAY = 0x25
TCP_ULP = 0x1f
TCP_USER_TIMEOUT = 0x12
TCP_WINDOW_CLAMP = 0xa
@@ -2523,6 +2559,10 @@ const (
TIPC_ADDR_MCAST = 0x1
TIPC_ADDR_NAME = 0x2
TIPC_ADDR_NAMESEQ = 0x1
+ TIPC_AEAD_ALG_NAME = 0x20
+ TIPC_AEAD_KEYLEN_MAX = 0x24
+ TIPC_AEAD_KEYLEN_MIN = 0x14
+ TIPC_AEAD_KEY_SIZE_MAX = 0x48
TIPC_CFG_SRV = 0x0
TIPC_CLUSTER_BITS = 0xc
TIPC_CLUSTER_MASK = 0xfff000
@@ -2555,6 +2595,7 @@ const (
TIPC_MCAST_REPLICAST = 0x86
TIPC_MEDIUM_IMPORTANCE = 0x1
TIPC_NODEID_LEN = 0x10
+ TIPC_NODELAY = 0x8a
TIPC_NODE_BITS = 0xc
TIPC_NODE_MASK = 0xfff
TIPC_NODE_OFFSET = 0x0
diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
index 47622b955..ea6bb88de 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
@@ -243,6 +243,7 @@ const (
BPF_F_LOCK = 0x4
BPF_F_MARK_ENFORCE = 0x40
BPF_F_MARK_MANGLED_0 = 0x20
+ BPF_F_MMAPABLE = 0x400
BPF_F_NO_COMMON_LRU = 0x2
BPF_F_NO_PREALLOC = 0x1
BPF_F_NUMA_NODE = 0x4
@@ -417,8 +418,10 @@ const (
CLOCK_TXFROMRX = 0x4
CLOCK_TXINT = 0x3
CLONE_ARGS_SIZE_VER0 = 0x40
+ CLONE_ARGS_SIZE_VER1 = 0x50
CLONE_CHILD_CLEARTID = 0x200000
CLONE_CHILD_SETTID = 0x1000000
+ CLONE_CLEAR_SIGHAND = 0x100000000
CLONE_DETACHED = 0x400000
CLONE_FILES = 0x400
CLONE_FS = 0x200
@@ -716,8 +719,9 @@ const (
FSCRYPT_POLICY_FLAGS_PAD_4 = 0x0
FSCRYPT_POLICY_FLAGS_PAD_8 = 0x1
FSCRYPT_POLICY_FLAGS_PAD_MASK = 0x3
- FSCRYPT_POLICY_FLAGS_VALID = 0x7
+ FSCRYPT_POLICY_FLAGS_VALID = 0xf
FSCRYPT_POLICY_FLAG_DIRECT_KEY = 0x4
+ FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64 = 0x8
FSCRYPT_POLICY_V1 = 0x0
FSCRYPT_POLICY_V2 = 0x2
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
@@ -747,7 +751,7 @@ const (
FS_POLICY_FLAGS_PAD_4 = 0x0
FS_POLICY_FLAGS_PAD_8 = 0x1
FS_POLICY_FLAGS_PAD_MASK = 0x3
- FS_POLICY_FLAGS_VALID = 0x7
+ FS_POLICY_FLAGS_VALID = 0xf
FUTEXFS_SUPER_MAGIC = 0xbad1dea
F_ADD_SEALS = 0x409
F_DUPFD = 0x0
@@ -1229,6 +1233,7 @@ const (
LOOP_SET_STATUS64 = 0x4c04
LO_KEY_SIZE = 0x20
LO_NAME_SIZE = 0x40
+ MADV_COLD = 0x14
MADV_DODUMP = 0x11
MADV_DOFORK = 0xb
MADV_DONTDUMP = 0x10
@@ -1241,6 +1246,7 @@ const (
MADV_MERGEABLE = 0xc
MADV_NOHUGEPAGE = 0xf
MADV_NORMAL = 0x0
+ MADV_PAGEOUT = 0x15
MADV_RANDOM = 0x1
MADV_REMOVE = 0x9
MADV_SEQUENTIAL = 0x2
@@ -1583,6 +1589,7 @@ const (
PERF_EVENT_IOC_SET_FILTER = 0x40082406
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
PIPEFS_MAGIC = 0x50495045
+ PPC_CMM_MAGIC = 0xc7571590
PPPIOCATTACH = 0x4004743d
PPPIOCATTCHAN = 0x40047438
PPPIOCCONNECT = 0x4004743a
@@ -1593,6 +1600,8 @@ const (
PPPIOCGDEBUG = 0x80047441
PPPIOCGFLAGS = 0x8004745a
PPPIOCGIDLE = 0x8010743f
+ PPPIOCGIDLE32 = 0x8008743f
+ PPPIOCGIDLE64 = 0x8010743f
PPPIOCGL2TPSTATS = 0x80487436
PPPIOCGMRU = 0x80047453
PPPIOCGNPMODE = 0xc008744c
@@ -1930,12 +1939,28 @@ const (
RTF_UP = 0x1
RTF_WINDOW = 0x80
RTF_XRESOLVE = 0x800
+ RTMGRP_DECnet_IFADDR = 0x1000
+ RTMGRP_DECnet_ROUTE = 0x4000
+ RTMGRP_IPV4_IFADDR = 0x10
+ RTMGRP_IPV4_MROUTE = 0x20
+ RTMGRP_IPV4_ROUTE = 0x40
+ RTMGRP_IPV4_RULE = 0x80
+ RTMGRP_IPV6_IFADDR = 0x100
+ RTMGRP_IPV6_IFINFO = 0x800
+ RTMGRP_IPV6_MROUTE = 0x200
+ RTMGRP_IPV6_PREFIX = 0x20000
+ RTMGRP_IPV6_ROUTE = 0x400
+ RTMGRP_LINK = 0x1
+ RTMGRP_NEIGH = 0x4
+ RTMGRP_NOTIFY = 0x2
+ RTMGRP_TC = 0x8
RTM_BASE = 0x10
RTM_DELACTION = 0x31
RTM_DELADDR = 0x15
RTM_DELADDRLABEL = 0x49
RTM_DELCHAIN = 0x65
RTM_DELLINK = 0x11
+ RTM_DELLINKPROP = 0x6d
RTM_DELMDB = 0x55
RTM_DELNEIGH = 0x1d
RTM_DELNETCONF = 0x51
@@ -1959,6 +1984,7 @@ const (
RTM_GETCHAIN = 0x66
RTM_GETDCB = 0x4e
RTM_GETLINK = 0x12
+ RTM_GETLINKPROP = 0x6e
RTM_GETMDB = 0x56
RTM_GETMULTICAST = 0x3a
RTM_GETNEIGH = 0x1e
@@ -1972,13 +1998,14 @@ const (
RTM_GETSTATS = 0x5e
RTM_GETTCLASS = 0x2a
RTM_GETTFILTER = 0x2e
- RTM_MAX = 0x6b
+ RTM_MAX = 0x6f
RTM_NEWACTION = 0x30
RTM_NEWADDR = 0x14
RTM_NEWADDRLABEL = 0x48
RTM_NEWCACHEREPORT = 0x60
RTM_NEWCHAIN = 0x64
RTM_NEWLINK = 0x10
+ RTM_NEWLINKPROP = 0x6c
RTM_NEWMDB = 0x54
RTM_NEWNDUSEROPT = 0x44
RTM_NEWNEIGH = 0x1c
@@ -1993,8 +2020,8 @@ const (
RTM_NEWSTATS = 0x5c
RTM_NEWTCLASS = 0x28
RTM_NEWTFILTER = 0x2c
- RTM_NR_FAMILIES = 0x17
- RTM_NR_MSGTYPES = 0x5c
+ RTM_NR_FAMILIES = 0x18
+ RTM_NR_MSGTYPES = 0x60
RTM_SETDCB = 0x4f
RTM_SETLINK = 0x13
RTM_SETNEIGHTBL = 0x43
@@ -2036,6 +2063,13 @@ const (
RUSAGE_CHILDREN = -0x1
RUSAGE_SELF = 0x0
RUSAGE_THREAD = 0x1
+ RWF_APPEND = 0x10
+ RWF_DSYNC = 0x2
+ RWF_HIPRI = 0x1
+ RWF_NOWAIT = 0x8
+ RWF_SUPPORTED = 0x1f
+ RWF_SYNC = 0x4
+ RWF_WRITE_LIFE_NOT_SET = 0x0
SCM_CREDENTIALS = 0x2
SCM_RIGHTS = 0x1
SCM_TIMESTAMP = 0x1d
@@ -2202,7 +2236,7 @@ const (
SOL_TLS = 0x11a
SOL_X25 = 0x106
SOL_XDP = 0x11b
- SOMAXCONN = 0x80
+ SOMAXCONN = 0x1000
SO_ACCEPTCONN = 0x1e
SO_ATTACH_BPF = 0x32
SO_ATTACH_FILTER = 0x1a
@@ -2308,6 +2342,7 @@ const (
STATX_ATTR_ENCRYPTED = 0x800
STATX_ATTR_IMMUTABLE = 0x10
STATX_ATTR_NODUMP = 0x40
+ STATX_ATTR_VERITY = 0x100000
STATX_BASIC_STATS = 0x7ff
STATX_BLOCKS = 0x400
STATX_BTIME = 0x800
@@ -2428,6 +2463,7 @@ const (
TCP_THIN_DUPACK = 0x11
TCP_THIN_LINEAR_TIMEOUTS = 0x10
TCP_TIMESTAMP = 0x18
+ TCP_TX_DELAY = 0x25
TCP_ULP = 0x1f
TCP_USER_TIMEOUT = 0x12
TCP_WINDOW_CLAMP = 0xa
@@ -2524,6 +2560,10 @@ const (
TIPC_ADDR_MCAST = 0x1
TIPC_ADDR_NAME = 0x2
TIPC_ADDR_NAMESEQ = 0x1
+ TIPC_AEAD_ALG_NAME = 0x20
+ TIPC_AEAD_KEYLEN_MAX = 0x24
+ TIPC_AEAD_KEYLEN_MIN = 0x14
+ TIPC_AEAD_KEY_SIZE_MAX = 0x48
TIPC_CFG_SRV = 0x0
TIPC_CLUSTER_BITS = 0xc
TIPC_CLUSTER_MASK = 0xfff000
@@ -2556,6 +2596,7 @@ const (
TIPC_MCAST_REPLICAST = 0x86
TIPC_MEDIUM_IMPORTANCE = 0x1
TIPC_NODEID_LEN = 0x10
+ TIPC_NODELAY = 0x8a
TIPC_NODE_BITS = 0xc
TIPC_NODE_MASK = 0xfff
TIPC_NODE_OFFSET = 0x0
diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go b/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
index 56cd2ebe1..76b3d3b0e 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
@@ -243,6 +243,7 @@ const (
BPF_F_LOCK = 0x4
BPF_F_MARK_ENFORCE = 0x40
BPF_F_MARK_MANGLED_0 = 0x20
+ BPF_F_MMAPABLE = 0x400
BPF_F_NO_COMMON_LRU = 0x2
BPF_F_NO_PREALLOC = 0x1
BPF_F_NUMA_NODE = 0x4
@@ -417,8 +418,10 @@ const (
CLOCK_TXFROMRX = 0x4
CLOCK_TXINT = 0x3
CLONE_ARGS_SIZE_VER0 = 0x40
+ CLONE_ARGS_SIZE_VER1 = 0x50
CLONE_CHILD_CLEARTID = 0x200000
CLONE_CHILD_SETTID = 0x1000000
+ CLONE_CLEAR_SIGHAND = 0x100000000
CLONE_DETACHED = 0x400000
CLONE_FILES = 0x400
CLONE_FS = 0x200
@@ -715,8 +718,9 @@ const (
FSCRYPT_POLICY_FLAGS_PAD_4 = 0x0
FSCRYPT_POLICY_FLAGS_PAD_8 = 0x1
FSCRYPT_POLICY_FLAGS_PAD_MASK = 0x3
- FSCRYPT_POLICY_FLAGS_VALID = 0x7
+ FSCRYPT_POLICY_FLAGS_VALID = 0xf
FSCRYPT_POLICY_FLAG_DIRECT_KEY = 0x4
+ FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64 = 0x8
FSCRYPT_POLICY_V1 = 0x0
FSCRYPT_POLICY_V2 = 0x2
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
@@ -746,7 +750,7 @@ const (
FS_POLICY_FLAGS_PAD_4 = 0x0
FS_POLICY_FLAGS_PAD_8 = 0x1
FS_POLICY_FLAGS_PAD_MASK = 0x3
- FS_POLICY_FLAGS_VALID = 0x7
+ FS_POLICY_FLAGS_VALID = 0xf
FUTEXFS_SUPER_MAGIC = 0xbad1dea
F_ADD_SEALS = 0x409
F_DUPFD = 0x0
@@ -1228,6 +1232,7 @@ const (
LOOP_SET_STATUS64 = 0x4c04
LO_KEY_SIZE = 0x20
LO_NAME_SIZE = 0x40
+ MADV_COLD = 0x14
MADV_DODUMP = 0x11
MADV_DOFORK = 0xb
MADV_DONTDUMP = 0x10
@@ -1240,6 +1245,7 @@ const (
MADV_MERGEABLE = 0xc
MADV_NOHUGEPAGE = 0xf
MADV_NORMAL = 0x0
+ MADV_PAGEOUT = 0x15
MADV_RANDOM = 0x1
MADV_REMOVE = 0x9
MADV_SEQUENTIAL = 0x2
@@ -1581,6 +1587,7 @@ const (
PERF_EVENT_IOC_SET_FILTER = 0x40042406
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
PIPEFS_MAGIC = 0x50495045
+ PPC_CMM_MAGIC = 0xc7571590
PPPIOCATTACH = 0x4004743d
PPPIOCATTCHAN = 0x40047438
PPPIOCCONNECT = 0x4004743a
@@ -1591,6 +1598,8 @@ const (
PPPIOCGDEBUG = 0x80047441
PPPIOCGFLAGS = 0x8004745a
PPPIOCGIDLE = 0x8008743f
+ PPPIOCGIDLE32 = 0x8008743f
+ PPPIOCGIDLE64 = 0x8010743f
PPPIOCGL2TPSTATS = 0x80487436
PPPIOCGMRU = 0x80047453
PPPIOCGNPMODE = 0xc008744c
@@ -1936,12 +1945,28 @@ const (
RTF_UP = 0x1
RTF_WINDOW = 0x80
RTF_XRESOLVE = 0x800
+ RTMGRP_DECnet_IFADDR = 0x1000
+ RTMGRP_DECnet_ROUTE = 0x4000
+ RTMGRP_IPV4_IFADDR = 0x10
+ RTMGRP_IPV4_MROUTE = 0x20
+ RTMGRP_IPV4_ROUTE = 0x40
+ RTMGRP_IPV4_RULE = 0x80
+ RTMGRP_IPV6_IFADDR = 0x100
+ RTMGRP_IPV6_IFINFO = 0x800
+ RTMGRP_IPV6_MROUTE = 0x200
+ RTMGRP_IPV6_PREFIX = 0x20000
+ RTMGRP_IPV6_ROUTE = 0x400
+ RTMGRP_LINK = 0x1
+ RTMGRP_NEIGH = 0x4
+ RTMGRP_NOTIFY = 0x2
+ RTMGRP_TC = 0x8
RTM_BASE = 0x10
RTM_DELACTION = 0x31
RTM_DELADDR = 0x15
RTM_DELADDRLABEL = 0x49
RTM_DELCHAIN = 0x65
RTM_DELLINK = 0x11
+ RTM_DELLINKPROP = 0x6d
RTM_DELMDB = 0x55
RTM_DELNEIGH = 0x1d
RTM_DELNETCONF = 0x51
@@ -1965,6 +1990,7 @@ const (
RTM_GETCHAIN = 0x66
RTM_GETDCB = 0x4e
RTM_GETLINK = 0x12
+ RTM_GETLINKPROP = 0x6e
RTM_GETMDB = 0x56
RTM_GETMULTICAST = 0x3a
RTM_GETNEIGH = 0x1e
@@ -1978,13 +2004,14 @@ const (
RTM_GETSTATS = 0x5e
RTM_GETTCLASS = 0x2a
RTM_GETTFILTER = 0x2e
- RTM_MAX = 0x6b
+ RTM_MAX = 0x6f
RTM_NEWACTION = 0x30
RTM_NEWADDR = 0x14
RTM_NEWADDRLABEL = 0x48
RTM_NEWCACHEREPORT = 0x60
RTM_NEWCHAIN = 0x64
RTM_NEWLINK = 0x10
+ RTM_NEWLINKPROP = 0x6c
RTM_NEWMDB = 0x54
RTM_NEWNDUSEROPT = 0x44
RTM_NEWNEIGH = 0x1c
@@ -1999,8 +2026,8 @@ const (
RTM_NEWSTATS = 0x5c
RTM_NEWTCLASS = 0x28
RTM_NEWTFILTER = 0x2c
- RTM_NR_FAMILIES = 0x17
- RTM_NR_MSGTYPES = 0x5c
+ RTM_NR_FAMILIES = 0x18
+ RTM_NR_MSGTYPES = 0x60
RTM_SETDCB = 0x4f
RTM_SETLINK = 0x13
RTM_SETNEIGHTBL = 0x43
@@ -2042,6 +2069,13 @@ const (
RUSAGE_CHILDREN = -0x1
RUSAGE_SELF = 0x0
RUSAGE_THREAD = 0x1
+ RWF_APPEND = 0x10
+ RWF_DSYNC = 0x2
+ RWF_HIPRI = 0x1
+ RWF_NOWAIT = 0x8
+ RWF_SUPPORTED = 0x1f
+ RWF_SYNC = 0x4
+ RWF_WRITE_LIFE_NOT_SET = 0x0
SCM_CREDENTIALS = 0x2
SCM_RIGHTS = 0x1
SCM_TIMESTAMP = 0x1d
@@ -2208,7 +2242,7 @@ const (
SOL_TLS = 0x11a
SOL_X25 = 0x106
SOL_XDP = 0x11b
- SOMAXCONN = 0x80
+ SOMAXCONN = 0x1000
SO_ACCEPTCONN = 0x1e
SO_ATTACH_BPF = 0x32
SO_ATTACH_FILTER = 0x1a
@@ -2314,6 +2348,7 @@ const (
STATX_ATTR_ENCRYPTED = 0x800
STATX_ATTR_IMMUTABLE = 0x10
STATX_ATTR_NODUMP = 0x40
+ STATX_ATTR_VERITY = 0x100000
STATX_BASIC_STATS = 0x7ff
STATX_BLOCKS = 0x400
STATX_BTIME = 0x800
@@ -2434,6 +2469,7 @@ const (
TCP_THIN_DUPACK = 0x11
TCP_THIN_LINEAR_TIMEOUTS = 0x10
TCP_TIMESTAMP = 0x18
+ TCP_TX_DELAY = 0x25
TCP_ULP = 0x1f
TCP_USER_TIMEOUT = 0x12
TCP_WINDOW_CLAMP = 0xa
@@ -2530,6 +2566,10 @@ const (
TIPC_ADDR_MCAST = 0x1
TIPC_ADDR_NAME = 0x2
TIPC_ADDR_NAMESEQ = 0x1
+ TIPC_AEAD_ALG_NAME = 0x20
+ TIPC_AEAD_KEYLEN_MAX = 0x24
+ TIPC_AEAD_KEYLEN_MIN = 0x14
+ TIPC_AEAD_KEY_SIZE_MAX = 0x48
TIPC_CFG_SRV = 0x0
TIPC_CLUSTER_BITS = 0xc
TIPC_CLUSTER_MASK = 0xfff000
@@ -2562,6 +2602,7 @@ const (
TIPC_MCAST_REPLICAST = 0x86
TIPC_MEDIUM_IMPORTANCE = 0x1
TIPC_NODEID_LEN = 0x10
+ TIPC_NODELAY = 0x8a
TIPC_NODE_BITS = 0xc
TIPC_NODE_MASK = 0xfff
TIPC_NODE_OFFSET = 0x0
diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
index 39712d777..1405ea570 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
@@ -243,6 +243,7 @@ const (
BPF_F_LOCK = 0x4
BPF_F_MARK_ENFORCE = 0x40
BPF_F_MARK_MANGLED_0 = 0x20
+ BPF_F_MMAPABLE = 0x400
BPF_F_NO_COMMON_LRU = 0x2
BPF_F_NO_PREALLOC = 0x1
BPF_F_NUMA_NODE = 0x4
@@ -417,8 +418,10 @@ const (
CLOCK_TXFROMRX = 0x4
CLOCK_TXINT = 0x3
CLONE_ARGS_SIZE_VER0 = 0x40
+ CLONE_ARGS_SIZE_VER1 = 0x50
CLONE_CHILD_CLEARTID = 0x200000
CLONE_CHILD_SETTID = 0x1000000
+ CLONE_CLEAR_SIGHAND = 0x100000000
CLONE_DETACHED = 0x400000
CLONE_FILES = 0x400
CLONE_FS = 0x200
@@ -718,8 +721,9 @@ const (
FSCRYPT_POLICY_FLAGS_PAD_4 = 0x0
FSCRYPT_POLICY_FLAGS_PAD_8 = 0x1
FSCRYPT_POLICY_FLAGS_PAD_MASK = 0x3
- FSCRYPT_POLICY_FLAGS_VALID = 0x7
+ FSCRYPT_POLICY_FLAGS_VALID = 0xf
FSCRYPT_POLICY_FLAG_DIRECT_KEY = 0x4
+ FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64 = 0x8
FSCRYPT_POLICY_V1 = 0x0
FSCRYPT_POLICY_V2 = 0x2
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
@@ -749,7 +753,7 @@ const (
FS_POLICY_FLAGS_PAD_4 = 0x0
FS_POLICY_FLAGS_PAD_8 = 0x1
FS_POLICY_FLAGS_PAD_MASK = 0x3
- FS_POLICY_FLAGS_VALID = 0x7
+ FS_POLICY_FLAGS_VALID = 0xf
FUTEXFS_SUPER_MAGIC = 0xbad1dea
F_ADD_SEALS = 0x409
F_DUPFD = 0x0
@@ -1231,6 +1235,7 @@ const (
LOOP_SET_STATUS64 = 0x4c04
LO_KEY_SIZE = 0x20
LO_NAME_SIZE = 0x40
+ MADV_COLD = 0x14
MADV_DODUMP = 0x11
MADV_DOFORK = 0xb
MADV_DONTDUMP = 0x10
@@ -1243,6 +1248,7 @@ const (
MADV_MERGEABLE = 0xc
MADV_NOHUGEPAGE = 0xf
MADV_NORMAL = 0x0
+ MADV_PAGEOUT = 0x15
MADV_RANDOM = 0x1
MADV_REMOVE = 0x9
MADV_SEQUENTIAL = 0x2
@@ -1584,6 +1590,7 @@ const (
PERF_EVENT_IOC_SET_FILTER = 0x40082406
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
PIPEFS_MAGIC = 0x50495045
+ PPC_CMM_MAGIC = 0xc7571590
PPPIOCATTACH = 0x4004743d
PPPIOCATTCHAN = 0x40047438
PPPIOCCONNECT = 0x4004743a
@@ -1594,6 +1601,8 @@ const (
PPPIOCGDEBUG = 0x80047441
PPPIOCGFLAGS = 0x8004745a
PPPIOCGIDLE = 0x8010743f
+ PPPIOCGIDLE32 = 0x8008743f
+ PPPIOCGIDLE64 = 0x8010743f
PPPIOCGL2TPSTATS = 0x80487436
PPPIOCGMRU = 0x80047453
PPPIOCGNPMODE = 0xc008744c
@@ -1922,12 +1931,28 @@ const (
RTF_UP = 0x1
RTF_WINDOW = 0x80
RTF_XRESOLVE = 0x800
+ RTMGRP_DECnet_IFADDR = 0x1000
+ RTMGRP_DECnet_ROUTE = 0x4000
+ RTMGRP_IPV4_IFADDR = 0x10
+ RTMGRP_IPV4_MROUTE = 0x20
+ RTMGRP_IPV4_ROUTE = 0x40
+ RTMGRP_IPV4_RULE = 0x80
+ RTMGRP_IPV6_IFADDR = 0x100
+ RTMGRP_IPV6_IFINFO = 0x800
+ RTMGRP_IPV6_MROUTE = 0x200
+ RTMGRP_IPV6_PREFIX = 0x20000
+ RTMGRP_IPV6_ROUTE = 0x400
+ RTMGRP_LINK = 0x1
+ RTMGRP_NEIGH = 0x4
+ RTMGRP_NOTIFY = 0x2
+ RTMGRP_TC = 0x8
RTM_BASE = 0x10
RTM_DELACTION = 0x31
RTM_DELADDR = 0x15
RTM_DELADDRLABEL = 0x49
RTM_DELCHAIN = 0x65
RTM_DELLINK = 0x11
+ RTM_DELLINKPROP = 0x6d
RTM_DELMDB = 0x55
RTM_DELNEIGH = 0x1d
RTM_DELNETCONF = 0x51
@@ -1951,6 +1976,7 @@ const (
RTM_GETCHAIN = 0x66
RTM_GETDCB = 0x4e
RTM_GETLINK = 0x12
+ RTM_GETLINKPROP = 0x6e
RTM_GETMDB = 0x56
RTM_GETMULTICAST = 0x3a
RTM_GETNEIGH = 0x1e
@@ -1964,13 +1990,14 @@ const (
RTM_GETSTATS = 0x5e
RTM_GETTCLASS = 0x2a
RTM_GETTFILTER = 0x2e
- RTM_MAX = 0x6b
+ RTM_MAX = 0x6f
RTM_NEWACTION = 0x30
RTM_NEWADDR = 0x14
RTM_NEWADDRLABEL = 0x48
RTM_NEWCACHEREPORT = 0x60
RTM_NEWCHAIN = 0x64
RTM_NEWLINK = 0x10
+ RTM_NEWLINKPROP = 0x6c
RTM_NEWMDB = 0x54
RTM_NEWNDUSEROPT = 0x44
RTM_NEWNEIGH = 0x1c
@@ -1985,8 +2012,8 @@ const (
RTM_NEWSTATS = 0x5c
RTM_NEWTCLASS = 0x28
RTM_NEWTFILTER = 0x2c
- RTM_NR_FAMILIES = 0x17
- RTM_NR_MSGTYPES = 0x5c
+ RTM_NR_FAMILIES = 0x18
+ RTM_NR_MSGTYPES = 0x60
RTM_SETDCB = 0x4f
RTM_SETLINK = 0x13
RTM_SETNEIGHTBL = 0x43
@@ -2028,6 +2055,13 @@ const (
RUSAGE_CHILDREN = -0x1
RUSAGE_SELF = 0x0
RUSAGE_THREAD = 0x1
+ RWF_APPEND = 0x10
+ RWF_DSYNC = 0x2
+ RWF_HIPRI = 0x1
+ RWF_NOWAIT = 0x8
+ RWF_SUPPORTED = 0x1f
+ RWF_SYNC = 0x4
+ RWF_WRITE_LIFE_NOT_SET = 0x0
SCM_CREDENTIALS = 0x2
SCM_RIGHTS = 0x1
SCM_TIMESTAMP = 0x1d
@@ -2194,7 +2228,7 @@ const (
SOL_TLS = 0x11a
SOL_X25 = 0x106
SOL_XDP = 0x11b
- SOMAXCONN = 0x80
+ SOMAXCONN = 0x1000
SO_ACCEPTCONN = 0x1e
SO_ATTACH_BPF = 0x32
SO_ATTACH_FILTER = 0x1a
@@ -2300,6 +2334,7 @@ const (
STATX_ATTR_ENCRYPTED = 0x800
STATX_ATTR_IMMUTABLE = 0x10
STATX_ATTR_NODUMP = 0x40
+ STATX_ATTR_VERITY = 0x100000
STATX_BASIC_STATS = 0x7ff
STATX_BLOCKS = 0x400
STATX_BTIME = 0x800
@@ -2421,6 +2456,7 @@ const (
TCP_THIN_DUPACK = 0x11
TCP_THIN_LINEAR_TIMEOUTS = 0x10
TCP_TIMESTAMP = 0x18
+ TCP_TX_DELAY = 0x25
TCP_ULP = 0x1f
TCP_USER_TIMEOUT = 0x12
TCP_WINDOW_CLAMP = 0xa
@@ -2517,6 +2553,10 @@ const (
TIPC_ADDR_MCAST = 0x1
TIPC_ADDR_NAME = 0x2
TIPC_ADDR_NAMESEQ = 0x1
+ TIPC_AEAD_ALG_NAME = 0x20
+ TIPC_AEAD_KEYLEN_MAX = 0x24
+ TIPC_AEAD_KEYLEN_MIN = 0x14
+ TIPC_AEAD_KEY_SIZE_MAX = 0x48
TIPC_CFG_SRV = 0x0
TIPC_CLUSTER_BITS = 0xc
TIPC_CLUSTER_MASK = 0xfff000
@@ -2549,6 +2589,7 @@ const (
TIPC_MCAST_REPLICAST = 0x86
TIPC_MEDIUM_IMPORTANCE = 0x1
TIPC_NODEID_LEN = 0x10
+ TIPC_NODELAY = 0x8a
TIPC_NODE_BITS = 0xc
TIPC_NODE_MASK = 0xfff
TIPC_NODE_OFFSET = 0x0
diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
index 89163c410..a6cd090e9 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
@@ -243,6 +243,7 @@ const (
BPF_F_LOCK = 0x4
BPF_F_MARK_ENFORCE = 0x40
BPF_F_MARK_MANGLED_0 = 0x20
+ BPF_F_MMAPABLE = 0x400
BPF_F_NO_COMMON_LRU = 0x2
BPF_F_NO_PREALLOC = 0x1
BPF_F_NUMA_NODE = 0x4
@@ -417,8 +418,10 @@ const (
CLOCK_TXFROMRX = 0x4
CLOCK_TXINT = 0x3
CLONE_ARGS_SIZE_VER0 = 0x40
+ CLONE_ARGS_SIZE_VER1 = 0x50
CLONE_CHILD_CLEARTID = 0x200000
CLONE_CHILD_SETTID = 0x1000000
+ CLONE_CLEAR_SIGHAND = 0x100000000
CLONE_DETACHED = 0x400000
CLONE_FILES = 0x400
CLONE_FS = 0x200
@@ -715,8 +718,9 @@ const (
FSCRYPT_POLICY_FLAGS_PAD_4 = 0x0
FSCRYPT_POLICY_FLAGS_PAD_8 = 0x1
FSCRYPT_POLICY_FLAGS_PAD_MASK = 0x3
- FSCRYPT_POLICY_FLAGS_VALID = 0x7
+ FSCRYPT_POLICY_FLAGS_VALID = 0xf
FSCRYPT_POLICY_FLAG_DIRECT_KEY = 0x4
+ FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64 = 0x8
FSCRYPT_POLICY_V1 = 0x0
FSCRYPT_POLICY_V2 = 0x2
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
@@ -746,7 +750,7 @@ const (
FS_POLICY_FLAGS_PAD_4 = 0x0
FS_POLICY_FLAGS_PAD_8 = 0x1
FS_POLICY_FLAGS_PAD_MASK = 0x3
- FS_POLICY_FLAGS_VALID = 0x7
+ FS_POLICY_FLAGS_VALID = 0xf
FUTEXFS_SUPER_MAGIC = 0xbad1dea
F_ADD_SEALS = 0x409
F_DUPFD = 0x0
@@ -1228,6 +1232,7 @@ const (
LOOP_SET_STATUS64 = 0x4c04
LO_KEY_SIZE = 0x20
LO_NAME_SIZE = 0x40
+ MADV_COLD = 0x14
MADV_DODUMP = 0x11
MADV_DOFORK = 0xb
MADV_DONTDUMP = 0x10
@@ -1240,6 +1245,7 @@ const (
MADV_MERGEABLE = 0xc
MADV_NOHUGEPAGE = 0xf
MADV_NORMAL = 0x0
+ MADV_PAGEOUT = 0x15
MADV_RANDOM = 0x1
MADV_REMOVE = 0x9
MADV_SEQUENTIAL = 0x2
@@ -1581,6 +1587,7 @@ const (
PERF_EVENT_IOC_SET_FILTER = 0x80042406
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
PIPEFS_MAGIC = 0x50495045
+ PPC_CMM_MAGIC = 0xc7571590
PPPIOCATTACH = 0x8004743d
PPPIOCATTCHAN = 0x80047438
PPPIOCCONNECT = 0x8004743a
@@ -1591,6 +1598,8 @@ const (
PPPIOCGDEBUG = 0x40047441
PPPIOCGFLAGS = 0x4004745a
PPPIOCGIDLE = 0x4008743f
+ PPPIOCGIDLE32 = 0x4008743f
+ PPPIOCGIDLE64 = 0x4010743f
PPPIOCGL2TPSTATS = 0x40487436
PPPIOCGMRU = 0x40047453
PPPIOCGNPMODE = 0xc008744c
@@ -1929,12 +1938,28 @@ const (
RTF_UP = 0x1
RTF_WINDOW = 0x80
RTF_XRESOLVE = 0x800
+ RTMGRP_DECnet_IFADDR = 0x1000
+ RTMGRP_DECnet_ROUTE = 0x4000
+ RTMGRP_IPV4_IFADDR = 0x10
+ RTMGRP_IPV4_MROUTE = 0x20
+ RTMGRP_IPV4_ROUTE = 0x40
+ RTMGRP_IPV4_RULE = 0x80
+ RTMGRP_IPV6_IFADDR = 0x100
+ RTMGRP_IPV6_IFINFO = 0x800
+ RTMGRP_IPV6_MROUTE = 0x200
+ RTMGRP_IPV6_PREFIX = 0x20000
+ RTMGRP_IPV6_ROUTE = 0x400
+ RTMGRP_LINK = 0x1
+ RTMGRP_NEIGH = 0x4
+ RTMGRP_NOTIFY = 0x2
+ RTMGRP_TC = 0x8
RTM_BASE = 0x10
RTM_DELACTION = 0x31
RTM_DELADDR = 0x15
RTM_DELADDRLABEL = 0x49
RTM_DELCHAIN = 0x65
RTM_DELLINK = 0x11
+ RTM_DELLINKPROP = 0x6d
RTM_DELMDB = 0x55
RTM_DELNEIGH = 0x1d
RTM_DELNETCONF = 0x51
@@ -1958,6 +1983,7 @@ const (
RTM_GETCHAIN = 0x66
RTM_GETDCB = 0x4e
RTM_GETLINK = 0x12
+ RTM_GETLINKPROP = 0x6e
RTM_GETMDB = 0x56
RTM_GETMULTICAST = 0x3a
RTM_GETNEIGH = 0x1e
@@ -1971,13 +1997,14 @@ const (
RTM_GETSTATS = 0x5e
RTM_GETTCLASS = 0x2a
RTM_GETTFILTER = 0x2e
- RTM_MAX = 0x6b
+ RTM_MAX = 0x6f
RTM_NEWACTION = 0x30
RTM_NEWADDR = 0x14
RTM_NEWADDRLABEL = 0x48
RTM_NEWCACHEREPORT = 0x60
RTM_NEWCHAIN = 0x64
RTM_NEWLINK = 0x10
+ RTM_NEWLINKPROP = 0x6c
RTM_NEWMDB = 0x54
RTM_NEWNDUSEROPT = 0x44
RTM_NEWNEIGH = 0x1c
@@ -1992,8 +2019,8 @@ const (
RTM_NEWSTATS = 0x5c
RTM_NEWTCLASS = 0x28
RTM_NEWTFILTER = 0x2c
- RTM_NR_FAMILIES = 0x17
- RTM_NR_MSGTYPES = 0x5c
+ RTM_NR_FAMILIES = 0x18
+ RTM_NR_MSGTYPES = 0x60
RTM_SETDCB = 0x4f
RTM_SETLINK = 0x13
RTM_SETNEIGHTBL = 0x43
@@ -2035,6 +2062,13 @@ const (
RUSAGE_CHILDREN = -0x1
RUSAGE_SELF = 0x0
RUSAGE_THREAD = 0x1
+ RWF_APPEND = 0x10
+ RWF_DSYNC = 0x2
+ RWF_HIPRI = 0x1
+ RWF_NOWAIT = 0x8
+ RWF_SUPPORTED = 0x1f
+ RWF_SYNC = 0x4
+ RWF_WRITE_LIFE_NOT_SET = 0x0
SCM_CREDENTIALS = 0x2
SCM_RIGHTS = 0x1
SCM_TIMESTAMP = 0x1d
@@ -2201,7 +2235,7 @@ const (
SOL_TLS = 0x11a
SOL_X25 = 0x106
SOL_XDP = 0x11b
- SOMAXCONN = 0x80
+ SOMAXCONN = 0x1000
SO_ACCEPTCONN = 0x1009
SO_ATTACH_BPF = 0x32
SO_ATTACH_FILTER = 0x1a
@@ -2308,6 +2342,7 @@ const (
STATX_ATTR_ENCRYPTED = 0x800
STATX_ATTR_IMMUTABLE = 0x10
STATX_ATTR_NODUMP = 0x40
+ STATX_ATTR_VERITY = 0x100000
STATX_BASIC_STATS = 0x7ff
STATX_BLOCKS = 0x400
STATX_BTIME = 0x800
@@ -2427,6 +2462,7 @@ const (
TCP_THIN_DUPACK = 0x11
TCP_THIN_LINEAR_TIMEOUTS = 0x10
TCP_TIMESTAMP = 0x18
+ TCP_TX_DELAY = 0x25
TCP_ULP = 0x1f
TCP_USER_TIMEOUT = 0x12
TCP_WINDOW_CLAMP = 0xa
@@ -2525,6 +2561,10 @@ const (
TIPC_ADDR_MCAST = 0x1
TIPC_ADDR_NAME = 0x2
TIPC_ADDR_NAMESEQ = 0x1
+ TIPC_AEAD_ALG_NAME = 0x20
+ TIPC_AEAD_KEYLEN_MAX = 0x24
+ TIPC_AEAD_KEYLEN_MIN = 0x14
+ TIPC_AEAD_KEY_SIZE_MAX = 0x48
TIPC_CFG_SRV = 0x0
TIPC_CLUSTER_BITS = 0xc
TIPC_CLUSTER_MASK = 0xfff000
@@ -2557,6 +2597,7 @@ const (
TIPC_MCAST_REPLICAST = 0x86
TIPC_MEDIUM_IMPORTANCE = 0x1
TIPC_NODEID_LEN = 0x10
+ TIPC_NODELAY = 0x8a
TIPC_NODE_BITS = 0xc
TIPC_NODE_MASK = 0xfff
TIPC_NODE_OFFSET = 0x0
diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
index 15284ff41..9152b5f12 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
@@ -243,6 +243,7 @@ const (
BPF_F_LOCK = 0x4
BPF_F_MARK_ENFORCE = 0x40
BPF_F_MARK_MANGLED_0 = 0x20
+ BPF_F_MMAPABLE = 0x400
BPF_F_NO_COMMON_LRU = 0x2
BPF_F_NO_PREALLOC = 0x1
BPF_F_NUMA_NODE = 0x4
@@ -417,8 +418,10 @@ const (
CLOCK_TXFROMRX = 0x4
CLOCK_TXINT = 0x3
CLONE_ARGS_SIZE_VER0 = 0x40
+ CLONE_ARGS_SIZE_VER1 = 0x50
CLONE_CHILD_CLEARTID = 0x200000
CLONE_CHILD_SETTID = 0x1000000
+ CLONE_CLEAR_SIGHAND = 0x100000000
CLONE_DETACHED = 0x400000
CLONE_FILES = 0x400
CLONE_FS = 0x200
@@ -715,8 +718,9 @@ const (
FSCRYPT_POLICY_FLAGS_PAD_4 = 0x0
FSCRYPT_POLICY_FLAGS_PAD_8 = 0x1
FSCRYPT_POLICY_FLAGS_PAD_MASK = 0x3
- FSCRYPT_POLICY_FLAGS_VALID = 0x7
+ FSCRYPT_POLICY_FLAGS_VALID = 0xf
FSCRYPT_POLICY_FLAG_DIRECT_KEY = 0x4
+ FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64 = 0x8
FSCRYPT_POLICY_V1 = 0x0
FSCRYPT_POLICY_V2 = 0x2
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
@@ -746,7 +750,7 @@ const (
FS_POLICY_FLAGS_PAD_4 = 0x0
FS_POLICY_FLAGS_PAD_8 = 0x1
FS_POLICY_FLAGS_PAD_MASK = 0x3
- FS_POLICY_FLAGS_VALID = 0x7
+ FS_POLICY_FLAGS_VALID = 0xf
FUTEXFS_SUPER_MAGIC = 0xbad1dea
F_ADD_SEALS = 0x409
F_DUPFD = 0x0
@@ -1228,6 +1232,7 @@ const (
LOOP_SET_STATUS64 = 0x4c04
LO_KEY_SIZE = 0x20
LO_NAME_SIZE = 0x40
+ MADV_COLD = 0x14
MADV_DODUMP = 0x11
MADV_DOFORK = 0xb
MADV_DONTDUMP = 0x10
@@ -1240,6 +1245,7 @@ const (
MADV_MERGEABLE = 0xc
MADV_NOHUGEPAGE = 0xf
MADV_NORMAL = 0x0
+ MADV_PAGEOUT = 0x15
MADV_RANDOM = 0x1
MADV_REMOVE = 0x9
MADV_SEQUENTIAL = 0x2
@@ -1581,6 +1587,7 @@ const (
PERF_EVENT_IOC_SET_FILTER = 0x80082406
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
PIPEFS_MAGIC = 0x50495045
+ PPC_CMM_MAGIC = 0xc7571590
PPPIOCATTACH = 0x8004743d
PPPIOCATTCHAN = 0x80047438
PPPIOCCONNECT = 0x8004743a
@@ -1591,6 +1598,8 @@ const (
PPPIOCGDEBUG = 0x40047441
PPPIOCGFLAGS = 0x4004745a
PPPIOCGIDLE = 0x4010743f
+ PPPIOCGIDLE32 = 0x4008743f
+ PPPIOCGIDLE64 = 0x4010743f
PPPIOCGL2TPSTATS = 0x40487436
PPPIOCGMRU = 0x40047453
PPPIOCGNPMODE = 0xc008744c
@@ -1929,12 +1938,28 @@ const (
RTF_UP = 0x1
RTF_WINDOW = 0x80
RTF_XRESOLVE = 0x800
+ RTMGRP_DECnet_IFADDR = 0x1000
+ RTMGRP_DECnet_ROUTE = 0x4000
+ RTMGRP_IPV4_IFADDR = 0x10
+ RTMGRP_IPV4_MROUTE = 0x20
+ RTMGRP_IPV4_ROUTE = 0x40
+ RTMGRP_IPV4_RULE = 0x80
+ RTMGRP_IPV6_IFADDR = 0x100
+ RTMGRP_IPV6_IFINFO = 0x800
+ RTMGRP_IPV6_MROUTE = 0x200
+ RTMGRP_IPV6_PREFIX = 0x20000
+ RTMGRP_IPV6_ROUTE = 0x400
+ RTMGRP_LINK = 0x1
+ RTMGRP_NEIGH = 0x4
+ RTMGRP_NOTIFY = 0x2
+ RTMGRP_TC = 0x8
RTM_BASE = 0x10
RTM_DELACTION = 0x31
RTM_DELADDR = 0x15
RTM_DELADDRLABEL = 0x49
RTM_DELCHAIN = 0x65
RTM_DELLINK = 0x11
+ RTM_DELLINKPROP = 0x6d
RTM_DELMDB = 0x55
RTM_DELNEIGH = 0x1d
RTM_DELNETCONF = 0x51
@@ -1958,6 +1983,7 @@ const (
RTM_GETCHAIN = 0x66
RTM_GETDCB = 0x4e
RTM_GETLINK = 0x12
+ RTM_GETLINKPROP = 0x6e
RTM_GETMDB = 0x56
RTM_GETMULTICAST = 0x3a
RTM_GETNEIGH = 0x1e
@@ -1971,13 +1997,14 @@ const (
RTM_GETSTATS = 0x5e
RTM_GETTCLASS = 0x2a
RTM_GETTFILTER = 0x2e
- RTM_MAX = 0x6b
+ RTM_MAX = 0x6f
RTM_NEWACTION = 0x30
RTM_NEWADDR = 0x14
RTM_NEWADDRLABEL = 0x48
RTM_NEWCACHEREPORT = 0x60
RTM_NEWCHAIN = 0x64
RTM_NEWLINK = 0x10
+ RTM_NEWLINKPROP = 0x6c
RTM_NEWMDB = 0x54
RTM_NEWNDUSEROPT = 0x44
RTM_NEWNEIGH = 0x1c
@@ -1992,8 +2019,8 @@ const (
RTM_NEWSTATS = 0x5c
RTM_NEWTCLASS = 0x28
RTM_NEWTFILTER = 0x2c
- RTM_NR_FAMILIES = 0x17
- RTM_NR_MSGTYPES = 0x5c
+ RTM_NR_FAMILIES = 0x18
+ RTM_NR_MSGTYPES = 0x60
RTM_SETDCB = 0x4f
RTM_SETLINK = 0x13
RTM_SETNEIGHTBL = 0x43
@@ -2035,6 +2062,13 @@ const (
RUSAGE_CHILDREN = -0x1
RUSAGE_SELF = 0x0
RUSAGE_THREAD = 0x1
+ RWF_APPEND = 0x10
+ RWF_DSYNC = 0x2
+ RWF_HIPRI = 0x1
+ RWF_NOWAIT = 0x8
+ RWF_SUPPORTED = 0x1f
+ RWF_SYNC = 0x4
+ RWF_WRITE_LIFE_NOT_SET = 0x0
SCM_CREDENTIALS = 0x2
SCM_RIGHTS = 0x1
SCM_TIMESTAMP = 0x1d
@@ -2201,7 +2235,7 @@ const (
SOL_TLS = 0x11a
SOL_X25 = 0x106
SOL_XDP = 0x11b
- SOMAXCONN = 0x80
+ SOMAXCONN = 0x1000
SO_ACCEPTCONN = 0x1009
SO_ATTACH_BPF = 0x32
SO_ATTACH_FILTER = 0x1a
@@ -2308,6 +2342,7 @@ const (
STATX_ATTR_ENCRYPTED = 0x800
STATX_ATTR_IMMUTABLE = 0x10
STATX_ATTR_NODUMP = 0x40
+ STATX_ATTR_VERITY = 0x100000
STATX_BASIC_STATS = 0x7ff
STATX_BLOCKS = 0x400
STATX_BTIME = 0x800
@@ -2427,6 +2462,7 @@ const (
TCP_THIN_DUPACK = 0x11
TCP_THIN_LINEAR_TIMEOUTS = 0x10
TCP_TIMESTAMP = 0x18
+ TCP_TX_DELAY = 0x25
TCP_ULP = 0x1f
TCP_USER_TIMEOUT = 0x12
TCP_WINDOW_CLAMP = 0xa
@@ -2525,6 +2561,10 @@ const (
TIPC_ADDR_MCAST = 0x1
TIPC_ADDR_NAME = 0x2
TIPC_ADDR_NAMESEQ = 0x1
+ TIPC_AEAD_ALG_NAME = 0x20
+ TIPC_AEAD_KEYLEN_MAX = 0x24
+ TIPC_AEAD_KEYLEN_MIN = 0x14
+ TIPC_AEAD_KEY_SIZE_MAX = 0x48
TIPC_CFG_SRV = 0x0
TIPC_CLUSTER_BITS = 0xc
TIPC_CLUSTER_MASK = 0xfff000
@@ -2557,6 +2597,7 @@ const (
TIPC_MCAST_REPLICAST = 0x86
TIPC_MEDIUM_IMPORTANCE = 0x1
TIPC_NODEID_LEN = 0x10
+ TIPC_NODELAY = 0x8a
TIPC_NODE_BITS = 0xc
TIPC_NODE_MASK = 0xfff
TIPC_NODE_OFFSET = 0x0
diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
index 1ec776940..e1aa146bc 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
@@ -243,6 +243,7 @@ const (
BPF_F_LOCK = 0x4
BPF_F_MARK_ENFORCE = 0x40
BPF_F_MARK_MANGLED_0 = 0x20
+ BPF_F_MMAPABLE = 0x400
BPF_F_NO_COMMON_LRU = 0x2
BPF_F_NO_PREALLOC = 0x1
BPF_F_NUMA_NODE = 0x4
@@ -417,8 +418,10 @@ const (
CLOCK_TXFROMRX = 0x4
CLOCK_TXINT = 0x3
CLONE_ARGS_SIZE_VER0 = 0x40
+ CLONE_ARGS_SIZE_VER1 = 0x50
CLONE_CHILD_CLEARTID = 0x200000
CLONE_CHILD_SETTID = 0x1000000
+ CLONE_CLEAR_SIGHAND = 0x100000000
CLONE_DETACHED = 0x400000
CLONE_FILES = 0x400
CLONE_FS = 0x200
@@ -715,8 +718,9 @@ const (
FSCRYPT_POLICY_FLAGS_PAD_4 = 0x0
FSCRYPT_POLICY_FLAGS_PAD_8 = 0x1
FSCRYPT_POLICY_FLAGS_PAD_MASK = 0x3
- FSCRYPT_POLICY_FLAGS_VALID = 0x7
+ FSCRYPT_POLICY_FLAGS_VALID = 0xf
FSCRYPT_POLICY_FLAG_DIRECT_KEY = 0x4
+ FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64 = 0x8
FSCRYPT_POLICY_V1 = 0x0
FSCRYPT_POLICY_V2 = 0x2
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
@@ -746,7 +750,7 @@ const (
FS_POLICY_FLAGS_PAD_4 = 0x0
FS_POLICY_FLAGS_PAD_8 = 0x1
FS_POLICY_FLAGS_PAD_MASK = 0x3
- FS_POLICY_FLAGS_VALID = 0x7
+ FS_POLICY_FLAGS_VALID = 0xf
FUTEXFS_SUPER_MAGIC = 0xbad1dea
F_ADD_SEALS = 0x409
F_DUPFD = 0x0
@@ -1228,6 +1232,7 @@ const (
LOOP_SET_STATUS64 = 0x4c04
LO_KEY_SIZE = 0x20
LO_NAME_SIZE = 0x40
+ MADV_COLD = 0x14
MADV_DODUMP = 0x11
MADV_DOFORK = 0xb
MADV_DONTDUMP = 0x10
@@ -1240,6 +1245,7 @@ const (
MADV_MERGEABLE = 0xc
MADV_NOHUGEPAGE = 0xf
MADV_NORMAL = 0x0
+ MADV_PAGEOUT = 0x15
MADV_RANDOM = 0x1
MADV_REMOVE = 0x9
MADV_SEQUENTIAL = 0x2
@@ -1581,6 +1587,7 @@ const (
PERF_EVENT_IOC_SET_FILTER = 0x80082406
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
PIPEFS_MAGIC = 0x50495045
+ PPC_CMM_MAGIC = 0xc7571590
PPPIOCATTACH = 0x8004743d
PPPIOCATTCHAN = 0x80047438
PPPIOCCONNECT = 0x8004743a
@@ -1591,6 +1598,8 @@ const (
PPPIOCGDEBUG = 0x40047441
PPPIOCGFLAGS = 0x4004745a
PPPIOCGIDLE = 0x4010743f
+ PPPIOCGIDLE32 = 0x4008743f
+ PPPIOCGIDLE64 = 0x4010743f
PPPIOCGL2TPSTATS = 0x40487436
PPPIOCGMRU = 0x40047453
PPPIOCGNPMODE = 0xc008744c
@@ -1929,12 +1938,28 @@ const (
RTF_UP = 0x1
RTF_WINDOW = 0x80
RTF_XRESOLVE = 0x800
+ RTMGRP_DECnet_IFADDR = 0x1000
+ RTMGRP_DECnet_ROUTE = 0x4000
+ RTMGRP_IPV4_IFADDR = 0x10
+ RTMGRP_IPV4_MROUTE = 0x20
+ RTMGRP_IPV4_ROUTE = 0x40
+ RTMGRP_IPV4_RULE = 0x80
+ RTMGRP_IPV6_IFADDR = 0x100
+ RTMGRP_IPV6_IFINFO = 0x800
+ RTMGRP_IPV6_MROUTE = 0x200
+ RTMGRP_IPV6_PREFIX = 0x20000
+ RTMGRP_IPV6_ROUTE = 0x400
+ RTMGRP_LINK = 0x1
+ RTMGRP_NEIGH = 0x4
+ RTMGRP_NOTIFY = 0x2
+ RTMGRP_TC = 0x8
RTM_BASE = 0x10
RTM_DELACTION = 0x31
RTM_DELADDR = 0x15
RTM_DELADDRLABEL = 0x49
RTM_DELCHAIN = 0x65
RTM_DELLINK = 0x11
+ RTM_DELLINKPROP = 0x6d
RTM_DELMDB = 0x55
RTM_DELNEIGH = 0x1d
RTM_DELNETCONF = 0x51
@@ -1958,6 +1983,7 @@ const (
RTM_GETCHAIN = 0x66
RTM_GETDCB = 0x4e
RTM_GETLINK = 0x12
+ RTM_GETLINKPROP = 0x6e
RTM_GETMDB = 0x56
RTM_GETMULTICAST = 0x3a
RTM_GETNEIGH = 0x1e
@@ -1971,13 +1997,14 @@ const (
RTM_GETSTATS = 0x5e
RTM_GETTCLASS = 0x2a
RTM_GETTFILTER = 0x2e
- RTM_MAX = 0x6b
+ RTM_MAX = 0x6f
RTM_NEWACTION = 0x30
RTM_NEWADDR = 0x14
RTM_NEWADDRLABEL = 0x48
RTM_NEWCACHEREPORT = 0x60
RTM_NEWCHAIN = 0x64
RTM_NEWLINK = 0x10
+ RTM_NEWLINKPROP = 0x6c
RTM_NEWMDB = 0x54
RTM_NEWNDUSEROPT = 0x44
RTM_NEWNEIGH = 0x1c
@@ -1992,8 +2019,8 @@ const (
RTM_NEWSTATS = 0x5c
RTM_NEWTCLASS = 0x28
RTM_NEWTFILTER = 0x2c
- RTM_NR_FAMILIES = 0x17
- RTM_NR_MSGTYPES = 0x5c
+ RTM_NR_FAMILIES = 0x18
+ RTM_NR_MSGTYPES = 0x60
RTM_SETDCB = 0x4f
RTM_SETLINK = 0x13
RTM_SETNEIGHTBL = 0x43
@@ -2035,6 +2062,13 @@ const (
RUSAGE_CHILDREN = -0x1
RUSAGE_SELF = 0x0
RUSAGE_THREAD = 0x1
+ RWF_APPEND = 0x10
+ RWF_DSYNC = 0x2
+ RWF_HIPRI = 0x1
+ RWF_NOWAIT = 0x8
+ RWF_SUPPORTED = 0x1f
+ RWF_SYNC = 0x4
+ RWF_WRITE_LIFE_NOT_SET = 0x0
SCM_CREDENTIALS = 0x2
SCM_RIGHTS = 0x1
SCM_TIMESTAMP = 0x1d
@@ -2201,7 +2235,7 @@ const (
SOL_TLS = 0x11a
SOL_X25 = 0x106
SOL_XDP = 0x11b
- SOMAXCONN = 0x80
+ SOMAXCONN = 0x1000
SO_ACCEPTCONN = 0x1009
SO_ATTACH_BPF = 0x32
SO_ATTACH_FILTER = 0x1a
@@ -2308,6 +2342,7 @@ const (
STATX_ATTR_ENCRYPTED = 0x800
STATX_ATTR_IMMUTABLE = 0x10
STATX_ATTR_NODUMP = 0x40
+ STATX_ATTR_VERITY = 0x100000
STATX_BASIC_STATS = 0x7ff
STATX_BLOCKS = 0x400
STATX_BTIME = 0x800
@@ -2427,6 +2462,7 @@ const (
TCP_THIN_DUPACK = 0x11
TCP_THIN_LINEAR_TIMEOUTS = 0x10
TCP_TIMESTAMP = 0x18
+ TCP_TX_DELAY = 0x25
TCP_ULP = 0x1f
TCP_USER_TIMEOUT = 0x12
TCP_WINDOW_CLAMP = 0xa
@@ -2525,6 +2561,10 @@ const (
TIPC_ADDR_MCAST = 0x1
TIPC_ADDR_NAME = 0x2
TIPC_ADDR_NAMESEQ = 0x1
+ TIPC_AEAD_ALG_NAME = 0x20
+ TIPC_AEAD_KEYLEN_MAX = 0x24
+ TIPC_AEAD_KEYLEN_MIN = 0x14
+ TIPC_AEAD_KEY_SIZE_MAX = 0x48
TIPC_CFG_SRV = 0x0
TIPC_CLUSTER_BITS = 0xc
TIPC_CLUSTER_MASK = 0xfff000
@@ -2557,6 +2597,7 @@ const (
TIPC_MCAST_REPLICAST = 0x86
TIPC_MEDIUM_IMPORTANCE = 0x1
TIPC_NODEID_LEN = 0x10
+ TIPC_NODELAY = 0x8a
TIPC_NODE_BITS = 0xc
TIPC_NODE_MASK = 0xfff
TIPC_NODE_OFFSET = 0x0
diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
index f96d54563..d23b3a944 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
@@ -243,6 +243,7 @@ const (
BPF_F_LOCK = 0x4
BPF_F_MARK_ENFORCE = 0x40
BPF_F_MARK_MANGLED_0 = 0x20
+ BPF_F_MMAPABLE = 0x400
BPF_F_NO_COMMON_LRU = 0x2
BPF_F_NO_PREALLOC = 0x1
BPF_F_NUMA_NODE = 0x4
@@ -417,8 +418,10 @@ const (
CLOCK_TXFROMRX = 0x4
CLOCK_TXINT = 0x3
CLONE_ARGS_SIZE_VER0 = 0x40
+ CLONE_ARGS_SIZE_VER1 = 0x50
CLONE_CHILD_CLEARTID = 0x200000
CLONE_CHILD_SETTID = 0x1000000
+ CLONE_CLEAR_SIGHAND = 0x100000000
CLONE_DETACHED = 0x400000
CLONE_FILES = 0x400
CLONE_FS = 0x200
@@ -715,8 +718,9 @@ const (
FSCRYPT_POLICY_FLAGS_PAD_4 = 0x0
FSCRYPT_POLICY_FLAGS_PAD_8 = 0x1
FSCRYPT_POLICY_FLAGS_PAD_MASK = 0x3
- FSCRYPT_POLICY_FLAGS_VALID = 0x7
+ FSCRYPT_POLICY_FLAGS_VALID = 0xf
FSCRYPT_POLICY_FLAG_DIRECT_KEY = 0x4
+ FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64 = 0x8
FSCRYPT_POLICY_V1 = 0x0
FSCRYPT_POLICY_V2 = 0x2
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
@@ -746,7 +750,7 @@ const (
FS_POLICY_FLAGS_PAD_4 = 0x0
FS_POLICY_FLAGS_PAD_8 = 0x1
FS_POLICY_FLAGS_PAD_MASK = 0x3
- FS_POLICY_FLAGS_VALID = 0x7
+ FS_POLICY_FLAGS_VALID = 0xf
FUTEXFS_SUPER_MAGIC = 0xbad1dea
F_ADD_SEALS = 0x409
F_DUPFD = 0x0
@@ -1228,6 +1232,7 @@ const (
LOOP_SET_STATUS64 = 0x4c04
LO_KEY_SIZE = 0x20
LO_NAME_SIZE = 0x40
+ MADV_COLD = 0x14
MADV_DODUMP = 0x11
MADV_DOFORK = 0xb
MADV_DONTDUMP = 0x10
@@ -1240,6 +1245,7 @@ const (
MADV_MERGEABLE = 0xc
MADV_NOHUGEPAGE = 0xf
MADV_NORMAL = 0x0
+ MADV_PAGEOUT = 0x15
MADV_RANDOM = 0x1
MADV_REMOVE = 0x9
MADV_SEQUENTIAL = 0x2
@@ -1581,6 +1587,7 @@ const (
PERF_EVENT_IOC_SET_FILTER = 0x80042406
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
PIPEFS_MAGIC = 0x50495045
+ PPC_CMM_MAGIC = 0xc7571590
PPPIOCATTACH = 0x8004743d
PPPIOCATTCHAN = 0x80047438
PPPIOCCONNECT = 0x8004743a
@@ -1591,6 +1598,8 @@ const (
PPPIOCGDEBUG = 0x40047441
PPPIOCGFLAGS = 0x4004745a
PPPIOCGIDLE = 0x4008743f
+ PPPIOCGIDLE32 = 0x4008743f
+ PPPIOCGIDLE64 = 0x4010743f
PPPIOCGL2TPSTATS = 0x40487436
PPPIOCGMRU = 0x40047453
PPPIOCGNPMODE = 0xc008744c
@@ -1929,12 +1938,28 @@ const (
RTF_UP = 0x1
RTF_WINDOW = 0x80
RTF_XRESOLVE = 0x800
+ RTMGRP_DECnet_IFADDR = 0x1000
+ RTMGRP_DECnet_ROUTE = 0x4000
+ RTMGRP_IPV4_IFADDR = 0x10
+ RTMGRP_IPV4_MROUTE = 0x20
+ RTMGRP_IPV4_ROUTE = 0x40
+ RTMGRP_IPV4_RULE = 0x80
+ RTMGRP_IPV6_IFADDR = 0x100
+ RTMGRP_IPV6_IFINFO = 0x800
+ RTMGRP_IPV6_MROUTE = 0x200
+ RTMGRP_IPV6_PREFIX = 0x20000
+ RTMGRP_IPV6_ROUTE = 0x400
+ RTMGRP_LINK = 0x1
+ RTMGRP_NEIGH = 0x4
+ RTMGRP_NOTIFY = 0x2
+ RTMGRP_TC = 0x8
RTM_BASE = 0x10
RTM_DELACTION = 0x31
RTM_DELADDR = 0x15
RTM_DELADDRLABEL = 0x49
RTM_DELCHAIN = 0x65
RTM_DELLINK = 0x11
+ RTM_DELLINKPROP = 0x6d
RTM_DELMDB = 0x55
RTM_DELNEIGH = 0x1d
RTM_DELNETCONF = 0x51
@@ -1958,6 +1983,7 @@ const (
RTM_GETCHAIN = 0x66
RTM_GETDCB = 0x4e
RTM_GETLINK = 0x12
+ RTM_GETLINKPROP = 0x6e
RTM_GETMDB = 0x56
RTM_GETMULTICAST = 0x3a
RTM_GETNEIGH = 0x1e
@@ -1971,13 +1997,14 @@ const (
RTM_GETSTATS = 0x5e
RTM_GETTCLASS = 0x2a
RTM_GETTFILTER = 0x2e
- RTM_MAX = 0x6b
+ RTM_MAX = 0x6f
RTM_NEWACTION = 0x30
RTM_NEWADDR = 0x14
RTM_NEWADDRLABEL = 0x48
RTM_NEWCACHEREPORT = 0x60
RTM_NEWCHAIN = 0x64
RTM_NEWLINK = 0x10
+ RTM_NEWLINKPROP = 0x6c
RTM_NEWMDB = 0x54
RTM_NEWNDUSEROPT = 0x44
RTM_NEWNEIGH = 0x1c
@@ -1992,8 +2019,8 @@ const (
RTM_NEWSTATS = 0x5c
RTM_NEWTCLASS = 0x28
RTM_NEWTFILTER = 0x2c
- RTM_NR_FAMILIES = 0x17
- RTM_NR_MSGTYPES = 0x5c
+ RTM_NR_FAMILIES = 0x18
+ RTM_NR_MSGTYPES = 0x60
RTM_SETDCB = 0x4f
RTM_SETLINK = 0x13
RTM_SETNEIGHTBL = 0x43
@@ -2035,6 +2062,13 @@ const (
RUSAGE_CHILDREN = -0x1
RUSAGE_SELF = 0x0
RUSAGE_THREAD = 0x1
+ RWF_APPEND = 0x10
+ RWF_DSYNC = 0x2
+ RWF_HIPRI = 0x1
+ RWF_NOWAIT = 0x8
+ RWF_SUPPORTED = 0x1f
+ RWF_SYNC = 0x4
+ RWF_WRITE_LIFE_NOT_SET = 0x0
SCM_CREDENTIALS = 0x2
SCM_RIGHTS = 0x1
SCM_TIMESTAMP = 0x1d
@@ -2201,7 +2235,7 @@ const (
SOL_TLS = 0x11a
SOL_X25 = 0x106
SOL_XDP = 0x11b
- SOMAXCONN = 0x80
+ SOMAXCONN = 0x1000
SO_ACCEPTCONN = 0x1009
SO_ATTACH_BPF = 0x32
SO_ATTACH_FILTER = 0x1a
@@ -2308,6 +2342,7 @@ const (
STATX_ATTR_ENCRYPTED = 0x800
STATX_ATTR_IMMUTABLE = 0x10
STATX_ATTR_NODUMP = 0x40
+ STATX_ATTR_VERITY = 0x100000
STATX_BASIC_STATS = 0x7ff
STATX_BLOCKS = 0x400
STATX_BTIME = 0x800
@@ -2427,6 +2462,7 @@ const (
TCP_THIN_DUPACK = 0x11
TCP_THIN_LINEAR_TIMEOUTS = 0x10
TCP_TIMESTAMP = 0x18
+ TCP_TX_DELAY = 0x25
TCP_ULP = 0x1f
TCP_USER_TIMEOUT = 0x12
TCP_WINDOW_CLAMP = 0xa
@@ -2525,6 +2561,10 @@ const (
TIPC_ADDR_MCAST = 0x1
TIPC_ADDR_NAME = 0x2
TIPC_ADDR_NAMESEQ = 0x1
+ TIPC_AEAD_ALG_NAME = 0x20
+ TIPC_AEAD_KEYLEN_MAX = 0x24
+ TIPC_AEAD_KEYLEN_MIN = 0x14
+ TIPC_AEAD_KEY_SIZE_MAX = 0x48
TIPC_CFG_SRV = 0x0
TIPC_CLUSTER_BITS = 0xc
TIPC_CLUSTER_MASK = 0xfff000
@@ -2557,6 +2597,7 @@ const (
TIPC_MCAST_REPLICAST = 0x86
TIPC_MEDIUM_IMPORTANCE = 0x1
TIPC_NODEID_LEN = 0x10
+ TIPC_NODELAY = 0x8a
TIPC_NODE_BITS = 0xc
TIPC_NODE_MASK = 0xfff
TIPC_NODE_OFFSET = 0x0
diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
index 9adb20e3f..ab6134ebb 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
@@ -243,6 +243,7 @@ const (
BPF_F_LOCK = 0x4
BPF_F_MARK_ENFORCE = 0x40
BPF_F_MARK_MANGLED_0 = 0x20
+ BPF_F_MMAPABLE = 0x400
BPF_F_NO_COMMON_LRU = 0x2
BPF_F_NO_PREALLOC = 0x1
BPF_F_NUMA_NODE = 0x4
@@ -417,8 +418,10 @@ const (
CLOCK_TXFROMRX = 0x4
CLOCK_TXINT = 0x3
CLONE_ARGS_SIZE_VER0 = 0x40
+ CLONE_ARGS_SIZE_VER1 = 0x50
CLONE_CHILD_CLEARTID = 0x200000
CLONE_CHILD_SETTID = 0x1000000
+ CLONE_CLEAR_SIGHAND = 0x100000000
CLONE_DETACHED = 0x400000
CLONE_FILES = 0x400
CLONE_FS = 0x200
@@ -715,8 +718,9 @@ const (
FSCRYPT_POLICY_FLAGS_PAD_4 = 0x0
FSCRYPT_POLICY_FLAGS_PAD_8 = 0x1
FSCRYPT_POLICY_FLAGS_PAD_MASK = 0x3
- FSCRYPT_POLICY_FLAGS_VALID = 0x7
+ FSCRYPT_POLICY_FLAGS_VALID = 0xf
FSCRYPT_POLICY_FLAG_DIRECT_KEY = 0x4
+ FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64 = 0x8
FSCRYPT_POLICY_V1 = 0x0
FSCRYPT_POLICY_V2 = 0x2
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
@@ -746,7 +750,7 @@ const (
FS_POLICY_FLAGS_PAD_4 = 0x0
FS_POLICY_FLAGS_PAD_8 = 0x1
FS_POLICY_FLAGS_PAD_MASK = 0x3
- FS_POLICY_FLAGS_VALID = 0x7
+ FS_POLICY_FLAGS_VALID = 0xf
FUTEXFS_SUPER_MAGIC = 0xbad1dea
F_ADD_SEALS = 0x409
F_DUPFD = 0x0
@@ -1228,6 +1232,7 @@ const (
LOOP_SET_STATUS64 = 0x4c04
LO_KEY_SIZE = 0x20
LO_NAME_SIZE = 0x40
+ MADV_COLD = 0x14
MADV_DODUMP = 0x11
MADV_DOFORK = 0xb
MADV_DONTDUMP = 0x10
@@ -1240,6 +1245,7 @@ const (
MADV_MERGEABLE = 0xc
MADV_NOHUGEPAGE = 0xf
MADV_NORMAL = 0x0
+ MADV_PAGEOUT = 0x15
MADV_RANDOM = 0x1
MADV_REMOVE = 0x9
MADV_SEQUENTIAL = 0x2
@@ -1265,6 +1271,7 @@ const (
MAP_SHARED = 0x1
MAP_SHARED_VALIDATE = 0x3
MAP_STACK = 0x20000
+ MAP_SYNC = 0x80000
MAP_TYPE = 0xf
MCAST_BLOCK_SOURCE = 0x2b
MCAST_EXCLUDE = 0x0
@@ -1582,6 +1589,7 @@ const (
PERF_EVENT_IOC_SET_FILTER = 0x80082406
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
PIPEFS_MAGIC = 0x50495045
+ PPC_CMM_MAGIC = 0xc7571590
PPPIOCATTACH = 0x8004743d
PPPIOCATTCHAN = 0x80047438
PPPIOCCONNECT = 0x8004743a
@@ -1592,6 +1600,8 @@ const (
PPPIOCGDEBUG = 0x40047441
PPPIOCGFLAGS = 0x4004745a
PPPIOCGIDLE = 0x4010743f
+ PPPIOCGIDLE32 = 0x4008743f
+ PPPIOCGIDLE64 = 0x4010743f
PPPIOCGL2TPSTATS = 0x40487436
PPPIOCGMRU = 0x40047453
PPPIOCGNPMODE = 0xc008744c
@@ -1987,12 +1997,28 @@ const (
RTF_UP = 0x1
RTF_WINDOW = 0x80
RTF_XRESOLVE = 0x800
+ RTMGRP_DECnet_IFADDR = 0x1000
+ RTMGRP_DECnet_ROUTE = 0x4000
+ RTMGRP_IPV4_IFADDR = 0x10
+ RTMGRP_IPV4_MROUTE = 0x20
+ RTMGRP_IPV4_ROUTE = 0x40
+ RTMGRP_IPV4_RULE = 0x80
+ RTMGRP_IPV6_IFADDR = 0x100
+ RTMGRP_IPV6_IFINFO = 0x800
+ RTMGRP_IPV6_MROUTE = 0x200
+ RTMGRP_IPV6_PREFIX = 0x20000
+ RTMGRP_IPV6_ROUTE = 0x400
+ RTMGRP_LINK = 0x1
+ RTMGRP_NEIGH = 0x4
+ RTMGRP_NOTIFY = 0x2
+ RTMGRP_TC = 0x8
RTM_BASE = 0x10
RTM_DELACTION = 0x31
RTM_DELADDR = 0x15
RTM_DELADDRLABEL = 0x49
RTM_DELCHAIN = 0x65
RTM_DELLINK = 0x11
+ RTM_DELLINKPROP = 0x6d
RTM_DELMDB = 0x55
RTM_DELNEIGH = 0x1d
RTM_DELNETCONF = 0x51
@@ -2016,6 +2042,7 @@ const (
RTM_GETCHAIN = 0x66
RTM_GETDCB = 0x4e
RTM_GETLINK = 0x12
+ RTM_GETLINKPROP = 0x6e
RTM_GETMDB = 0x56
RTM_GETMULTICAST = 0x3a
RTM_GETNEIGH = 0x1e
@@ -2029,13 +2056,14 @@ const (
RTM_GETSTATS = 0x5e
RTM_GETTCLASS = 0x2a
RTM_GETTFILTER = 0x2e
- RTM_MAX = 0x6b
+ RTM_MAX = 0x6f
RTM_NEWACTION = 0x30
RTM_NEWADDR = 0x14
RTM_NEWADDRLABEL = 0x48
RTM_NEWCACHEREPORT = 0x60
RTM_NEWCHAIN = 0x64
RTM_NEWLINK = 0x10
+ RTM_NEWLINKPROP = 0x6c
RTM_NEWMDB = 0x54
RTM_NEWNDUSEROPT = 0x44
RTM_NEWNEIGH = 0x1c
@@ -2050,8 +2078,8 @@ const (
RTM_NEWSTATS = 0x5c
RTM_NEWTCLASS = 0x28
RTM_NEWTFILTER = 0x2c
- RTM_NR_FAMILIES = 0x17
- RTM_NR_MSGTYPES = 0x5c
+ RTM_NR_FAMILIES = 0x18
+ RTM_NR_MSGTYPES = 0x60
RTM_SETDCB = 0x4f
RTM_SETLINK = 0x13
RTM_SETNEIGHTBL = 0x43
@@ -2093,6 +2121,13 @@ const (
RUSAGE_CHILDREN = -0x1
RUSAGE_SELF = 0x0
RUSAGE_THREAD = 0x1
+ RWF_APPEND = 0x10
+ RWF_DSYNC = 0x2
+ RWF_HIPRI = 0x1
+ RWF_NOWAIT = 0x8
+ RWF_SUPPORTED = 0x1f
+ RWF_SYNC = 0x4
+ RWF_WRITE_LIFE_NOT_SET = 0x0
SCM_CREDENTIALS = 0x2
SCM_RIGHTS = 0x1
SCM_TIMESTAMP = 0x1d
@@ -2259,7 +2294,7 @@ const (
SOL_TLS = 0x11a
SOL_X25 = 0x106
SOL_XDP = 0x11b
- SOMAXCONN = 0x80
+ SOMAXCONN = 0x1000
SO_ACCEPTCONN = 0x1e
SO_ATTACH_BPF = 0x32
SO_ATTACH_FILTER = 0x1a
@@ -2365,6 +2400,7 @@ const (
STATX_ATTR_ENCRYPTED = 0x800
STATX_ATTR_IMMUTABLE = 0x10
STATX_ATTR_NODUMP = 0x40
+ STATX_ATTR_VERITY = 0x100000
STATX_BASIC_STATS = 0x7ff
STATX_BLOCKS = 0x400
STATX_BTIME = 0x800
@@ -2483,6 +2519,7 @@ const (
TCP_THIN_DUPACK = 0x11
TCP_THIN_LINEAR_TIMEOUTS = 0x10
TCP_TIMESTAMP = 0x18
+ TCP_TX_DELAY = 0x25
TCP_ULP = 0x1f
TCP_USER_TIMEOUT = 0x12
TCP_WINDOW_CLAMP = 0xa
@@ -2585,6 +2622,10 @@ const (
TIPC_ADDR_MCAST = 0x1
TIPC_ADDR_NAME = 0x2
TIPC_ADDR_NAMESEQ = 0x1
+ TIPC_AEAD_ALG_NAME = 0x20
+ TIPC_AEAD_KEYLEN_MAX = 0x24
+ TIPC_AEAD_KEYLEN_MIN = 0x14
+ TIPC_AEAD_KEY_SIZE_MAX = 0x48
TIPC_CFG_SRV = 0x0
TIPC_CLUSTER_BITS = 0xc
TIPC_CLUSTER_MASK = 0xfff000
@@ -2617,6 +2658,7 @@ const (
TIPC_MCAST_REPLICAST = 0x86
TIPC_MEDIUM_IMPORTANCE = 0x1
TIPC_NODEID_LEN = 0x10
+ TIPC_NODELAY = 0x8a
TIPC_NODE_BITS = 0xc
TIPC_NODE_MASK = 0xfff
TIPC_NODE_OFFSET = 0x0
diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
index 080e2f0aa..dc8cafffe 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
@@ -243,6 +243,7 @@ const (
BPF_F_LOCK = 0x4
BPF_F_MARK_ENFORCE = 0x40
BPF_F_MARK_MANGLED_0 = 0x20
+ BPF_F_MMAPABLE = 0x400
BPF_F_NO_COMMON_LRU = 0x2
BPF_F_NO_PREALLOC = 0x1
BPF_F_NUMA_NODE = 0x4
@@ -417,8 +418,10 @@ const (
CLOCK_TXFROMRX = 0x4
CLOCK_TXINT = 0x3
CLONE_ARGS_SIZE_VER0 = 0x40
+ CLONE_ARGS_SIZE_VER1 = 0x50
CLONE_CHILD_CLEARTID = 0x200000
CLONE_CHILD_SETTID = 0x1000000
+ CLONE_CLEAR_SIGHAND = 0x100000000
CLONE_DETACHED = 0x400000
CLONE_FILES = 0x400
CLONE_FS = 0x200
@@ -715,8 +718,9 @@ const (
FSCRYPT_POLICY_FLAGS_PAD_4 = 0x0
FSCRYPT_POLICY_FLAGS_PAD_8 = 0x1
FSCRYPT_POLICY_FLAGS_PAD_MASK = 0x3
- FSCRYPT_POLICY_FLAGS_VALID = 0x7
+ FSCRYPT_POLICY_FLAGS_VALID = 0xf
FSCRYPT_POLICY_FLAG_DIRECT_KEY = 0x4
+ FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64 = 0x8
FSCRYPT_POLICY_V1 = 0x0
FSCRYPT_POLICY_V2 = 0x2
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
@@ -746,7 +750,7 @@ const (
FS_POLICY_FLAGS_PAD_4 = 0x0
FS_POLICY_FLAGS_PAD_8 = 0x1
FS_POLICY_FLAGS_PAD_MASK = 0x3
- FS_POLICY_FLAGS_VALID = 0x7
+ FS_POLICY_FLAGS_VALID = 0xf
FUTEXFS_SUPER_MAGIC = 0xbad1dea
F_ADD_SEALS = 0x409
F_DUPFD = 0x0
@@ -1228,6 +1232,7 @@ const (
LOOP_SET_STATUS64 = 0x4c04
LO_KEY_SIZE = 0x20
LO_NAME_SIZE = 0x40
+ MADV_COLD = 0x14
MADV_DODUMP = 0x11
MADV_DOFORK = 0xb
MADV_DONTDUMP = 0x10
@@ -1240,6 +1245,7 @@ const (
MADV_MERGEABLE = 0xc
MADV_NOHUGEPAGE = 0xf
MADV_NORMAL = 0x0
+ MADV_PAGEOUT = 0x15
MADV_RANDOM = 0x1
MADV_REMOVE = 0x9
MADV_SEQUENTIAL = 0x2
@@ -1265,6 +1271,7 @@ const (
MAP_SHARED = 0x1
MAP_SHARED_VALIDATE = 0x3
MAP_STACK = 0x20000
+ MAP_SYNC = 0x80000
MAP_TYPE = 0xf
MCAST_BLOCK_SOURCE = 0x2b
MCAST_EXCLUDE = 0x0
@@ -1582,6 +1589,7 @@ const (
PERF_EVENT_IOC_SET_FILTER = 0x80082406
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
PIPEFS_MAGIC = 0x50495045
+ PPC_CMM_MAGIC = 0xc7571590
PPPIOCATTACH = 0x8004743d
PPPIOCATTCHAN = 0x80047438
PPPIOCCONNECT = 0x8004743a
@@ -1592,6 +1600,8 @@ const (
PPPIOCGDEBUG = 0x40047441
PPPIOCGFLAGS = 0x4004745a
PPPIOCGIDLE = 0x4010743f
+ PPPIOCGIDLE32 = 0x4008743f
+ PPPIOCGIDLE64 = 0x4010743f
PPPIOCGL2TPSTATS = 0x40487436
PPPIOCGMRU = 0x40047453
PPPIOCGNPMODE = 0xc008744c
@@ -1987,12 +1997,28 @@ const (
RTF_UP = 0x1
RTF_WINDOW = 0x80
RTF_XRESOLVE = 0x800
+ RTMGRP_DECnet_IFADDR = 0x1000
+ RTMGRP_DECnet_ROUTE = 0x4000
+ RTMGRP_IPV4_IFADDR = 0x10
+ RTMGRP_IPV4_MROUTE = 0x20
+ RTMGRP_IPV4_ROUTE = 0x40
+ RTMGRP_IPV4_RULE = 0x80
+ RTMGRP_IPV6_IFADDR = 0x100
+ RTMGRP_IPV6_IFINFO = 0x800
+ RTMGRP_IPV6_MROUTE = 0x200
+ RTMGRP_IPV6_PREFIX = 0x20000
+ RTMGRP_IPV6_ROUTE = 0x400
+ RTMGRP_LINK = 0x1
+ RTMGRP_NEIGH = 0x4
+ RTMGRP_NOTIFY = 0x2
+ RTMGRP_TC = 0x8
RTM_BASE = 0x10
RTM_DELACTION = 0x31
RTM_DELADDR = 0x15
RTM_DELADDRLABEL = 0x49
RTM_DELCHAIN = 0x65
RTM_DELLINK = 0x11
+ RTM_DELLINKPROP = 0x6d
RTM_DELMDB = 0x55
RTM_DELNEIGH = 0x1d
RTM_DELNETCONF = 0x51
@@ -2016,6 +2042,7 @@ const (
RTM_GETCHAIN = 0x66
RTM_GETDCB = 0x4e
RTM_GETLINK = 0x12
+ RTM_GETLINKPROP = 0x6e
RTM_GETMDB = 0x56
RTM_GETMULTICAST = 0x3a
RTM_GETNEIGH = 0x1e
@@ -2029,13 +2056,14 @@ const (
RTM_GETSTATS = 0x5e
RTM_GETTCLASS = 0x2a
RTM_GETTFILTER = 0x2e
- RTM_MAX = 0x6b
+ RTM_MAX = 0x6f
RTM_NEWACTION = 0x30
RTM_NEWADDR = 0x14
RTM_NEWADDRLABEL = 0x48
RTM_NEWCACHEREPORT = 0x60
RTM_NEWCHAIN = 0x64
RTM_NEWLINK = 0x10
+ RTM_NEWLINKPROP = 0x6c
RTM_NEWMDB = 0x54
RTM_NEWNDUSEROPT = 0x44
RTM_NEWNEIGH = 0x1c
@@ -2050,8 +2078,8 @@ const (
RTM_NEWSTATS = 0x5c
RTM_NEWTCLASS = 0x28
RTM_NEWTFILTER = 0x2c
- RTM_NR_FAMILIES = 0x17
- RTM_NR_MSGTYPES = 0x5c
+ RTM_NR_FAMILIES = 0x18
+ RTM_NR_MSGTYPES = 0x60
RTM_SETDCB = 0x4f
RTM_SETLINK = 0x13
RTM_SETNEIGHTBL = 0x43
@@ -2093,6 +2121,13 @@ const (
RUSAGE_CHILDREN = -0x1
RUSAGE_SELF = 0x0
RUSAGE_THREAD = 0x1
+ RWF_APPEND = 0x10
+ RWF_DSYNC = 0x2
+ RWF_HIPRI = 0x1
+ RWF_NOWAIT = 0x8
+ RWF_SUPPORTED = 0x1f
+ RWF_SYNC = 0x4
+ RWF_WRITE_LIFE_NOT_SET = 0x0
SCM_CREDENTIALS = 0x2
SCM_RIGHTS = 0x1
SCM_TIMESTAMP = 0x1d
@@ -2259,7 +2294,7 @@ const (
SOL_TLS = 0x11a
SOL_X25 = 0x106
SOL_XDP = 0x11b
- SOMAXCONN = 0x80
+ SOMAXCONN = 0x1000
SO_ACCEPTCONN = 0x1e
SO_ATTACH_BPF = 0x32
SO_ATTACH_FILTER = 0x1a
@@ -2365,6 +2400,7 @@ const (
STATX_ATTR_ENCRYPTED = 0x800
STATX_ATTR_IMMUTABLE = 0x10
STATX_ATTR_NODUMP = 0x40
+ STATX_ATTR_VERITY = 0x100000
STATX_BASIC_STATS = 0x7ff
STATX_BLOCKS = 0x400
STATX_BTIME = 0x800
@@ -2483,6 +2519,7 @@ const (
TCP_THIN_DUPACK = 0x11
TCP_THIN_LINEAR_TIMEOUTS = 0x10
TCP_TIMESTAMP = 0x18
+ TCP_TX_DELAY = 0x25
TCP_ULP = 0x1f
TCP_USER_TIMEOUT = 0x12
TCP_WINDOW_CLAMP = 0xa
@@ -2585,6 +2622,10 @@ const (
TIPC_ADDR_MCAST = 0x1
TIPC_ADDR_NAME = 0x2
TIPC_ADDR_NAMESEQ = 0x1
+ TIPC_AEAD_ALG_NAME = 0x20
+ TIPC_AEAD_KEYLEN_MAX = 0x24
+ TIPC_AEAD_KEYLEN_MIN = 0x14
+ TIPC_AEAD_KEY_SIZE_MAX = 0x48
TIPC_CFG_SRV = 0x0
TIPC_CLUSTER_BITS = 0xc
TIPC_CLUSTER_MASK = 0xfff000
@@ -2617,6 +2658,7 @@ const (
TIPC_MCAST_REPLICAST = 0x86
TIPC_MEDIUM_IMPORTANCE = 0x1
TIPC_NODEID_LEN = 0x10
+ TIPC_NODELAY = 0x8a
TIPC_NODE_BITS = 0xc
TIPC_NODE_MASK = 0xfff
TIPC_NODE_OFFSET = 0x0
diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
index db20a369d..5d964445d 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
@@ -243,6 +243,7 @@ const (
BPF_F_LOCK = 0x4
BPF_F_MARK_ENFORCE = 0x40
BPF_F_MARK_MANGLED_0 = 0x20
+ BPF_F_MMAPABLE = 0x400
BPF_F_NO_COMMON_LRU = 0x2
BPF_F_NO_PREALLOC = 0x1
BPF_F_NUMA_NODE = 0x4
@@ -417,8 +418,10 @@ const (
CLOCK_TXFROMRX = 0x4
CLOCK_TXINT = 0x3
CLONE_ARGS_SIZE_VER0 = 0x40
+ CLONE_ARGS_SIZE_VER1 = 0x50
CLONE_CHILD_CLEARTID = 0x200000
CLONE_CHILD_SETTID = 0x1000000
+ CLONE_CLEAR_SIGHAND = 0x100000000
CLONE_DETACHED = 0x400000
CLONE_FILES = 0x400
CLONE_FS = 0x200
@@ -715,8 +718,9 @@ const (
FSCRYPT_POLICY_FLAGS_PAD_4 = 0x0
FSCRYPT_POLICY_FLAGS_PAD_8 = 0x1
FSCRYPT_POLICY_FLAGS_PAD_MASK = 0x3
- FSCRYPT_POLICY_FLAGS_VALID = 0x7
+ FSCRYPT_POLICY_FLAGS_VALID = 0xf
FSCRYPT_POLICY_FLAG_DIRECT_KEY = 0x4
+ FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64 = 0x8
FSCRYPT_POLICY_V1 = 0x0
FSCRYPT_POLICY_V2 = 0x2
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
@@ -746,7 +750,7 @@ const (
FS_POLICY_FLAGS_PAD_4 = 0x0
FS_POLICY_FLAGS_PAD_8 = 0x1
FS_POLICY_FLAGS_PAD_MASK = 0x3
- FS_POLICY_FLAGS_VALID = 0x7
+ FS_POLICY_FLAGS_VALID = 0xf
FUTEXFS_SUPER_MAGIC = 0xbad1dea
F_ADD_SEALS = 0x409
F_DUPFD = 0x0
@@ -1228,6 +1232,7 @@ const (
LOOP_SET_STATUS64 = 0x4c04
LO_KEY_SIZE = 0x20
LO_NAME_SIZE = 0x40
+ MADV_COLD = 0x14
MADV_DODUMP = 0x11
MADV_DOFORK = 0xb
MADV_DONTDUMP = 0x10
@@ -1240,6 +1245,7 @@ const (
MADV_MERGEABLE = 0xc
MADV_NOHUGEPAGE = 0xf
MADV_NORMAL = 0x0
+ MADV_PAGEOUT = 0x15
MADV_RANDOM = 0x1
MADV_REMOVE = 0x9
MADV_SEQUENTIAL = 0x2
@@ -1581,6 +1587,7 @@ const (
PERF_EVENT_IOC_SET_FILTER = 0x40082406
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
PIPEFS_MAGIC = 0x50495045
+ PPC_CMM_MAGIC = 0xc7571590
PPPIOCATTACH = 0x4004743d
PPPIOCATTCHAN = 0x40047438
PPPIOCCONNECT = 0x4004743a
@@ -1591,6 +1598,8 @@ const (
PPPIOCGDEBUG = 0x80047441
PPPIOCGFLAGS = 0x8004745a
PPPIOCGIDLE = 0x8010743f
+ PPPIOCGIDLE32 = 0x8008743f
+ PPPIOCGIDLE64 = 0x8010743f
PPPIOCGL2TPSTATS = 0x80487436
PPPIOCGMRU = 0x80047453
PPPIOCGNPMODE = 0xc008744c
@@ -1917,12 +1926,28 @@ const (
RTF_UP = 0x1
RTF_WINDOW = 0x80
RTF_XRESOLVE = 0x800
+ RTMGRP_DECnet_IFADDR = 0x1000
+ RTMGRP_DECnet_ROUTE = 0x4000
+ RTMGRP_IPV4_IFADDR = 0x10
+ RTMGRP_IPV4_MROUTE = 0x20
+ RTMGRP_IPV4_ROUTE = 0x40
+ RTMGRP_IPV4_RULE = 0x80
+ RTMGRP_IPV6_IFADDR = 0x100
+ RTMGRP_IPV6_IFINFO = 0x800
+ RTMGRP_IPV6_MROUTE = 0x200
+ RTMGRP_IPV6_PREFIX = 0x20000
+ RTMGRP_IPV6_ROUTE = 0x400
+ RTMGRP_LINK = 0x1
+ RTMGRP_NEIGH = 0x4
+ RTMGRP_NOTIFY = 0x2
+ RTMGRP_TC = 0x8
RTM_BASE = 0x10
RTM_DELACTION = 0x31
RTM_DELADDR = 0x15
RTM_DELADDRLABEL = 0x49
RTM_DELCHAIN = 0x65
RTM_DELLINK = 0x11
+ RTM_DELLINKPROP = 0x6d
RTM_DELMDB = 0x55
RTM_DELNEIGH = 0x1d
RTM_DELNETCONF = 0x51
@@ -1946,6 +1971,7 @@ const (
RTM_GETCHAIN = 0x66
RTM_GETDCB = 0x4e
RTM_GETLINK = 0x12
+ RTM_GETLINKPROP = 0x6e
RTM_GETMDB = 0x56
RTM_GETMULTICAST = 0x3a
RTM_GETNEIGH = 0x1e
@@ -1959,13 +1985,14 @@ const (
RTM_GETSTATS = 0x5e
RTM_GETTCLASS = 0x2a
RTM_GETTFILTER = 0x2e
- RTM_MAX = 0x6b
+ RTM_MAX = 0x6f
RTM_NEWACTION = 0x30
RTM_NEWADDR = 0x14
RTM_NEWADDRLABEL = 0x48
RTM_NEWCACHEREPORT = 0x60
RTM_NEWCHAIN = 0x64
RTM_NEWLINK = 0x10
+ RTM_NEWLINKPROP = 0x6c
RTM_NEWMDB = 0x54
RTM_NEWNDUSEROPT = 0x44
RTM_NEWNEIGH = 0x1c
@@ -1980,8 +2007,8 @@ const (
RTM_NEWSTATS = 0x5c
RTM_NEWTCLASS = 0x28
RTM_NEWTFILTER = 0x2c
- RTM_NR_FAMILIES = 0x17
- RTM_NR_MSGTYPES = 0x5c
+ RTM_NR_FAMILIES = 0x18
+ RTM_NR_MSGTYPES = 0x60
RTM_SETDCB = 0x4f
RTM_SETLINK = 0x13
RTM_SETNEIGHTBL = 0x43
@@ -2023,6 +2050,13 @@ const (
RUSAGE_CHILDREN = -0x1
RUSAGE_SELF = 0x0
RUSAGE_THREAD = 0x1
+ RWF_APPEND = 0x10
+ RWF_DSYNC = 0x2
+ RWF_HIPRI = 0x1
+ RWF_NOWAIT = 0x8
+ RWF_SUPPORTED = 0x1f
+ RWF_SYNC = 0x4
+ RWF_WRITE_LIFE_NOT_SET = 0x0
SCM_CREDENTIALS = 0x2
SCM_RIGHTS = 0x1
SCM_TIMESTAMP = 0x1d
@@ -2189,7 +2223,7 @@ const (
SOL_TLS = 0x11a
SOL_X25 = 0x106
SOL_XDP = 0x11b
- SOMAXCONN = 0x80
+ SOMAXCONN = 0x1000
SO_ACCEPTCONN = 0x1e
SO_ATTACH_BPF = 0x32
SO_ATTACH_FILTER = 0x1a
@@ -2295,6 +2329,7 @@ const (
STATX_ATTR_ENCRYPTED = 0x800
STATX_ATTR_IMMUTABLE = 0x10
STATX_ATTR_NODUMP = 0x40
+ STATX_ATTR_VERITY = 0x100000
STATX_BASIC_STATS = 0x7ff
STATX_BLOCKS = 0x400
STATX_BTIME = 0x800
@@ -2415,6 +2450,7 @@ const (
TCP_THIN_DUPACK = 0x11
TCP_THIN_LINEAR_TIMEOUTS = 0x10
TCP_TIMESTAMP = 0x18
+ TCP_TX_DELAY = 0x25
TCP_ULP = 0x1f
TCP_USER_TIMEOUT = 0x12
TCP_WINDOW_CLAMP = 0xa
@@ -2511,6 +2547,10 @@ const (
TIPC_ADDR_MCAST = 0x1
TIPC_ADDR_NAME = 0x2
TIPC_ADDR_NAMESEQ = 0x1
+ TIPC_AEAD_ALG_NAME = 0x20
+ TIPC_AEAD_KEYLEN_MAX = 0x24
+ TIPC_AEAD_KEYLEN_MIN = 0x14
+ TIPC_AEAD_KEY_SIZE_MAX = 0x48
TIPC_CFG_SRV = 0x0
TIPC_CLUSTER_BITS = 0xc
TIPC_CLUSTER_MASK = 0xfff000
@@ -2543,6 +2583,7 @@ const (
TIPC_MCAST_REPLICAST = 0x86
TIPC_MEDIUM_IMPORTANCE = 0x1
TIPC_NODEID_LEN = 0x10
+ TIPC_NODELAY = 0x8a
TIPC_NODE_BITS = 0xc
TIPC_NODE_MASK = 0xfff
TIPC_NODE_OFFSET = 0x0
diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go b/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
index 734757aec..7d64d6e79 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
@@ -243,6 +243,7 @@ const (
BPF_F_LOCK = 0x4
BPF_F_MARK_ENFORCE = 0x40
BPF_F_MARK_MANGLED_0 = 0x20
+ BPF_F_MMAPABLE = 0x400
BPF_F_NO_COMMON_LRU = 0x2
BPF_F_NO_PREALLOC = 0x1
BPF_F_NUMA_NODE = 0x4
@@ -417,8 +418,10 @@ const (
CLOCK_TXFROMRX = 0x4
CLOCK_TXINT = 0x3
CLONE_ARGS_SIZE_VER0 = 0x40
+ CLONE_ARGS_SIZE_VER1 = 0x50
CLONE_CHILD_CLEARTID = 0x200000
CLONE_CHILD_SETTID = 0x1000000
+ CLONE_CLEAR_SIGHAND = 0x100000000
CLONE_DETACHED = 0x400000
CLONE_FILES = 0x400
CLONE_FS = 0x200
@@ -715,8 +718,9 @@ const (
FSCRYPT_POLICY_FLAGS_PAD_4 = 0x0
FSCRYPT_POLICY_FLAGS_PAD_8 = 0x1
FSCRYPT_POLICY_FLAGS_PAD_MASK = 0x3
- FSCRYPT_POLICY_FLAGS_VALID = 0x7
+ FSCRYPT_POLICY_FLAGS_VALID = 0xf
FSCRYPT_POLICY_FLAG_DIRECT_KEY = 0x4
+ FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64 = 0x8
FSCRYPT_POLICY_V1 = 0x0
FSCRYPT_POLICY_V2 = 0x2
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
@@ -746,7 +750,7 @@ const (
FS_POLICY_FLAGS_PAD_4 = 0x0
FS_POLICY_FLAGS_PAD_8 = 0x1
FS_POLICY_FLAGS_PAD_MASK = 0x3
- FS_POLICY_FLAGS_VALID = 0x7
+ FS_POLICY_FLAGS_VALID = 0xf
FUTEXFS_SUPER_MAGIC = 0xbad1dea
F_ADD_SEALS = 0x409
F_DUPFD = 0x0
@@ -1228,6 +1232,7 @@ const (
LOOP_SET_STATUS64 = 0x4c04
LO_KEY_SIZE = 0x20
LO_NAME_SIZE = 0x40
+ MADV_COLD = 0x14
MADV_DODUMP = 0x11
MADV_DOFORK = 0xb
MADV_DONTDUMP = 0x10
@@ -1240,6 +1245,7 @@ const (
MADV_MERGEABLE = 0xc
MADV_NOHUGEPAGE = 0xf
MADV_NORMAL = 0x0
+ MADV_PAGEOUT = 0x15
MADV_RANDOM = 0x1
MADV_REMOVE = 0x9
MADV_SEQUENTIAL = 0x2
@@ -1581,6 +1587,7 @@ const (
PERF_EVENT_IOC_SET_FILTER = 0x40082406
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
PIPEFS_MAGIC = 0x50495045
+ PPC_CMM_MAGIC = 0xc7571590
PPPIOCATTACH = 0x4004743d
PPPIOCATTCHAN = 0x40047438
PPPIOCCONNECT = 0x4004743a
@@ -1591,6 +1598,8 @@ const (
PPPIOCGDEBUG = 0x80047441
PPPIOCGFLAGS = 0x8004745a
PPPIOCGIDLE = 0x8010743f
+ PPPIOCGIDLE32 = 0x8008743f
+ PPPIOCGIDLE64 = 0x8010743f
PPPIOCGL2TPSTATS = 0x80487436
PPPIOCGMRU = 0x80047453
PPPIOCGNPMODE = 0xc008744c
@@ -1990,12 +1999,28 @@ const (
RTF_UP = 0x1
RTF_WINDOW = 0x80
RTF_XRESOLVE = 0x800
+ RTMGRP_DECnet_IFADDR = 0x1000
+ RTMGRP_DECnet_ROUTE = 0x4000
+ RTMGRP_IPV4_IFADDR = 0x10
+ RTMGRP_IPV4_MROUTE = 0x20
+ RTMGRP_IPV4_ROUTE = 0x40
+ RTMGRP_IPV4_RULE = 0x80
+ RTMGRP_IPV6_IFADDR = 0x100
+ RTMGRP_IPV6_IFINFO = 0x800
+ RTMGRP_IPV6_MROUTE = 0x200
+ RTMGRP_IPV6_PREFIX = 0x20000
+ RTMGRP_IPV6_ROUTE = 0x400
+ RTMGRP_LINK = 0x1
+ RTMGRP_NEIGH = 0x4
+ RTMGRP_NOTIFY = 0x2
+ RTMGRP_TC = 0x8
RTM_BASE = 0x10
RTM_DELACTION = 0x31
RTM_DELADDR = 0x15
RTM_DELADDRLABEL = 0x49
RTM_DELCHAIN = 0x65
RTM_DELLINK = 0x11
+ RTM_DELLINKPROP = 0x6d
RTM_DELMDB = 0x55
RTM_DELNEIGH = 0x1d
RTM_DELNETCONF = 0x51
@@ -2019,6 +2044,7 @@ const (
RTM_GETCHAIN = 0x66
RTM_GETDCB = 0x4e
RTM_GETLINK = 0x12
+ RTM_GETLINKPROP = 0x6e
RTM_GETMDB = 0x56
RTM_GETMULTICAST = 0x3a
RTM_GETNEIGH = 0x1e
@@ -2032,13 +2058,14 @@ const (
RTM_GETSTATS = 0x5e
RTM_GETTCLASS = 0x2a
RTM_GETTFILTER = 0x2e
- RTM_MAX = 0x6b
+ RTM_MAX = 0x6f
RTM_NEWACTION = 0x30
RTM_NEWADDR = 0x14
RTM_NEWADDRLABEL = 0x48
RTM_NEWCACHEREPORT = 0x60
RTM_NEWCHAIN = 0x64
RTM_NEWLINK = 0x10
+ RTM_NEWLINKPROP = 0x6c
RTM_NEWMDB = 0x54
RTM_NEWNDUSEROPT = 0x44
RTM_NEWNEIGH = 0x1c
@@ -2053,8 +2080,8 @@ const (
RTM_NEWSTATS = 0x5c
RTM_NEWTCLASS = 0x28
RTM_NEWTFILTER = 0x2c
- RTM_NR_FAMILIES = 0x17
- RTM_NR_MSGTYPES = 0x5c
+ RTM_NR_FAMILIES = 0x18
+ RTM_NR_MSGTYPES = 0x60
RTM_SETDCB = 0x4f
RTM_SETLINK = 0x13
RTM_SETNEIGHTBL = 0x43
@@ -2096,6 +2123,13 @@ const (
RUSAGE_CHILDREN = -0x1
RUSAGE_SELF = 0x0
RUSAGE_THREAD = 0x1
+ RWF_APPEND = 0x10
+ RWF_DSYNC = 0x2
+ RWF_HIPRI = 0x1
+ RWF_NOWAIT = 0x8
+ RWF_SUPPORTED = 0x1f
+ RWF_SYNC = 0x4
+ RWF_WRITE_LIFE_NOT_SET = 0x0
SCM_CREDENTIALS = 0x2
SCM_RIGHTS = 0x1
SCM_TIMESTAMP = 0x1d
@@ -2262,7 +2296,7 @@ const (
SOL_TLS = 0x11a
SOL_X25 = 0x106
SOL_XDP = 0x11b
- SOMAXCONN = 0x80
+ SOMAXCONN = 0x1000
SO_ACCEPTCONN = 0x1e
SO_ATTACH_BPF = 0x32
SO_ATTACH_FILTER = 0x1a
@@ -2368,6 +2402,7 @@ const (
STATX_ATTR_ENCRYPTED = 0x800
STATX_ATTR_IMMUTABLE = 0x10
STATX_ATTR_NODUMP = 0x40
+ STATX_ATTR_VERITY = 0x100000
STATX_BASIC_STATS = 0x7ff
STATX_BLOCKS = 0x400
STATX_BTIME = 0x800
@@ -2488,6 +2523,7 @@ const (
TCP_THIN_DUPACK = 0x11
TCP_THIN_LINEAR_TIMEOUTS = 0x10
TCP_TIMESTAMP = 0x18
+ TCP_TX_DELAY = 0x25
TCP_ULP = 0x1f
TCP_USER_TIMEOUT = 0x12
TCP_WINDOW_CLAMP = 0xa
@@ -2584,6 +2620,10 @@ const (
TIPC_ADDR_MCAST = 0x1
TIPC_ADDR_NAME = 0x2
TIPC_ADDR_NAMESEQ = 0x1
+ TIPC_AEAD_ALG_NAME = 0x20
+ TIPC_AEAD_KEYLEN_MAX = 0x24
+ TIPC_AEAD_KEYLEN_MIN = 0x14
+ TIPC_AEAD_KEY_SIZE_MAX = 0x48
TIPC_CFG_SRV = 0x0
TIPC_CLUSTER_BITS = 0xc
TIPC_CLUSTER_MASK = 0xfff000
@@ -2616,6 +2656,7 @@ const (
TIPC_MCAST_REPLICAST = 0x86
TIPC_MEDIUM_IMPORTANCE = 0x1
TIPC_NODEID_LEN = 0x10
+ TIPC_NODELAY = 0x8a
TIPC_NODE_BITS = 0xc
TIPC_NODE_MASK = 0xfff
TIPC_NODE_OFFSET = 0x0
diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
index c8d2c2351..084d55be5 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
@@ -246,6 +246,7 @@ const (
BPF_F_LOCK = 0x4
BPF_F_MARK_ENFORCE = 0x40
BPF_F_MARK_MANGLED_0 = 0x20
+ BPF_F_MMAPABLE = 0x400
BPF_F_NO_COMMON_LRU = 0x2
BPF_F_NO_PREALLOC = 0x1
BPF_F_NUMA_NODE = 0x4
@@ -420,8 +421,10 @@ const (
CLOCK_TXFROMRX = 0x4
CLOCK_TXINT = 0x3
CLONE_ARGS_SIZE_VER0 = 0x40
+ CLONE_ARGS_SIZE_VER1 = 0x50
CLONE_CHILD_CLEARTID = 0x200000
CLONE_CHILD_SETTID = 0x1000000
+ CLONE_CLEAR_SIGHAND = 0x100000000
CLONE_DETACHED = 0x400000
CLONE_FILES = 0x400
CLONE_FS = 0x200
@@ -719,8 +722,9 @@ const (
FSCRYPT_POLICY_FLAGS_PAD_4 = 0x0
FSCRYPT_POLICY_FLAGS_PAD_8 = 0x1
FSCRYPT_POLICY_FLAGS_PAD_MASK = 0x3
- FSCRYPT_POLICY_FLAGS_VALID = 0x7
+ FSCRYPT_POLICY_FLAGS_VALID = 0xf
FSCRYPT_POLICY_FLAG_DIRECT_KEY = 0x4
+ FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64 = 0x8
FSCRYPT_POLICY_V1 = 0x0
FSCRYPT_POLICY_V2 = 0x2
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
@@ -750,7 +754,7 @@ const (
FS_POLICY_FLAGS_PAD_4 = 0x0
FS_POLICY_FLAGS_PAD_8 = 0x1
FS_POLICY_FLAGS_PAD_MASK = 0x3
- FS_POLICY_FLAGS_VALID = 0x7
+ FS_POLICY_FLAGS_VALID = 0xf
FUTEXFS_SUPER_MAGIC = 0xbad1dea
F_ADD_SEALS = 0x409
F_DUPFD = 0x0
@@ -1232,6 +1236,7 @@ const (
LOOP_SET_STATUS64 = 0x4c04
LO_KEY_SIZE = 0x20
LO_NAME_SIZE = 0x40
+ MADV_COLD = 0x14
MADV_DODUMP = 0x11
MADV_DOFORK = 0xb
MADV_DONTDUMP = 0x10
@@ -1244,6 +1249,7 @@ const (
MADV_MERGEABLE = 0xc
MADV_NOHUGEPAGE = 0xf
MADV_NORMAL = 0x0
+ MADV_PAGEOUT = 0x15
MADV_RANDOM = 0x1
MADV_REMOVE = 0x9
MADV_SEQUENTIAL = 0x2
@@ -1270,6 +1276,7 @@ const (
MAP_SHARED = 0x1
MAP_SHARED_VALIDATE = 0x3
MAP_STACK = 0x20000
+ MAP_SYNC = 0x80000
MAP_TYPE = 0xf
MCAST_BLOCK_SOURCE = 0x2b
MCAST_EXCLUDE = 0x0
@@ -1585,6 +1592,7 @@ const (
PERF_EVENT_IOC_SET_FILTER = 0x80082406
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
PIPEFS_MAGIC = 0x50495045
+ PPC_CMM_MAGIC = 0xc7571590
PPPIOCATTACH = 0x8004743d
PPPIOCATTCHAN = 0x80047438
PPPIOCCONNECT = 0x8004743a
@@ -1595,6 +1603,8 @@ const (
PPPIOCGDEBUG = 0x40047441
PPPIOCGFLAGS = 0x4004745a
PPPIOCGIDLE = 0x4010743f
+ PPPIOCGIDLE32 = 0x4008743f
+ PPPIOCGIDLE64 = 0x4010743f
PPPIOCGL2TPSTATS = 0x40487436
PPPIOCGMRU = 0x40047453
PPPIOCGNPMODE = 0xc008744c
@@ -1982,12 +1992,28 @@ const (
RTF_UP = 0x1
RTF_WINDOW = 0x80
RTF_XRESOLVE = 0x800
+ RTMGRP_DECnet_IFADDR = 0x1000
+ RTMGRP_DECnet_ROUTE = 0x4000
+ RTMGRP_IPV4_IFADDR = 0x10
+ RTMGRP_IPV4_MROUTE = 0x20
+ RTMGRP_IPV4_ROUTE = 0x40
+ RTMGRP_IPV4_RULE = 0x80
+ RTMGRP_IPV6_IFADDR = 0x100
+ RTMGRP_IPV6_IFINFO = 0x800
+ RTMGRP_IPV6_MROUTE = 0x200
+ RTMGRP_IPV6_PREFIX = 0x20000
+ RTMGRP_IPV6_ROUTE = 0x400
+ RTMGRP_LINK = 0x1
+ RTMGRP_NEIGH = 0x4
+ RTMGRP_NOTIFY = 0x2
+ RTMGRP_TC = 0x8
RTM_BASE = 0x10
RTM_DELACTION = 0x31
RTM_DELADDR = 0x15
RTM_DELADDRLABEL = 0x49
RTM_DELCHAIN = 0x65
RTM_DELLINK = 0x11
+ RTM_DELLINKPROP = 0x6d
RTM_DELMDB = 0x55
RTM_DELNEIGH = 0x1d
RTM_DELNETCONF = 0x51
@@ -2011,6 +2037,7 @@ const (
RTM_GETCHAIN = 0x66
RTM_GETDCB = 0x4e
RTM_GETLINK = 0x12
+ RTM_GETLINKPROP = 0x6e
RTM_GETMDB = 0x56
RTM_GETMULTICAST = 0x3a
RTM_GETNEIGH = 0x1e
@@ -2024,13 +2051,14 @@ const (
RTM_GETSTATS = 0x5e
RTM_GETTCLASS = 0x2a
RTM_GETTFILTER = 0x2e
- RTM_MAX = 0x6b
+ RTM_MAX = 0x6f
RTM_NEWACTION = 0x30
RTM_NEWADDR = 0x14
RTM_NEWADDRLABEL = 0x48
RTM_NEWCACHEREPORT = 0x60
RTM_NEWCHAIN = 0x64
RTM_NEWLINK = 0x10
+ RTM_NEWLINKPROP = 0x6c
RTM_NEWMDB = 0x54
RTM_NEWNDUSEROPT = 0x44
RTM_NEWNEIGH = 0x1c
@@ -2045,8 +2073,8 @@ const (
RTM_NEWSTATS = 0x5c
RTM_NEWTCLASS = 0x28
RTM_NEWTFILTER = 0x2c
- RTM_NR_FAMILIES = 0x17
- RTM_NR_MSGTYPES = 0x5c
+ RTM_NR_FAMILIES = 0x18
+ RTM_NR_MSGTYPES = 0x60
RTM_SETDCB = 0x4f
RTM_SETLINK = 0x13
RTM_SETNEIGHTBL = 0x43
@@ -2088,6 +2116,13 @@ const (
RUSAGE_CHILDREN = -0x1
RUSAGE_SELF = 0x0
RUSAGE_THREAD = 0x1
+ RWF_APPEND = 0x10
+ RWF_DSYNC = 0x2
+ RWF_HIPRI = 0x1
+ RWF_NOWAIT = 0x8
+ RWF_SUPPORTED = 0x1f
+ RWF_SYNC = 0x4
+ RWF_WRITE_LIFE_NOT_SET = 0x0
SCM_CREDENTIALS = 0x2
SCM_RIGHTS = 0x1
SCM_TIMESTAMP = 0x1d
@@ -2254,7 +2289,7 @@ const (
SOL_TLS = 0x11a
SOL_X25 = 0x106
SOL_XDP = 0x11b
- SOMAXCONN = 0x80
+ SOMAXCONN = 0x1000
SO_ACCEPTCONN = 0x8000
SO_ATTACH_BPF = 0x34
SO_ATTACH_FILTER = 0x1a
@@ -2360,6 +2395,7 @@ const (
STATX_ATTR_ENCRYPTED = 0x800
STATX_ATTR_IMMUTABLE = 0x10
STATX_ATTR_NODUMP = 0x40
+ STATX_ATTR_VERITY = 0x100000
STATX_BASIC_STATS = 0x7ff
STATX_BLOCKS = 0x400
STATX_BTIME = 0x800
@@ -2479,6 +2515,7 @@ const (
TCP_THIN_DUPACK = 0x11
TCP_THIN_LINEAR_TIMEOUTS = 0x10
TCP_TIMESTAMP = 0x18
+ TCP_TX_DELAY = 0x25
TCP_ULP = 0x1f
TCP_USER_TIMEOUT = 0x12
TCP_WINDOW_CLAMP = 0xa
@@ -2573,6 +2610,10 @@ const (
TIPC_ADDR_MCAST = 0x1
TIPC_ADDR_NAME = 0x2
TIPC_ADDR_NAMESEQ = 0x1
+ TIPC_AEAD_ALG_NAME = 0x20
+ TIPC_AEAD_KEYLEN_MAX = 0x24
+ TIPC_AEAD_KEYLEN_MIN = 0x14
+ TIPC_AEAD_KEY_SIZE_MAX = 0x48
TIPC_CFG_SRV = 0x0
TIPC_CLUSTER_BITS = 0xc
TIPC_CLUSTER_MASK = 0xfff000
@@ -2605,6 +2646,7 @@ const (
TIPC_MCAST_REPLICAST = 0x86
TIPC_MEDIUM_IMPORTANCE = 0x1
TIPC_NODEID_LEN = 0x10
+ TIPC_NODELAY = 0x8a
TIPC_NODE_BITS = 0xc
TIPC_NODE_MASK = 0xfff
TIPC_NODE_OFFSET = 0x0
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_11.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_11.go
index b5ed80589..c1cc0a415 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_11.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_11.go
@@ -239,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
@@ -527,6 +516,17 @@ func setattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintp
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func fcntl(fd int, cmd int, arg int) (val int, err error) {
+ r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
+ val = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func kill(pid int, signum int, posix int) (err error) {
_, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
if e1 != 0 {
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go
index cdf8a7000..a3fc49004 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go
@@ -339,22 +339,6 @@ func libc_futimes_trampoline()
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := syscall_syscall(funcPC(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-func libc_fcntl_trampoline()
-
-//go:linkname libc_fcntl libc_fcntl
-//go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib"
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := syscall_syscall(funcPC(libc_poll_trampoline), uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
@@ -727,6 +711,22 @@ func libc_setattrlist_trampoline()
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func fcntl(fd int, cmd int, arg int) (val int, err error) {
+ r0, _, e1 := syscall_syscall(funcPC(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg))
+ val = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+func libc_fcntl_trampoline()
+
+//go:linkname libc_fcntl libc_fcntl
+//go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib"
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func kill(pid int, signum int, posix int) (err error) {
_, _, e1 := syscall_syscall(funcPC(libc_kill_trampoline), uintptr(pid), uintptr(signum), uintptr(posix))
if e1 != 0 {
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.s b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.s
index 9cae5b1da..6836a4129 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.s
+++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.s
@@ -44,8 +44,6 @@ TEXT ·libc_utimes_trampoline(SB),NOSPLIT,$0-0
JMP libc_utimes(SB)
TEXT ·libc_futimes_trampoline(SB),NOSPLIT,$0-0
JMP libc_futimes(SB)
-TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0
- JMP libc_fcntl(SB)
TEXT ·libc_poll_trampoline(SB),NOSPLIT,$0-0
JMP libc_poll(SB)
TEXT ·libc_madvise_trampoline(SB),NOSPLIT,$0-0
@@ -84,6 +82,8 @@ TEXT ·libc_flistxattr_trampoline(SB),NOSPLIT,$0-0
JMP libc_flistxattr(SB)
TEXT ·libc_setattrlist_trampoline(SB),NOSPLIT,$0-0
JMP libc_setattrlist(SB)
+TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0
+ JMP libc_fcntl(SB)
TEXT ·libc_kill_trampoline(SB),NOSPLIT,$0-0
JMP libc_kill(SB)
TEXT ·libc_ioctl_trampoline(SB),NOSPLIT,$0-0
@@ -106,6 +106,8 @@ TEXT ·libc_chown_trampoline(SB),NOSPLIT,$0-0
JMP libc_chown(SB)
TEXT ·libc_chroot_trampoline(SB),NOSPLIT,$0-0
JMP libc_chroot(SB)
+TEXT ·libc_clock_gettime_trampoline(SB),NOSPLIT,$0-0
+ JMP libc_clock_gettime(SB)
TEXT ·libc_close_trampoline(SB),NOSPLIT,$0-0
JMP libc_close(SB)
TEXT ·libc_dup_trampoline(SB),NOSPLIT,$0-0
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_11.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_11.go
index 8bde8235a..f8e5c37c5 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_11.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_11.go
@@ -239,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
@@ -527,6 +516,17 @@ func setattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintp
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func fcntl(fd int, cmd int, arg int) (val int, err error) {
+ r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
+ val = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func kill(pid int, signum int, posix int) (err error) {
_, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
if e1 != 0 {
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
index 63b51fbf0..50d6437e6 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
@@ -339,22 +339,6 @@ func libc_futimes_trampoline()
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := syscall_syscall(funcPC(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-func libc_fcntl_trampoline()
-
-//go:linkname libc_fcntl libc_fcntl
-//go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib"
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := syscall_syscall(funcPC(libc_poll_trampoline), uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
@@ -727,6 +711,22 @@ func libc_setattrlist_trampoline()
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func fcntl(fd int, cmd int, arg int) (val int, err error) {
+ r0, _, e1 := syscall_syscall(funcPC(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg))
+ val = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+func libc_fcntl_trampoline()
+
+//go:linkname libc_fcntl libc_fcntl
+//go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib"
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func kill(pid int, signum int, posix int) (err error) {
_, _, e1 := syscall_syscall(funcPC(libc_kill_trampoline), uintptr(pid), uintptr(signum), uintptr(posix))
if e1 != 0 {
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s
index 1a0e52aa2..a3fdf099d 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s
+++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s
@@ -44,8 +44,6 @@ TEXT ·libc_utimes_trampoline(SB),NOSPLIT,$0-0
JMP libc_utimes(SB)
TEXT ·libc_futimes_trampoline(SB),NOSPLIT,$0-0
JMP libc_futimes(SB)
-TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0
- JMP libc_fcntl(SB)
TEXT ·libc_poll_trampoline(SB),NOSPLIT,$0-0
JMP libc_poll(SB)
TEXT ·libc_madvise_trampoline(SB),NOSPLIT,$0-0
@@ -84,6 +82,8 @@ TEXT ·libc_flistxattr_trampoline(SB),NOSPLIT,$0-0
JMP libc_flistxattr(SB)
TEXT ·libc_setattrlist_trampoline(SB),NOSPLIT,$0-0
JMP libc_setattrlist(SB)
+TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0
+ JMP libc_fcntl(SB)
TEXT ·libc_kill_trampoline(SB),NOSPLIT,$0-0
JMP libc_kill(SB)
TEXT ·libc_ioctl_trampoline(SB),NOSPLIT,$0-0
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_11.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_11.go
index 63a236b50..cea04e041 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_11.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_11.go
@@ -239,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
@@ -527,6 +516,17 @@ func setattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintp
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func fcntl(fd int, cmd int, arg int) (val int, err error) {
+ r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
+ val = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func kill(pid int, signum int, posix int) (err error) {
_, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
if e1 != 0 {
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go
index adb8668c2..63103950c 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go
@@ -339,22 +339,6 @@ func libc_futimes_trampoline()
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := syscall_syscall(funcPC(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-func libc_fcntl_trampoline()
-
-//go:linkname libc_fcntl libc_fcntl
-//go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib"
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := syscall_syscall(funcPC(libc_poll_trampoline), uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
@@ -727,6 +711,22 @@ func libc_setattrlist_trampoline()
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func fcntl(fd int, cmd int, arg int) (val int, err error) {
+ r0, _, e1 := syscall_syscall(funcPC(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg))
+ val = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+func libc_fcntl_trampoline()
+
+//go:linkname libc_fcntl libc_fcntl
+//go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib"
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func kill(pid int, signum int, posix int) (err error) {
_, _, e1 := syscall_syscall(funcPC(libc_kill_trampoline), uintptr(pid), uintptr(signum), uintptr(posix))
if e1 != 0 {
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.s b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.s
index 5bebb1bbd..b67f518fa 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.s
+++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.s
@@ -44,8 +44,6 @@ TEXT ·libc_utimes_trampoline(SB),NOSPLIT,$0-0
JMP libc_utimes(SB)
TEXT ·libc_futimes_trampoline(SB),NOSPLIT,$0-0
JMP libc_futimes(SB)
-TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0
- JMP libc_fcntl(SB)
TEXT ·libc_poll_trampoline(SB),NOSPLIT,$0-0
JMP libc_poll(SB)
TEXT ·libc_madvise_trampoline(SB),NOSPLIT,$0-0
@@ -84,10 +82,14 @@ TEXT ·libc_flistxattr_trampoline(SB),NOSPLIT,$0-0
JMP libc_flistxattr(SB)
TEXT ·libc_setattrlist_trampoline(SB),NOSPLIT,$0-0
JMP libc_setattrlist(SB)
+TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0
+ JMP libc_fcntl(SB)
TEXT ·libc_kill_trampoline(SB),NOSPLIT,$0-0
JMP libc_kill(SB)
TEXT ·libc_ioctl_trampoline(SB),NOSPLIT,$0-0
JMP libc_ioctl(SB)
+TEXT ·libc_sysctl_trampoline(SB),NOSPLIT,$0-0
+ JMP libc_sysctl(SB)
TEXT ·libc_sendfile_trampoline(SB),NOSPLIT,$0-0
JMP libc_sendfile(SB)
TEXT ·libc_access_trampoline(SB),NOSPLIT,$0-0
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_11.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_11.go
index 87c0b6122..8c3bb3a25 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_11.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_11.go
@@ -239,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
@@ -527,6 +516,17 @@ func setattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintp
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func fcntl(fd int, cmd int, arg int) (val int, err error) {
+ r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
+ val = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func kill(pid int, signum int, posix int) (err error) {
_, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
if e1 != 0 {
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
index c882a4f9d..a8709f72d 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
@@ -339,22 +339,6 @@ func libc_futimes_trampoline()
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := syscall_syscall(funcPC(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-func libc_fcntl_trampoline()
-
-//go:linkname libc_fcntl libc_fcntl
-//go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib"
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := syscall_syscall(funcPC(libc_poll_trampoline), uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
@@ -727,6 +711,22 @@ func libc_setattrlist_trampoline()
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func fcntl(fd int, cmd int, arg int) (val int, err error) {
+ r0, _, e1 := syscall_syscall(funcPC(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg))
+ val = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+func libc_fcntl_trampoline()
+
+//go:linkname libc_fcntl libc_fcntl
+//go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib"
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func kill(pid int, signum int, posix int) (err error) {
_, _, e1 := syscall_syscall(funcPC(libc_kill_trampoline), uintptr(pid), uintptr(signum), uintptr(posix))
if e1 != 0 {
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s
index 19faa4d8d..40cce1bb2 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s
+++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s
@@ -44,8 +44,6 @@ TEXT ·libc_utimes_trampoline(SB),NOSPLIT,$0-0
JMP libc_utimes(SB)
TEXT ·libc_futimes_trampoline(SB),NOSPLIT,$0-0
JMP libc_futimes(SB)
-TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0
- JMP libc_fcntl(SB)
TEXT ·libc_poll_trampoline(SB),NOSPLIT,$0-0
JMP libc_poll(SB)
TEXT ·libc_madvise_trampoline(SB),NOSPLIT,$0-0
@@ -84,6 +82,8 @@ TEXT ·libc_flistxattr_trampoline(SB),NOSPLIT,$0-0
JMP libc_flistxattr(SB)
TEXT ·libc_setattrlist_trampoline(SB),NOSPLIT,$0-0
JMP libc_setattrlist(SB)
+TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0
+ JMP libc_fcntl(SB)
TEXT ·libc_kill_trampoline(SB),NOSPLIT,$0-0
JMP libc_kill(SB)
TEXT ·libc_ioctl_trampoline(SB),NOSPLIT,$0-0
@@ -106,6 +106,8 @@ TEXT ·libc_chown_trampoline(SB),NOSPLIT,$0-0
JMP libc_chown(SB)
TEXT ·libc_chroot_trampoline(SB),NOSPLIT,$0-0
JMP libc_chroot(SB)
+TEXT ·libc_clock_gettime_trampoline(SB),NOSPLIT,$0-0
+ JMP libc_clock_gettime(SB)
TEXT ·libc_close_trampoline(SB),NOSPLIT,$0-0
JMP libc_close(SB)
TEXT ·libc_dup_trampoline(SB),NOSPLIT,$0-0
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
index df199b345..fe1fdd78d 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
@@ -255,17 +255,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go
index e68185f1e..c9058f309 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go
@@ -255,17 +255,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go
index 2f77f93c4..49b20c229 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go
@@ -239,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go
index e9a12c9d9..31d2c4616 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go
@@ -239,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go
index 27ab0fbda..abab3d7cb 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go
@@ -239,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go
index fe5d462e4..a536d9a63 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go
@@ -439,7 +439,7 @@ func Adjtimex(buf *Timex) (state int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
- _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
+ _, _, e1 := RawSyscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -449,7 +449,7 @@ func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
- _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
+ _, _, e1 := RawSyscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -659,17 +659,6 @@ func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func Fdatasync(fd int) (err error) {
_, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0)
if e1 != 0 {
@@ -1608,6 +1597,108 @@ func writelen(fd int, p *byte, np int) (n int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func readv(fd int, iovs []Iovec) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall(SYS_READV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func writev(fd int, iovs []Iovec) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall(SYS_WRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func preadv(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PREADV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func pwritev(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PWRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func preadv2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PREADV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func pwritev2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PWRITEV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func munmap(addr uintptr, length uintptr) (err error) {
_, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
if e1 != 0 {
@@ -2030,8 +2121,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Setfsgid(gid int) (err error) {
- _, _, e1 := Syscall(SYS_SETFSGID32, uintptr(gid), 0, 0)
+func setfsgid(gid int) (prev int, err error) {
+ r0, _, e1 := Syscall(SYS_SETFSGID32, uintptr(gid), 0, 0)
+ prev = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -2040,8 +2132,9 @@ func Setfsgid(gid int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Setfsuid(uid int) (err error) {
- _, _, e1 := Syscall(SYS_SETFSUID32, uintptr(uid), 0, 0)
+func setfsuid(uid int) (prev int, err error) {
+ r0, _, e1 := Syscall(SYS_SETFSUID32, uintptr(uid), 0, 0)
+ prev = int(r0)
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.go
index 536abcea3..fb5db3648 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go
@@ -439,7 +439,7 @@ func Adjtimex(buf *Timex) (state int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
- _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
+ _, _, e1 := RawSyscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -449,7 +449,7 @@ func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
- _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
+ _, _, e1 := RawSyscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -659,17 +659,6 @@ func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func Fdatasync(fd int) (err error) {
_, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0)
if e1 != 0 {
@@ -1608,6 +1597,108 @@ func writelen(fd int, p *byte, np int) (n int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func readv(fd int, iovs []Iovec) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall(SYS_READV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func writev(fd int, iovs []Iovec) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall(SYS_WRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func preadv(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PREADV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func pwritev(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PWRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func preadv2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PREADV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func pwritev2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PWRITEV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func munmap(addr uintptr, length uintptr) (err error) {
_, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
if e1 != 0 {
@@ -2046,8 +2137,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Setfsgid(gid int) (err error) {
- _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
+func setfsgid(gid int) (prev int, err error) {
+ r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
+ prev = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -2056,8 +2148,9 @@ func Setfsgid(gid int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Setfsuid(uid int) (err error) {
- _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
+func setfsuid(uid int) (prev int, err error) {
+ r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
+ prev = int(r0)
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.go
index 37823cd6b..591d120c8 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go
@@ -439,7 +439,7 @@ func Adjtimex(buf *Timex) (state int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
- _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
+ _, _, e1 := RawSyscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -449,7 +449,7 @@ func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
- _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
+ _, _, e1 := RawSyscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -659,17 +659,6 @@ func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func Fdatasync(fd int) (err error) {
_, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0)
if e1 != 0 {
@@ -1608,6 +1597,108 @@ func writelen(fd int, p *byte, np int) (n int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func readv(fd int, iovs []Iovec) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall(SYS_READV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func writev(fd int, iovs []Iovec) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall(SYS_WRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func preadv(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PREADV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func pwritev(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PWRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func preadv2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PREADV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func pwritev2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PWRITEV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func munmap(addr uintptr, length uintptr) (err error) {
_, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
if e1 != 0 {
@@ -2166,8 +2257,9 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Setfsgid(gid int) (err error) {
- _, _, e1 := Syscall(SYS_SETFSGID32, uintptr(gid), 0, 0)
+func setfsgid(gid int) (prev int, err error) {
+ r0, _, e1 := Syscall(SYS_SETFSGID32, uintptr(gid), 0, 0)
+ prev = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -2176,8 +2268,9 @@ func Setfsgid(gid int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Setfsuid(uid int) (err error) {
- _, _, e1 := Syscall(SYS_SETFSUID32, uintptr(uid), 0, 0)
+func setfsuid(uid int) (prev int, err error) {
+ r0, _, e1 := Syscall(SYS_SETFSUID32, uintptr(uid), 0, 0)
+ prev = int(r0)
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.go
index 794f61264..afd544707 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go
@@ -439,7 +439,7 @@ func Adjtimex(buf *Timex) (state int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
- _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
+ _, _, e1 := RawSyscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -449,7 +449,7 @@ func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
- _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
+ _, _, e1 := RawSyscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -659,17 +659,6 @@ func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func Fdatasync(fd int) (err error) {
_, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0)
if e1 != 0 {
@@ -1608,6 +1597,108 @@ func writelen(fd int, p *byte, np int) (n int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func readv(fd int, iovs []Iovec) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall(SYS_READV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func writev(fd int, iovs []Iovec) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall(SYS_WRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func preadv(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PREADV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func pwritev(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PWRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func preadv2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PREADV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func pwritev2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PWRITEV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func munmap(addr uintptr, length uintptr) (err error) {
_, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
if e1 != 0 {
@@ -1969,8 +2060,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Setfsgid(gid int) (err error) {
- _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
+func setfsgid(gid int) (prev int, err error) {
+ r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
+ prev = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -1979,8 +2071,9 @@ func Setfsgid(gid int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Setfsuid(uid int) (err error) {
- _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
+func setfsuid(uid int) (prev int, err error) {
+ r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
+ prev = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go
index 1b34b550c..054b2189a 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go
@@ -439,7 +439,7 @@ func Adjtimex(buf *Timex) (state int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
- _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
+ _, _, e1 := RawSyscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -449,7 +449,7 @@ func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
- _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
+ _, _, e1 := RawSyscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -659,17 +659,6 @@ func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func Fdatasync(fd int) (err error) {
_, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0)
if e1 != 0 {
@@ -1608,6 +1597,108 @@ func writelen(fd int, p *byte, np int) (n int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func readv(fd int, iovs []Iovec) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall(SYS_READV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func writev(fd int, iovs []Iovec) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall(SYS_WRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func preadv(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PREADV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func pwritev(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PWRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func preadv2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PREADV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func pwritev2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PWRITEV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func munmap(addr uintptr, length uintptr) (err error) {
_, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
if e1 != 0 {
@@ -1960,8 +2051,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Setfsgid(gid int) (err error) {
- _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
+func setfsgid(gid int) (prev int, err error) {
+ r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
+ prev = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -1970,8 +2062,9 @@ func Setfsgid(gid int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Setfsuid(uid int) (err error) {
- _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
+func setfsuid(uid int) (prev int, err error) {
+ r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
+ prev = int(r0)
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.go
index 5714e2592..bbd48bf22 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go
@@ -439,7 +439,7 @@ func Adjtimex(buf *Timex) (state int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
- _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
+ _, _, e1 := RawSyscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -449,7 +449,7 @@ func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
- _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
+ _, _, e1 := RawSyscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -659,17 +659,6 @@ func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func Fdatasync(fd int) (err error) {
_, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0)
if e1 != 0 {
@@ -1608,6 +1597,108 @@ func writelen(fd int, p *byte, np int) (n int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func readv(fd int, iovs []Iovec) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall(SYS_READV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func writev(fd int, iovs []Iovec) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall(SYS_WRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func preadv(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PREADV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func pwritev(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PWRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func preadv2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PREADV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func pwritev2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PWRITEV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func munmap(addr uintptr, length uintptr) (err error) {
_, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
if e1 != 0 {
@@ -1990,8 +2081,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Setfsgid(gid int) (err error) {
- _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
+func setfsgid(gid int) (prev int, err error) {
+ r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
+ prev = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -2000,8 +2092,9 @@ func Setfsgid(gid int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Setfsuid(uid int) (err error) {
- _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
+func setfsuid(uid int) (prev int, err error) {
+ r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
+ prev = int(r0)
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.go
index 88a6b3362..9c6bee913 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go
@@ -439,7 +439,7 @@ func Adjtimex(buf *Timex) (state int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
- _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
+ _, _, e1 := RawSyscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -449,7 +449,7 @@ func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
- _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
+ _, _, e1 := RawSyscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -659,17 +659,6 @@ func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func Fdatasync(fd int) (err error) {
_, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0)
if e1 != 0 {
@@ -1608,6 +1597,108 @@ func writelen(fd int, p *byte, np int) (n int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func readv(fd int, iovs []Iovec) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall(SYS_READV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func writev(fd int, iovs []Iovec) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall(SYS_WRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func preadv(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PREADV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func pwritev(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PWRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func preadv2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PREADV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func pwritev2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PWRITEV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func munmap(addr uintptr, length uintptr) (err error) {
_, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
if e1 != 0 {
@@ -1990,8 +2081,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Setfsgid(gid int) (err error) {
- _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
+func setfsgid(gid int) (prev int, err error) {
+ r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
+ prev = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -2000,8 +2092,9 @@ func Setfsgid(gid int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Setfsuid(uid int) (err error) {
- _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
+func setfsuid(uid int) (prev int, err error) {
+ r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
+ prev = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go
index c09dbe345..676088fa0 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go
@@ -439,7 +439,7 @@ func Adjtimex(buf *Timex) (state int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
- _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
+ _, _, e1 := RawSyscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -449,7 +449,7 @@ func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
- _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
+ _, _, e1 := RawSyscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -659,17 +659,6 @@ func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func Fdatasync(fd int) (err error) {
_, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0)
if e1 != 0 {
@@ -1608,6 +1597,108 @@ func writelen(fd int, p *byte, np int) (n int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func readv(fd int, iovs []Iovec) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall(SYS_READV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func writev(fd int, iovs []Iovec) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall(SYS_WRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func preadv(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PREADV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func pwritev(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PWRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func preadv2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PREADV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func pwritev2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PWRITEV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func munmap(addr uintptr, length uintptr) (err error) {
_, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
if e1 != 0 {
@@ -1960,8 +2051,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Setfsgid(gid int) (err error) {
- _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
+func setfsgid(gid int) (prev int, err error) {
+ r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
+ prev = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -1970,8 +2062,9 @@ func Setfsgid(gid int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Setfsuid(uid int) (err error) {
- _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
+func setfsuid(uid int) (prev int, err error) {
+ r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
+ prev = int(r0)
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.go
index 42f6c2103..7ee0b80da 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go
@@ -439,7 +439,7 @@ func Adjtimex(buf *Timex) (state int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
- _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
+ _, _, e1 := RawSyscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -449,7 +449,7 @@ func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
- _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
+ _, _, e1 := RawSyscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -659,17 +659,6 @@ func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func Fdatasync(fd int) (err error) {
_, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0)
if e1 != 0 {
@@ -1608,6 +1597,108 @@ func writelen(fd int, p *byte, np int) (n int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func readv(fd int, iovs []Iovec) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall(SYS_READV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func writev(fd int, iovs []Iovec) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall(SYS_WRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func preadv(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PREADV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func pwritev(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PWRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func preadv2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PREADV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func pwritev2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PWRITEV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func munmap(addr uintptr, length uintptr) (err error) {
_, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
if e1 != 0 {
@@ -2072,8 +2163,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Setfsgid(gid int) (err error) {
- _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
+func setfsgid(gid int) (prev int, err error) {
+ r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
+ prev = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -2082,8 +2174,9 @@ func Setfsgid(gid int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Setfsuid(uid int) (err error) {
- _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
+func setfsuid(uid int) (prev int, err error) {
+ r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
+ prev = int(r0)
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.go
index de2cd8db9..8eaa7c9e7 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go
@@ -439,7 +439,7 @@ func Adjtimex(buf *Timex) (state int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
- _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
+ _, _, e1 := RawSyscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -449,7 +449,7 @@ func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
- _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
+ _, _, e1 := RawSyscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -659,17 +659,6 @@ func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func Fdatasync(fd int) (err error) {
_, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0)
if e1 != 0 {
@@ -1608,6 +1597,108 @@ func writelen(fd int, p *byte, np int) (n int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func readv(fd int, iovs []Iovec) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall(SYS_READV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func writev(fd int, iovs []Iovec) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall(SYS_WRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func preadv(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PREADV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func pwritev(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PWRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func preadv2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PREADV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func pwritev2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PWRITEV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func munmap(addr uintptr, length uintptr) (err error) {
_, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
if e1 != 0 {
@@ -2072,8 +2163,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Setfsgid(gid int) (err error) {
- _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
+func setfsgid(gid int) (prev int, err error) {
+ r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
+ prev = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -2082,8 +2174,9 @@ func Setfsgid(gid int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Setfsuid(uid int) (err error) {
- _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
+func setfsuid(uid int) (prev int, err error) {
+ r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
+ prev = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go
index d51bf07fc..b8f212bf0 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go
@@ -439,7 +439,7 @@ func Adjtimex(buf *Timex) (state int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
- _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
+ _, _, e1 := RawSyscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -449,7 +449,7 @@ func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
- _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
+ _, _, e1 := RawSyscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -659,17 +659,6 @@ func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func Fdatasync(fd int) (err error) {
_, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0)
if e1 != 0 {
@@ -1608,6 +1597,108 @@ func writelen(fd int, p *byte, np int) (n int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func readv(fd int, iovs []Iovec) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall(SYS_READV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func writev(fd int, iovs []Iovec) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall(SYS_WRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func preadv(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PREADV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func pwritev(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PWRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func preadv2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PREADV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func pwritev2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PWRITEV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func munmap(addr uintptr, length uintptr) (err error) {
_, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
if e1 != 0 {
@@ -1949,8 +2040,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Setfsgid(gid int) (err error) {
- _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
+func setfsgid(gid int) (prev int, err error) {
+ r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
+ prev = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -1959,8 +2051,9 @@ func Setfsgid(gid int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Setfsuid(uid int) (err error) {
- _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
+func setfsuid(uid int) (prev int, err error) {
+ r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
+ prev = int(r0)
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.go
index 1e3a3cb73..a7191cdbd 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go
@@ -439,7 +439,7 @@ func Adjtimex(buf *Timex) (state int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
- _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
+ _, _, e1 := RawSyscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -449,7 +449,7 @@ func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
- _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
+ _, _, e1 := RawSyscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -659,17 +659,6 @@ func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func Fdatasync(fd int) (err error) {
_, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0)
if e1 != 0 {
@@ -1608,6 +1597,108 @@ func writelen(fd int, p *byte, np int) (n int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func readv(fd int, iovs []Iovec) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall(SYS_READV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func writev(fd int, iovs []Iovec) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall(SYS_WRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func preadv(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PREADV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func pwritev(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PWRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func preadv2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PREADV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func pwritev2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PWRITEV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func munmap(addr uintptr, length uintptr) (err error) {
_, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
if e1 != 0 {
@@ -2042,8 +2133,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Setfsgid(gid int) (err error) {
- _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
+func setfsgid(gid int) (prev int, err error) {
+ r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
+ prev = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -2052,8 +2144,9 @@ func Setfsgid(gid int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Setfsuid(uid int) (err error) {
- _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
+func setfsuid(uid int) (prev int, err error) {
+ r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
+ prev = int(r0)
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.go
index 3c97008cd..9abdbde77 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go
@@ -439,7 +439,7 @@ func Adjtimex(buf *Timex) (state int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
- _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
+ _, _, e1 := RawSyscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -449,7 +449,7 @@ func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
- _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
+ _, _, e1 := RawSyscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -659,17 +659,6 @@ func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func Fdatasync(fd int) (err error) {
_, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0)
if e1 != 0 {
@@ -1608,6 +1597,108 @@ func writelen(fd int, p *byte, np int) (n int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func readv(fd int, iovs []Iovec) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall(SYS_READV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func writev(fd int, iovs []Iovec) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall(SYS_WRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func preadv(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PREADV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func pwritev(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PWRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func preadv2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PREADV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func pwritev2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(iovs) > 0 {
+ _p0 = unsafe.Pointer(&iovs[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ r0, _, e1 := Syscall6(SYS_PWRITEV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
+ n = int(r0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func munmap(addr uintptr, length uintptr) (err error) {
_, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
if e1 != 0 {
@@ -2041,8 +2132,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Setfsgid(gid int) (err error) {
- _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
+func setfsgid(gid int) (prev int, err error) {
+ r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
+ prev = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -2051,8 +2143,9 @@ func Setfsgid(gid int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Setfsuid(uid int) (err error) {
- _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
+func setfsuid(uid int) (prev int, err error) {
+ r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
+ prev = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go
index 0fa4c3789..3bbd9e39c 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go
@@ -239,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
@@ -361,22 +350,6 @@ func Munlockall() (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
- var _p0 unsafe.Pointer
- if len(mib) > 0 {
- _p0 = unsafe.Pointer(&mib[0])
- } else {
- _p0 = unsafe.Pointer(&_zero)
- }
- _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func pipe() (fd1 int, fd2 int, err error) {
r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
fd1 = int(r0)
@@ -433,6 +406,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
+ var _p0 unsafe.Pointer
+ if len(mib) > 0 {
+ _p0 = unsafe.Pointer(&mib[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func Access(path string, mode uint32) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
@@ -564,6 +553,16 @@ func Dup2(from int, to int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func Dup3(from int, to int, flags int) (err error) {
+ _, _, e1 := Syscall(SYS_DUP3, uintptr(from), uintptr(to), uintptr(flags))
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func Exit(code int) {
Syscall(SYS_EXIT, uintptr(code), 0, 0)
return
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go
index 43da75301..d8cf5012c 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go
@@ -239,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
@@ -361,22 +350,6 @@ func Munlockall() (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
- var _p0 unsafe.Pointer
- if len(mib) > 0 {
- _p0 = unsafe.Pointer(&mib[0])
- } else {
- _p0 = unsafe.Pointer(&_zero)
- }
- _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func pipe() (fd1 int, fd2 int, err error) {
r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
fd1 = int(r0)
@@ -433,6 +406,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
+ var _p0 unsafe.Pointer
+ if len(mib) > 0 {
+ _p0 = unsafe.Pointer(&mib[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func Access(path string, mode uint32) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
@@ -564,6 +553,16 @@ func Dup2(from int, to int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func Dup3(from int, to int, flags int) (err error) {
+ _, _, e1 := Syscall(SYS_DUP3, uintptr(from), uintptr(to), uintptr(flags))
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func Exit(code int) {
Syscall(SYS_EXIT, uintptr(code), 0, 0)
return
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go
index b8b340421..1153fe69b 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go
@@ -239,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
@@ -361,22 +350,6 @@ func Munlockall() (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
- var _p0 unsafe.Pointer
- if len(mib) > 0 {
- _p0 = unsafe.Pointer(&mib[0])
- } else {
- _p0 = unsafe.Pointer(&_zero)
- }
- _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func pipe() (fd1 int, fd2 int, err error) {
r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
fd1 = int(r0)
@@ -433,6 +406,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
+ var _p0 unsafe.Pointer
+ if len(mib) > 0 {
+ _p0 = unsafe.Pointer(&mib[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func Access(path string, mode uint32) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
@@ -564,6 +553,16 @@ func Dup2(from int, to int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func Dup3(from int, to int, flags int) (err error) {
+ _, _, e1 := Syscall(SYS_DUP3, uintptr(from), uintptr(to), uintptr(flags))
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func Exit(code int) {
Syscall(SYS_EXIT, uintptr(code), 0, 0)
return
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go
index f6243da40..24b4ebb41 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go
@@ -239,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
@@ -361,22 +350,6 @@ func Munlockall() (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
- var _p0 unsafe.Pointer
- if len(mib) > 0 {
- _p0 = unsafe.Pointer(&mib[0])
- } else {
- _p0 = unsafe.Pointer(&_zero)
- }
- _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func pipe() (fd1 int, fd2 int, err error) {
r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
fd1 = int(r0)
@@ -433,6 +406,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
+ var _p0 unsafe.Pointer
+ if len(mib) > 0 {
+ _p0 = unsafe.Pointer(&mib[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func Access(path string, mode uint32) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
@@ -564,6 +553,16 @@ func Dup2(from int, to int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func Dup3(from int, to int, flags int) (err error) {
+ _, _, e1 := Syscall(SYS_DUP3, uintptr(from), uintptr(to), uintptr(flags))
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func Exit(code int) {
Syscall(SYS_EXIT, uintptr(code), 0, 0)
return
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go
index 2938e4124..b44b31aeb 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go
@@ -239,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
@@ -361,24 +350,8 @@ func Munlockall() (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
- var _p0 unsafe.Pointer
- if len(mib) > 0 {
- _p0 = unsafe.Pointer(&mib[0])
- } else {
- _p0 = unsafe.Pointer(&_zero)
- }
- _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
-func pipe(p *[2]_C_int) (err error) {
- _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
+func pipe2(p *[2]_C_int, flags int) (err error) {
+ _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -431,6 +404,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
+ var _p0 unsafe.Pointer
+ if len(mib) > 0 {
+ _p0 = unsafe.Pointer(&mib[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0)
n = int(r0)
@@ -573,6 +562,16 @@ func Dup2(from int, to int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func Dup3(from int, to int, flags int) (err error) {
+ _, _, e1 := Syscall(SYS_DUP3, uintptr(from), uintptr(to), uintptr(flags))
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func Exit(code int) {
Syscall(SYS_EXIT, uintptr(code), 0, 0)
return
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go
index 22b79ab0e..67f93ee76 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go
@@ -239,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
@@ -361,24 +350,8 @@ func Munlockall() (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
- var _p0 unsafe.Pointer
- if len(mib) > 0 {
- _p0 = unsafe.Pointer(&mib[0])
- } else {
- _p0 = unsafe.Pointer(&_zero)
- }
- _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
-func pipe(p *[2]_C_int) (err error) {
- _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
+func pipe2(p *[2]_C_int, flags int) (err error) {
+ _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -431,6 +404,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
+ var _p0 unsafe.Pointer
+ if len(mib) > 0 {
+ _p0 = unsafe.Pointer(&mib[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0)
n = int(r0)
@@ -573,6 +562,16 @@ func Dup2(from int, to int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func Dup3(from int, to int, flags int) (err error) {
+ _, _, e1 := Syscall(SYS_DUP3, uintptr(from), uintptr(to), uintptr(flags))
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func Exit(code int) {
Syscall(SYS_EXIT, uintptr(code), 0, 0)
return
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go
index cb921f37a..d7c878b1d 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go
@@ -239,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
@@ -361,24 +350,8 @@ func Munlockall() (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
- var _p0 unsafe.Pointer
- if len(mib) > 0 {
- _p0 = unsafe.Pointer(&mib[0])
- } else {
- _p0 = unsafe.Pointer(&_zero)
- }
- _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
-func pipe(p *[2]_C_int) (err error) {
- _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
+func pipe2(p *[2]_C_int, flags int) (err error) {
+ _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -431,6 +404,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
+ var _p0 unsafe.Pointer
+ if len(mib) > 0 {
+ _p0 = unsafe.Pointer(&mib[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0)
n = int(r0)
@@ -573,6 +562,16 @@ func Dup2(from int, to int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func Dup3(from int, to int, flags int) (err error) {
+ _, _, e1 := Syscall(SYS_DUP3, uintptr(from), uintptr(to), uintptr(flags))
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func Exit(code int) {
Syscall(SYS_EXIT, uintptr(code), 0, 0)
return
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go
index 5a7438035..8facd695d 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go
@@ -239,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
- val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
@@ -361,24 +350,8 @@ func Munlockall() (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
- var _p0 unsafe.Pointer
- if len(mib) > 0 {
- _p0 = unsafe.Pointer(&mib[0])
- } else {
- _p0 = unsafe.Pointer(&_zero)
- }
- _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
-func pipe(p *[2]_C_int) (err error) {
- _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
+func pipe2(p *[2]_C_int, flags int) (err error) {
+ _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
if e1 != 0 {
err = errnoErr(e1)
}
@@ -431,6 +404,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
+ var _p0 unsafe.Pointer
+ if len(mib) > 0 {
+ _p0 = unsafe.Pointer(&mib[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0)
n = int(r0)
@@ -573,6 +562,16 @@ func Dup2(from int, to int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func Dup3(from int, to int, flags int) (err error) {
+ _, _, e1 := Syscall(SYS_DUP3, uintptr(from), uintptr(to), uintptr(flags))
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func Exit(code int) {
Syscall(SYS_EXIT, uintptr(code), 0, 0)
return
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go
index 753def987..1f3b4d150 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go
@@ -297,4 +297,5 @@ const (
SYS_FSMOUNT = 432
SYS_FSPICK = 433
SYS_PIDFD_OPEN = 434
+ SYS_CLONE3 = 435
)
diff --git a/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go
index c206f2b05..71ea1d6d2 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go
@@ -467,3 +467,13 @@ type Utsname struct {
Version [32]byte
Machine [32]byte
}
+
+const SizeofClockinfo = 0x14
+
+type Clockinfo struct {
+ Hz int32
+ Tick int32
+ Tickadj int32
+ Stathz int32
+ Profhz int32
+}
diff --git a/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go
index 7312e95ff..0ec159680 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go
@@ -423,7 +423,7 @@ type PtraceIoDesc struct {
Op int32
Offs *byte
Addr *byte
- Len uint
+ Len uint32
}
type Kevent_t struct {
@@ -698,3 +698,13 @@ type Utsname struct {
Version [256]byte
Machine [256]byte
}
+
+const SizeofClockinfo = 0x14
+
+type Clockinfo struct {
+ Hz int32
+ Tick int32
+ Spare int32
+ Stathz int32
+ Profhz int32
+}
diff --git a/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go
index 29ba2f5bf..8340f5775 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go
@@ -428,7 +428,7 @@ type PtraceIoDesc struct {
Op int32
Offs *byte
Addr *byte
- Len uint
+ Len uint64
}
type Kevent_t struct {
@@ -704,3 +704,13 @@ type Utsname struct {
Version [256]byte
Machine [256]byte
}
+
+const SizeofClockinfo = 0x14
+
+type Clockinfo struct {
+ Hz int32
+ Tick int32
+ Spare int32
+ Stathz int32
+ Profhz int32
+}
diff --git a/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go
index b4090ef31..6f79227d7 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go
@@ -405,7 +405,7 @@ type PtraceIoDesc struct {
Op int32
Offs *byte
Addr *byte
- Len uint
+ Len uint32
}
type Kevent_t struct {
@@ -681,3 +681,13 @@ type Utsname struct {
Version [256]byte
Machine [256]byte
}
+
+const SizeofClockinfo = 0x14
+
+type Clockinfo struct {
+ Hz int32
+ Tick int32
+ Spare int32
+ Stathz int32
+ Profhz int32
+}
diff --git a/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go
index c681d7dbc..e751e0033 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go
@@ -406,7 +406,7 @@ type PtraceIoDesc struct {
Op int32
Offs *byte
Addr *byte
- Len uint
+ Len uint64
}
type Kevent_t struct {
@@ -682,3 +682,13 @@ type Utsname struct {
Version [256]byte
Machine [256]byte
}
+
+const SizeofClockinfo = 0x14
+
+type Clockinfo struct {
+ Hz int32
+ Tick int32
+ Spare int32
+ Stathz int32
+ Profhz int32
+}
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_386.go b/vendor/golang.org/x/sys/unix/ztypes_linux_386.go
index d2306df42..5d835d08c 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_386.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_386.go
@@ -55,6 +55,16 @@ type Timex struct {
_ [44]byte
}
+const (
+ TIME_OK = 0x0
+ TIME_INS = 0x1
+ TIME_DEL = 0x2
+ TIME_OOP = 0x3
+ TIME_WAIT = 0x4
+ TIME_ERROR = 0x5
+ TIME_BAD = 0x5
+)
+
type Time_t int32
type Tms struct {
@@ -592,7 +602,7 @@ const (
IFLA_NEW_IFINDEX = 0x31
IFLA_MIN_MTU = 0x32
IFLA_MAX_MTU = 0x33
- IFLA_MAX = 0x33
+ IFLA_MAX = 0x35
IFLA_INFO_KIND = 0x1
IFLA_INFO_DATA = 0x2
IFLA_INFO_XSTATS = 0x3
@@ -2794,7 +2804,7 @@ const (
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
DEVLINK_ATTR_PAD = 0x3d
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
- DEVLINK_ATTR_MAX = 0x89
+ DEVLINK_ATTR_MAX = 0x8c
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go
index 888870584..55a9902ae 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go
@@ -55,6 +55,16 @@ type Timex struct {
_ [44]byte
}
+const (
+ TIME_OK = 0x0
+ TIME_INS = 0x1
+ TIME_DEL = 0x2
+ TIME_OOP = 0x3
+ TIME_WAIT = 0x4
+ TIME_ERROR = 0x5
+ TIME_BAD = 0x5
+)
+
type Time_t int64
type Tms struct {
@@ -593,7 +603,7 @@ const (
IFLA_NEW_IFINDEX = 0x31
IFLA_MIN_MTU = 0x32
IFLA_MAX_MTU = 0x33
- IFLA_MAX = 0x33
+ IFLA_MAX = 0x35
IFLA_INFO_KIND = 0x1
IFLA_INFO_DATA = 0x2
IFLA_INFO_XSTATS = 0x3
@@ -2809,7 +2819,7 @@ const (
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
DEVLINK_ATTR_PAD = 0x3d
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
- DEVLINK_ATTR_MAX = 0x89
+ DEVLINK_ATTR_MAX = 0x8c
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go b/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go
index 5f6f5945d..91cbbb74c 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go
@@ -55,6 +55,16 @@ type Timex struct {
_ [44]byte
}
+const (
+ TIME_OK = 0x0
+ TIME_INS = 0x1
+ TIME_DEL = 0x2
+ TIME_OOP = 0x3
+ TIME_WAIT = 0x4
+ TIME_ERROR = 0x5
+ TIME_BAD = 0x5
+)
+
type Time_t int32
type Tms struct {
@@ -596,7 +606,7 @@ const (
IFLA_NEW_IFINDEX = 0x31
IFLA_MIN_MTU = 0x32
IFLA_MAX_MTU = 0x33
- IFLA_MAX = 0x33
+ IFLA_MAX = 0x35
IFLA_INFO_KIND = 0x1
IFLA_INFO_DATA = 0x2
IFLA_INFO_XSTATS = 0x3
@@ -2786,7 +2796,7 @@ const (
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
DEVLINK_ATTR_PAD = 0x3d
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
- DEVLINK_ATTR_MAX = 0x89
+ DEVLINK_ATTR_MAX = 0x8c
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go
index e27030c5d..ea231fa92 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go
@@ -55,6 +55,16 @@ type Timex struct {
_ [44]byte
}
+const (
+ TIME_OK = 0x0
+ TIME_INS = 0x1
+ TIME_DEL = 0x2
+ TIME_OOP = 0x3
+ TIME_WAIT = 0x4
+ TIME_ERROR = 0x5
+ TIME_BAD = 0x5
+)
+
type Time_t int64
type Tms struct {
@@ -594,7 +604,7 @@ const (
IFLA_NEW_IFINDEX = 0x31
IFLA_MIN_MTU = 0x32
IFLA_MAX_MTU = 0x33
- IFLA_MAX = 0x33
+ IFLA_MAX = 0x35
IFLA_INFO_KIND = 0x1
IFLA_INFO_DATA = 0x2
IFLA_INFO_XSTATS = 0x3
@@ -2788,7 +2798,7 @@ const (
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
DEVLINK_ATTR_PAD = 0x3d
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
- DEVLINK_ATTR_MAX = 0x89
+ DEVLINK_ATTR_MAX = 0x8c
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go
index 9b1c03da3..a577a5ae7 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go
@@ -55,6 +55,16 @@ type Timex struct {
_ [44]byte
}
+const (
+ TIME_OK = 0x0
+ TIME_INS = 0x1
+ TIME_DEL = 0x2
+ TIME_OOP = 0x3
+ TIME_WAIT = 0x4
+ TIME_ERROR = 0x5
+ TIME_BAD = 0x5
+)
+
type Time_t int32
type Tms struct {
@@ -595,7 +605,7 @@ const (
IFLA_NEW_IFINDEX = 0x31
IFLA_MIN_MTU = 0x32
IFLA_MAX_MTU = 0x33
- IFLA_MAX = 0x33
+ IFLA_MAX = 0x35
IFLA_INFO_KIND = 0x1
IFLA_INFO_DATA = 0x2
IFLA_INFO_XSTATS = 0x3
@@ -2792,7 +2802,7 @@ const (
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
DEVLINK_ATTR_PAD = 0x3d
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
- DEVLINK_ATTR_MAX = 0x89
+ DEVLINK_ATTR_MAX = 0x8c
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go
index 3b88e1ffa..efbf921d1 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go
@@ -55,6 +55,16 @@ type Timex struct {
_ [44]byte
}
+const (
+ TIME_OK = 0x0
+ TIME_INS = 0x1
+ TIME_DEL = 0x2
+ TIME_OOP = 0x3
+ TIME_WAIT = 0x4
+ TIME_ERROR = 0x5
+ TIME_BAD = 0x5
+)
+
type Time_t int64
type Tms struct {
@@ -594,7 +604,7 @@ const (
IFLA_NEW_IFINDEX = 0x31
IFLA_MIN_MTU = 0x32
IFLA_MAX_MTU = 0x33
- IFLA_MAX = 0x33
+ IFLA_MAX = 0x35
IFLA_INFO_KIND = 0x1
IFLA_INFO_DATA = 0x2
IFLA_INFO_XSTATS = 0x3
@@ -2791,7 +2801,7 @@ const (
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
DEVLINK_ATTR_PAD = 0x3d
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
- DEVLINK_ATTR_MAX = 0x89
+ DEVLINK_ATTR_MAX = 0x8c
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go
index 7277dc3b7..4d9614793 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go
@@ -55,6 +55,16 @@ type Timex struct {
_ [44]byte
}
+const (
+ TIME_OK = 0x0
+ TIME_INS = 0x1
+ TIME_DEL = 0x2
+ TIME_OOP = 0x3
+ TIME_WAIT = 0x4
+ TIME_ERROR = 0x5
+ TIME_BAD = 0x5
+)
+
type Time_t int64
type Tms struct {
@@ -594,7 +604,7 @@ const (
IFLA_NEW_IFINDEX = 0x31
IFLA_MIN_MTU = 0x32
IFLA_MAX_MTU = 0x33
- IFLA_MAX = 0x33
+ IFLA_MAX = 0x35
IFLA_INFO_KIND = 0x1
IFLA_INFO_DATA = 0x2
IFLA_INFO_XSTATS = 0x3
@@ -2791,7 +2801,7 @@ const (
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
DEVLINK_ATTR_PAD = 0x3d
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
- DEVLINK_ATTR_MAX = 0x89
+ DEVLINK_ATTR_MAX = 0x8c
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go
index 6f32c1753..e7127c23d 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go
@@ -55,6 +55,16 @@ type Timex struct {
_ [44]byte
}
+const (
+ TIME_OK = 0x0
+ TIME_INS = 0x1
+ TIME_DEL = 0x2
+ TIME_OOP = 0x3
+ TIME_WAIT = 0x4
+ TIME_ERROR = 0x5
+ TIME_BAD = 0x5
+)
+
type Time_t int32
type Tms struct {
@@ -595,7 +605,7 @@ const (
IFLA_NEW_IFINDEX = 0x31
IFLA_MIN_MTU = 0x32
IFLA_MAX_MTU = 0x33
- IFLA_MAX = 0x33
+ IFLA_MAX = 0x35
IFLA_INFO_KIND = 0x1
IFLA_INFO_DATA = 0x2
IFLA_INFO_XSTATS = 0x3
@@ -2792,7 +2802,7 @@ const (
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
DEVLINK_ATTR_PAD = 0x3d
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
- DEVLINK_ATTR_MAX = 0x89
+ DEVLINK_ATTR_MAX = 0x8c
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go
index 8a9484d68..515c1d7d8 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go
@@ -55,6 +55,16 @@ type Timex struct {
_ [44]byte
}
+const (
+ TIME_OK = 0x0
+ TIME_INS = 0x1
+ TIME_DEL = 0x2
+ TIME_OOP = 0x3
+ TIME_WAIT = 0x4
+ TIME_ERROR = 0x5
+ TIME_BAD = 0x5
+)
+
type Time_t int64
type Tms struct {
@@ -595,7 +605,7 @@ const (
IFLA_NEW_IFINDEX = 0x31
IFLA_MIN_MTU = 0x32
IFLA_MAX_MTU = 0x33
- IFLA_MAX = 0x33
+ IFLA_MAX = 0x35
IFLA_INFO_KIND = 0x1
IFLA_INFO_DATA = 0x2
IFLA_INFO_XSTATS = 0x3
@@ -2798,7 +2808,7 @@ const (
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
DEVLINK_ATTR_PAD = 0x3d
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
- DEVLINK_ATTR_MAX = 0x89
+ DEVLINK_ATTR_MAX = 0x8c
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go
index 7190a186a..82a358624 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go
@@ -55,6 +55,16 @@ type Timex struct {
_ [44]byte
}
+const (
+ TIME_OK = 0x0
+ TIME_INS = 0x1
+ TIME_DEL = 0x2
+ TIME_OOP = 0x3
+ TIME_WAIT = 0x4
+ TIME_ERROR = 0x5
+ TIME_BAD = 0x5
+)
+
type Time_t int64
type Tms struct {
@@ -595,7 +605,7 @@ const (
IFLA_NEW_IFINDEX = 0x31
IFLA_MIN_MTU = 0x32
IFLA_MAX_MTU = 0x33
- IFLA_MAX = 0x33
+ IFLA_MAX = 0x35
IFLA_INFO_KIND = 0x1
IFLA_INFO_DATA = 0x2
IFLA_INFO_XSTATS = 0x3
@@ -2798,7 +2808,7 @@ const (
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
DEVLINK_ATTR_PAD = 0x3d
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
- DEVLINK_ATTR_MAX = 0x89
+ DEVLINK_ATTR_MAX = 0x8c
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go
index 502d98aa2..826523f9c 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go
@@ -55,6 +55,16 @@ type Timex struct {
_ [44]byte
}
+const (
+ TIME_OK = 0x0
+ TIME_INS = 0x1
+ TIME_DEL = 0x2
+ TIME_OOP = 0x3
+ TIME_WAIT = 0x4
+ TIME_ERROR = 0x5
+ TIME_BAD = 0x5
+)
+
type Time_t int64
type Tms struct {
@@ -594,7 +604,7 @@ const (
IFLA_NEW_IFINDEX = 0x31
IFLA_MIN_MTU = 0x32
IFLA_MAX_MTU = 0x33
- IFLA_MAX = 0x33
+ IFLA_MAX = 0x35
IFLA_INFO_KIND = 0x1
IFLA_INFO_DATA = 0x2
IFLA_INFO_XSTATS = 0x3
@@ -2816,7 +2826,7 @@ const (
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
DEVLINK_ATTR_PAD = 0x3d
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
- DEVLINK_ATTR_MAX = 0x89
+ DEVLINK_ATTR_MAX = 0x8c
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go b/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go
index 65e12d7b4..a715285b7 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go
@@ -55,6 +55,16 @@ type Timex struct {
_ [44]byte
}
+const (
+ TIME_OK = 0x0
+ TIME_INS = 0x1
+ TIME_DEL = 0x2
+ TIME_OOP = 0x3
+ TIME_WAIT = 0x4
+ TIME_ERROR = 0x5
+ TIME_BAD = 0x5
+)
+
type Time_t int64
type Tms struct {
@@ -593,7 +603,7 @@ const (
IFLA_NEW_IFINDEX = 0x31
IFLA_MIN_MTU = 0x32
IFLA_MAX_MTU = 0x33
- IFLA_MAX = 0x33
+ IFLA_MAX = 0x35
IFLA_INFO_KIND = 0x1
IFLA_INFO_DATA = 0x2
IFLA_INFO_XSTATS = 0x3
@@ -2812,7 +2822,7 @@ const (
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
DEVLINK_ATTR_PAD = 0x3d
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
- DEVLINK_ATTR_MAX = 0x89
+ DEVLINK_ATTR_MAX = 0x8c
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go
index 26e8a2bb7..1755c0c2a 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go
@@ -56,6 +56,16 @@ type Timex struct {
_ [44]byte
}
+const (
+ TIME_OK = 0x0
+ TIME_INS = 0x1
+ TIME_DEL = 0x2
+ TIME_OOP = 0x3
+ TIME_WAIT = 0x4
+ TIME_ERROR = 0x5
+ TIME_BAD = 0x5
+)
+
type Time_t int64
type Tms struct {
@@ -597,7 +607,7 @@ const (
IFLA_NEW_IFINDEX = 0x31
IFLA_MIN_MTU = 0x32
IFLA_MAX_MTU = 0x33
- IFLA_MAX = 0x33
+ IFLA_MAX = 0x35
IFLA_INFO_KIND = 0x1
IFLA_INFO_DATA = 0x2
IFLA_INFO_XSTATS = 0x3
@@ -2793,7 +2803,7 @@ const (
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
DEVLINK_ATTR_PAD = 0x3d
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
- DEVLINK_ATTR_MAX = 0x89
+ DEVLINK_ATTR_MAX = 0x8c
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
diff --git a/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go
index 8531a190f..23ed9fe51 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go
@@ -211,6 +211,12 @@ type Cmsghdr struct {
Type int32
}
+type Inet4Pktinfo struct {
+ Ifindex uint32
+ Spec_dst [4]byte /* in_addr */
+ Addr [4]byte /* in_addr */
+}
+
type Inet6Pktinfo struct {
Addr [16]byte /* in6_addr */
Ifindex uint32
@@ -236,6 +242,7 @@ const (
SizeofIPv6Mreq = 0x14
SizeofMsghdr = 0x30
SizeofCmsghdr = 0xc
+ SizeofInet4Pktinfo = 0xc
SizeofInet6Pktinfo = 0x14
SizeofIPv6MTUInfo = 0x24
SizeofICMPv6Filter = 0x20
diff --git a/vendor/golang.org/x/sys/windows/syscall_windows.go b/vendor/golang.org/x/sys/windows/syscall_windows.go
index a0cd45c14..053d664d0 100644
--- a/vendor/golang.org/x/sys/windows/syscall_windows.go
+++ b/vendor/golang.org/x/sys/windows/syscall_windows.go
@@ -701,8 +701,8 @@ const socket_error = uintptr(^uint32(0))
//sys WSACleanup() (err error) [failretval==socket_error] = ws2_32.WSACleanup
//sys WSAIoctl(s Handle, iocc uint32, inbuf *byte, cbif uint32, outbuf *byte, cbob uint32, cbbr *uint32, overlapped *Overlapped, completionRoutine uintptr) (err error) [failretval==socket_error] = ws2_32.WSAIoctl
//sys socket(af int32, typ int32, protocol int32) (handle Handle, err error) [failretval==InvalidHandle] = ws2_32.socket
-//sys sendto(s Handle, buf []byte, flags int, to unsafe.Pointer, tolen int32) (err error) [failretval==socket_error] = ws2_32.sendto
-//sys recvfrom(s Handle, buf []byte, flags int, from *RawSockaddrAny, fromlen *int) (n int, err error) [failretval==-1] = ws2_32.recvfrom
+//sys sendto(s Handle, buf []byte, flags int32, to unsafe.Pointer, tolen int32) (err error) [failretval==socket_error] = ws2_32.sendto
+//sys recvfrom(s Handle, buf []byte, flags int32, from *RawSockaddrAny, fromlen *int32) (n int32, err error) [failretval==-1] = ws2_32.recvfrom
//sys Setsockopt(s Handle, level int32, optname int32, optval *byte, optlen int32) (err error) [failretval==socket_error] = ws2_32.setsockopt
//sys Getsockopt(s Handle, level int32, optname int32, optval *byte, optlen *int32) (err error) [failretval==socket_error] = ws2_32.getsockopt
//sys bind(s Handle, name unsafe.Pointer, namelen int32) (err error) [failretval==socket_error] = ws2_32.bind
@@ -1134,8 +1134,9 @@ func Accept(fd Handle) (nfd Handle, sa Sockaddr, err error) { return 0, nil, sys
func Recvfrom(fd Handle, p []byte, flags int) (n int, from Sockaddr, err error) {
var rsa RawSockaddrAny
- l := int(unsafe.Sizeof(rsa))
- n, err = recvfrom(fd, p, flags, &rsa, &l)
+ l := int32(unsafe.Sizeof(rsa))
+ n32, err := recvfrom(fd, p, int32(flags), &rsa, &l)
+ n = int(n32)
if err != nil {
return
}
@@ -1148,7 +1149,7 @@ func Sendto(fd Handle, p []byte, flags int, to Sockaddr) (err error) {
if err != nil {
return err
}
- return sendto(fd, p, flags, ptr, l)
+ return sendto(fd, p, int32(flags), ptr, l)
}
func SetsockoptTimeval(fd Handle, level, opt int, tv *Timeval) (err error) { return syscall.EWINDOWS }
diff --git a/vendor/golang.org/x/sys/windows/types_windows.go b/vendor/golang.org/x/sys/windows/types_windows.go
index 8dd95a0a6..809fff0b4 100644
--- a/vendor/golang.org/x/sys/windows/types_windows.go
+++ b/vendor/golang.org/x/sys/windows/types_windows.go
@@ -681,18 +681,26 @@ const (
AF_UNSPEC = 0
AF_UNIX = 1
AF_INET = 2
- AF_INET6 = 23
AF_NETBIOS = 17
+ AF_INET6 = 23
+ AF_IRDA = 26
+ AF_BTH = 32
SOCK_STREAM = 1
SOCK_DGRAM = 2
SOCK_RAW = 3
+ SOCK_RDM = 4
SOCK_SEQPACKET = 5
- IPPROTO_IP = 0
- IPPROTO_IPV6 = 0x29
- IPPROTO_TCP = 6
- IPPROTO_UDP = 17
+ IPPROTO_IP = 0
+ IPPROTO_ICMP = 1
+ IPPROTO_IGMP = 2
+ BTHPROTO_RFCOMM = 3
+ IPPROTO_TCP = 6
+ IPPROTO_UDP = 17
+ IPPROTO_IPV6 = 41
+ IPPROTO_ICMPV6 = 58
+ IPPROTO_RM = 113
SOL_SOCKET = 0xffff
SO_REUSEADDR = 4
@@ -701,6 +709,7 @@ const (
SO_BROADCAST = 32
SO_LINGER = 128
SO_RCVBUF = 0x1002
+ SO_RCVTIMEO = 0x1006
SO_SNDBUF = 0x1001
SO_UPDATE_ACCEPT_CONTEXT = 0x700b
SO_UPDATE_CONNECT_CONTEXT = 0x7010
diff --git a/vendor/golang.org/x/sys/windows/zsyscall_windows.go b/vendor/golang.org/x/sys/windows/zsyscall_windows.go
index 4563918f1..2aa4fa642 100644
--- a/vendor/golang.org/x/sys/windows/zsyscall_windows.go
+++ b/vendor/golang.org/x/sys/windows/zsyscall_windows.go
@@ -2875,7 +2875,7 @@ func socket(af int32, typ int32, protocol int32) (handle Handle, err error) {
return
}
-func sendto(s Handle, buf []byte, flags int, to unsafe.Pointer, tolen int32) (err error) {
+func sendto(s Handle, buf []byte, flags int32, to unsafe.Pointer, tolen int32) (err error) {
var _p0 *byte
if len(buf) > 0 {
_p0 = &buf[0]
@@ -2891,13 +2891,13 @@ func sendto(s Handle, buf []byte, flags int, to unsafe.Pointer, tolen int32) (er
return
}
-func recvfrom(s Handle, buf []byte, flags int, from *RawSockaddrAny, fromlen *int) (n int, err error) {
+func recvfrom(s Handle, buf []byte, flags int32, from *RawSockaddrAny, fromlen *int32) (n int32, err error) {
var _p0 *byte
if len(buf) > 0 {
_p0 = &buf[0]
}
r0, _, e1 := syscall.Syscall6(procrecvfrom.Addr(), 6, uintptr(s), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
- n = int(r0)
+ n = int32(r0)
if n == -1 {
if e1 != 0 {
err = errnoErr(e1)
diff --git a/vendor/google.golang.org/api/AUTHORS b/vendor/google.golang.org/api/AUTHORS
index f73b72574..f07029059 100644
--- a/vendor/google.golang.org/api/AUTHORS
+++ b/vendor/google.golang.org/api/AUTHORS
@@ -8,3 +8,4 @@
# Please keep the list sorted.
Google Inc.
+LightStep Inc.
diff --git a/vendor/google.golang.org/api/CONTRIBUTORS b/vendor/google.golang.org/api/CONTRIBUTORS
index fe55ebff0..788677b8f 100644
--- a/vendor/google.golang.org/api/CONTRIBUTORS
+++ b/vendor/google.golang.org/api/CONTRIBUTORS
@@ -45,6 +45,7 @@ Jason Hall <[email protected]>
Johan Euphrosine <[email protected]>
Kostik Shtoyk <[email protected]>
Kunpei Sakai <[email protected]>
+Matthew Dolan <[email protected]>
Matthew Whisenhunt <[email protected]>
Michael McGreevy <[email protected]>
Nick Craig-Wood <[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.json
index d17d6e58a..1d0911ba9 100644
--- a/vendor/google.golang.org/api/drive/v2/drive-api.json
+++ b/vendor/google.golang.org/api/drive/v2/drive-api.json
@@ -38,7 +38,7 @@
"description": "Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/drive/",
- "etag": "\"F5McR9eEaw0XRpaO3M9gbIugkbs/oBMvKC4XV0NjxxOx_Y5WENsew0Q\"",
+ "etag": "\"u9GIe6H63LSGq-9_t39K2Zx_EAc/CN38amP-kM1VVBkrUzbZOKj8dm4\"",
"icons": {
"x16": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_16.png",
"x32": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_32.png"
@@ -831,7 +831,7 @@
]
},
"patch": {
- "description": "Updates an existing comment. This method supports patch semantics.",
+ "description": "Updates an existing comment.",
"httpMethod": "PATCH",
"id": "drive.comments.patch",
"parameterOrder": [
@@ -2795,83 +2795,6 @@
}
}
},
- "realtime": {
- "methods": {
- "get": {
- "description": "Exports the contents of the Realtime API data model associated with this file as JSON.",
- "httpMethod": "GET",
- "id": "drive.realtime.get",
- "parameterOrder": [
- "fileId"
- ],
- "parameters": {
- "fileId": {
- "description": "The ID of the file that the Realtime API data model is associated with.",
- "location": "path",
- "required": true,
- "type": "string"
- },
- "revision": {
- "description": "The revision of the Realtime API data model to export. Revisions start at 1 (the initial empty data model) and are incremented with each change. If this parameter is excluded, the most recent data model will be returned.",
- "format": "int32",
- "location": "query",
- "minimum": "1",
- "type": "integer"
- }
- },
- "path": "files/{fileId}/realtime",
- "scopes": [
- "https://www.googleapis.com/auth/drive",
- "https://www.googleapis.com/auth/drive.file",
- "https://www.googleapis.com/auth/drive.readonly"
- ],
- "supportsMediaDownload": true
- },
- "update": {
- "description": "Overwrites the Realtime API data model associated with this file with the provided JSON data model.",
- "httpMethod": "PUT",
- "id": "drive.realtime.update",
- "mediaUpload": {
- "accept": [
- "*/*"
- ],
- "maxSize": "10MB",
- "protocols": {
- "resumable": {
- "multipart": true,
- "path": "/resumable/upload/drive/v2/files/{fileId}/realtime"
- },
- "simple": {
- "multipart": true,
- "path": "/upload/drive/v2/files/{fileId}/realtime"
- }
- }
- },
- "parameterOrder": [
- "fileId"
- ],
- "parameters": {
- "baseRevision": {
- "description": "The revision of the model to diff the uploaded model against. If set, the uploaded model is diffed against the provided revision and those differences are merged with any changes made to the model after the provided revision. If not set, the uploaded model replaces the current model on the server.",
- "location": "query",
- "type": "string"
- },
- "fileId": {
- "description": "The ID of the file that the Realtime API data model is associated with.",
- "location": "path",
- "required": true,
- "type": "string"
- }
- },
- "path": "files/{fileId}/realtime",
- "scopes": [
- "https://www.googleapis.com/auth/drive",
- "https://www.googleapis.com/auth/drive.file"
- ],
- "supportsMediaUpload": true
- }
- }
- },
"replies": {
"methods": {
"delete": {
@@ -3041,7 +2964,7 @@
]
},
"patch": {
- "description": "Updates an existing reply. This method supports patch semantics.",
+ "description": "Updates an existing reply.",
"httpMethod": "PATCH",
"id": "drive.replies.patch",
"parameterOrder": [
@@ -3235,7 +3158,7 @@
]
},
"patch": {
- "description": "Updates a revision. This method supports patch semantics.",
+ "description": "Updates a revision.",
"httpMethod": "PATCH",
"id": "drive.revisions.patch",
"parameterOrder": [
@@ -3459,7 +3382,7 @@
}
}
},
- "revision": "20191015",
+ "revision": "20200110",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"About": {
@@ -4129,7 +4052,7 @@
},
"author": {
"$ref": "User",
- "description": "The user who wrote this comment."
+ "description": "The author of the comment. The author's email address and permission ID will not be populated."
},
"commentId": {
"description": "The ID of the comment.",
@@ -4246,7 +4169,7 @@
"properties": {
"author": {
"$ref": "User",
- "description": "The user who wrote this reply."
+ "description": "The author of the reply. The author's email address and permission ID will not be populated."
},
"content": {
"annotations": {
@@ -5519,7 +5442,6 @@
"id": "Revision",
"properties": {
"downloadUrl": {
- "description": "Short term download URL for the file. This will only be populated on files with content stored in Drive.",
"type": "string"
},
"etag": {
diff --git a/vendor/google.golang.org/api/drive/v2/drive-gen.go b/vendor/google.golang.org/api/drive/v2/drive-gen.go
index c0731d939..016e56f61 100644
--- a/vendor/google.golang.org/api/drive/v2/drive-gen.go
+++ b/vendor/google.golang.org/api/drive/v2/drive-gen.go
@@ -1,4 +1,4 @@
-// Copyright 2019 Google LLC.
+// Copyright 2020 Google LLC.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
@@ -56,6 +56,7 @@ import (
googleapi "google.golang.org/api/googleapi"
gensupport "google.golang.org/api/internal/gensupport"
option "google.golang.org/api/option"
+ internaloption "google.golang.org/api/option/internaloption"
htransport "google.golang.org/api/transport/http"
)
@@ -72,6 +73,7 @@ var _ = googleapi.Version
var _ = errors.New
var _ = strings.Replace
var _ = context.Canceled
+var _ = internaloption.WithDefaultEndpoint
const apiId = "drive:v2"
const apiName = "drive"
@@ -124,6 +126,7 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err
)
// NOTE: prepend, so we don't override user-specified scopes.
opts = append([]option.ClientOption{scopesOption}, opts...)
+ opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
client, endpoint, err := htransport.NewClient(ctx, opts...)
if err != nil {
return nil, err
@@ -159,7 +162,6 @@ func New(client *http.Client) (*Service, error) {
s.Parents = NewParentsService(s)
s.Permissions = NewPermissionsService(s)
s.Properties = NewPropertiesService(s)
- s.Realtime = NewRealtimeService(s)
s.Replies = NewRepliesService(s)
s.Revisions = NewRevisionsService(s)
s.Teamdrives = NewTeamdrivesService(s)
@@ -193,8 +195,6 @@ type Service struct {
Properties *PropertiesService
- Realtime *RealtimeService
-
Replies *RepliesService
Revisions *RevisionsService
@@ -308,15 +308,6 @@ type PropertiesService struct {
s *Service
}
-func NewRealtimeService(s *Service) *RealtimeService {
- rs := &RealtimeService{s: s}
- return rs
-}
-
-type RealtimeService struct {
- s *Service
-}
-
func NewRepliesService(s *Service) *RepliesService {
rs := &RepliesService{s: s}
return rs
@@ -1269,7 +1260,8 @@ type Comment struct {
// anchor properties.
Anchor string `json:"anchor,omitempty"`
- // Author: The user who wrote this comment.
+ // Author: The author of the comment. The author's email address and
+ // permission ID will not be populated.
Author *User `json:"author,omitempty"`
// CommentId: The ID of the comment.
@@ -1430,7 +1422,8 @@ func (s *CommentList) MarshalJSON() ([]byte, error) {
// CommentReply: A comment on a file in Google Drive.
type CommentReply struct {
- // Author: The user who wrote this reply.
+ // Author: The author of the reply. The author's email address and
+ // permission ID will not be populated.
Author *User `json:"author,omitempty"`
// Content: The plain text content used to create this reply. This is
@@ -3243,8 +3236,6 @@ func (s *PropertyList) MarshalJSON() ([]byte, error) {
// Revision: A revision of a file.
type Revision struct {
- // DownloadUrl: Short term download URL for the file. This will only be
- // populated on files with content stored in Drive.
DownloadUrl string `json:"downloadUrl,omitempty"`
// Etag: The ETag of the revision.
@@ -3914,7 +3905,7 @@ func (c *AboutGetCall) Header() http.Header {
func (c *AboutGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -4069,7 +4060,7 @@ func (c *AppsGetCall) Header() http.Header {
func (c *AppsGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -4245,7 +4236,7 @@ func (c *AppsListCall) Header() http.Header {
func (c *AppsListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -4424,7 +4415,7 @@ func (c *ChangesGetCall) Header() http.Header {
func (c *ChangesGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -4626,7 +4617,7 @@ func (c *ChangesGetStartPageTokenCall) Header() http.Header {
func (c *ChangesGetStartPageTokenCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -4893,7 +4884,7 @@ func (c *ChangesListCall) Header() http.Header {
func (c *ChangesListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -5227,7 +5218,7 @@ func (c *ChangesWatchCall) Header() http.Header {
func (c *ChangesWatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -5436,7 +5427,7 @@ func (c *ChannelsStopCall) Header() http.Header {
func (c *ChannelsStopCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -5540,7 +5531,7 @@ func (c *ChildrenDeleteCall) Header() http.Header {
func (c *ChildrenDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -5662,7 +5653,7 @@ func (c *ChildrenGetCall) Header() http.Header {
func (c *ChildrenGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -5826,7 +5817,7 @@ func (c *ChildrenInsertCall) Header() http.Header {
func (c *ChildrenInsertCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -6022,7 +6013,7 @@ func (c *ChildrenListCall) Header() http.Header {
func (c *ChildrenListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -6205,7 +6196,7 @@ func (c *CommentsDeleteCall) Header() http.Header {
func (c *CommentsDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -6335,7 +6326,7 @@ func (c *CommentsGetCall) Header() http.Header {
func (c *CommentsGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -6484,7 +6475,7 @@ func (c *CommentsInsertCall) Header() http.Header {
func (c *CommentsInsertCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -6664,7 +6655,7 @@ func (c *CommentsListCall) Header() http.Header {
func (c *CommentsListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -6811,8 +6802,7 @@ type CommentsPatchCall struct {
header_ http.Header
}
-// Patch: Updates an existing comment. This method supports patch
-// semantics.
+// Patch: Updates an existing comment.
func (r *CommentsService) Patch(fileId string, commentId string, comment *Comment) *CommentsPatchCall {
c := &CommentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.fileId = fileId
@@ -6848,7 +6838,7 @@ func (c *CommentsPatchCall) Header() http.Header {
func (c *CommentsPatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -6913,7 +6903,7 @@ func (c *CommentsPatchCall) Do(opts ...googleapi.CallOption) (*Comment, error) {
}
return ret, nil
// {
- // "description": "Updates an existing comment. This method supports patch semantics.",
+ // "description": "Updates an existing comment.",
// "httpMethod": "PATCH",
// "id": "drive.comments.patch",
// "parameterOrder": [
@@ -6997,7 +6987,7 @@ func (c *CommentsUpdateCall) Header() http.Header {
func (c *CommentsUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -7143,7 +7133,7 @@ func (c *DrivesDeleteCall) Header() http.Header {
func (c *DrivesDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -7263,7 +7253,7 @@ func (c *DrivesGetCall) Header() http.Header {
func (c *DrivesGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -7401,7 +7391,7 @@ func (c *DrivesHideCall) Header() http.Header {
func (c *DrivesHideCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -7530,7 +7520,7 @@ func (c *DrivesInsertCall) Header() http.Header {
func (c *DrivesInsertCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -7702,7 +7692,7 @@ func (c *DrivesListCall) Header() http.Header {
func (c *DrivesListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -7868,7 +7858,7 @@ func (c *DrivesUnhideCall) Header() http.Header {
func (c *DrivesUnhideCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -8007,7 +7997,7 @@ func (c *DrivesUpdateCall) Header() http.Header {
func (c *DrivesUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -8224,7 +8214,7 @@ func (c *FilesCopyCall) Header() http.Header {
func (c *FilesCopyCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -8442,7 +8432,7 @@ func (c *FilesDeleteCall) Header() http.Header {
func (c *FilesDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -8554,7 +8544,7 @@ func (c *FilesEmptyTrashCall) Header() http.Header {
func (c *FilesEmptyTrashCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -8654,7 +8644,7 @@ func (c *FilesExportCall) Header() http.Header {
func (c *FilesExportCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -8808,7 +8798,7 @@ func (c *FilesGenerateIdsCall) Header() http.Header {
func (c *FilesGenerateIdsCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -9007,7 +8997,7 @@ func (c *FilesGetCall) Header() http.Header {
func (c *FilesGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -9325,7 +9315,7 @@ func (c *FilesInsertCall) Header() http.Header {
func (c *FilesInsertCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -9696,7 +9686,7 @@ func (c *FilesListCall) Header() http.Header {
func (c *FilesListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -10071,7 +10061,7 @@ func (c *FilesPatchCall) Header() http.Header {
func (c *FilesPatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -10329,7 +10319,7 @@ func (c *FilesTouchCall) Header() http.Header {
func (c *FilesTouchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -10492,7 +10482,7 @@ func (c *FilesTrashCall) Header() http.Header {
func (c *FilesTrashCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -10652,7 +10642,7 @@ func (c *FilesUntrashCall) Header() http.Header {
func (c *FilesUntrashCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -10969,7 +10959,7 @@ func (c *FilesUpdateCall) Header() http.Header {
func (c *FilesUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -11309,7 +11299,7 @@ func (c *FilesWatchCall) Header() http.Header {
func (c *FilesWatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -11515,7 +11505,7 @@ func (c *ParentsDeleteCall) Header() http.Header {
func (c *ParentsDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -11637,7 +11627,7 @@ func (c *ParentsGetCall) Header() http.Header {
func (c *ParentsGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -11801,7 +11791,7 @@ func (c *ParentsInsertCall) Header() http.Header {
func (c *ParentsInsertCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -11962,7 +11952,7 @@ func (c *ParentsListCall) Header() http.Header {
func (c *ParentsListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -12128,7 +12118,7 @@ func (c *PermissionsDeleteCall) Header() http.Header {
func (c *PermissionsDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -12295,7 +12285,7 @@ func (c *PermissionsGetCall) Header() http.Header {
func (c *PermissionsGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -12468,7 +12458,7 @@ func (c *PermissionsGetIdForEmailCall) Header() http.Header {
func (c *PermissionsGetIdForEmailCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -12651,7 +12641,7 @@ func (c *PermissionsInsertCall) Header() http.Header {
func (c *PermissionsInsertCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -12873,7 +12863,7 @@ func (c *PermissionsListCall) Header() http.Header {
func (c *PermissionsListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -13107,7 +13097,7 @@ func (c *PermissionsPatchCall) Header() http.Header {
func (c *PermissionsPatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -13328,7 +13318,7 @@ func (c *PermissionsUpdateCall) Header() http.Header {
func (c *PermissionsUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -13512,7 +13502,7 @@ func (c *PropertiesDeleteCall) Header() http.Header {
func (c *PropertiesDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -13649,7 +13639,7 @@ func (c *PropertiesGetCall) Header() http.Header {
func (c *PropertiesGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -13803,7 +13793,7 @@ func (c *PropertiesInsertCall) Header() http.Header {
func (c *PropertiesInsertCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -13953,7 +13943,7 @@ func (c *PropertiesListCall) Header() http.Header {
func (c *PropertiesListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -14102,7 +14092,7 @@ func (c *PropertiesPatchCall) Header() http.Header {
func (c *PropertiesPatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -14267,7 +14257,7 @@ func (c *PropertiesUpdateCall) Header() http.Header {
func (c *PropertiesUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -14376,359 +14366,6 @@ func (c *PropertiesUpdateCall) Do(opts ...googleapi.CallOption) (*Property, erro
}
-// method id "drive.realtime.get":
-
-type RealtimeGetCall struct {
- s *Service
- fileId string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
-}
-
-// Get: Exports the contents of the Realtime API data model associated
-// with this file as JSON.
-func (r *RealtimeService) Get(fileId string) *RealtimeGetCall {
- c := &RealtimeGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.fileId = fileId
- return c
-}
-
-// Revision sets the optional parameter "revision": The revision of the
-// Realtime API data model to export. Revisions start at 1 (the initial
-// empty data model) and are incremented with each change. If this
-// parameter is excluded, the most recent data model will be returned.
-func (c *RealtimeGetCall) Revision(revision int64) *RealtimeGetCall {
- c.urlParams_.Set("revision", fmt.Sprint(revision))
- return c
-}
-
-// Fields allows partial responses to be retrieved. See
-// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
-// for more information.
-func (c *RealtimeGetCall) Fields(s ...googleapi.Field) *RealtimeGetCall {
- c.urlParams_.Set("fields", googleapi.CombineFields(s))
- return c
-}
-
-// IfNoneMatch sets the optional parameter which makes the operation
-// fail if the object's ETag matches the given value. This is useful for
-// getting updates only after the object has changed since the last
-// request. Use googleapi.IsNotModified to check whether the response
-// error from Do is the result of In-None-Match.
-func (c *RealtimeGetCall) IfNoneMatch(entityTag string) *RealtimeGetCall {
- c.ifNoneMatch_ = entityTag
- return c
-}
-
-// Context sets the context to be used in this call's Do and Download
-// methods. Any pending HTTP request will be aborted if the provided
-// context is canceled.
-func (c *RealtimeGetCall) Context(ctx context.Context) *RealtimeGetCall {
- c.ctx_ = ctx
- 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)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
- 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_)
- }
- var body io.Reader = nil
- c.urlParams_.Set("alt", alt)
- c.urlParams_.Set("prettyPrint", "false")
- urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/realtime")
- urls += "?" + c.urlParams_.Encode()
- req, err := http.NewRequest("GET", urls, body)
- if err != nil {
- return nil, err
- }
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "fileId": c.fileId,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Download fetches the API endpoint's "media" value, instead of the normal
-// API response value. If the returned error is nil, the Response is guaranteed to
-// have a 2xx status code. Callers must close the Response.Body as usual.
-func (c *RealtimeGetCall) Download(opts ...googleapi.CallOption) (*http.Response, error) {
- gensupport.SetOptions(c.urlParams_, opts...)
- res, err := c.doRequest("media")
- if err != nil {
- return nil, err
- }
- if err := googleapi.CheckMediaResponse(res); err != nil {
- res.Body.Close()
- return nil, err
- }
- return res, nil
-}
-
-// Do executes the "drive.realtime.get" call.
-func (c *RealtimeGetCall) Do(opts ...googleapi.CallOption) error {
- gensupport.SetOptions(c.urlParams_, opts...)
- res, err := c.doRequest("json")
- if err != nil {
- return err
- }
- defer googleapi.CloseBody(res)
- if err := googleapi.CheckResponse(res); err != nil {
- return err
- }
- return nil
- // {
- // "description": "Exports the contents of the Realtime API data model associated with this file as JSON.",
- // "httpMethod": "GET",
- // "id": "drive.realtime.get",
- // "parameterOrder": [
- // "fileId"
- // ],
- // "parameters": {
- // "fileId": {
- // "description": "The ID of the file that the Realtime API data model is associated with.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "revision": {
- // "description": "The revision of the Realtime API data model to export. Revisions start at 1 (the initial empty data model) and are incremented with each change. If this parameter is excluded, the most recent data model will be returned.",
- // "format": "int32",
- // "location": "query",
- // "minimum": "1",
- // "type": "integer"
- // }
- // },
- // "path": "files/{fileId}/realtime",
- // "scopes": [
- // "https://www.googleapis.com/auth/drive",
- // "https://www.googleapis.com/auth/drive.file",
- // "https://www.googleapis.com/auth/drive.readonly"
- // ],
- // "supportsMediaDownload": true
- // }
-
-}
-
-// method id "drive.realtime.update":
-
-type RealtimeUpdateCall struct {
- s *Service
- fileId string
- urlParams_ gensupport.URLParams
- mediaInfo_ *gensupport.MediaInfo
- ctx_ context.Context
- header_ http.Header
-}
-
-// Update: Overwrites the Realtime API data model associated with this
-// file with the provided JSON data model.
-func (r *RealtimeService) Update(fileId string) *RealtimeUpdateCall {
- c := &RealtimeUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.fileId = fileId
- return c
-}
-
-// BaseRevision sets the optional parameter "baseRevision": The revision
-// of the model to diff the uploaded model against. If set, the uploaded
-// model is diffed against the provided revision and those differences
-// are merged with any changes made to the model after the provided
-// revision. If not set, the uploaded model replaces the current model
-// on the server.
-func (c *RealtimeUpdateCall) BaseRevision(baseRevision string) *RealtimeUpdateCall {
- c.urlParams_.Set("baseRevision", baseRevision)
- return c
-}
-
-// Media specifies the media to upload in one or more chunks. The chunk
-// size may be controlled by supplying a MediaOption generated by
-// googleapi.ChunkSize. The chunk size defaults to
-// googleapi.DefaultUploadChunkSize.The Content-Type header used in the
-// upload request will be determined by sniffing the contents of r,
-// unless a MediaOption generated by googleapi.ContentType is
-// supplied.
-// At most one of Media and ResumableMedia may be set.
-func (c *RealtimeUpdateCall) Media(r io.Reader, options ...googleapi.MediaOption) *RealtimeUpdateCall {
- c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options)
- return c
-}
-
-// ResumableMedia specifies the media to upload in chunks and can be
-// canceled with ctx.
-//
-// Deprecated: use Media instead.
-//
-// At most one of Media and ResumableMedia may be set. mediaType
-// identifies the MIME media type of the upload, such as "image/png". If
-// mediaType is "", it will be auto-detected. The provided ctx will
-// supersede any context previously provided to the Context method.
-func (c *RealtimeUpdateCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *RealtimeUpdateCall {
- c.ctx_ = ctx
- c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType)
- return c
-}
-
-// ProgressUpdater provides a callback function that will be called
-// after every chunk. It should be a low-latency function in order to
-// not slow down the upload operation. This should only be called when
-// using ResumableMedia (as opposed to Media).
-func (c *RealtimeUpdateCall) ProgressUpdater(pu googleapi.ProgressUpdater) *RealtimeUpdateCall {
- c.mediaInfo_.SetProgressUpdater(pu)
- return c
-}
-
-// Fields allows partial responses to be retrieved. See
-// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
-// for more information.
-func (c *RealtimeUpdateCall) Fields(s ...googleapi.Field) *RealtimeUpdateCall {
- c.urlParams_.Set("fields", googleapi.CombineFields(s))
- return c
-}
-
-// Context sets the context to be used in this call's Do method. Any
-// pending HTTP request will be aborted if the provided context is
-// canceled.
-// This context will supersede any context previously provided to the
-// ResumableMedia method.
-func (c *RealtimeUpdateCall) Context(ctx context.Context) *RealtimeUpdateCall {
- c.ctx_ = ctx
- 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)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
- for k, v := range c.header_ {
- reqHeaders[k] = v
- }
- reqHeaders.Set("User-Agent", c.s.userAgent())
- var body io.Reader = nil
- c.urlParams_.Set("alt", alt)
- c.urlParams_.Set("prettyPrint", "false")
- urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/realtime")
- if c.mediaInfo_ != nil {
- urls = googleapi.ResolveRelative(c.s.BasePath, "/upload/drive/v2/files/{fileId}/realtime")
- c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType())
- }
- if body == nil {
- body = new(bytes.Buffer)
- reqHeaders.Set("Content-Type", "application/json")
- }
- body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
- defer cleanup()
- urls += "?" + c.urlParams_.Encode()
- req, err := http.NewRequest("PUT", urls, body)
- if err != nil {
- return nil, err
- }
- req.Header = reqHeaders
- req.GetBody = getBody
- googleapi.Expand(req.URL, map[string]string{
- "fileId": c.fileId,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "drive.realtime.update" call.
-func (c *RealtimeUpdateCall) Do(opts ...googleapi.CallOption) error {
- gensupport.SetOptions(c.urlParams_, opts...)
- res, err := c.doRequest("json")
- if err != nil {
- return err
- }
- defer googleapi.CloseBody(res)
- if err := googleapi.CheckResponse(res); err != nil {
- return err
- }
- rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location"))
- if rx != nil {
- rx.Client = c.s.client
- rx.UserAgent = c.s.userAgent()
- ctx := c.ctx_
- if ctx == nil {
- ctx = context.TODO()
- }
- res, err = rx.Upload(ctx)
- if err != nil {
- return err
- }
- defer res.Body.Close()
- if err := googleapi.CheckResponse(res); err != nil {
- return err
- }
- }
- return nil
- // {
- // "description": "Overwrites the Realtime API data model associated with this file with the provided JSON data model.",
- // "httpMethod": "PUT",
- // "id": "drive.realtime.update",
- // "mediaUpload": {
- // "accept": [
- // "*/*"
- // ],
- // "maxSize": "10MB",
- // "protocols": {
- // "resumable": {
- // "multipart": true,
- // "path": "/resumable/upload/drive/v2/files/{fileId}/realtime"
- // },
- // "simple": {
- // "multipart": true,
- // "path": "/upload/drive/v2/files/{fileId}/realtime"
- // }
- // }
- // },
- // "parameterOrder": [
- // "fileId"
- // ],
- // "parameters": {
- // "baseRevision": {
- // "description": "The revision of the model to diff the uploaded model against. If set, the uploaded model is diffed against the provided revision and those differences are merged with any changes made to the model after the provided revision. If not set, the uploaded model replaces the current model on the server.",
- // "location": "query",
- // "type": "string"
- // },
- // "fileId": {
- // "description": "The ID of the file that the Realtime API data model is associated with.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "files/{fileId}/realtime",
- // "scopes": [
- // "https://www.googleapis.com/auth/drive",
- // "https://www.googleapis.com/auth/drive.file"
- // ],
- // "supportsMediaUpload": true
- // }
-
-}
-
// method id "drive.replies.delete":
type RepliesDeleteCall struct {
@@ -14777,7 +14414,7 @@ func (c *RepliesDeleteCall) Header() http.Header {
func (c *RepliesDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -14916,7 +14553,7 @@ func (c *RepliesGetCall) Header() http.Header {
func (c *RepliesGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -15075,7 +14712,7 @@ func (c *RepliesInsertCall) Header() http.Header {
func (c *RepliesInsertCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -15257,7 +14894,7 @@ func (c *RepliesListCall) Header() http.Header {
func (c *RepliesListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -15408,8 +15045,7 @@ type RepliesPatchCall struct {
header_ http.Header
}
-// Patch: Updates an existing reply. This method supports patch
-// semantics.
+// Patch: Updates an existing reply.
func (r *RepliesService) Patch(fileId string, commentId string, replyId string, commentreply *CommentReply) *RepliesPatchCall {
c := &RepliesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.fileId = fileId
@@ -15446,7 +15082,7 @@ func (c *RepliesPatchCall) Header() http.Header {
func (c *RepliesPatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -15512,7 +15148,7 @@ func (c *RepliesPatchCall) Do(opts ...googleapi.CallOption) (*CommentReply, erro
}
return ret, nil
// {
- // "description": "Updates an existing reply. This method supports patch semantics.",
+ // "description": "Updates an existing reply.",
// "httpMethod": "PATCH",
// "id": "drive.replies.patch",
// "parameterOrder": [
@@ -15605,7 +15241,7 @@ func (c *RepliesUpdateCall) Header() http.Header {
func (c *RepliesUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -15763,7 +15399,7 @@ func (c *RevisionsDeleteCall) Header() http.Header {
func (c *RevisionsDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -15886,7 +15522,7 @@ func (c *RevisionsGetCall) Header() http.Header {
func (c *RevisionsGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -16057,7 +15693,7 @@ func (c *RevisionsListCall) Header() http.Header {
func (c *RevisionsListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -16197,7 +15833,7 @@ type RevisionsPatchCall struct {
header_ http.Header
}
-// Patch: Updates a revision. This method supports patch semantics.
+// Patch: Updates a revision.
func (r *RevisionsService) Patch(fileId string, revisionId string, revision *Revision) *RevisionsPatchCall {
c := &RevisionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.fileId = fileId
@@ -16233,7 +15869,7 @@ func (c *RevisionsPatchCall) Header() http.Header {
func (c *RevisionsPatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -16298,7 +15934,7 @@ func (c *RevisionsPatchCall) Do(opts ...googleapi.CallOption) (*Revision, error)
}
return ret, nil
// {
- // "description": "Updates a revision. This method supports patch semantics.",
+ // "description": "Updates a revision.",
// "httpMethod": "PATCH",
// "id": "drive.revisions.patch",
// "parameterOrder": [
@@ -16383,7 +16019,7 @@ func (c *RevisionsUpdateCall) Header() http.Header {
func (c *RevisionsUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -16529,7 +16165,7 @@ func (c *TeamdrivesDeleteCall) Header() http.Header {
func (c *TeamdrivesDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -16649,7 +16285,7 @@ func (c *TeamdrivesGetCall) Header() http.Header {
func (c *TeamdrivesGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -16788,7 +16424,7 @@ func (c *TeamdrivesInsertCall) Header() http.Header {
func (c *TeamdrivesInsertCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -16960,7 +16596,7 @@ func (c *TeamdrivesListCall) Header() http.Header {
func (c *TeamdrivesListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -17137,7 +16773,7 @@ func (c *TeamdrivesUpdateCall) Header() http.Header {
func (c *TeamdrivesUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
diff --git a/vendor/google.golang.org/api/drive/v3/drive-api.json b/vendor/google.golang.org/api/drive/v3/drive-api.json
index 22d8eba96..1e4b42272 100644
--- a/vendor/google.golang.org/api/drive/v3/drive-api.json
+++ b/vendor/google.golang.org/api/drive/v3/drive-api.json
@@ -35,7 +35,7 @@
"description": "Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/drive/",
- "etag": "\"LYADMvHWYH2ul9D6m9UT9gT77YM/ixkLftF7SIEiqkkwNYopCpZnQlw\"",
+ "etag": "\"F5McR9eEaw0XRpaO3M9gbIugkbs/PorHXWkzCl6hdMxMR0HVf8TWRb0\"",
"icons": {
"x16": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_16.png",
"x32": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_32.png"
@@ -2096,7 +2096,7 @@
}
}
},
- "revision": "20190926",
+ "revision": "20191108",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"About": {
@@ -2378,7 +2378,7 @@
},
"author": {
"$ref": "User",
- "description": "The user who created the comment."
+ "description": "The author of the comment. The author's email address and permission ID will not be populated."
},
"content": {
"annotations": {
@@ -3256,7 +3256,7 @@
"type": "boolean"
},
"displayName": {
- "description": "A displayable name for users, groups or domains.",
+ "description": "The \"pretty\" name of the value of the permission. The following is a list of examples for each type of permission: \n- user - User's full name, as defined for their Google account, such as \"Joe Smith.\" \n- group - Name of the Google Group, such as \"The Company Administrators.\" \n- domain - String domain name, such as \"thecompany.com.\" \n- anyone - No displayName is present.",
"type": "string"
},
"domain": {
@@ -3273,7 +3273,7 @@
"type": "string"
},
"id": {
- "description": "The ID of this permission. This is a unique identifier for the grantee, and is published in User resources as permissionId.",
+ "description": "The ID of this permission. This is a unique identifier for the grantee, and is published in User resources as permissionId. IDs should be treated as opaque values.",
"type": "string"
},
"kind": {
@@ -3350,7 +3350,7 @@
"drive.permissions.create"
]
},
- "description": "The type of the grantee. Valid values are: \n- user \n- group \n- domain \n- anyone",
+ "description": "The type of the grantee. Valid values are: \n- user \n- group \n- domain \n- anyone When creating a permission, if type is user or group, you must provide an emailAddress for the user or group. When type is domain, you must provide a domain. There isn't extra information required for a anyone type.",
"type": "string"
}
},
@@ -3389,7 +3389,7 @@
},
"author": {
"$ref": "User",
- "description": "The user who created the reply."
+ "description": "The author of the reply. The author's email address and permission ID will not be populated."
},
"content": {
"annotations": {
diff --git a/vendor/google.golang.org/api/drive/v3/drive-gen.go b/vendor/google.golang.org/api/drive/v3/drive-gen.go
index caa6f176c..ddc567817 100644
--- a/vendor/google.golang.org/api/drive/v3/drive-gen.go
+++ b/vendor/google.golang.org/api/drive/v3/drive-gen.go
@@ -1,4 +1,4 @@
-// Copyright 2019 Google LLC.
+// Copyright 2020 Google LLC.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
@@ -56,6 +56,7 @@ import (
googleapi "google.golang.org/api/googleapi"
gensupport "google.golang.org/api/internal/gensupport"
option "google.golang.org/api/option"
+ internaloption "google.golang.org/api/option/internaloption"
htransport "google.golang.org/api/transport/http"
)
@@ -72,6 +73,7 @@ var _ = googleapi.Version
var _ = errors.New
var _ = strings.Replace
var _ = context.Canceled
+var _ = internaloption.WithDefaultEndpoint
const apiId = "drive:v3"
const apiName = "drive"
@@ -120,6 +122,7 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err
)
// NOTE: prepend, so we don't override user-specified scopes.
opts = append([]option.ClientOption{scopesOption}, opts...)
+ opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
client, endpoint, err := htransport.NewClient(ctx, opts...)
if err != nil {
return nil, err
@@ -648,7 +651,8 @@ type Comment struct {
// anchor properties.
Anchor string `json:"anchor,omitempty"`
- // Author: The user who created the comment.
+ // Author: The author of the comment. The author's email address and
+ // permission ID will not be populated.
Author *User `json:"author,omitempty"`
// Content: The plain text content of the comment. This field is used
@@ -1942,7 +1946,14 @@ type Permission struct {
// deleted. This field only pertains to user and group permissions.
Deleted bool `json:"deleted,omitempty"`
- // DisplayName: A displayable name for users, groups or domains.
+ // DisplayName: The "pretty" name of the value of the permission. The
+ // following is a list of examples for each type of permission:
+ // - user - User's full name, as defined for their Google account, such
+ // as "Joe Smith."
+ // - group - Name of the Google Group, such as "The Company
+ // Administrators."
+ // - domain - String domain name, such as "thecompany.com."
+ // - anyone - No displayName is present.
DisplayName string `json:"displayName,omitempty"`
// Domain: The domain to which this permission refers.
@@ -1961,7 +1972,8 @@ type Permission struct {
ExpirationTime string `json:"expirationTime,omitempty"`
// Id: The ID of this permission. This is a unique identifier for the
- // grantee, and is published in User resources as permissionId.
+ // grantee, and is published in User resources as permissionId. IDs
+ // should be treated as opaque values.
Id string `json:"id,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
@@ -1994,7 +2006,10 @@ type Permission struct {
// - user
// - group
// - domain
- // - anyone
+ // - anyone When creating a permission, if type is user or group, you
+ // must provide an emailAddress for the user or group. When type is
+ // domain, you must provide a domain. There isn't extra information
+ // required for a anyone type.
Type string `json:"type,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@@ -2164,7 +2179,8 @@ type Reply struct {
// - reopen
Action string `json:"action,omitempty"`
- // Author: The user who created the reply.
+ // Author: The author of the reply. The author's email address and
+ // permission ID will not be populated.
Author *User `json:"author,omitempty"`
// Content: The plain text content of the reply. This field is used for
@@ -2868,7 +2884,7 @@ func (c *AboutGetCall) Header() http.Header {
func (c *AboutGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -3033,7 +3049,7 @@ func (c *ChangesGetStartPageTokenCall) Header() http.Header {
func (c *ChangesGetStartPageTokenCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -3284,7 +3300,7 @@ func (c *ChangesListCall) Header() http.Header {
func (c *ChangesListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -3581,7 +3597,7 @@ func (c *ChangesWatchCall) Header() http.Header {
func (c *ChangesWatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -3789,7 +3805,7 @@ func (c *ChannelsStopCall) Header() http.Header {
func (c *ChannelsStopCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -3892,7 +3908,7 @@ func (c *CommentsCreateCall) Header() http.Header {
func (c *CommentsCreateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -4031,7 +4047,7 @@ func (c *CommentsDeleteCall) Header() http.Header {
func (c *CommentsDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -4161,7 +4177,7 @@ func (c *CommentsGetCall) Header() http.Header {
func (c *CommentsGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -4350,7 +4366,7 @@ func (c *CommentsListCall) Header() http.Header {
func (c *CommentsListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -4533,7 +4549,7 @@ func (c *CommentsUpdateCall) Header() http.Header {
func (c *CommentsUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -4679,7 +4695,7 @@ func (c *DrivesCreateCall) Header() http.Header {
func (c *DrivesCreateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -4813,7 +4829,7 @@ func (c *DrivesDeleteCall) Header() http.Header {
func (c *DrivesDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -4933,7 +4949,7 @@ func (c *DrivesGetCall) Header() http.Header {
func (c *DrivesGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -5071,7 +5087,7 @@ func (c *DrivesHideCall) Header() http.Header {
func (c *DrivesHideCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -5238,7 +5254,7 @@ func (c *DrivesListCall) Header() http.Header {
func (c *DrivesListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -5404,7 +5420,7 @@ func (c *DrivesUnhideCall) Header() http.Header {
func (c *DrivesUnhideCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -5543,7 +5559,7 @@ func (c *DrivesUpdateCall) Header() http.Header {
func (c *DrivesUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -5733,7 +5749,7 @@ func (c *FilesCopyCall) Header() http.Header {
func (c *FilesCopyCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -5994,7 +6010,7 @@ func (c *FilesCreateCall) Header() http.Header {
func (c *FilesCreateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -6221,7 +6237,7 @@ func (c *FilesDeleteCall) Header() http.Header {
func (c *FilesDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -6333,7 +6349,7 @@ func (c *FilesEmptyTrashCall) Header() http.Header {
func (c *FilesEmptyTrashCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -6433,7 +6449,7 @@ func (c *FilesExportCall) Header() http.Header {
func (c *FilesExportCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -6587,7 +6603,7 @@ func (c *FilesGenerateIdsCall) Header() http.Header {
func (c *FilesGenerateIdsCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -6760,7 +6776,7 @@ func (c *FilesGetCall) Header() http.Header {
func (c *FilesGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -7057,7 +7073,7 @@ func (c *FilesListCall) Header() http.Header {
func (c *FilesListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -7384,7 +7400,7 @@ func (c *FilesUpdateCall) Header() http.Header {
func (c *FilesUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -7636,7 +7652,7 @@ func (c *FilesWatchCall) Header() http.Header {
func (c *FilesWatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -7871,7 +7887,7 @@ func (c *PermissionsCreateCall) Header() http.Header {
func (c *PermissionsCreateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -8071,7 +8087,7 @@ func (c *PermissionsDeleteCall) Header() http.Header {
func (c *PermissionsDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -8238,7 +8254,7 @@ func (c *PermissionsGetCall) Header() http.Header {
func (c *PermissionsGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -8455,7 +8471,7 @@ func (c *PermissionsListCall) Header() http.Header {
func (c *PermissionsListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -8690,7 +8706,7 @@ func (c *PermissionsUpdateCall) Header() http.Header {
func (c *PermissionsUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -8869,7 +8885,7 @@ func (c *RepliesCreateCall) Header() http.Header {
func (c *RepliesCreateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -9018,7 +9034,7 @@ func (c *RepliesDeleteCall) Header() http.Header {
func (c *RepliesDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -9158,7 +9174,7 @@ func (c *RepliesGetCall) Header() http.Header {
func (c *RepliesGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -9349,7 +9365,7 @@ func (c *RepliesListCall) Header() http.Header {
func (c *RepliesListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -9537,7 +9553,7 @@ func (c *RepliesUpdateCall) Header() http.Header {
func (c *RepliesUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -9695,7 +9711,7 @@ func (c *RevisionsDeleteCall) Header() http.Header {
func (c *RevisionsDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -9827,7 +9843,7 @@ func (c *RevisionsGetCall) Header() http.Header {
func (c *RevisionsGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -10022,7 +10038,7 @@ func (c *RevisionsListCall) Header() http.Header {
func (c *RevisionsListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -10198,7 +10214,7 @@ func (c *RevisionsUpdateCall) Header() http.Header {
func (c *RevisionsUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -10345,7 +10361,7 @@ func (c *TeamdrivesCreateCall) Header() http.Header {
func (c *TeamdrivesCreateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -10478,7 +10494,7 @@ func (c *TeamdrivesDeleteCall) Header() http.Header {
func (c *TeamdrivesDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -10598,7 +10614,7 @@ func (c *TeamdrivesGetCall) Header() http.Header {
func (c *TeamdrivesGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -10775,7 +10791,7 @@ func (c *TeamdrivesListCall) Header() http.Header {
func (c *TeamdrivesListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -10952,7 +10968,7 @@ func (c *TeamdrivesUpdateCall) Header() http.Header {
func (c *TeamdrivesUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
diff --git a/vendor/google.golang.org/api/googleapi/googleapi.go b/vendor/google.golang.org/api/googleapi/googleapi.go
index 673cc664c..471ae259c 100644
--- a/vendor/google.golang.org/api/googleapi/googleapi.go
+++ b/vendor/google.golang.org/api/googleapi/googleapi.go
@@ -16,7 +16,7 @@ import (
"net/url"
"strings"
- "google.golang.org/api/googleapi/internal/uritemplates"
+ "google.golang.org/api/internal/third_party/uritemplates"
)
// ContentTyper is an interface for Readers which know (or would like
@@ -54,7 +54,7 @@ const (
// DefaultUploadChunkSize is the default chunk size to use for resumable
// uploads if not specified by the user.
- DefaultUploadChunkSize = 8 * 1024 * 1024
+ DefaultUploadChunkSize = 16 * 1024 * 1024
// MinUploadChunkSize is the minimum chunk size that can be used for
// resumable uploads. All user-specified chunk sizes must be multiple of
@@ -339,7 +339,7 @@ func ConvertVariant(v map[string]interface{}, dst interface{}) bool {
}
// A Field names a field to be retrieved with a partial response.
-// See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
+// https://cloud.google.com/storage/docs/json_api/v1/how-tos/performance
//
// Partial responses can dramatically reduce the amount of data that must be sent to your application.
// In order to request partial responses, you can specify the full list of fields
@@ -356,9 +356,6 @@ func ConvertVariant(v map[string]interface{}, dst interface{}) bool {
//
// svc.Events.List().Fields("nextPageToken", "items(id,updated)").Do()
//
-// More information about field formatting can be found here:
-// https://developers.google.com/+/api/#fields-syntax
-//
// Another way to find field names is through the Google API explorer:
// https://developers.google.com/apis-explorer/#p/
type Field string
diff --git a/vendor/google.golang.org/api/googleapi/internal/uritemplates/LICENSE b/vendor/google.golang.org/api/googleapi/internal/uritemplates/LICENSE
deleted file mode 100644
index de9c88cb6..000000000
--- a/vendor/google.golang.org/api/googleapi/internal/uritemplates/LICENSE
+++ /dev/null
@@ -1,18 +0,0 @@
-Copyright (c) 2013 Joshua Tacoma
-
-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/google.golang.org/api/googleapi/transport/apikey.go b/vendor/google.golang.org/api/googleapi/transport/apikey.go
index 4b6c0d527..61720ec2e 100644
--- a/vendor/google.golang.org/api/googleapi/transport/apikey.go
+++ b/vendor/google.golang.org/api/googleapi/transport/apikey.go
@@ -4,6 +4,10 @@
// Package transport contains HTTP transports used to make
// authenticated API requests.
+//
+// This package is DEPRECATED. Users should instead use,
+//
+// service, err := NewService(..., option.WithAPIKey(...))
package transport
import (
@@ -13,6 +17,8 @@ import (
// APIKey is an HTTP Transport which wraps an underlying transport and
// appends an API Key "key" parameter to the URL of outgoing requests.
+//
+// Deprecated: please use NewService(..., option.WithAPIKey(...)) instead.
type APIKey struct {
// Key is the API Key to set on requests.
Key string
diff --git a/vendor/google.golang.org/api/internal/conn_pool.go b/vendor/google.golang.org/api/internal/conn_pool.go
new file mode 100644
index 000000000..fedcce15b
--- /dev/null
+++ b/vendor/google.golang.org/api/internal/conn_pool.go
@@ -0,0 +1,30 @@
+// Copyright 2020 Google LLC.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package internal
+
+import (
+ "google.golang.org/grpc"
+)
+
+// ConnPool is a pool of grpc.ClientConns.
+type ConnPool interface {
+ // Conn returns a ClientConn from the pool.
+ //
+ // Conns aren't returned to the pool.
+ Conn() *grpc.ClientConn
+
+ // Num returns the number of connections in the pool.
+ //
+ // It will always return the same value.
+ Num() int
+
+ // Close closes every ClientConn in the pool.
+ //
+ // The error returned by Close may be a single error or multiple errors.
+ Close() error
+
+ // ConnPool implements grpc.ClientConnInterface to enable it to be used directly with generated proto stubs.
+ grpc.ClientConnInterface
+}
diff --git a/vendor/google.golang.org/api/internal/creds.go b/vendor/google.golang.org/api/internal/creds.go
index a6f9a2dea..75e9445e1 100644
--- a/vendor/google.golang.org/api/internal/creds.go
+++ b/vendor/google.golang.org/api/internal/creds.go
@@ -90,3 +90,16 @@ func selfSignedJWTTokenSource(data []byte, endpoint string, audiences []string)
}
return google.JWTAccessTokenSourceFromJSON(data, audience)
}
+
+// QuotaProjectFromCreds returns the quota project from the JSON blob in the provided credentials.
+//
+// NOTE(cbro): consider promoting this to a field on google.Credentials.
+func QuotaProjectFromCreds(cred *google.Credentials) string {
+ var v struct {
+ QuotaProject string `json:"quota_project_id"`
+ }
+ if err := json.Unmarshal(cred.JSON, &v); err != nil {
+ return ""
+ }
+ return v.QuotaProject
+}
diff --git a/vendor/google.golang.org/api/internal/gensupport/media.go b/vendor/google.golang.org/api/internal/gensupport/media.go
index 0ef96b3f1..0288cc304 100644
--- a/vendor/google.golang.org/api/internal/gensupport/media.go
+++ b/vendor/google.golang.org/api/internal/gensupport/media.go
@@ -290,6 +290,9 @@ func (mi *MediaInfo) UploadRequest(reqHeaders http.Header, body io.Reader) (newB
fb := readerFunc(body)
fm := readerFunc(media)
combined, ctype := CombineBodyMedia(body, "application/json", media, mi.mType)
+ toCleanup := []io.Closer{
+ combined,
+ }
if fb != nil && fm != nil {
getBody = func() (io.ReadCloser, error) {
rb := ioutil.NopCloser(fb())
@@ -299,10 +302,16 @@ func (mi *MediaInfo) UploadRequest(reqHeaders http.Header, body io.Reader) (newB
mimeBoundary = params["boundary"]
}
r, _ := combineBodyMedia(rb, "application/json", rm, mi.mType, mimeBoundary)
+ toCleanup = append(toCleanup, r)
return r, nil
}
}
- cleanup = func() { combined.Close() }
+ cleanup = func() {
+ for _, closer := range toCleanup {
+ _ = closer.Close()
+ }
+
+ }
reqHeaders.Set("Content-Type", ctype)
body = combined
}
diff --git a/vendor/google.golang.org/api/internal/pool.go b/vendor/google.golang.org/api/internal/pool.go
index 0680dd990..908579fff 100644
--- a/vendor/google.golang.org/api/internal/pool.go
+++ b/vendor/google.golang.org/api/internal/pool.go
@@ -10,6 +10,8 @@ import (
"google.golang.org/grpc/naming"
)
+// TODO: move to transport/grpc package
+
// PoolResolver provides a fixed list of addresses to load balance between
// and does not provide further updates.
type PoolResolver struct {
diff --git a/vendor/google.golang.org/api/internal/settings.go b/vendor/google.golang.org/api/internal/settings.go
index dacdbf14f..33ba7ac12 100644
--- a/vendor/google.golang.org/api/internal/settings.go
+++ b/vendor/google.golang.org/api/internal/settings.go
@@ -6,6 +6,7 @@
package internal
import (
+ "crypto/tls"
"errors"
"net/http"
@@ -17,19 +18,24 @@ import (
// DialSettings holds information needed to establish a connection with a
// Google API service.
type DialSettings struct {
- Endpoint string
- Scopes []string
- TokenSource oauth2.TokenSource
- Credentials *google.Credentials
- CredentialsFile string // if set, Token Source is ignored.
- CredentialsJSON []byte
- UserAgent string
- APIKey string
- Audiences []string
- HTTPClient *http.Client
- GRPCDialOpts []grpc.DialOption
- GRPCConn *grpc.ClientConn
- NoAuth bool
+ Endpoint string
+ DefaultEndpoint string
+ Scopes []string
+ TokenSource oauth2.TokenSource
+ Credentials *google.Credentials
+ CredentialsFile string // if set, Token Source is ignored.
+ CredentialsJSON []byte
+ UserAgent string
+ APIKey string
+ Audiences []string
+ HTTPClient *http.Client
+ GRPCDialOpts []grpc.DialOption
+ GRPCConn *grpc.ClientConn
+ GRPCConnPool ConnPool
+ GRPCConnPoolSize int
+ NoAuth bool
+ TelemetryDisabled bool
+ ClientCertSource func(*tls.CertificateRequestInfo) (*tls.Certificate, error)
// Google API system parameters. For more information please read:
// https://cloud.google.com/apis/docs/system-parameters
@@ -69,6 +75,12 @@ func (ds *DialSettings) Validate() error {
if nCreds > 1 && !(nCreds == 2 && ds.TokenSource != nil && ds.CredentialsFile != "") {
return errors.New("multiple credential options provided")
}
+ if ds.GRPCConn != nil && ds.GRPCConnPool != nil {
+ return errors.New("WithGRPCConn is incompatible with WithConnPool")
+ }
+ if ds.HTTPClient != nil && ds.GRPCConnPool != nil {
+ return errors.New("WithHTTPClient is incompatible with WithConnPool")
+ }
if ds.HTTPClient != nil && ds.GRPCConn != nil {
return errors.New("WithHTTPClient is incompatible with WithGRPCConn")
}
@@ -81,6 +93,12 @@ func (ds *DialSettings) Validate() error {
if ds.HTTPClient != nil && ds.RequestReason != "" {
return errors.New("WithHTTPClient is incompatible with RequestReason")
}
+ if ds.HTTPClient != nil && ds.ClientCertSource != nil {
+ return errors.New("WithHTTPClient is incompatible with WithClientCertSource")
+ }
+ if ds.ClientCertSource != nil && (ds.GRPCConn != nil || ds.GRPCConnPool != nil || ds.GRPCConnPoolSize != 0 || ds.GRPCDialOpts != nil) {
+ return errors.New("WithClientCertSource is currently only supported for HTTP. gRPC settings are incompatible")
+ }
return nil
}
diff --git a/vendor/google.golang.org/api/internal/third_party/uritemplates/LICENSE b/vendor/google.golang.org/api/internal/third_party/uritemplates/LICENSE
new file mode 100644
index 000000000..7109c6ef9
--- /dev/null
+++ b/vendor/google.golang.org/api/internal/third_party/uritemplates/LICENSE
@@ -0,0 +1,27 @@
+Copyright (c) 2013 Joshua Tacoma. 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/api/internal/third_party/uritemplates/METADATA b/vendor/google.golang.org/api/internal/third_party/uritemplates/METADATA
new file mode 100644
index 000000000..c7f86fcd5
--- /dev/null
+++ b/vendor/google.golang.org/api/internal/third_party/uritemplates/METADATA
@@ -0,0 +1,14 @@
+name: "uritemplates"
+description:
+ "Package uritemplates is a level 4 implementation of RFC 6570 (URI "
+ "Template, http://tools.ietf.org/html/rfc6570)."
+
+third_party {
+ url {
+ type: GIT
+ value: "https://github.com/jtacoma/uritemplates"
+ }
+ version: "0.1"
+ last_upgrade_date { year: 2014 month: 8 day: 18 }
+ license_type: NOTICE
+}
diff --git a/vendor/google.golang.org/api/googleapi/internal/uritemplates/uritemplates.go b/vendor/google.golang.org/api/internal/third_party/uritemplates/uritemplates.go
similarity index 100%
rename from vendor/google.golang.org/api/googleapi/internal/uritemplates/uritemplates.go
rename to vendor/google.golang.org/api/internal/third_party/uritemplates/uritemplates.go
diff --git a/vendor/google.golang.org/api/googleapi/internal/uritemplates/utils.go b/vendor/google.golang.org/api/internal/third_party/uritemplates/utils.go
similarity index 100%
rename from vendor/google.golang.org/api/googleapi/internal/uritemplates/utils.go
rename to vendor/google.golang.org/api/internal/third_party/uritemplates/utils.go
diff --git a/vendor/google.golang.org/api/option/internaloption/internaloption.go b/vendor/google.golang.org/api/option/internaloption/internaloption.go
new file mode 100644
index 000000000..48121e42f
--- /dev/null
+++ b/vendor/google.golang.org/api/option/internaloption/internaloption.go
@@ -0,0 +1,26 @@
+// Copyright 2020 Google LLC.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// Package internaloption contains options used internally by Google client code.
+package internaloption
+
+import (
+ "google.golang.org/api/internal"
+ "google.golang.org/api/option"
+)
+
+type defaultEndpointOption string
+
+func (o defaultEndpointOption) Apply(settings *internal.DialSettings) {
+ settings.DefaultEndpoint = string(o)
+}
+
+// WithDefaultEndpoint is an option that indicates the default endpoint.
+//
+// It should only be used internally by generated clients.
+//
+// This is similar to WithEndpoint, but allows us to determine whether the user has overriden the default endpoint.
+func WithDefaultEndpoint(url string) option.ClientOption {
+ return defaultEndpointOption(url)
+}
diff --git a/vendor/google.golang.org/api/option/option.go b/vendor/google.golang.org/api/option/option.go
index 2326c9a8e..5fd1e4cc7 100644
--- a/vendor/google.golang.org/api/option/option.go
+++ b/vendor/google.golang.org/api/option/option.go
@@ -6,6 +6,7 @@
package option
import (
+ "crypto/tls"
"net/http"
"golang.org/x/oauth2"
@@ -114,7 +115,7 @@ func (w withHTTPClient) Apply(o *internal.DialSettings) {
}
// WithGRPCConn returns a ClientOption that specifies the gRPC client
-// connection to use as the basis of communications. This option many only be
+// connection to use as the basis of communications. This option may only be
// used with services that support gRPC as their communication transport. When
// used, the WithGRPCConn option takes precedent over all other supplied
// options.
@@ -150,8 +151,7 @@ func WithGRPCConnectionPool(size int) ClientOption {
type withGRPCConnectionPool int
func (w withGRPCConnectionPool) Apply(o *internal.DialSettings) {
- balancer := grpc.RoundRobin(internal.NewPoolResolver(int(w), o))
- o.GRPCDialOpts = append(o.GRPCDialOpts, grpc.WithBalancer(balancer))
+ o.GRPCConnPoolSize = int(w)
}
// WithAPIKey returns a ClientOption that specifies an API key to be used
@@ -223,3 +223,48 @@ type withRequestReason string
func (w withRequestReason) Apply(o *internal.DialSettings) {
o.RequestReason = string(w)
}
+
+// WithTelemetryDisabled returns a ClientOption that disables default telemetry (OpenCensus)
+// settings on gRPC and HTTP clients.
+// An example reason would be to bind custom telemetry that overrides the defaults.
+func WithTelemetryDisabled() ClientOption {
+ return withTelemetryDisabled{}
+}
+
+type withTelemetryDisabled struct{}
+
+func (w withTelemetryDisabled) Apply(o *internal.DialSettings) {
+ o.TelemetryDisabled = true
+}
+
+// ClientCertSource is a function that returns a TLS client certificate to be used
+// when opening TLS connections.
+//
+// It follows the same semantics as crypto/tls.Config.GetClientCertificate.
+//
+// This is an EXPERIMENTAL API and may be changed or removed in the future.
+type ClientCertSource = func(*tls.CertificateRequestInfo) (*tls.Certificate, error)
+
+// WithClientCertSource returns a ClientOption that specifies a
+// callback function for obtaining a TLS client certificate.
+//
+// This option is used for supporting mTLS authentication, where the
+// server validates the client certifcate when establishing a connection.
+//
+// The callback function will be invoked whenever the server requests a
+// certificate from the client. Implementations of the callback function
+// should try to ensure that a valid certificate can be repeatedly returned
+// on demand for the entire life cycle of the transport client. If a nil
+// Certificate is returned (i.e. no Certificate can be obtained), an error
+// should be returned.
+//
+// This is an EXPERIMENTAL API and may be changed or removed in the future.
+func WithClientCertSource(s ClientCertSource) ClientOption {
+ return withClientCertSource{s}
+}
+
+type withClientCertSource struct{ s ClientCertSource }
+
+func (w withClientCertSource) Apply(o *internal.DialSettings) {
+ o.ClientCertSource = w.s
+}
diff --git a/vendor/google.golang.org/api/storage/v1/storage-api.json b/vendor/google.golang.org/api/storage/v1/storage-api.json
index 6dcb56dcf..161f09eee 100644
--- a/vendor/google.golang.org/api/storage/v1/storage-api.json
+++ b/vendor/google.golang.org/api/storage/v1/storage-api.json
@@ -21,12 +21,12 @@
}
},
"basePath": "/storage/v1/",
- "baseUrl": "https://www.googleapis.com/storage/v1/",
+ "baseUrl": "https://storage.googleapis.com/storage/v1/",
"batchPath": "batch/storage/v1",
"description": "Stores and retrieves potentially large, immutable data objects.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/storage/docs/json_api/",
- "etag": "\"F5McR9eEaw0XRpaO3M9gbIugkbs/bQWWH-5yykbmINHZHPMOypW2I3M\"",
+ "etag": "\"u9GIe6H63LSGq-9_t39K2Zx_EAc/1nXB4dbk0lw3Xe_A6xBKVeN3Y7U\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/cloud_storage-16.png",
"x32": "https://www.google.com/images/icons/product/cloud_storage-32.png"
@@ -3204,8 +3204,8 @@
}
}
},
- "revision": "20191011",
- "rootUrl": "https://www.googleapis.com/",
+ "revision": "20191127",
+ "rootUrl": "https://storage.googleapis.com/",
"schemas": {
"Bucket": {
"description": "A bucket.",
@@ -3297,7 +3297,7 @@
"description": "The bucket's IAM configuration.",
"properties": {
"bucketPolicyOnly": {
- "description": "The bucket's Bucket Policy Only configuration.",
+ "description": "The bucket's uniform bucket-level access configuration. The feature was formerly known as Bucket Policy Only. For backward compatibility, this field will be populated with identical information as the uniformBucketLevelAccess field. We recommend using the uniformBucketLevelAccess field to enable and disable the feature.",
"properties": {
"enabled": {
"description": "If set, access is controlled only by bucket-level or above IAM policies.",
@@ -3389,7 +3389,7 @@
"type": "string"
},
"matchesStorageClass": {
- "description": "Objects having any of the storage classes specified by this condition will be matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, STANDARD, and DURABLE_REDUCED_AVAILABILITY.",
+ "description": "Objects having any of the storage classes specified by this condition will be matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE, STANDARD, and DURABLE_REDUCED_AVAILABILITY.",
"items": {
"type": "string"
},
@@ -3491,7 +3491,7 @@
"type": "string"
},
"storageClass": {
- "description": "The bucket's default storage class, used whenever no storageClass is specified for a newly-created object. This defines how objects in the bucket are stored and determines the SLA and the cost of storage. Values include MULTI_REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, and DURABLE_REDUCED_AVAILABILITY. If this value is not specified when the bucket is created, it will default to STANDARD. For more information, see storage classes.",
+ "description": "The bucket's default storage class, used whenever no storageClass is specified for a newly-created object. This defines how objects in the bucket are stored and determines the SLA and the cost of storage. Values include MULTI_REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, ARCHIVE, and DURABLE_REDUCED_AVAILABILITY. If this value is not specified when the bucket is created, it will default to STANDARD. For more information, see storage classes.",
"type": "string"
},
"timeCreated": {
diff --git a/vendor/google.golang.org/api/storage/v1/storage-gen.go b/vendor/google.golang.org/api/storage/v1/storage-gen.go
index 3490725b0..23be4135e 100644
--- a/vendor/google.golang.org/api/storage/v1/storage-gen.go
+++ b/vendor/google.golang.org/api/storage/v1/storage-gen.go
@@ -1,4 +1,4 @@
-// Copyright 2019 Google LLC.
+// Copyright 2020 Google LLC.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
@@ -58,6 +58,7 @@ import (
googleapi "google.golang.org/api/googleapi"
gensupport "google.golang.org/api/internal/gensupport"
option "google.golang.org/api/option"
+ internaloption "google.golang.org/api/option/internaloption"
htransport "google.golang.org/api/transport/http"
)
@@ -74,11 +75,12 @@ var _ = googleapi.Version
var _ = errors.New
var _ = strings.Replace
var _ = context.Canceled
+var _ = internaloption.WithDefaultEndpoint
const apiId = "storage:v1"
const apiName = "storage"
const apiVersion = "v1"
-const basePath = "https://www.googleapis.com/storage/v1/"
+const basePath = "https://storage.googleapis.com/storage/v1/"
// OAuth2 scopes used by this API.
const (
@@ -109,6 +111,7 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err
)
// NOTE: prepend, so we don't override user-specified scopes.
opts = append([]option.ClientOption{scopesOption}, opts...)
+ opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
client, endpoint, err := htransport.NewClient(ctx, opts...)
if err != nil {
return nil, err
@@ -371,9 +374,9 @@ type Bucket struct {
// storageClass is specified for a newly-created object. This defines
// how objects in the bucket are stored and determines the SLA and the
// cost of storage. Values include MULTI_REGIONAL, REGIONAL, STANDARD,
- // NEARLINE, COLDLINE, and DURABLE_REDUCED_AVAILABILITY. If this value
- // is not specified when the bucket is created, it will default to
- // STANDARD. For more information, see storage classes.
+ // NEARLINE, COLDLINE, ARCHIVE, and DURABLE_REDUCED_AVAILABILITY. If
+ // this value is not specified when the bucket is created, it will
+ // default to STANDARD. For more information, see storage classes.
StorageClass string `json:"storageClass,omitempty"`
// TimeCreated: The creation time of the bucket in RFC 3339 format.
@@ -522,7 +525,12 @@ func (s *BucketEncryption) MarshalJSON() ([]byte, error) {
// BucketIamConfiguration: The bucket's IAM configuration.
type BucketIamConfiguration struct {
- // BucketPolicyOnly: The bucket's Bucket Policy Only configuration.
+ // BucketPolicyOnly: The bucket's uniform bucket-level access
+ // configuration. The feature was formerly known as Bucket Policy Only.
+ // For backward compatibility, this field will be populated with
+ // identical information as the uniformBucketLevelAccess field. We
+ // recommend using the uniformBucketLevelAccess field to enable and
+ // disable the feature.
BucketPolicyOnly *BucketIamConfigurationBucketPolicyOnly `json:"bucketPolicyOnly,omitempty"`
// UniformBucketLevelAccess: The bucket's uniform bucket-level access
@@ -553,8 +561,12 @@ func (s *BucketIamConfiguration) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
-// BucketIamConfigurationBucketPolicyOnly: The bucket's Bucket Policy
-// Only configuration.
+// BucketIamConfigurationBucketPolicyOnly: The bucket's uniform
+// bucket-level access configuration. The feature was formerly known as
+// Bucket Policy Only. For backward compatibility, this field will be
+// populated with identical information as the uniformBucketLevelAccess
+// field. We recommend using the uniformBucketLevelAccess field to
+// enable and disable the feature.
type BucketIamConfigurationBucketPolicyOnly struct {
// Enabled: If set, access is controlled only by bucket-level or above
// IAM policies.
@@ -748,7 +760,7 @@ type BucketLifecycleRuleCondition struct {
// MatchesStorageClass: Objects having any of the storage classes
// specified by this condition will be matched. Values include
- // MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, STANDARD, and
+ // MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE, STANDARD, and
// DURABLE_REDUCED_AVAILABILITY.
MatchesStorageClass []string `json:"matchesStorageClass,omitempty"`
@@ -2392,7 +2404,7 @@ func (c *BucketAccessControlsDeleteCall) Header() http.Header {
func (c *BucketAccessControlsDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -2540,7 +2552,7 @@ func (c *BucketAccessControlsGetCall) Header() http.Header {
func (c *BucketAccessControlsGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -2707,7 +2719,7 @@ func (c *BucketAccessControlsInsertCall) Header() http.Header {
func (c *BucketAccessControlsInsertCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -2880,7 +2892,7 @@ func (c *BucketAccessControlsListCall) Header() http.Header {
func (c *BucketAccessControlsListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -3041,7 +3053,7 @@ func (c *BucketAccessControlsPatchCall) Header() http.Header {
func (c *BucketAccessControlsPatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -3215,7 +3227,7 @@ func (c *BucketAccessControlsUpdateCall) Header() http.Header {
func (c *BucketAccessControlsUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -3401,7 +3413,7 @@ func (c *BucketsDeleteCall) Header() http.Header {
func (c *BucketsDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -3580,7 +3592,7 @@ func (c *BucketsGetCall) Header() http.Header {
func (c *BucketsGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -3786,7 +3798,7 @@ func (c *BucketsGetIamPolicyCall) Header() http.Header {
func (c *BucketsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -4003,7 +4015,7 @@ func (c *BucketsInsertCall) Header() http.Header {
func (c *BucketsInsertCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -4260,7 +4272,7 @@ func (c *BucketsListCall) Header() http.Header {
func (c *BucketsListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -4470,7 +4482,7 @@ func (c *BucketsLockRetentionPolicyCall) Header() http.Header {
func (c *BucketsLockRetentionPolicyCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -4705,7 +4717,7 @@ func (c *BucketsPatchCall) Header() http.Header {
func (c *BucketsPatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -4934,7 +4946,7 @@ func (c *BucketsSetIamPolicyCall) Header() http.Header {
func (c *BucketsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -5109,7 +5121,7 @@ func (c *BucketsTestIamPermissionsCall) Header() http.Header {
func (c *BucketsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -5349,7 +5361,7 @@ func (c *BucketsUpdateCall) Header() http.Header {
func (c *BucketsUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -5561,7 +5573,7 @@ func (c *ChannelsStopCall) Header() http.Header {
func (c *ChannelsStopCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -5678,7 +5690,7 @@ func (c *DefaultObjectAccessControlsDeleteCall) Header() http.Header {
func (c *DefaultObjectAccessControlsDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -5826,7 +5838,7 @@ func (c *DefaultObjectAccessControlsGetCall) Header() http.Header {
func (c *DefaultObjectAccessControlsGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -5994,7 +6006,7 @@ func (c *DefaultObjectAccessControlsInsertCall) Header() http.Header {
func (c *DefaultObjectAccessControlsInsertCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -6184,7 +6196,7 @@ func (c *DefaultObjectAccessControlsListCall) Header() http.Header {
func (c *DefaultObjectAccessControlsListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -6357,7 +6369,7 @@ func (c *DefaultObjectAccessControlsPatchCall) Header() http.Header {
func (c *DefaultObjectAccessControlsPatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -6531,7 +6543,7 @@ func (c *DefaultObjectAccessControlsUpdateCall) Header() http.Header {
func (c *DefaultObjectAccessControlsUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -6703,7 +6715,7 @@ func (c *NotificationsDeleteCall) Header() http.Header {
func (c *NotificationsDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -6851,7 +6863,7 @@ func (c *NotificationsGetCall) Header() http.Header {
func (c *NotificationsGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -7021,7 +7033,7 @@ func (c *NotificationsInsertCall) Header() http.Header {
func (c *NotificationsInsertCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -7196,7 +7208,7 @@ func (c *NotificationsListCall) Header() http.Header {
func (c *NotificationsListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -7369,7 +7381,7 @@ func (c *ObjectAccessControlsDeleteCall) Header() http.Header {
func (c *ObjectAccessControlsDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -7541,7 +7553,7 @@ func (c *ObjectAccessControlsGetCall) Header() http.Header {
func (c *ObjectAccessControlsGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -7732,7 +7744,7 @@ func (c *ObjectAccessControlsInsertCall) Header() http.Header {
func (c *ObjectAccessControlsInsertCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -7929,7 +7941,7 @@ func (c *ObjectAccessControlsListCall) Header() http.Header {
func (c *ObjectAccessControlsListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -8114,7 +8126,7 @@ func (c *ObjectAccessControlsPatchCall) Header() http.Header {
func (c *ObjectAccessControlsPatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -8312,7 +8324,7 @@ func (c *ObjectAccessControlsUpdateCall) Header() http.Header {
func (c *ObjectAccessControlsUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -8549,7 +8561,7 @@ func (c *ObjectsComposeCall) Header() http.Header {
func (c *ObjectsComposeCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -8881,7 +8893,7 @@ func (c *ObjectsCopyCall) Header() http.Header {
func (c *ObjectsCopyCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -9204,7 +9216,7 @@ func (c *ObjectsDeleteCall) Header() http.Header {
func (c *ObjectsDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -9437,7 +9449,7 @@ func (c *ObjectsGetCall) Header() http.Header {
func (c *ObjectsGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -9687,7 +9699,7 @@ func (c *ObjectsGetIamPolicyCall) Header() http.Header {
func (c *ObjectsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -10004,7 +10016,7 @@ func (c *ObjectsInsertCall) Header() http.Header {
func (c *ObjectsInsertCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -10359,7 +10371,7 @@ func (c *ObjectsListCall) Header() http.Header {
func (c *ObjectsListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -10666,7 +10678,7 @@ func (c *ObjectsPatchCall) Header() http.Header {
func (c *ObjectsPatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -11058,7 +11070,7 @@ func (c *ObjectsRewriteCall) Header() http.Header {
func (c *ObjectsRewriteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -11361,7 +11373,7 @@ func (c *ObjectsSetIamPolicyCall) Header() http.Header {
func (c *ObjectsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -11561,7 +11573,7 @@ func (c *ObjectsTestIamPermissionsCall) Header() http.Header {
func (c *ObjectsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -11822,7 +11834,7 @@ func (c *ObjectsUpdateCall) Header() http.Header {
func (c *ObjectsUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -12122,7 +12134,7 @@ func (c *ObjectsWatchAllCall) Header() http.Header {
func (c *ObjectsWatchAllCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -12328,7 +12340,7 @@ func (c *ProjectsHmacKeysCreateCall) Header() http.Header {
func (c *ProjectsHmacKeysCreateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -12478,7 +12490,7 @@ func (c *ProjectsHmacKeysDeleteCall) Header() http.Header {
func (c *ProjectsHmacKeysDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -12613,7 +12625,7 @@ func (c *ProjectsHmacKeysGetCall) Header() http.Header {
func (c *ProjectsHmacKeysGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -12813,7 +12825,7 @@ func (c *ProjectsHmacKeysListCall) Header() http.Header {
func (c *ProjectsHmacKeysListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -13008,7 +13020,7 @@ func (c *ProjectsHmacKeysUpdateCall) Header() http.Header {
func (c *ProjectsHmacKeysUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
@@ -13185,7 +13197,7 @@ func (c *ProjectsServiceAccountGetCall) Header() http.Header {
func (c *ProjectsServiceAccountGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
- reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
+ reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200223")
for k, v := range c.header_ {
reqHeaders[k] = v
}
diff --git a/vendor/google.golang.org/api/transport/cert/default_cert.go b/vendor/google.golang.org/api/transport/cert/default_cert.go
new file mode 100644
index 000000000..c03af65fd
--- /dev/null
+++ b/vendor/google.golang.org/api/transport/cert/default_cert.go
@@ -0,0 +1,110 @@
+// Copyright 2020 Google LLC.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// Package cert contains certificate tools for Google API clients.
+// This package is intended to be used with crypto/tls.Config.GetClientCertificate.
+//
+// The certificates can be used to satisfy Google's Endpoint Validation.
+// See https://cloud.google.com/endpoint-verification/docs/overview
+//
+// This package is not intended for use by end developers. Use the
+// google.golang.org/api/option package to configure API clients.
+package cert
+
+import (
+ "crypto/tls"
+ "encoding/json"
+ "errors"
+ "fmt"
+ "io/ioutil"
+ "os"
+ "os/exec"
+ "os/user"
+ "path/filepath"
+ "sync"
+)
+
+const (
+ metadataPath = ".secureConnect"
+ metadataFile = "context_aware_metadata.json"
+)
+
+var (
+ defaultSourceOnce sync.Once
+ defaultSource Source
+ defaultSourceErr error
+)
+
+// Source is a function that can be passed into crypto/tls.Config.GetClientCertificate.
+type Source func(*tls.CertificateRequestInfo) (*tls.Certificate, error)
+
+// DefaultSource returns a certificate source that execs the command specified
+// in the file at ~/.secureConnect/context_aware_metadata.json
+//
+// If that file does not exist, a nil source is returned.
+func DefaultSource() (Source, error) {
+ defaultSourceOnce.Do(func() {
+ defaultSource, defaultSourceErr = newSecureConnectSource()
+ })
+ return defaultSource, defaultSourceErr
+}
+
+type secureConnectSource struct {
+ metadata secureConnectMetadata
+}
+
+type secureConnectMetadata struct {
+ Cmd []string `json:"cert_provider_command"`
+}
+
+// newSecureConnectSource creates a secureConnectSource by reading the well-known file.
+func newSecureConnectSource() (Source, error) {
+ user, err := user.Current()
+ if err != nil {
+ // Ignore.
+ return nil, nil
+ }
+ filename := filepath.Join(user.HomeDir, metadataPath, metadataFile)
+ file, err := ioutil.ReadFile(filename)
+ if os.IsNotExist(err) {
+ // Ignore.
+ return nil, nil
+ }
+ if err != nil {
+ return nil, err
+ }
+
+ var metadata secureConnectMetadata
+ if err := json.Unmarshal(file, &metadata); err != nil {
+ return nil, fmt.Errorf("cert: could not parse JSON in %q: %v", filename, err)
+ }
+ if err := validateMetadata(metadata); err != nil {
+ return nil, fmt.Errorf("cert: invalid config in %q: %v", filename, err)
+ }
+ return (&secureConnectSource{
+ metadata: metadata,
+ }).getClientCertificate, nil
+}
+
+func validateMetadata(metadata secureConnectMetadata) error {
+ if len(metadata.Cmd) == 0 {
+ return errors.New("empty cert_provider_command")
+ }
+ return nil
+}
+
+func (s *secureConnectSource) getClientCertificate(info *tls.CertificateRequestInfo) (*tls.Certificate, error) {
+ // TODO(cbro): consider caching valid certificates rather than exec'ing every time.
+ command := s.metadata.Cmd
+ data, err := exec.Command(command[0], command[1:]...).Output()
+ if err != nil {
+ // TODO(cbro): read stderr for error message? Might contain sensitive info.
+ return nil, err
+ }
+ cert, err := tls.X509KeyPair(data, data)
+ if err != nil {
+ return nil, err
+ }
+ return &cert, nil
+}
diff --git a/vendor/google.golang.org/api/transport/http/dial.go b/vendor/google.golang.org/api/transport/http/dial.go
index 4a6af5506..d0dcc75c1 100644
--- a/vendor/google.golang.org/api/transport/http/dial.go
+++ b/vendor/google.golang.org/api/transport/http/dial.go
@@ -9,14 +9,18 @@ package http
import (
"context"
+ "crypto/tls"
"errors"
"net/http"
+ "net/url"
+ "strings"
"go.opencensus.io/plugin/ochttp"
"golang.org/x/oauth2"
"google.golang.org/api/googleapi/transport"
"google.golang.org/api/internal"
"google.golang.org/api/option"
+ "google.golang.org/api/transport/cert"
"google.golang.org/api/transport/http/internal/propagation"
)
@@ -28,15 +32,23 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*http.Client,
if err != nil {
return nil, "", err
}
+ clientCertSource, err := getClientCertificateSource(settings)
+ if err != nil {
+ return nil, "", err
+ }
+ endpoint, err := getEndpoint(settings, clientCertSource)
+ if err != nil {
+ return nil, "", err
+ }
// TODO(cbro): consider injecting the User-Agent even if an explicit HTTP client is provided?
if settings.HTTPClient != nil {
- return settings.HTTPClient, settings.Endpoint, nil
+ return settings.HTTPClient, endpoint, nil
}
- trans, err := newTransport(ctx, defaultBaseTransport(ctx), settings)
+ trans, err := newTransport(ctx, defaultBaseTransport(ctx, clientCertSource), settings)
if err != nil {
return nil, "", err
}
- return &http.Client{Transport: trans}, settings.Endpoint, nil
+ return &http.Client{Transport: trans}, endpoint, nil
}
// NewTransport creates an http.RoundTripper for use communicating with a Google
@@ -53,14 +65,14 @@ func NewTransport(ctx context.Context, base http.RoundTripper, opts ...option.Cl
}
func newTransport(ctx context.Context, base http.RoundTripper, settings *internal.DialSettings) (http.RoundTripper, error) {
- trans := base
- trans = parameterTransport{
- base: trans,
+ paramTransport := &parameterTransport{
+ base: base,
userAgent: settings.UserAgent,
quotaProject: settings.QuotaProject,
requestReason: settings.RequestReason,
}
- trans = addOCTransport(trans)
+ var trans http.RoundTripper = paramTransport
+ trans = addOCTransport(trans, settings)
switch {
case settings.NoAuth:
// Do nothing.
@@ -74,6 +86,9 @@ func newTransport(ctx context.Context, base http.RoundTripper, settings *interna
if err != nil {
return nil, err
}
+ if paramTransport.quotaProject == "" {
+ paramTransport.quotaProject = internal.QuotaProjectFromCreds(creds)
+ }
trans = &oauth2.Transport{
Base: trans,
Source: creds.TokenSource,
@@ -104,21 +119,20 @@ type parameterTransport struct {
base http.RoundTripper
}
-func (t parameterTransport) RoundTrip(req *http.Request) (*http.Response, error) {
+func (t *parameterTransport) RoundTrip(req *http.Request) (*http.Response, error) {
rt := t.base
if rt == nil {
return nil, errors.New("transport: no Transport specified")
}
- if t.userAgent == "" {
- return rt.RoundTrip(req)
- }
newReq := *req
newReq.Header = make(http.Header)
for k, vv := range req.Header {
newReq.Header[k] = vv
}
- // TODO(cbro): append to existing User-Agent header?
- newReq.Header.Set("User-Agent", t.userAgent)
+ if t.userAgent != "" {
+ // TODO(cbro): append to existing User-Agent header?
+ newReq.Header.Set("User-Agent", t.userAgent)
+ }
// Attach system parameters into the header
if t.quotaProject != "" {
@@ -135,17 +149,122 @@ func (t parameterTransport) RoundTrip(req *http.Request) (*http.Response, error)
var appengineUrlfetchHook func(context.Context) http.RoundTripper
// defaultBaseTransport returns the base HTTP transport.
-// On App Engine, this is urlfetch.Transport, otherwise it's http.DefaultTransport.
-func defaultBaseTransport(ctx context.Context) http.RoundTripper {
+// On App Engine, this is urlfetch.Transport.
+// If TLSCertificate is available, return a custom Transport with TLSClientConfig.
+// Otherwise, return http.DefaultTransport.
+func defaultBaseTransport(ctx context.Context, clientCertSource cert.Source) http.RoundTripper {
if appengineUrlfetchHook != nil {
return appengineUrlfetchHook(ctx)
}
+
+ if clientCertSource != nil {
+ // TODO (cbro): copy default transport settings from http.DefaultTransport
+ return &http.Transport{
+ TLSClientConfig: &tls.Config{
+ GetClientCertificate: clientCertSource,
+ },
+ }
+ }
+
return http.DefaultTransport
}
-func addOCTransport(trans http.RoundTripper) http.RoundTripper {
+func addOCTransport(trans http.RoundTripper, settings *internal.DialSettings) http.RoundTripper {
+ if settings.TelemetryDisabled {
+ return trans
+ }
return &ochttp.Transport{
Base: trans,
Propagation: &propagation.HTTPFormat{},
}
}
+
+// getClientCertificateSource returns a default client certificate source, if
+// not provided by the user.
+//
+// A nil default source can be returned if the source does not exist. Any exceptions
+// encountered while initializing the default source will be reported as client
+// error (ex. corrupt metadata file).
+//
+// The overall logic is as follows:
+// 1. If both endpoint override and client certificate are specified, use them as is.
+// 2. If user does not specify client certificate, we will attempt to use default
+// client certificate.
+// 3. If user does not specify endpoint override, we will use defaultMtlsEndpoint if
+// client certificate is available and defaultEndpoint otherwise.
+//
+// Implications of the above logic:
+// 1. If the user specifies a non-mTLS endpoint override but client certificate is
+// available, we will pass along the cert anyway and let the server decide what to do.
+// 2. If the user specifies an mTLS endpoint override but client certificate is not
+// available, we will not fail-fast, but let backend throw error when connecting.
+//
+// We would like to avoid introducing client-side logic that parses whether the
+// endpoint override is an mTLS url, since the url pattern may change at anytime.
+func getClientCertificateSource(settings *internal.DialSettings) (cert.Source, error) {
+ if settings.ClientCertSource != nil {
+ return settings.ClientCertSource, nil
+ }
+ return cert.DefaultSource()
+}
+
+// getEndpoint returns the endpoint for the service, taking into account the
+// user-provided endpoint override "settings.Endpoint"
+//
+// If no endpoint override is specified, we will return the default endpoint (or
+// the default mTLS endpoint if a client certificate is available).
+//
+// If the endpoint override is an address (host:port) rather than full base
+// URL (ex. https://...), then the user-provided address will be merged into
+// the default endpoint. For example, WithEndpoint("myhost:8000") and
+// WithDefaultEndpoint("https://foo.com/bar/baz") will return "https://myhost:8080/bar/baz"
+func getEndpoint(settings *internal.DialSettings, clientCertSource cert.Source) (string, error) {
+ if settings.Endpoint == "" {
+ if clientCertSource != nil {
+ return generateDefaultMtlsEndpoint(settings.DefaultEndpoint), nil
+ }
+ return settings.DefaultEndpoint, nil
+ }
+ if strings.Contains(settings.Endpoint, "://") {
+ // User passed in a full URL path, use it verbatim.
+ return settings.Endpoint, nil
+ }
+ if settings.DefaultEndpoint == "" {
+ return "", errors.New("WithEndpoint requires a full URL path")
+ }
+
+ // Assume user-provided endpoint is host[:port], merge it with the default endpoint.
+ return mergeEndpoints(settings.DefaultEndpoint, settings.Endpoint)
+}
+
+func mergeEndpoints(base, newHost string) (string, error) {
+ u, err := url.Parse(base)
+ if err != nil {
+ return "", err
+ }
+ u.Host = newHost
+ return u.String(), nil
+}
+
+// generateDefaultMtlsEndpoint attempts to derive the mTLS version of the
+// defaultEndpoint via regex, and returns defaultEndpoint if unsuccessful.
+//
+// We need to applying the following 2 transformations:
+// 1. pubsub.googleapis.com to pubsub.mtls.googleapis.com
+// 2. pubsub.sandbox.googleapis.com to pubsub.mtls.sandbox.googleapis.com
+//
+// TODO(andyzhao): In the future, the mTLS endpoint will be read from the Discovery Document
+// and passed in as defaultMtlsEndpoint instead of generated from defaultEndpoint,
+// and this function will be removed.
+func generateDefaultMtlsEndpoint(defaultEndpoint string) string {
+ var domains = []string{
+ ".sandbox.googleapis.com", // must come first because .googleapis.com is a substring
+ ".googleapis.com",
+ }
+ for _, domain := range domains {
+ if strings.Contains(defaultEndpoint, domain) {
+ return strings.Replace(defaultEndpoint, domain, ".mtls"+domain, -1)
+ }
+ }
+ return defaultEndpoint
+}
diff --git a/vendor/google.golang.org/genproto/googleapis/rpc/status/status.pb.go b/vendor/google.golang.org/genproto/googleapis/rpc/status/status.pb.go
index 0b9907f89..01db4cfd0 100644
--- a/vendor/google.golang.org/genproto/googleapis/rpc/status/status.pb.go
+++ b/vendor/google.golang.org/genproto/googleapis/rpc/status/status.pb.go
@@ -24,65 +24,17 @@ const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// The `Status` type defines a logical error model that is suitable for
// different programming environments, including REST APIs and RPC APIs. It is
-// used by [gRPC](https://github.com/grpc). The error model is designed to be:
+// used by [gRPC](https://github.com/grpc). Each `Status` message contains
+// three pieces of data: error code, error message, and error details.
//
-// - Simple to use and understand for most users
-// - Flexible enough to meet unexpected needs
-//
-// # Overview
-//
-// The `Status` message contains three pieces of data: error code, error
-// message, and error details. The error code should be an enum value of
-// [google.rpc.Code][google.rpc.Code], but it may accept additional error codes
-// if needed. The error message should be a developer-facing English message
-// that helps developers *understand* and *resolve* the error. If a localized
-// user-facing error message is needed, put the localized message in the error
-// details or localize it in the client. The optional error details may contain
-// arbitrary information about the error. There is a predefined set of error
-// detail types in the package `google.rpc` that can be used for common error
-// conditions.
-//
-// # Language mapping
-//
-// The `Status` message is the logical representation of the error model, but it
-// is not necessarily the actual wire format. When the `Status` message is
-// exposed in different client libraries and different wire protocols, it can be
-// mapped differently. For example, it will likely be mapped to some exceptions
-// in Java, but more likely mapped to some error codes in C.
-//
-// # Other uses
-//
-// The error model and the `Status` message can be used in a variety of
-// environments, either with or without APIs, to provide a
-// consistent developer experience across different environments.
-//
-// Example uses of this error model include:
-//
-// - Partial errors. If a service needs to return partial errors to the client,
-// it may embed the `Status` in the normal response to indicate the partial
-// errors.
-//
-// - Workflow errors. A typical workflow has multiple steps. Each step may
-// have a `Status` message for error reporting.
-//
-// - Batch operations. If a client uses batch request and batch response, the
-// `Status` message should be used directly inside batch response, one for
-// each error sub-response.
-//
-// - Asynchronous operations. If an API call embeds asynchronous operation
-// results in its response, the status of those operations should be
-// represented directly using the `Status` message.
-//
-// - Logging. If some API errors are stored in logs, the message `Status` could
-// be used directly after any stripping needed for security/privacy reasons.
+// You can find out more about this error model and how to work with it in the
+// [API Design Guide](https://cloud.google.com/apis/design/errors).
type Status struct {
- // The status code, which should be an enum value of
- // [google.rpc.Code][google.rpc.Code].
+ // The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
// A developer-facing error message, which should be in English. Any
// user-facing error message should be localized and sent in the
- // [google.rpc.Status.details][google.rpc.Status.details] field, or localized
- // by the client.
+ // [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// A list of messages that carry the error details. There is a common set of
// message types for APIs to use.
@@ -145,7 +97,7 @@ func init() {
func init() { proto.RegisterFile("google/rpc/status.proto", fileDescriptor_24d244abaf643bfe) }
var fileDescriptor_24d244abaf643bfe = []byte{
- // 209 bytes of a gzipped FileDescriptorProto
+ // 212 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4f, 0xcf, 0xcf, 0x4f,
0xcf, 0x49, 0xd5, 0x2f, 0x2a, 0x48, 0xd6, 0x2f, 0x2e, 0x49, 0x2c, 0x29, 0x2d, 0xd6, 0x2b, 0x28,
0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x82, 0x48, 0xe8, 0x15, 0x15, 0x24, 0x4b, 0x49, 0x42, 0x15, 0x81,
@@ -154,10 +106,10 @@ var fileDescriptor_24d244abaf643bfe = []byte{
0xc0, 0x6c, 0x21, 0x09, 0x2e, 0xf6, 0xdc, 0xd4, 0xe2, 0xe2, 0xc4, 0xf4, 0x54, 0x09, 0x26, 0x05,
0x46, 0x0d, 0xce, 0x20, 0x18, 0x57, 0x48, 0x8f, 0x8b, 0x3d, 0x25, 0xb5, 0x24, 0x31, 0x33, 0xa7,
0x58, 0x82, 0x59, 0x81, 0x59, 0x83, 0xdb, 0x48, 0x44, 0x0f, 0x6a, 0x21, 0xcc, 0x12, 0x3d, 0xc7,
- 0xbc, 0xca, 0x20, 0x98, 0x22, 0xa7, 0x38, 0x2e, 0xbe, 0xe4, 0xfc, 0x5c, 0x3d, 0x84, 0xa3, 0x9c,
+ 0xbc, 0xca, 0x20, 0x98, 0x22, 0xa7, 0x44, 0x2e, 0xbe, 0xe4, 0xfc, 0x5c, 0x3d, 0x84, 0xa3, 0x9c,
0xb8, 0x21, 0xf6, 0x06, 0x80, 0x94, 0x07, 0x30, 0x46, 0x99, 0x43, 0xa5, 0xd2, 0xf3, 0x73, 0x12,
0xf3, 0xd2, 0xf5, 0xf2, 0x8b, 0xd2, 0xf5, 0xd3, 0x53, 0xf3, 0xc0, 0x86, 0xe9, 0x43, 0xa4, 0x12,
- 0x0b, 0x32, 0x8b, 0x91, 0xfc, 0x69, 0x0d, 0xa1, 0x16, 0x31, 0x31, 0x07, 0x05, 0x38, 0x27, 0xb1,
- 0x81, 0x55, 0x1a, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xa4, 0x53, 0xf0, 0x7c, 0x10, 0x01, 0x00,
- 0x00,
+ 0x0b, 0x32, 0x8b, 0x91, 0xfc, 0x69, 0x0d, 0xa1, 0x7e, 0x30, 0x32, 0x2e, 0x62, 0x62, 0x0e, 0x0a,
+ 0x70, 0x4e, 0x62, 0x03, 0x2b, 0x36, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0xb9, 0x28, 0x45, 0xb1,
+ 0x13, 0x01, 0x00, 0x00,
}
diff --git a/vendor/google.golang.org/grpc/.travis.yml b/vendor/google.golang.org/grpc/.travis.yml
index 87f40b83d..a11e8cbca 100644
--- a/vendor/google.golang.org/grpc/.travis.yml
+++ b/vendor/google.golang.org/grpc/.travis.yml
@@ -11,7 +11,7 @@ matrix:
- go: 1.13.x
env: GRPC_GO_RETRY=on
- go: 1.13.x
- env: TESTEXAMPLES=1
+ env: TESTEXTRAS=1
- go: 1.12.x
env: GO111MODULE=on
- go: 1.11.x
@@ -35,7 +35,7 @@ install:
script:
- set -e
- - if [[ -n "${TESTEXAMPLES}" ]]; then examples/examples_test.sh; exit 0; fi
+ - if [[ -n "${TESTEXTRAS}" ]]; then examples/examples_test.sh; interop/interop_test.sh; make testsubmodule; exit 0; fi
- if [[ -n "${VET}" ]]; then ./vet.sh; fi
- if [[ -n "${GAE}" ]]; then make testappengine; exit 0; fi
- if [[ -n "${RACE}" ]]; then make testrace; exit 0; fi
diff --git a/vendor/google.golang.org/grpc/Makefile b/vendor/google.golang.org/grpc/Makefile
index db982aabd..410f7d56d 100644
--- a/vendor/google.golang.org/grpc/Makefile
+++ b/vendor/google.golang.org/grpc/Makefile
@@ -19,6 +19,9 @@ proto:
test: testdeps
go test -cpu 1,4 -timeout 7m google.golang.org/grpc/...
+testsubmodule: testdeps
+ cd security/advancedtls && go test -cpu 1,4 -timeout 7m google.golang.org/grpc/security/advancedtls/...
+
testappengine: testappenginedeps
goapp test -cpu 1,4 -timeout 7m google.golang.org/grpc/...
diff --git a/vendor/google.golang.org/grpc/attributes/attributes.go b/vendor/google.golang.org/grpc/attributes/attributes.go
new file mode 100644
index 000000000..68ffc6201
--- /dev/null
+++ b/vendor/google.golang.org/grpc/attributes/attributes.go
@@ -0,0 +1,70 @@
+/*
+ *
+ * Copyright 2019 gRPC authors.
+ *
+ * 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 attributes defines a generic key/value store used in various gRPC
+// components.
+//
+// All APIs in this package are EXPERIMENTAL.
+package attributes
+
+import "fmt"
+
+// Attributes is an immutable struct for storing and retrieving generic
+// key/value pairs. Keys must be hashable, and users should define their own
+// types for keys.
+type Attributes struct {
+ m map[interface{}]interface{}
+}
+
+// New returns a new Attributes containing all key/value pairs in kvs. If the
+// same key appears multiple times, the last value overwrites all previous
+// values for that key. Panics if len(kvs) is not even.
+func New(kvs ...interface{}) *Attributes {
+ if len(kvs)%2 != 0 {
+ panic(fmt.Sprintf("attributes.New called with unexpected input: len(kvs) = %v", len(kvs)))
+ }
+ a := &Attributes{m: make(map[interface{}]interface{}, len(kvs)/2)}
+ for i := 0; i < len(kvs)/2; i++ {
+ a.m[kvs[i*2]] = kvs[i*2+1]
+ }
+ return a
+}
+
+// WithValues returns a new Attributes containing all key/value pairs in a and
+// kvs. Panics if len(kvs) is not even. If the same key appears multiple
+// times, the last value overwrites all previous values for that key. To
+// remove an existing key, use a nil value.
+func (a *Attributes) WithValues(kvs ...interface{}) *Attributes {
+ if len(kvs)%2 != 0 {
+ panic(fmt.Sprintf("attributes.New called with unexpected input: len(kvs) = %v", len(kvs)))
+ }
+ n := &Attributes{m: make(map[interface{}]interface{}, len(a.m)+len(kvs)/2)}
+ for k, v := range a.m {
+ n.m[k] = v
+ }
+ for i := 0; i < len(kvs)/2; i++ {
+ n.m[kvs[i*2]] = kvs[i*2+1]
+ }
+ return n
+}
+
+// Value returns the value associated with these attributes for key, or nil if
+// no value is associated with key.
+func (a *Attributes) Value(key interface{}) interface{} {
+ return a.m[key]
+}
diff --git a/vendor/google.golang.org/grpc/balancer/balancer.go b/vendor/google.golang.org/grpc/balancer/balancer.go
index 917c242f8..9258858ed 100644
--- a/vendor/google.golang.org/grpc/balancer/balancer.go
+++ b/vendor/google.golang.org/grpc/balancer/balancer.go
@@ -117,6 +117,15 @@ type NewSubConnOptions struct {
HealthCheckEnabled bool
}
+// State contains the balancer's state relevant to the gRPC ClientConn.
+type State struct {
+ // State contains the connectivity state of the balancer, which is used to
+ // determine the state of the ClientConn.
+ ConnectivityState connectivity.State
+ // Picker is used to choose connections (SubConns) for RPCs.
+ Picker V2Picker
+}
+
// ClientConn represents a gRPC ClientConn.
//
// This interface is to be implemented by gRPC. Users should not need a
@@ -137,10 +146,19 @@ type ClientConn interface {
//
// gRPC will update the connectivity state of the ClientConn, and will call pick
// on the new picker to pick new SubConn.
+ //
+ // Deprecated: use UpdateState instead
UpdateBalancerState(s connectivity.State, p Picker)
+ // UpdateState notifies gRPC that the balancer's internal state has
+ // changed.
+ //
+ // gRPC will update the connectivity state of the ClientConn, and will call pick
+ // on the new picker to pick new SubConns.
+ UpdateState(State)
+
// ResolveNow is called by balancer to notify gRPC to do a name resolving.
- ResolveNow(resolver.ResolveNowOption)
+ ResolveNow(resolver.ResolveNowOptions)
// Target returns the dial target for this ClientConn.
//
@@ -185,11 +203,14 @@ type ConfigParser interface {
ParseConfig(LoadBalancingConfigJSON json.RawMessage) (serviceconfig.LoadBalancingConfig, error)
}
-// PickOptions contains addition information for the Pick operation.
-type PickOptions struct {
+// PickInfo contains additional information for the Pick operation.
+type PickInfo struct {
// FullMethodName is the method name that NewClientStream() is called
// with. The canonical format is /service/Method.
FullMethodName string
+ // Ctx is the RPC's context, and may contain relevant RPC-level information
+ // like the outgoing header metadata.
+ Ctx context.Context
}
// DoneInfo contains additional information for done.
@@ -215,7 +236,7 @@ var (
ErrNoSubConnAvailable = errors.New("no SubConn is available")
// ErrTransientFailure indicates all SubConns are in TransientFailure.
// WaitForReady RPCs will block, non-WaitForReady RPCs will fail.
- ErrTransientFailure = errors.New("all SubConns are in TransientFailure")
+ ErrTransientFailure = TransientFailureError(errors.New("all SubConns are in TransientFailure"))
)
// Picker is used by gRPC to pick a SubConn to send an RPC.
@@ -223,6 +244,8 @@ var (
// internal state has changed.
//
// The pickers used by gRPC can be updated by ClientConn.UpdateBalancerState().
+//
+// Deprecated: use V2Picker instead
type Picker interface {
// Pick returns the SubConn to be used to send the RPC.
// The returned SubConn must be one returned by NewSubConn().
@@ -243,18 +266,76 @@ type Picker interface {
//
// If the returned error is not nil:
// - If the error is ErrNoSubConnAvailable, gRPC will block until UpdateBalancerState()
- // - If the error is ErrTransientFailure:
+ // - If the error is ErrTransientFailure or implements IsTransientFailure()
+ // bool, returning true:
// - If the RPC is wait-for-ready, gRPC will block until UpdateBalancerState()
// is called to pick again;
// - Otherwise, RPC will fail with unavailable error.
// - Else (error is other non-nil error):
- // - The RPC will fail with unavailable error.
+ // - The RPC will fail with the error's status code, or Unknown if it is
+ // not a status error.
//
// The returned done() function will be called once the rpc has finished,
// with the final status of that RPC. If the SubConn returned is not a
// valid SubConn type, done may not be called. done may be nil if balancer
// doesn't care about the RPC status.
- Pick(ctx context.Context, opts PickOptions) (conn SubConn, done func(DoneInfo), err error)
+ Pick(ctx context.Context, info PickInfo) (conn SubConn, done func(DoneInfo), err error)
+}
+
+// PickResult contains information related to a connection chosen for an RPC.
+type PickResult struct {
+ // SubConn is the connection to use for this pick, if its state is Ready.
+ // If the state is not Ready, gRPC will block the RPC until a new Picker is
+ // provided by the balancer (using ClientConn.UpdateState). The SubConn
+ // must be one returned by ClientConn.NewSubConn.
+ SubConn SubConn
+
+ // Done is called when the RPC is completed. If the SubConn is not ready,
+ // this will be called with a nil parameter. If the SubConn is not a valid
+ // type, Done may not be called. May be nil if the balancer does not wish
+ // to be notified when the RPC completes.
+ Done func(DoneInfo)
+}
+
+type transientFailureError struct {
+ error
+}
+
+func (e *transientFailureError) IsTransientFailure() bool { return true }
+
+// TransientFailureError wraps err in an error implementing
+// IsTransientFailure() bool, returning true.
+func TransientFailureError(err error) error {
+ return &transientFailureError{error: err}
+}
+
+// V2Picker is used by gRPC to pick a SubConn to send an RPC.
+// Balancer is expected to generate a new picker from its snapshot every time its
+// internal state has changed.
+//
+// The pickers used by gRPC can be updated by ClientConn.UpdateBalancerState().
+type V2Picker interface {
+ // Pick returns the connection to use for this RPC and related information.
+ //
+ // Pick should not block. If the balancer needs to do I/O or any blocking
+ // or time-consuming work to service this call, it should return
+ // ErrNoSubConnAvailable, and the Pick call will be repeated by gRPC when
+ // the Picker is updated (using ClientConn.UpdateState).
+ //
+ // If an error is returned:
+ //
+ // - If the error is ErrNoSubConnAvailable, gRPC will block until a new
+ // Picker is provided by the balancer (using ClientConn.UpdateState).
+ //
+ // - If the error implements IsTransientFailure() bool, returning true,
+ // wait for ready RPCs will wait, but non-wait for ready RPCs will be
+ // terminated with this error's Error() string and status code
+ // Unavailable.
+ //
+ // - Any other errors terminate all RPCs with the code and message
+ // provided. If the error is not a status error, it will be converted by
+ // gRPC to a status error with code Unknown.
+ Pick(info PickInfo) (PickResult, error)
}
// Balancer takes input from gRPC, manages SubConns, and collects and aggregates
@@ -292,8 +373,11 @@ type Balancer interface {
// SubConnState describes the state of a SubConn.
type SubConnState struct {
+ // ConnectivityState is the connectivity state of the SubConn.
ConnectivityState connectivity.State
- // TODO: add last connection error
+ // ConnectionError is set if the ConnectivityState is TransientFailure,
+ // describing the reason the SubConn failed. Otherwise, it is nil.
+ ConnectionError error
}
// ClientConnState describes the state of a ClientConn relevant to the
@@ -335,9 +419,8 @@ type V2Balancer interface {
//
// It's not thread safe.
type ConnectivityStateEvaluator struct {
- numReady uint64 // Number of addrConns in ready state.
- numConnecting uint64 // Number of addrConns in connecting state.
- numTransientFailure uint64 // Number of addrConns in transientFailure.
+ numReady uint64 // Number of addrConns in ready state.
+ numConnecting uint64 // Number of addrConns in connecting state.
}
// RecordTransition records state change happening in subConn and based on that
@@ -357,8 +440,6 @@ func (cse *ConnectivityStateEvaluator) RecordTransition(oldState, newState conne
cse.numReady += updateVal
case connectivity.Connecting:
cse.numConnecting += updateVal
- case connectivity.TransientFailure:
- cse.numTransientFailure += updateVal
}
}
diff --git a/vendor/google.golang.org/grpc/balancer/base/balancer.go b/vendor/google.golang.org/grpc/balancer/base/balancer.go
index 1a5c1aa7e..d7d72918a 100644
--- a/vendor/google.golang.org/grpc/balancer/base/balancer.go
+++ b/vendor/google.golang.org/grpc/balancer/base/balancer.go
@@ -20,6 +20,8 @@ package base
import (
"context"
+ "errors"
+ "fmt"
"google.golang.org/grpc/balancer"
"google.golang.org/grpc/connectivity"
@@ -28,25 +30,32 @@ import (
)
type baseBuilder struct {
- name string
- pickerBuilder PickerBuilder
- config Config
+ name string
+ pickerBuilder PickerBuilder
+ v2PickerBuilder V2PickerBuilder
+ config Config
}
func (bb *baseBuilder) Build(cc balancer.ClientConn, opt balancer.BuildOptions) balancer.Balancer {
- return &baseBalancer{
- cc: cc,
- pickerBuilder: bb.pickerBuilder,
+ bal := &baseBalancer{
+ cc: cc,
+ pickerBuilder: bb.pickerBuilder,
+ v2PickerBuilder: bb.v2PickerBuilder,
subConns: make(map[resolver.Address]balancer.SubConn),
scStates: make(map[balancer.SubConn]connectivity.State),
csEvltr: &balancer.ConnectivityStateEvaluator{},
- // Initialize picker to a picker that always return
- // ErrNoSubConnAvailable, because when state of a SubConn changes, we
- // may call UpdateBalancerState with this picker.
- picker: NewErrPicker(balancer.ErrNoSubConnAvailable),
- config: bb.config,
+ config: bb.config,
}
+ // Initialize picker to a picker that always returns
+ // ErrNoSubConnAvailable, because when state of a SubConn changes, we
+ // may call UpdateState with this picker.
+ if bb.pickerBuilder != nil {
+ bal.picker = NewErrPicker(balancer.ErrNoSubConnAvailable)
+ } else {
+ bal.v2Picker = NewErrPickerV2(balancer.ErrNoSubConnAvailable)
+ }
+ return bal
}
func (bb *baseBuilder) Name() string {
@@ -56,8 +65,9 @@ func (bb *baseBuilder) Name() string {
var _ balancer.V2Balancer = (*baseBalancer)(nil) // Assert that we implement V2Balancer
type baseBalancer struct {
- cc balancer.ClientConn
- pickerBuilder PickerBuilder
+ cc balancer.ClientConn
+ pickerBuilder PickerBuilder
+ v2PickerBuilder V2PickerBuilder
csEvltr *balancer.ConnectivityStateEvaluator
state connectivity.State
@@ -65,15 +75,36 @@ type baseBalancer struct {
subConns map[resolver.Address]balancer.SubConn
scStates map[balancer.SubConn]connectivity.State
picker balancer.Picker
+ v2Picker balancer.V2Picker
config Config
+
+ resolverErr error // the last error reported by the resolver; cleared on successful resolution
+ connErr error // the last connection error; cleared upon leaving TransientFailure
}
func (b *baseBalancer) HandleResolvedAddrs(addrs []resolver.Address, err error) {
panic("not implemented")
}
-func (b *baseBalancer) ResolverError(error) {
- // Ignore
+func (b *baseBalancer) ResolverError(err error) {
+ b.resolverErr = err
+ if len(b.subConns) == 0 {
+ b.state = connectivity.TransientFailure
+ }
+ if b.state != connectivity.TransientFailure {
+ // The picker will not change since the balancer does not currently
+ // report an error.
+ return
+ }
+ b.regeneratePicker()
+ if b.picker != nil {
+ b.cc.UpdateBalancerState(b.state, b.picker)
+ } else {
+ b.cc.UpdateState(balancer.State{
+ ConnectivityState: b.state,
+ Picker: b.v2Picker,
+ })
+ }
}
func (b *baseBalancer) UpdateClientConnState(s balancer.ClientConnState) error {
@@ -82,6 +113,12 @@ func (b *baseBalancer) UpdateClientConnState(s balancer.ClientConnState) error {
if grpclog.V(2) {
grpclog.Infoln("base.baseBalancer: got new ClientConn state: ", s)
}
+ if len(s.ResolverState.Addresses) == 0 {
+ b.ResolverError(errors.New("produced zero addresses"))
+ return balancer.ErrBadResolverState
+ }
+ // Successful resolution; clear resolver error and ensure we return nil.
+ b.resolverErr = nil
// addrsSet is the set converted from addrs, it's used for quick lookup of an address.
addrsSet := make(map[resolver.Address]struct{})
for _, a := range s.ResolverState.Addresses {
@@ -110,24 +147,54 @@ func (b *baseBalancer) UpdateClientConnState(s balancer.ClientConnState) error {
return nil
}
+// mergeErrors builds an error from the last connection error and the last
+// resolver error. Must only be called if b.state is TransientFailure.
+func (b *baseBalancer) mergeErrors() error {
+ // connErr must always be non-nil unless there are no SubConns, in which
+ // case resolverErr must be non-nil.
+ if b.connErr == nil {
+ return fmt.Errorf("last resolver error: %v", b.resolverErr)
+ }
+ if b.resolverErr == nil {
+ return fmt.Errorf("last connection error: %v", b.connErr)
+ }
+ return fmt.Errorf("last connection error: %v; last resolver error: %v", b.connErr, b.resolverErr)
+}
+
// regeneratePicker takes a snapshot of the balancer, and generates a picker
// from it. The picker is
-// - errPicker with ErrTransientFailure if the balancer is in TransientFailure,
+// - errPicker if the balancer is in TransientFailure,
// - built by the pickerBuilder with all READY SubConns otherwise.
func (b *baseBalancer) regeneratePicker() {
if b.state == connectivity.TransientFailure {
- b.picker = NewErrPicker(balancer.ErrTransientFailure)
+ if b.pickerBuilder != nil {
+ b.picker = NewErrPicker(balancer.ErrTransientFailure)
+ } else {
+ b.v2Picker = NewErrPickerV2(balancer.TransientFailureError(b.mergeErrors()))
+ }
return
}
- readySCs := make(map[resolver.Address]balancer.SubConn)
+ if b.pickerBuilder != nil {
+ readySCs := make(map[resolver.Address]balancer.SubConn)
- // Filter out all ready SCs from full subConn map.
- for addr, sc := range b.subConns {
- if st, ok := b.scStates[sc]; ok && st == connectivity.Ready {
- readySCs[addr] = sc
+ // Filter out all ready SCs from full subConn map.
+ for addr, sc := range b.subConns {
+ if st, ok := b.scStates[sc]; ok && st == connectivity.Ready {
+ readySCs[addr] = sc
+ }
}
+ b.picker = b.pickerBuilder.Build(readySCs)
+ } else {
+ readySCs := make(map[balancer.SubConn]SubConnInfo)
+
+ // Filter out all ready SCs from full subConn map.
+ for addr, sc := range b.subConns {
+ if st, ok := b.scStates[sc]; ok && st == connectivity.Ready {
+ readySCs[sc] = SubConnInfo{Address: addr}
+ }
+ }
+ b.v2Picker = b.v2PickerBuilder.Build(PickerBuildInfo{ReadySCs: readySCs})
}
- b.picker = b.pickerBuilder.Build(readySCs)
}
func (b *baseBalancer) HandleSubConnStateChange(sc balancer.SubConn, s connectivity.State) {
@@ -159,6 +226,9 @@ func (b *baseBalancer) UpdateSubConnState(sc balancer.SubConn, state balancer.Su
oldAggrState := b.state
b.state = b.csEvltr.RecordTransition(oldS, s)
+ // Set or clear the last connection error accordingly.
+ b.connErr = state.ConnectionError
+
// Regenerate picker when one of the following happens:
// - this sc became ready from not-ready
// - this sc became not-ready from ready
@@ -169,7 +239,11 @@ func (b *baseBalancer) UpdateSubConnState(sc balancer.SubConn, state balancer.Su
b.regeneratePicker()
}
- b.cc.UpdateBalancerState(b.state, b.picker)
+ if b.picker != nil {
+ b.cc.UpdateBalancerState(b.state, b.picker)
+ } else {
+ b.cc.UpdateState(balancer.State{ConnectivityState: b.state, Picker: b.v2Picker})
+ }
}
// Close is a nop because base balancer doesn't have internal state to clean up,
@@ -186,6 +260,19 @@ type errPicker struct {
err error // Pick() always returns this err.
}
-func (p *errPicker) Pick(ctx context.Context, opts balancer.PickOptions) (balancer.SubConn, func(balancer.DoneInfo), error) {
+func (p *errPicker) Pick(context.Context, balancer.PickInfo) (balancer.SubConn, func(balancer.DoneInfo), error) {
return nil, nil, p.err
}
+
+// NewErrPickerV2 returns a V2Picker that always returns err on Pick().
+func NewErrPickerV2(err error) balancer.V2Picker {
+ return &errPickerV2{err: err}
+}
+
+type errPickerV2 struct {
+ err error // Pick() always returns this err.
+}
+
+func (p *errPickerV2) Pick(info balancer.PickInfo) (balancer.PickResult, error) {
+ return balancer.PickResult{}, p.err
+}
diff --git a/vendor/google.golang.org/grpc/balancer/base/base.go b/vendor/google.golang.org/grpc/balancer/base/base.go
index 34b1f2994..4192918b9 100644
--- a/vendor/google.golang.org/grpc/balancer/base/base.go
+++ b/vendor/google.golang.org/grpc/balancer/base/base.go
@@ -42,6 +42,26 @@ type PickerBuilder interface {
Build(readySCs map[resolver.Address]balancer.SubConn) balancer.Picker
}
+// V2PickerBuilder creates balancer.V2Picker.
+type V2PickerBuilder interface {
+ // Build returns a picker that will be used by gRPC to pick a SubConn.
+ Build(info PickerBuildInfo) balancer.V2Picker
+}
+
+// PickerBuildInfo contains information needed by the picker builder to
+// construct a picker.
+type PickerBuildInfo struct {
+ // ReadySCs is a map from all ready SubConns to the Addresses used to
+ // create them.
+ ReadySCs map[balancer.SubConn]SubConnInfo
+}
+
+// SubConnInfo contains information about a SubConn created by the base
+// balancer.
+type SubConnInfo struct {
+ Address resolver.Address // the address used to create this SubConn
+}
+
// NewBalancerBuilder returns a balancer builder. The balancers
// built by this builder will use the picker builder to build pickers.
func NewBalancerBuilder(name string, pb PickerBuilder) balancer.Builder {
@@ -62,3 +82,12 @@ func NewBalancerBuilderWithConfig(name string, pb PickerBuilder, config Config)
config: config,
}
}
+
+// NewBalancerBuilderV2 returns a base balancer builder configured by the provided config.
+func NewBalancerBuilderV2(name string, pb V2PickerBuilder, config Config) balancer.Builder {
+ return &baseBuilder{
+ name: name,
+ v2PickerBuilder: pb,
+ config: config,
+ }
+}
diff --git a/vendor/google.golang.org/grpc/balancer/roundrobin/roundrobin.go b/vendor/google.golang.org/grpc/balancer/roundrobin/roundrobin.go
index 29f7a4ddd..d4d645501 100644
--- a/vendor/google.golang.org/grpc/balancer/roundrobin/roundrobin.go
+++ b/vendor/google.golang.org/grpc/balancer/roundrobin/roundrobin.go
@@ -22,14 +22,12 @@
package roundrobin
import (
- "context"
"sync"
"google.golang.org/grpc/balancer"
"google.golang.org/grpc/balancer/base"
"google.golang.org/grpc/grpclog"
"google.golang.org/grpc/internal/grpcrand"
- "google.golang.org/grpc/resolver"
)
// Name is the name of round_robin balancer.
@@ -37,7 +35,7 @@ const Name = "round_robin"
// newBuilder creates a new roundrobin balancer builder.
func newBuilder() balancer.Builder {
- return base.NewBalancerBuilderWithConfig(Name, &rrPickerBuilder{}, base.Config{HealthCheck: true})
+ return base.NewBalancerBuilderV2(Name, &rrPickerBuilder{}, base.Config{HealthCheck: true})
}
func init() {
@@ -46,13 +44,13 @@ func init() {
type rrPickerBuilder struct{}
-func (*rrPickerBuilder) Build(readySCs map[resolver.Address]balancer.SubConn) balancer.Picker {
- grpclog.Infof("roundrobinPicker: newPicker called with readySCs: %v", readySCs)
- if len(readySCs) == 0 {
- return base.NewErrPicker(balancer.ErrNoSubConnAvailable)
+func (*rrPickerBuilder) Build(info base.PickerBuildInfo) balancer.V2Picker {
+ grpclog.Infof("roundrobinPicker: newPicker called with info: %v", info)
+ if len(info.ReadySCs) == 0 {
+ return base.NewErrPickerV2(balancer.ErrNoSubConnAvailable)
}
var scs []balancer.SubConn
- for _, sc := range readySCs {
+ for sc := range info.ReadySCs {
scs = append(scs, sc)
}
return &rrPicker{
@@ -74,10 +72,10 @@ type rrPicker struct {
next int
}
-func (p *rrPicker) Pick(ctx context.Context, opts balancer.PickOptions) (balancer.SubConn, func(balancer.DoneInfo), error) {
+func (p *rrPicker) Pick(balancer.PickInfo) (balancer.PickResult, error) {
p.mu.Lock()
sc := p.subConns[p.next]
p.next = (p.next + 1) % len(p.subConns)
p.mu.Unlock()
- return sc, nil, nil
+ return balancer.PickResult{SubConn: sc}, nil
}
diff --git a/vendor/google.golang.org/grpc/balancer_conn_wrappers.go b/vendor/google.golang.org/grpc/balancer_conn_wrappers.go
index 5356194c3..824f28e74 100644
--- a/vendor/google.golang.org/grpc/balancer_conn_wrappers.go
+++ b/vendor/google.golang.org/grpc/balancer_conn_wrappers.go
@@ -34,6 +34,7 @@ import (
type scStateUpdate struct {
sc balancer.SubConn
state connectivity.State
+ err error
}
// ccBalancerWrapper is a wrapper on top of cc for balancers.
@@ -74,7 +75,7 @@ func (ccb *ccBalancerWrapper) watcher() {
ccb.balancerMu.Lock()
su := t.(*scStateUpdate)
if ub, ok := ccb.balancer.(balancer.V2Balancer); ok {
- ub.UpdateSubConnState(su.sc, balancer.SubConnState{ConnectivityState: su.state})
+ ub.UpdateSubConnState(su.sc, balancer.SubConnState{ConnectivityState: su.state, ConnectionError: su.err})
} else {
ccb.balancer.HandleSubConnStateChange(su.sc, su.state)
}
@@ -91,7 +92,7 @@ func (ccb *ccBalancerWrapper) watcher() {
for acbw := range scs {
ccb.cc.removeAddrConn(acbw.getAddrConn(), errConnDrain)
}
- ccb.UpdateBalancerState(connectivity.Connecting, nil)
+ ccb.UpdateState(balancer.State{ConnectivityState: connectivity.Connecting, Picker: nil})
return
}
}
@@ -101,7 +102,7 @@ func (ccb *ccBalancerWrapper) close() {
ccb.done.Fire()
}
-func (ccb *ccBalancerWrapper) handleSubConnStateChange(sc balancer.SubConn, s connectivity.State) {
+func (ccb *ccBalancerWrapper) handleSubConnStateChange(sc balancer.SubConn, s connectivity.State, err error) {
// When updating addresses for a SubConn, if the address in use is not in
// the new addresses, the old ac will be tearDown() and a new ac will be
// created. tearDown() generates a state change with Shutdown state, we
@@ -115,6 +116,7 @@ func (ccb *ccBalancerWrapper) handleSubConnStateChange(sc balancer.SubConn, s co
ccb.scBuffer.Put(&scStateUpdate{
sc: sc,
state: s,
+ err: err,
})
}
@@ -186,7 +188,22 @@ func (ccb *ccBalancerWrapper) UpdateBalancerState(s connectivity.State, p balanc
ccb.cc.csMgr.updateState(s)
}
-func (ccb *ccBalancerWrapper) ResolveNow(o resolver.ResolveNowOption) {
+func (ccb *ccBalancerWrapper) UpdateState(s balancer.State) {
+ ccb.mu.Lock()
+ defer ccb.mu.Unlock()
+ if ccb.subConns == nil {
+ return
+ }
+ // Update picker before updating state. Even though the ordering here does
+ // not matter, it can lead to multiple calls of Pick in the common start-up
+ // case where we wait for ready and then perform an RPC. If the picker is
+ // updated later, we could call the "connecting" picker when the state is
+ // updated, and then call the "ready" picker after the picker gets updated.
+ ccb.cc.blockingpicker.updatePickerV2(s.Picker)
+ ccb.cc.csMgr.updateState(s.ConnectivityState)
+}
+
+func (ccb *ccBalancerWrapper) ResolveNow(o resolver.ResolveNowOptions) {
ccb.cc.resolveNow(o)
}
diff --git a/vendor/google.golang.org/grpc/balancer_v1_wrapper.go b/vendor/google.golang.org/grpc/balancer_v1_wrapper.go
index 66e9a44ac..db04b08b8 100644
--- a/vendor/google.golang.org/grpc/balancer_v1_wrapper.go
+++ b/vendor/google.golang.org/grpc/balancer_v1_wrapper.go
@@ -19,7 +19,6 @@
package grpc
import (
- "context"
"sync"
"google.golang.org/grpc/balancer"
@@ -49,7 +48,7 @@ func (bwb *balancerWrapperBuilder) Build(cc balancer.ClientConn, opts balancer.B
csEvltr: &balancer.ConnectivityStateEvaluator{},
state: connectivity.Idle,
}
- cc.UpdateBalancerState(connectivity.Idle, bw)
+ cc.UpdateState(balancer.State{ConnectivityState: connectivity.Idle, Picker: bw})
go bw.lbWatcher()
return bw
}
@@ -243,7 +242,7 @@ func (bw *balancerWrapper) HandleSubConnStateChange(sc balancer.SubConn, s conne
if bw.state != sa {
bw.state = sa
}
- bw.cc.UpdateBalancerState(bw.state, bw)
+ bw.cc.UpdateState(balancer.State{ConnectivityState: bw.state, Picker: bw})
if s == connectivity.Shutdown {
// Remove state for this sc.
delete(bw.connSt, sc)
@@ -275,17 +274,17 @@ func (bw *balancerWrapper) Close() {
// The picker is the balancerWrapper itself.
// It either blocks or returns error, consistent with v1 balancer Get().
-func (bw *balancerWrapper) Pick(ctx context.Context, opts balancer.PickOptions) (sc balancer.SubConn, done func(balancer.DoneInfo), err error) {
+func (bw *balancerWrapper) Pick(info balancer.PickInfo) (result balancer.PickResult, err error) {
failfast := true // Default failfast is true.
- if ss, ok := rpcInfoFromContext(ctx); ok {
+ if ss, ok := rpcInfoFromContext(info.Ctx); ok {
failfast = ss.failfast
}
- a, p, err := bw.balancer.Get(ctx, BalancerGetOptions{BlockingWait: !failfast})
+ a, p, err := bw.balancer.Get(info.Ctx, BalancerGetOptions{BlockingWait: !failfast})
if err != nil {
- return nil, nil, err
+ return balancer.PickResult{}, toRPCErr(err)
}
if p != nil {
- done = func(balancer.DoneInfo) { p() }
+ result.Done = func(balancer.DoneInfo) { p() }
defer func() {
if err != nil {
p()
@@ -297,38 +296,39 @@ func (bw *balancerWrapper) Pick(ctx context.Context, opts balancer.PickOptions)
defer bw.mu.Unlock()
if bw.pickfirst {
// Get the first sc in conns.
- for _, sc := range bw.conns {
- return sc, done, nil
+ for _, result.SubConn = range bw.conns {
+ return result, nil
}
- return nil, nil, balancer.ErrNoSubConnAvailable
+ return balancer.PickResult{}, balancer.ErrNoSubConnAvailable
}
- sc, ok1 := bw.conns[resolver.Address{
+ var ok1 bool
+ result.SubConn, ok1 = bw.conns[resolver.Address{
Addr: a.Addr,
Type: resolver.Backend,
ServerName: "",
Metadata: a.Metadata,
}]
- s, ok2 := bw.connSt[sc]
+ s, ok2 := bw.connSt[result.SubConn]
if !ok1 || !ok2 {
// This can only happen due to a race where Get() returned an address
// that was subsequently removed by Notify. In this case we should
// retry always.
- return nil, nil, balancer.ErrNoSubConnAvailable
+ return balancer.PickResult{}, balancer.ErrNoSubConnAvailable
}
switch s.s {
case connectivity.Ready, connectivity.Idle:
- return sc, done, nil
+ return result, nil
case connectivity.Shutdown, connectivity.TransientFailure:
// If the returned sc has been shut down or is in transient failure,
// return error, and this RPC will fail or wait for another picker (if
// non-failfast).
- return nil, nil, balancer.ErrTransientFailure
+ return balancer.PickResult{}, balancer.ErrTransientFailure
default:
// For other states (connecting or unknown), the v1 balancer would
// traditionally wait until ready and then issue the RPC. Returning
// ErrNoSubConnAvailable will be a slight improvement in that it will
// allow the balancer to choose another address in case others are
// connected.
- return nil, nil, balancer.ErrNoSubConnAvailable
+ return balancer.PickResult{}, balancer.ErrNoSubConnAvailable
}
}
diff --git a/vendor/google.golang.org/grpc/clientconn.go b/vendor/google.golang.org/grpc/clientconn.go
index 4414ba87f..f58740b25 100644
--- a/vendor/google.golang.org/grpc/clientconn.go
+++ b/vendor/google.golang.org/grpc/clientconn.go
@@ -239,25 +239,26 @@ func DialContext(ctx context.Context, target string, opts ...DialOption) (conn *
if cc.dopts.bs == nil {
cc.dopts.bs = backoff.DefaultExponential
}
- if cc.dopts.resolverBuilder == nil {
- // Only try to parse target when resolver builder is not already set.
- cc.parsedTarget = parseTarget(cc.target)
- grpclog.Infof("parsed scheme: %q", cc.parsedTarget.Scheme)
- cc.dopts.resolverBuilder = resolver.Get(cc.parsedTarget.Scheme)
- if cc.dopts.resolverBuilder == nil {
- // If resolver builder is still nil, the parsed target's scheme is
- // not registered. Fallback to default resolver and set Endpoint to
- // the original target.
- grpclog.Infof("scheme %q not registered, fallback to default scheme", cc.parsedTarget.Scheme)
- cc.parsedTarget = resolver.Target{
- Scheme: resolver.GetDefaultScheme(),
- Endpoint: target,
- }
- cc.dopts.resolverBuilder = resolver.Get(cc.parsedTarget.Scheme)
+
+ // Determine the resolver to use.
+ cc.parsedTarget = parseTarget(cc.target)
+ grpclog.Infof("parsed scheme: %q", cc.parsedTarget.Scheme)
+ resolverBuilder := cc.getResolver(cc.parsedTarget.Scheme)
+ if resolverBuilder == nil {
+ // If resolver builder is still nil, the parsed target's scheme is
+ // not registered. Fallback to default resolver and set Endpoint to
+ // the original target.
+ grpclog.Infof("scheme %q not registered, fallback to default scheme", cc.parsedTarget.Scheme)
+ cc.parsedTarget = resolver.Target{
+ Scheme: resolver.GetDefaultScheme(),
+ Endpoint: target,
+ }
+ resolverBuilder = cc.getResolver(cc.parsedTarget.Scheme)
+ if resolverBuilder == nil {
+ return nil, fmt.Errorf("could not get resolver for default scheme: %q", cc.parsedTarget.Scheme)
}
- } else {
- cc.parsedTarget = resolver.Target{Endpoint: target}
}
+
creds := cc.dopts.copts.TransportCredentials
if creds != nil && creds.Info().ServerName != "" {
cc.authority = creds.Info().ServerName
@@ -297,14 +298,14 @@ func DialContext(ctx context.Context, target string, opts ...DialOption) (conn *
}
// Build the resolver.
- rWrapper, err := newCCResolverWrapper(cc)
+ rWrapper, err := newCCResolverWrapper(cc, resolverBuilder)
if err != nil {
return nil, fmt.Errorf("failed to build resolver: %v", err)
}
-
cc.mu.Lock()
cc.resolverWrapper = rWrapper
cc.mu.Unlock()
+
// A blocking dial blocks until the clientConn is ready.
if cc.dopts.block {
for {
@@ -443,6 +444,20 @@ func (csm *connectivityStateManager) getNotifyChan() <-chan struct{} {
return csm.notifyChan
}
+// ClientConnInterface defines the functions clients need to perform unary and
+// streaming RPCs. It is implemented by *ClientConn, and is only intended to
+// be referenced by generated code.
+type ClientConnInterface interface {
+ // Invoke performs a unary RPC and returns after the response is received
+ // into reply.
+ Invoke(ctx context.Context, method string, args interface{}, reply interface{}, opts ...CallOption) error
+ // NewStream begins a streaming RPC.
+ NewStream(ctx context.Context, desc *StreamDesc, method string, opts ...CallOption) (ClientStream, error)
+}
+
+// Assert *ClientConn implements ClientConnInterface.
+var _ ClientConnInterface = (*ClientConn)(nil)
+
// ClientConn represents a virtual connection to a conceptual endpoint, to
// perform RPCs.
//
@@ -688,7 +703,7 @@ func (cc *ClientConn) switchBalancer(name string) {
cc.balancerWrapper = newCCBalancerWrapper(cc, builder, cc.balancerBuildOpts)
}
-func (cc *ClientConn) handleSubConnStateChange(sc balancer.SubConn, s connectivity.State) {
+func (cc *ClientConn) handleSubConnStateChange(sc balancer.SubConn, s connectivity.State, err error) {
cc.mu.Lock()
if cc.conns == nil {
cc.mu.Unlock()
@@ -696,7 +711,7 @@ func (cc *ClientConn) handleSubConnStateChange(sc balancer.SubConn, s connectivi
}
// TODO(bar switching) send updates to all balancer wrappers when balancer
// gracefully switching is supported.
- cc.balancerWrapper.handleSubConnStateChange(sc, s)
+ cc.balancerWrapper.handleSubConnStateChange(sc, s, err)
cc.mu.Unlock()
}
@@ -793,7 +808,7 @@ func (ac *addrConn) connect() error {
}
// Update connectivity state within the lock to prevent subsequent or
// concurrent calls from resetting the transport more than once.
- ac.updateConnectivityState(connectivity.Connecting)
+ ac.updateConnectivityState(connectivity.Connecting, nil)
ac.mu.Unlock()
// Start a goroutine connecting to the server asynchronously.
@@ -879,7 +894,8 @@ func (cc *ClientConn) healthCheckConfig() *healthCheckConfig {
}
func (cc *ClientConn) getTransport(ctx context.Context, failfast bool, method string) (transport.ClientTransport, func(balancer.DoneInfo), error) {
- t, done, err := cc.blockingpicker.pick(ctx, failfast, balancer.PickOptions{
+ t, done, err := cc.blockingpicker.pick(ctx, failfast, balancer.PickInfo{
+ Ctx: ctx,
FullMethodName: method,
})
if err != nil {
@@ -938,7 +954,7 @@ func (cc *ClientConn) applyServiceConfigAndBalancer(sc *ServiceConfig, addrs []r
}
}
-func (cc *ClientConn) resolveNow(o resolver.ResolveNowOption) {
+func (cc *ClientConn) resolveNow(o resolver.ResolveNowOptions) {
cc.mu.RLock()
r := cc.resolverWrapper
cc.mu.RUnlock()
@@ -1048,7 +1064,7 @@ type addrConn struct {
}
// Note: this requires a lock on ac.mu.
-func (ac *addrConn) updateConnectivityState(s connectivity.State) {
+func (ac *addrConn) updateConnectivityState(s connectivity.State, lastErr error) {
if ac.state == s {
return
}
@@ -1061,7 +1077,7 @@ func (ac *addrConn) updateConnectivityState(s connectivity.State) {
Severity: channelz.CtINFO,
})
}
- ac.cc.handleSubConnStateChange(ac.acbw, s)
+ ac.cc.handleSubConnStateChange(ac.acbw, s, lastErr)
}
// adjustParams updates parameters used to create transports upon
@@ -1081,7 +1097,7 @@ func (ac *addrConn) adjustParams(r transport.GoAwayReason) {
func (ac *addrConn) resetTransport() {
for i := 0; ; i++ {
if i > 0 {
- ac.cc.resolveNow(resolver.ResolveNowOption{})
+ ac.cc.resolveNow(resolver.ResolveNowOptions{})
}
ac.mu.Lock()
@@ -1110,7 +1126,7 @@ func (ac *addrConn) resetTransport() {
// https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md#proposed-backoff-algorithm
connectDeadline := time.Now().Add(dialDuration)
- ac.updateConnectivityState(connectivity.Connecting)
+ ac.updateConnectivityState(connectivity.Connecting, nil)
ac.transport = nil
ac.mu.Unlock()
@@ -1123,7 +1139,7 @@ func (ac *addrConn) resetTransport() {
ac.mu.Unlock()
return
}
- ac.updateConnectivityState(connectivity.TransientFailure)
+ ac.updateConnectivityState(connectivity.TransientFailure, err)
// Backoff.
b := ac.resetBackoff
@@ -1179,6 +1195,7 @@ func (ac *addrConn) resetTransport() {
// first successful one. It returns the transport, the address and a Event in
// the successful case. The Event fires when the returned transport disconnects.
func (ac *addrConn) tryAllAddrs(addrs []resolver.Address, connectDeadline time.Time) (transport.ClientTransport, resolver.Address, *grpcsync.Event, error) {
+ var firstConnErr error
for _, addr := range addrs {
ac.mu.Lock()
if ac.state == connectivity.Shutdown {
@@ -1207,11 +1224,14 @@ func (ac *addrConn) tryAllAddrs(addrs []resolver.Address, connectDeadline time.T
if err == nil {
return newTr, addr, reconnect, nil
}
+ if firstConnErr == nil {
+ firstConnErr = err
+ }
ac.cc.blockingpicker.updateConnectionError(err)
}
// Couldn't connect to any address.
- return nil, resolver.Address{}, nil, fmt.Errorf("couldn't connect to any address")
+ return nil, resolver.Address{}, nil, firstConnErr
}
// createTransport creates a connection to addr. It returns the transport and a
@@ -1244,7 +1264,7 @@ func (ac *addrConn) createTransport(addr resolver.Address, copts transport.Conne
// state to Connecting.
//
// TODO: this should be Idle when grpc-go properly supports it.
- ac.updateConnectivityState(connectivity.Connecting)
+ ac.updateConnectivityState(connectivity.Connecting, nil)
}
})
ac.mu.Unlock()
@@ -1259,7 +1279,7 @@ func (ac *addrConn) createTransport(addr resolver.Address, copts transport.Conne
// state to Connecting.
//
// TODO: this should be Idle when grpc-go properly supports it.
- ac.updateConnectivityState(connectivity.Connecting)
+ ac.updateConnectivityState(connectivity.Connecting, nil)
}
})
ac.mu.Unlock()
@@ -1285,7 +1305,7 @@ func (ac *addrConn) createTransport(addr resolver.Address, copts transport.Conne
}
select {
- case <-time.After(connectDeadline.Sub(time.Now())):
+ case <-time.After(time.Until(connectDeadline)):
// We didn't get the preface in time.
newTr.Close()
grpclog.Warningf("grpc: addrConn.createTransport failed to connect to %v: didn't receive server preface in time. Reconnecting...", addr)
@@ -1316,7 +1336,7 @@ func (ac *addrConn) startHealthCheck(ctx context.Context) {
var healthcheckManagingState bool
defer func() {
if !healthcheckManagingState {
- ac.updateConnectivityState(connectivity.Ready)
+ ac.updateConnectivityState(connectivity.Ready, nil)
}
}()
@@ -1352,13 +1372,13 @@ func (ac *addrConn) startHealthCheck(ctx context.Context) {
ac.mu.Unlock()
return newNonRetryClientStream(ctx, &StreamDesc{ServerStreams: true}, method, currentTr, ac)
}
- setConnectivityState := func(s connectivity.State) {
+ setConnectivityState := func(s connectivity.State, lastErr error) {
ac.mu.Lock()
defer ac.mu.Unlock()
if ac.transport != currentTr {
return
}
- ac.updateConnectivityState(s)
+ ac.updateConnectivityState(s, lastErr)
}
// Start the health checking stream.
go func() {
@@ -1424,7 +1444,7 @@ func (ac *addrConn) tearDown(err error) {
ac.transport = nil
// We have to set the state to Shutdown before anything else to prevent races
// between setting the state and logic that waits on context cancellation / etc.
- ac.updateConnectivityState(connectivity.Shutdown)
+ ac.updateConnectivityState(connectivity.Shutdown, nil)
ac.cancel()
ac.curAddr = resolver.Address{}
if err == errConnDrain && curTr != nil {
@@ -1537,3 +1557,12 @@ func (c *channelzChannel) ChannelzMetric() *channelz.ChannelInternalMetric {
// Deprecated: This error is never returned by grpc and should not be
// referenced by users.
var ErrClientConnTimeout = errors.New("grpc: timed out when dialing")
+
+func (cc *ClientConn) getResolver(scheme string) resolver.Builder {
+ for _, rb := range cc.dopts.resolvers {
+ if cc.parsedTarget.Scheme == rb.Scheme() {
+ return rb
+ }
+ }
+ return resolver.Get(cc.parsedTarget.Scheme)
+}
diff --git a/vendor/google.golang.org/grpc/credentials/credentials.go b/vendor/google.golang.org/grpc/credentials/credentials.go
index c69016124..845ce5d21 100644
--- a/vendor/google.golang.org/grpc/credentials/credentials.go
+++ b/vendor/google.golang.org/grpc/credentials/credentials.go
@@ -24,17 +24,12 @@ package credentials // import "google.golang.org/grpc/credentials"
import (
"context"
- "crypto/tls"
- "crypto/x509"
"errors"
"fmt"
- "io/ioutil"
"net"
"github.com/golang/protobuf/proto"
-
- "google.golang.org/grpc/credentials/internal"
- ginternal "google.golang.org/grpc/internal"
+ "google.golang.org/grpc/internal"
)
// PerRPCCredentials defines the common interface for the credentials which need to
@@ -56,6 +51,48 @@ type PerRPCCredentials interface {
RequireTransportSecurity() bool
}
+// SecurityLevel defines the protection level on an established connection.
+//
+// This API is experimental.
+type SecurityLevel int
+
+const (
+ // NoSecurity indicates a connection is insecure.
+ // The zero SecurityLevel value is invalid for backward compatibility.
+ NoSecurity SecurityLevel = iota + 1
+ // IntegrityOnly indicates a connection only provides integrity protection.
+ IntegrityOnly
+ // PrivacyAndIntegrity indicates a connection provides both privacy and integrity protection.
+ PrivacyAndIntegrity
+)
+
+// String returns SecurityLevel in a string format.
+func (s SecurityLevel) String() string {
+ switch s {
+ case NoSecurity:
+ return "NoSecurity"
+ case IntegrityOnly:
+ return "IntegrityOnly"
+ case PrivacyAndIntegrity:
+ return "PrivacyAndIntegrity"
+ }
+ return fmt.Sprintf("invalid SecurityLevel: %v", int(s))
+}
+
+// CommonAuthInfo contains authenticated information common to AuthInfo implementations.
+// It should be embedded in a struct implementing AuthInfo to provide additional information
+// about the credentials.
+//
+// This API is experimental.
+type CommonAuthInfo struct {
+ SecurityLevel SecurityLevel
+}
+
+// GetCommonAuthInfo returns the pointer to CommonAuthInfo struct.
+func (c *CommonAuthInfo) GetCommonAuthInfo() *CommonAuthInfo {
+ return c
+}
+
// ProtocolInfo provides information regarding the gRPC wire protocol version,
// security protocol, security protocol version in use, server name, etc.
type ProtocolInfo struct {
@@ -70,6 +107,8 @@ type ProtocolInfo struct {
}
// AuthInfo defines the common interface for the auth information the users are interested in.
+// A struct that implements AuthInfo should embed CommonAuthInfo by including additional
+// information about the credentials in it.
type AuthInfo interface {
AuthType() string
}
@@ -84,7 +123,8 @@ 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.
+ // The auth information should embed CommonAuthInfo to return additional information about
+ // the credentials. Implementations must use the provided context to implement timely cancellation.
// gRPC will try to reconnect if the error returned is a temporary error
// (io.EOF, context.DeadlineExceeded or err.Temporary() == true).
// If the returned error is a wrapper error, implementations should make sure that
@@ -94,7 +134,8 @@ type TransportCredentials interface {
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.
+ // the connection. The auth information should embed CommonAuthInfo to return additional information
+ // about the credentials.
//
// If the returned net.Conn is closed, it MUST close the net.Conn provided.
ServerHandshake(net.Conn) (net.Conn, AuthInfo, error)
@@ -127,146 +168,63 @@ type Bundle interface {
NewWithMode(mode string) (Bundle, 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"
+// RequestInfo contains request data attached to the context passed to GetRequestMetadata calls.
+//
+// This API is experimental.
+type RequestInfo struct {
+ // The method passed to Invoke or NewStream for this RPC. (For proto methods, this has the format "/some.Service/Method")
+ Method string
+ // AuthInfo contains the information from a security handshake (TransportCredentials.ClientHandshake, TransportCredentials.ServerHandshake)
+ AuthInfo AuthInfo
}
-// GetSecurityValue returns security info requested by channelz.
-func (t TLSInfo) GetSecurityValue() ChannelzSecurityValue {
- v := &TLSChannelzSecurityValue{
- StandardName: cipherSuiteLookup[t.State.CipherSuite],
- }
- // Currently there's no way to get LocalCertificate info from tls package.
- if len(t.State.PeerCertificates) > 0 {
- v.RemoteCertificate = t.State.PeerCertificates[0].Raw
- }
- return v
-}
+// requestInfoKey is a struct to be used as the key when attaching a RequestInfo to a context object.
+type requestInfoKey struct{}
-// tlsCreds is the credentials required for authenticating a connection using TLS.
-type tlsCreds struct {
- // TLS configuration
- config *tls.Config
+// RequestInfoFromContext extracts the RequestInfo from the context if it exists.
+//
+// This API is experimental.
+func RequestInfoFromContext(ctx context.Context) (ri RequestInfo, ok bool) {
+ ri, ok = ctx.Value(requestInfoKey{}).(RequestInfo)
+ return
}
-func (c tlsCreds) Info() ProtocolInfo {
- return ProtocolInfo{
- SecurityProtocol: "tls",
- SecurityVersion: "1.2",
- ServerName: c.config.ServerName,
+// CheckSecurityLevel checks if a connection's security level is greater than or equal to the specified one.
+// It returns success if 1) the condition is satisified or 2) AuthInfo struct does not implement GetCommonAuthInfo() method
+// or 3) CommonAuthInfo.SecurityLevel has an invalid zero value. For 2) and 3), it is for the purpose of backward-compatibility.
+//
+// This API is experimental.
+func CheckSecurityLevel(ctx context.Context, level SecurityLevel) error {
+ type internalInfo interface {
+ GetCommonAuthInfo() *CommonAuthInfo
}
-}
-
-func (c *tlsCreds) ClientHandshake(ctx context.Context, authority 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 == "" {
- serverName, _, err := net.SplitHostPort(authority)
- if err != nil {
- // If the authority had no host port or if the authority cannot be parsed, use it as-is.
- serverName = authority
- }
- cfg.ServerName = serverName
+ ri, _ := RequestInfoFromContext(ctx)
+ if ri.AuthInfo == nil {
+ return errors.New("unable to obtain SecurityLevel from context")
}
- 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
+ if ci, ok := ri.AuthInfo.(internalInfo); ok {
+ // CommonAuthInfo.SecurityLevel has an invalid value.
+ if ci.GetCommonAuthInfo().SecurityLevel == 0 {
+ return nil
}
- case <-ctx.Done():
- return nil, nil, ctx.Err()
- }
- return internal.WrapSyscallConn(rawConn, conn), TLSInfo{conn.ConnectionState()}, 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 internal.WrapSyscallConn(rawConn, 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
-}
-
-const alpnProtoStrH2 = "h2"
-
-func appendH2ToNextProtos(ps []string) []string {
- for _, p := range ps {
- if p == alpnProtoStrH2 {
- return ps
+ if ci.GetCommonAuthInfo().SecurityLevel < level {
+ return fmt.Errorf("requires SecurityLevel %v; connection has %v", level, ci.GetCommonAuthInfo().SecurityLevel)
}
}
- ret := make([]string, 0, len(ps)+1)
- ret = append(ret, ps...)
- return append(ret, alpnProtoStrH2)
-}
-
-// NewTLS uses c to construct a TransportCredentials based on TLS.
-func NewTLS(c *tls.Config) TransportCredentials {
- tc := &tlsCreds{cloneTLSConfig(c)}
- tc.config.NextProtos = appendH2ToNextProtos(tc.config.NextProtos)
- return tc
-}
-
-// NewClientTLSFromCert constructs TLS credentials 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 TLS credentials 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 TLS credentials from the input certificate for server.
-func NewServerTLSFromCert(cert *tls.Certificate) TransportCredentials {
- return NewTLS(&tls.Config{Certificates: []tls.Certificate{*cert}})
+ // The condition is satisfied or AuthInfo struct does not implement GetCommonAuthInfo() method.
+ return nil
}
-// NewServerTLSFromFile constructs TLS credentials 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
+func init() {
+ internal.NewRequestInfoContext = func(ctx context.Context, ri RequestInfo) context.Context {
+ return context.WithValue(ctx, requestInfoKey{}, ri)
}
- return NewTLS(&tls.Config{Certificates: []tls.Certificate{cert}}), nil
}
// ChannelzSecurityInfo defines the interface that security protocols should implement
// in order to provide security info to channelz.
+//
+// This API is experimental.
type ChannelzSecurityInfo interface {
GetSecurityValue() ChannelzSecurityValue
}
@@ -274,91 +232,20 @@ type ChannelzSecurityInfo interface {
// ChannelzSecurityValue defines the interface that GetSecurityValue() return value
// should satisfy. This interface should only be satisfied by *TLSChannelzSecurityValue
// and *OtherChannelzSecurityValue.
+//
+// This API is experimental.
type ChannelzSecurityValue interface {
isChannelzSecurityValue()
}
-// TLSChannelzSecurityValue defines the struct that TLS protocol should return
-// from GetSecurityValue(), containing security info like cipher and certificate used.
-type TLSChannelzSecurityValue struct {
- ChannelzSecurityValue
- StandardName string
- LocalCertificate []byte
- RemoteCertificate []byte
-}
-
// OtherChannelzSecurityValue defines the struct that non-TLS protocol should return
// from GetSecurityValue(), which contains protocol specific security info. Note
// the Value field will be sent to users of channelz requesting channel info, and
// thus sensitive info should better be avoided.
+//
+// This API is experimental.
type OtherChannelzSecurityValue struct {
ChannelzSecurityValue
Name string
Value proto.Message
}
-
-var cipherSuiteLookup = map[uint16]string{
- tls.TLS_RSA_WITH_RC4_128_SHA: "TLS_RSA_WITH_RC4_128_SHA",
- tls.TLS_RSA_WITH_3DES_EDE_CBC_SHA: "TLS_RSA_WITH_3DES_EDE_CBC_SHA",
- tls.TLS_RSA_WITH_AES_128_CBC_SHA: "TLS_RSA_WITH_AES_128_CBC_SHA",
- tls.TLS_RSA_WITH_AES_256_CBC_SHA: "TLS_RSA_WITH_AES_256_CBC_SHA",
- tls.TLS_RSA_WITH_AES_128_GCM_SHA256: "TLS_RSA_WITH_AES_128_GCM_SHA256",
- tls.TLS_RSA_WITH_AES_256_GCM_SHA384: "TLS_RSA_WITH_AES_256_GCM_SHA384",
- tls.TLS_ECDHE_ECDSA_WITH_RC4_128_SHA: "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA",
- tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA: "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA",
- tls.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA: "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA",
- tls.TLS_ECDHE_RSA_WITH_RC4_128_SHA: "TLS_ECDHE_RSA_WITH_RC4_128_SHA",
- tls.TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA: "TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA",
- tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA: "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA",
- tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA: "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA",
- tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256: "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
- tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256: "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256",
- tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384: "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
- tls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384: "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384",
- tls.TLS_FALLBACK_SCSV: "TLS_FALLBACK_SCSV",
- tls.TLS_RSA_WITH_AES_128_CBC_SHA256: "TLS_RSA_WITH_AES_128_CBC_SHA256",
- tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256: "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256",
- tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256: "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256",
- tls.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305: "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305",
- tls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305: "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305",
-}
-
-// 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: inline this function if possible.
-func cloneTLSConfig(cfg *tls.Config) *tls.Config {
- if cfg == nil {
- return &tls.Config{}
- }
-
- return cfg.Clone()
-}
-
-// RequestInfo contains request data attached to the context passed to GetRequestMetadata calls.
-//
-// This API is experimental.
-type RequestInfo struct {
- // The method passed to Invoke or NewStream for this RPC. (For proto methods, this has the format "/some.Service/Method")
- Method string
-}
-
-// requestInfoKey is a struct to be used as the key when attaching a RequestInfo to a context object.
-type requestInfoKey struct{}
-
-// RequestInfoFromContext extracts the RequestInfo from the context if it exists.
-//
-// This API is experimental.
-func RequestInfoFromContext(ctx context.Context) (ri RequestInfo, ok bool) {
- ri, ok = ctx.Value(requestInfoKey{}).(RequestInfo)
- return
-}
-
-func init() {
- ginternal.NewRequestInfoContext = func(ctx context.Context, ri RequestInfo) context.Context {
- return context.WithValue(ctx, requestInfoKey{}, ri)
- }
-}
diff --git a/vendor/google.golang.org/grpc/credentials/tls13.go b/vendor/google.golang.org/grpc/credentials/go12.go
similarity index 100%
rename from vendor/google.golang.org/grpc/credentials/tls13.go
rename to vendor/google.golang.org/grpc/credentials/go12.go
diff --git a/vendor/google.golang.org/grpc/credentials/tls.go b/vendor/google.golang.org/grpc/credentials/tls.go
new file mode 100644
index 000000000..28b4f6232
--- /dev/null
+++ b/vendor/google.golang.org/grpc/credentials/tls.go
@@ -0,0 +1,225 @@
+/*
+ *
+ * Copyright 2014 gRPC authors.
+ *
+ * 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 credentials
+
+import (
+ "context"
+ "crypto/tls"
+ "crypto/x509"
+ "fmt"
+ "io/ioutil"
+ "net"
+
+ "google.golang.org/grpc/credentials/internal"
+)
+
+// TLSInfo contains the auth information for a TLS authenticated connection.
+// It implements the AuthInfo interface.
+type TLSInfo struct {
+ State tls.ConnectionState
+ CommonAuthInfo
+}
+
+// AuthType returns the type of TLSInfo as a string.
+func (t TLSInfo) AuthType() string {
+ return "tls"
+}
+
+// GetSecurityValue returns security info requested by channelz.
+func (t TLSInfo) GetSecurityValue() ChannelzSecurityValue {
+ v := &TLSChannelzSecurityValue{
+ StandardName: cipherSuiteLookup[t.State.CipherSuite],
+ }
+ // Currently there's no way to get LocalCertificate info from tls package.
+ if len(t.State.PeerCertificates) > 0 {
+ v.RemoteCertificate = t.State.PeerCertificates[0].Raw
+ }
+ return v
+}
+
+// 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, authority 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 == "" {
+ serverName, _, err := net.SplitHostPort(authority)
+ if err != nil {
+ // If the authority had no host port or if the authority cannot be parsed, use it as-is.
+ serverName = authority
+ }
+ cfg.ServerName = serverName
+ }
+ conn := tls.Client(rawConn, cfg)
+ errChannel := make(chan error, 1)
+ go func() {
+ errChannel <- conn.Handshake()
+ close(errChannel)
+ }()
+ select {
+ case err := <-errChannel:
+ if err != nil {
+ conn.Close()
+ return nil, nil, err
+ }
+ case <-ctx.Done():
+ conn.Close()
+ return nil, nil, ctx.Err()
+ }
+ return internal.WrapSyscallConn(rawConn, conn), TLSInfo{conn.ConnectionState(), CommonAuthInfo{PrivacyAndIntegrity}}, nil
+}
+
+func (c *tlsCreds) ServerHandshake(rawConn net.Conn) (net.Conn, AuthInfo, error) {
+ conn := tls.Server(rawConn, c.config)
+ if err := conn.Handshake(); err != nil {
+ conn.Close()
+ return nil, nil, err
+ }
+ return internal.WrapSyscallConn(rawConn, conn), TLSInfo{conn.ConnectionState(), CommonAuthInfo{PrivacyAndIntegrity}}, nil
+}
+
+func (c *tlsCreds) Clone() TransportCredentials {
+ return NewTLS(c.config)
+}
+
+func (c *tlsCreds) OverrideServerName(serverNameOverride string) error {
+ c.config.ServerName = serverNameOverride
+ return nil
+}
+
+const alpnProtoStrH2 = "h2"
+
+func appendH2ToNextProtos(ps []string) []string {
+ for _, p := range ps {
+ if p == alpnProtoStrH2 {
+ return ps
+ }
+ }
+ ret := make([]string, 0, len(ps)+1)
+ ret = append(ret, ps...)
+ return append(ret, alpnProtoStrH2)
+}
+
+// NewTLS uses c to construct a TransportCredentials based on TLS.
+func NewTLS(c *tls.Config) TransportCredentials {
+ tc := &tlsCreds{cloneTLSConfig(c)}
+ tc.config.NextProtos = appendH2ToNextProtos(tc.config.NextProtos)
+ return tc
+}
+
+// NewClientTLSFromCert constructs TLS credentials 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 TLS credentials 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 TLS credentials from the input certificate for server.
+func NewServerTLSFromCert(cert *tls.Certificate) TransportCredentials {
+ return NewTLS(&tls.Config{Certificates: []tls.Certificate{*cert}})
+}
+
+// NewServerTLSFromFile constructs TLS credentials 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
+}
+
+// TLSChannelzSecurityValue defines the struct that TLS protocol should return
+// from GetSecurityValue(), containing security info like cipher and certificate used.
+//
+// This API is EXPERIMENTAL.
+type TLSChannelzSecurityValue struct {
+ ChannelzSecurityValue
+ StandardName string
+ LocalCertificate []byte
+ RemoteCertificate []byte
+}
+
+var cipherSuiteLookup = map[uint16]string{
+ tls.TLS_RSA_WITH_RC4_128_SHA: "TLS_RSA_WITH_RC4_128_SHA",
+ tls.TLS_RSA_WITH_3DES_EDE_CBC_SHA: "TLS_RSA_WITH_3DES_EDE_CBC_SHA",
+ tls.TLS_RSA_WITH_AES_128_CBC_SHA: "TLS_RSA_WITH_AES_128_CBC_SHA",
+ tls.TLS_RSA_WITH_AES_256_CBC_SHA: "TLS_RSA_WITH_AES_256_CBC_SHA",
+ tls.TLS_RSA_WITH_AES_128_GCM_SHA256: "TLS_RSA_WITH_AES_128_GCM_SHA256",
+ tls.TLS_RSA_WITH_AES_256_GCM_SHA384: "TLS_RSA_WITH_AES_256_GCM_SHA384",
+ tls.TLS_ECDHE_ECDSA_WITH_RC4_128_SHA: "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA",
+ tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA: "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA",
+ tls.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA: "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA",
+ tls.TLS_ECDHE_RSA_WITH_RC4_128_SHA: "TLS_ECDHE_RSA_WITH_RC4_128_SHA",
+ tls.TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA: "TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA",
+ tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA: "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA",
+ tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA: "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA",
+ tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256: "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
+ tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256: "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256",
+ tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384: "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
+ tls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384: "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384",
+ tls.TLS_FALLBACK_SCSV: "TLS_FALLBACK_SCSV",
+ tls.TLS_RSA_WITH_AES_128_CBC_SHA256: "TLS_RSA_WITH_AES_128_CBC_SHA256",
+ tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256: "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256",
+ tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256: "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256",
+ tls.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305: "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305",
+ tls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305: "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305",
+}
+
+// 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: inline this function if possible.
+func cloneTLSConfig(cfg *tls.Config) *tls.Config {
+ if cfg == nil {
+ return &tls.Config{}
+ }
+
+ return cfg.Clone()
+}
diff --git a/vendor/google.golang.org/grpc/dialoptions.go b/vendor/google.golang.org/grpc/dialoptions.go
index 9f872df8b..63f5ae21d 100644
--- a/vendor/google.golang.org/grpc/dialoptions.go
+++ b/vendor/google.golang.org/grpc/dialoptions.go
@@ -58,9 +58,7 @@ type dialOptions struct {
callOptions []CallOption
// This is used by v1 balancer dial option WithBalancer to support v1
// balancer, and also by WithBalancerName dial option.
- balancerBuilder balancer.Builder
- // This is to support grpclb.
- resolverBuilder resolver.Builder
+ balancerBuilder balancer.Builder
channelzParentID int64
disableServiceConfig bool
disableRetry bool
@@ -73,6 +71,7 @@ type dialOptions struct {
// resolver.ResolveNow(). The user will have no need to configure this, but
// we need to be able to configure this in tests.
resolveNowBackoff func(int) time.Duration
+ resolvers []resolver.Builder
}
// DialOption configures how we set up the connection.
@@ -231,13 +230,6 @@ func WithBalancerName(balancerName string) DialOption {
})
}
-// withResolverBuilder is only for grpclb.
-func withResolverBuilder(b resolver.Builder) DialOption {
- return newFuncDialOption(func(o *dialOptions) {
- o.resolverBuilder = b
- })
-}
-
// WithServiceConfig returns a DialOption which has a channel to read the
// service configuration.
//
@@ -346,8 +338,8 @@ func WithCredentialsBundle(b credentials.Bundle) DialOption {
// WithTimeout returns a DialOption that configures a timeout for dialing a
// ClientConn initially. This is valid if and only if WithBlock() is present.
//
-// Deprecated: use DialContext and context.WithTimeout instead. Will be
-// supported throughout 1.x.
+// Deprecated: use DialContext instead of Dial and context.WithTimeout
+// instead. Will be supported throughout 1.x.
func WithTimeout(d time.Duration) DialOption {
return newFuncDialOption(func(o *dialOptions) {
o.timeout = d
@@ -365,7 +357,6 @@ func WithContextDialer(f func(context.Context, string) (net.Conn, error)) DialOp
}
func init() {
- internal.WithResolverBuilder = withResolverBuilder
internal.WithHealthCheckFunc = withHealthCheckFunc
}
@@ -479,6 +470,8 @@ func WithAuthority(a string) DialOption {
// WithChannelzParentID returns a DialOption that specifies the channelz ID of
// current ClientConn's parent. This function is used in nested channel creation
// (e.g. grpclb dial).
+//
+// This API is EXPERIMENTAL.
func WithChannelzParentID(id int64) DialOption {
return newFuncDialOption(func(o *dialOptions) {
o.channelzParentID = id
@@ -587,3 +580,15 @@ func withResolveNowBackoff(f func(int) time.Duration) DialOption {
o.resolveNowBackoff = f
})
}
+
+// WithResolvers allows a list of resolver implementations to be registered
+// locally with the ClientConn without needing to be globally registered via
+// resolver.Register. They will be matched against the scheme used for the
+// current Dial only, and will take precedence over the global registry.
+//
+// This API is EXPERIMENTAL.
+func WithResolvers(rs ...resolver.Builder) DialOption {
+ return newFuncDialOption(func(o *dialOptions) {
+ o.resolvers = append(o.resolvers, rs...)
+ })
+}
diff --git a/vendor/google.golang.org/grpc/go.mod b/vendor/google.golang.org/grpc/go.mod
index dc56aa79d..237836130 100644
--- a/vendor/google.golang.org/grpc/go.mod
+++ b/vendor/google.golang.org/grpc/go.mod
@@ -3,7 +3,7 @@ module google.golang.org/grpc
go 1.11
require (
- github.com/envoyproxy/go-control-plane v0.9.0
+ github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473
github.com/envoyproxy/protoc-gen-validate v0.1.0
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
github.com/golang/mock v1.1.1
diff --git a/vendor/google.golang.org/grpc/go.sum b/vendor/google.golang.org/grpc/go.sum
index f6a4784d0..dd5d0cee7 100644
--- a/vendor/google.golang.org/grpc/go.sum
+++ b/vendor/google.golang.org/grpc/go.sum
@@ -3,8 +3,8 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMT
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
-github.com/envoyproxy/go-control-plane v0.9.0 h1:67WMNTvGrl7V1dWdKCeTwxDr7nio9clKoTlLhwIPnT4=
-github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
+github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473 h1:4cmBvAEBNJaGARUEs3/suWRyfyBfhf7I60WBZq+bv2w=
+github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
github.com/envoyproxy/protoc-gen-validate v0.1.0 h1:EQciDnbrYxy13PgWoY8AqoxGiPrpgBZ1R8UNe3ddc+A=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58=
diff --git a/vendor/google.golang.org/grpc/internal/binarylog/binarylog.go b/vendor/google.golang.org/grpc/internal/binarylog/binarylog.go
index 4062c025c..8b1051674 100644
--- a/vendor/google.golang.org/grpc/internal/binarylog/binarylog.go
+++ b/vendor/google.golang.org/grpc/internal/binarylog/binarylog.go
@@ -98,7 +98,7 @@ func (l *logger) setDefaultMethodLogger(ml *methodLoggerConfig) error {
// New methodLogger with same service overrides the old one.
func (l *logger) setServiceMethodLogger(service string, ml *methodLoggerConfig) error {
if _, ok := l.services[service]; ok {
- return fmt.Errorf("conflicting rules for service %v found", service)
+ return fmt.Errorf("conflicting service rules for service %v found", service)
}
if l.services == nil {
l.services = make(map[string]*methodLoggerConfig)
@@ -112,10 +112,10 @@ func (l *logger) setServiceMethodLogger(service string, ml *methodLoggerConfig)
// New methodLogger with same method overrides the old one.
func (l *logger) setMethodMethodLogger(method string, ml *methodLoggerConfig) error {
if _, ok := l.blacklist[method]; ok {
- return fmt.Errorf("conflicting rules for method %v found", method)
+ return fmt.Errorf("conflicting blacklist rules for method %v found", method)
}
if _, ok := l.methods[method]; ok {
- return fmt.Errorf("conflicting rules for method %v found", method)
+ return fmt.Errorf("conflicting method rules for method %v found", method)
}
if l.methods == nil {
l.methods = make(map[string]*methodLoggerConfig)
@@ -127,10 +127,10 @@ func (l *logger) setMethodMethodLogger(method string, ml *methodLoggerConfig) er
// Set blacklist method for "-service/method".
func (l *logger) setBlacklist(method string) error {
if _, ok := l.blacklist[method]; ok {
- return fmt.Errorf("conflicting rules for method %v found", method)
+ return fmt.Errorf("conflicting blacklist rules for method %v found", method)
}
if _, ok := l.methods[method]; ok {
- return fmt.Errorf("conflicting rules for method %v found", method)
+ return fmt.Errorf("conflicting method rules for method %v found", method)
}
if l.blacklist == nil {
l.blacklist = make(map[string]struct{})
diff --git a/vendor/google.golang.org/grpc/internal/buffer/unbounded.go b/vendor/google.golang.org/grpc/internal/buffer/unbounded.go
index 2cb3109d8..9f6a0c120 100644
--- a/vendor/google.golang.org/grpc/internal/buffer/unbounded.go
+++ b/vendor/google.golang.org/grpc/internal/buffer/unbounded.go
@@ -26,6 +26,13 @@ import "sync"
//
// All methods on this type are thread-safe and don't block on anything except
// the underlying mutex used for synchronization.
+//
+// Unbounded supports values of any type to be stored in it by using a channel
+// of `interface{}`. This means that a call to Put() incurs an extra memory
+// allocation, and also that users need a type assertion while reading. For
+// performance critical code paths, using Unbounded is strongly discouraged and
+// defining a new type specific implementation of this buffer is preferred. See
+// internal/transport/transport.go for an example of this.
type Unbounded struct {
c chan interface{}
mu sync.Mutex
diff --git a/vendor/google.golang.org/grpc/internal/envconfig/envconfig.go b/vendor/google.golang.org/grpc/internal/envconfig/envconfig.go
index 3ee8740f1..ae6c8972f 100644
--- a/vendor/google.golang.org/grpc/internal/envconfig/envconfig.go
+++ b/vendor/google.golang.org/grpc/internal/envconfig/envconfig.go
@@ -25,11 +25,14 @@ import (
)
const (
- prefix = "GRPC_GO_"
- retryStr = prefix + "RETRY"
+ prefix = "GRPC_GO_"
+ retryStr = prefix + "RETRY"
+ txtErrIgnoreStr = prefix + "IGNORE_TXT_ERRORS"
)
var (
// Retry is set if retry is explicitly enabled via "GRPC_GO_RETRY=on".
Retry = strings.EqualFold(os.Getenv(retryStr), "on")
+ // TXTErrIgnore is set if TXT errors should be ignored ("GRPC_GO_IGNORE_TXT_ERRORS" is not "false").
+ TXTErrIgnore = !strings.EqualFold(os.Getenv(retryStr), "false")
)
diff --git a/vendor/google.golang.org/grpc/internal/internal.go b/vendor/google.golang.org/grpc/internal/internal.go
index b96b3597c..0912f0bf4 100644
--- a/vendor/google.golang.org/grpc/internal/internal.go
+++ b/vendor/google.golang.org/grpc/internal/internal.go
@@ -28,8 +28,6 @@ import (
)
var (
- // WithResolverBuilder is set by dialoptions.go
- WithResolverBuilder interface{} // func (resolver.Builder) grpc.DialOption
// WithHealthCheckFunc is set by dialoptions.go
WithHealthCheckFunc interface{} // func (HealthChecker) DialOption
// HealthCheckFunc is used to provide client-side LB channel health checking
@@ -60,7 +58,7 @@ var (
//
// The health checking protocol is defined at:
// https://github.com/grpc/grpc/blob/master/doc/health-checking.md
-type HealthChecker func(ctx context.Context, newStream func(string) (interface{}, error), setConnectivityState func(connectivity.State), serviceName string) error
+type HealthChecker func(ctx context.Context, newStream func(string) (interface{}, error), setConnectivityState func(connectivity.State, error), serviceName string) error
const (
// CredsBundleModeFallback switches GoogleDefaultCreds to fallback mode.
diff --git a/vendor/google.golang.org/grpc/internal/resolver/dns/dns_resolver.go b/vendor/google.golang.org/grpc/internal/resolver/dns/dns_resolver.go
index abc0f92ca..c368db62e 100644
--- a/vendor/google.golang.org/grpc/internal/resolver/dns/dns_resolver.go
+++ b/vendor/google.golang.org/grpc/internal/resolver/dns/dns_resolver.go
@@ -32,20 +32,23 @@ import (
"sync"
"time"
- "google.golang.org/grpc/backoff"
"google.golang.org/grpc/grpclog"
- internalbackoff "google.golang.org/grpc/internal/backoff"
+ "google.golang.org/grpc/internal/envconfig"
"google.golang.org/grpc/internal/grpcrand"
"google.golang.org/grpc/resolver"
+ "google.golang.org/grpc/serviceconfig"
)
+// EnableSRVLookups controls whether the DNS resolver attempts to fetch gRPCLB
+// addresses from SRV records. Must not be changed after init time.
+var EnableSRVLookups = false
+
func init() {
resolver.Register(NewBuilder())
}
const (
defaultPort = "443"
- defaultFreq = time.Minute * 30
defaultDNSSvrPort = "53"
golang = "GO"
// txtPrefix is the prefix string to be prepended to the host name for txt record lookup.
@@ -95,49 +98,33 @@ var customAuthorityResolver = func(authority string) (netResolver, error) {
// NewBuilder creates a dnsBuilder which is used to factory DNS resolvers.
func NewBuilder() resolver.Builder {
- return &dnsBuilder{minFreq: defaultFreq}
+ return &dnsBuilder{}
}
-type dnsBuilder struct {
- // minimum frequency of polling the DNS server.
- minFreq time.Duration
-}
+type dnsBuilder struct{}
// Build creates and starts a DNS resolver that watches the name resolution of the target.
-func (b *dnsBuilder) Build(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOption) (resolver.Resolver, error) {
+func (b *dnsBuilder) Build(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions) (resolver.Resolver, error) {
host, port, err := parseTarget(target.Endpoint, defaultPort)
if err != nil {
return nil, err
}
// IP address.
- if net.ParseIP(host) != nil {
- host, _ = formatIP(host)
- addr := []resolver.Address{{Addr: host + ":" + port}}
- i := &ipResolver{
- cc: cc,
- ip: addr,
- rn: make(chan struct{}, 1),
- q: make(chan struct{}),
- }
- cc.NewAddress(addr)
- go i.watcher()
- return i, nil
+ if ipAddr, ok := formatIP(host); ok {
+ addr := []resolver.Address{{Addr: ipAddr + ":" + port}}
+ cc.UpdateState(resolver.State{Addresses: addr})
+ return deadResolver{}, nil
}
// DNS address (non-IP).
ctx, cancel := context.WithCancel(context.Background())
- bc := backoff.DefaultConfig
- bc.MaxDelay = b.minFreq
d := &dnsResolver{
- freq: b.minFreq,
- backoff: internalbackoff.Exponential{Config: bc},
host: host,
port: port,
ctx: ctx,
cancel: cancel,
cc: cc,
- t: time.NewTimer(0),
rn: make(chan struct{}, 1),
disableServiceConfig: opts.DisableServiceConfig,
}
@@ -153,6 +140,7 @@ func (b *dnsBuilder) Build(target resolver.Target, cc resolver.ClientConn, opts
d.wg.Add(1)
go d.watcher()
+ d.ResolveNow(resolver.ResolveNowOptions{})
return d, nil
}
@@ -167,53 +155,23 @@ type netResolver interface {
LookupTXT(ctx context.Context, name string) (txts []string, err error)
}
-// ipResolver watches for the name resolution update for an IP address.
-type ipResolver struct {
- cc resolver.ClientConn
- ip []resolver.Address
- // rn channel is used by ResolveNow() to force an immediate resolution of the target.
- rn chan struct{}
- q chan struct{}
-}
-
-// ResolveNow resend the address it stores, no resolution is needed.
-func (i *ipResolver) ResolveNow(opt resolver.ResolveNowOption) {
- select {
- case i.rn <- struct{}{}:
- default:
- }
-}
+// deadResolver is a resolver that does nothing.
+type deadResolver struct{}
-// Close closes the ipResolver.
-func (i *ipResolver) Close() {
- close(i.q)
-}
+func (deadResolver) ResolveNow(resolver.ResolveNowOptions) {}
-func (i *ipResolver) watcher() {
- for {
- select {
- case <-i.rn:
- i.cc.NewAddress(i.ip)
- case <-i.q:
- return
- }
- }
-}
+func (deadResolver) Close() {}
// dnsResolver watches for the name resolution update for a non-IP target.
type dnsResolver struct {
- freq time.Duration
- backoff internalbackoff.Exponential
- retryCount int
- host string
- port string
- resolver netResolver
- ctx context.Context
- cancel context.CancelFunc
- cc resolver.ClientConn
+ host string
+ port string
+ resolver netResolver
+ ctx context.Context
+ cancel context.CancelFunc
+ cc resolver.ClientConn
// rn channel is used by ResolveNow() to force an immediate resolution of the target.
rn chan struct{}
- t *time.Timer
// wg is used to enforce Close() to return after the watcher() goroutine has finished.
// Otherwise, data race will be possible. [Race Example] in dns_resolver_test we
// replace the real lookup functions with mocked ones to facilitate testing.
@@ -225,7 +183,7 @@ type dnsResolver struct {
}
// ResolveNow invoke an immediate resolution of the target that this dnsResolver watches.
-func (d *dnsResolver) ResolveNow(opt resolver.ResolveNowOption) {
+func (d *dnsResolver) ResolveNow(resolver.ResolveNowOptions) {
select {
case d.rn <- struct{}{}:
default:
@@ -236,7 +194,6 @@ func (d *dnsResolver) ResolveNow(opt resolver.ResolveNowOption) {
func (d *dnsResolver) Close() {
d.cancel()
d.wg.Wait()
- d.t.Stop()
}
func (d *dnsResolver) watcher() {
@@ -245,27 +202,15 @@ func (d *dnsResolver) watcher() {
select {
case <-d.ctx.Done():
return
- case <-d.t.C:
case <-d.rn:
- if !d.t.Stop() {
- // Before resetting a timer, it should be stopped to prevent racing with
- // reads on it's channel.
- <-d.t.C
- }
}
- result, sc := d.lookup()
- // Next lookup should happen within an interval defined by d.freq. It may be
- // more often due to exponential retry on empty address list.
- if len(result) == 0 {
- d.retryCount++
- d.t.Reset(d.backoff.Backoff(d.retryCount))
+ state, err := d.lookup()
+ if err != nil {
+ d.cc.ReportError(err)
} else {
- d.retryCount = 0
- d.t.Reset(d.freq)
+ d.cc.UpdateState(*state)
}
- d.cc.NewServiceConfig(sc)
- d.cc.NewAddress(result)
// Sleep to prevent excessive re-resolutions. Incoming resolution requests
// will be queued in d.rn.
@@ -279,37 +224,68 @@ func (d *dnsResolver) watcher() {
}
}
-func (d *dnsResolver) lookupSRV() []resolver.Address {
+func (d *dnsResolver) lookupSRV() ([]resolver.Address, error) {
+ if !EnableSRVLookups {
+ return nil, nil
+ }
var newAddrs []resolver.Address
_, srvs, err := d.resolver.LookupSRV(d.ctx, "grpclb", "tcp", d.host)
if err != nil {
- grpclog.Infof("grpc: failed dns SRV record lookup due to %v.\n", err)
- return nil
+ err = handleDNSError(err, "SRV") // may become nil
+ return nil, err
}
for _, s := range srvs {
lbAddrs, err := d.resolver.LookupHost(d.ctx, s.Target)
if err != nil {
- grpclog.Infof("grpc: failed load balancer address dns lookup due to %v.\n", err)
- continue
+ err = handleDNSError(err, "A") // may become nil
+ if err == nil {
+ // If there are other SRV records, look them up and ignore this
+ // one that does not exist.
+ continue
+ }
+ return nil, err
}
for _, a := range lbAddrs {
- a, ok := formatIP(a)
+ ip, ok := formatIP(a)
if !ok {
- grpclog.Errorf("grpc: failed IP parsing due to %v.\n", err)
- continue
+ return nil, fmt.Errorf("dns: error parsing A record IP address %v", a)
}
- addr := a + ":" + strconv.Itoa(int(s.Port))
+ addr := ip + ":" + strconv.Itoa(int(s.Port))
newAddrs = append(newAddrs, resolver.Address{Addr: addr, Type: resolver.GRPCLB, ServerName: s.Target})
}
}
- return newAddrs
+ return newAddrs, nil
+}
+
+var filterError = func(err error) error {
+ if dnsErr, ok := err.(*net.DNSError); ok && !dnsErr.IsTimeout && !dnsErr.IsTemporary {
+ // Timeouts and temporary errors should be communicated to gRPC to
+ // attempt another DNS query (with backoff). Other errors should be
+ // suppressed (they may represent the absence of a TXT record).
+ return nil
+ }
+ return err
+}
+
+func handleDNSError(err error, lookupType string) error {
+ err = filterError(err)
+ if err != nil {
+ err = fmt.Errorf("dns: %v record lookup error: %v", lookupType, err)
+ grpclog.Infoln(err)
+ }
+ return err
}
-func (d *dnsResolver) lookupTXT() string {
+func (d *dnsResolver) lookupTXT() *serviceconfig.ParseResult {
ss, err := d.resolver.LookupTXT(d.ctx, txtPrefix+d.host)
if err != nil {
- grpclog.Infof("grpc: failed dns TXT record lookup due to %v.\n", err)
- return ""
+ if envconfig.TXTErrIgnore {
+ return nil
+ }
+ if err = handleDNSError(err, "TXT"); err != nil {
+ return &serviceconfig.ParseResult{Err: err}
+ }
+ return nil
}
var res string
for _, s := range ss {
@@ -318,40 +294,45 @@ func (d *dnsResolver) lookupTXT() string {
// TXT record must have "grpc_config=" attribute in order to be used as service config.
if !strings.HasPrefix(res, txtAttribute) {
- grpclog.Warningf("grpc: TXT record %v missing %v attribute", res, txtAttribute)
- return ""
+ grpclog.Warningf("dns: TXT record %v missing %v attribute", res, txtAttribute)
+ // This is not an error; it is the equivalent of not having a service config.
+ return nil
}
- return strings.TrimPrefix(res, txtAttribute)
+ sc := canaryingSC(strings.TrimPrefix(res, txtAttribute))
+ return d.cc.ParseServiceConfig(sc)
}
-func (d *dnsResolver) lookupHost() []resolver.Address {
+func (d *dnsResolver) lookupHost() ([]resolver.Address, error) {
var newAddrs []resolver.Address
addrs, err := d.resolver.LookupHost(d.ctx, d.host)
if err != nil {
- grpclog.Warningf("grpc: failed dns A record lookup due to %v.\n", err)
- return nil
+ err = handleDNSError(err, "A")
+ return nil, err
}
for _, a := range addrs {
- a, ok := formatIP(a)
+ ip, ok := formatIP(a)
if !ok {
- grpclog.Errorf("grpc: failed IP parsing due to %v.\n", err)
- continue
+ return nil, fmt.Errorf("dns: error parsing A record IP address %v", a)
}
- addr := a + ":" + d.port
+ addr := ip + ":" + d.port
newAddrs = append(newAddrs, resolver.Address{Addr: addr})
}
- return newAddrs
+ return newAddrs, nil
}
-func (d *dnsResolver) lookup() ([]resolver.Address, string) {
- newAddrs := d.lookupSRV()
- // Support fallback to non-balancer address.
- newAddrs = append(newAddrs, d.lookupHost()...)
- if d.disableServiceConfig {
- return newAddrs, ""
+func (d *dnsResolver) lookup() (*resolver.State, error) {
+ srv, srvErr := d.lookupSRV()
+ addrs, hostErr := d.lookupHost()
+ if hostErr != nil && (srvErr != nil || len(srv) == 0) {
+ return nil, hostErr
+ }
+ state := &resolver.State{
+ Addresses: append(addrs, srv...),
+ }
+ if !d.disableServiceConfig {
+ state.ServiceConfig = d.lookupTXT()
}
- sc := d.lookupTXT()
- return newAddrs, canaryingSC(sc)
+ return state, nil
}
// formatIP returns ok = false if addr is not a valid textual representation of an IP address.
@@ -437,12 +418,12 @@ func canaryingSC(js string) string {
var rcs []rawChoice
err := json.Unmarshal([]byte(js), &rcs)
if err != nil {
- grpclog.Warningf("grpc: failed to parse service config json string due to %v.\n", err)
+ grpclog.Warningf("dns: error parsing service config json: %v", err)
return ""
}
cliHostname, err := os.Hostname()
if err != nil {
- grpclog.Warningf("grpc: failed to get client hostname due to %v.\n", err)
+ grpclog.Warningf("dns: error getting client hostname: %v", err)
return ""
}
var sc string
diff --git a/vendor/google.golang.org/grpc/internal/resolver/dns/go113.go b/vendor/google.golang.org/grpc/internal/resolver/dns/go113.go
new file mode 100644
index 000000000..8783a8cf8
--- /dev/null
+++ b/vendor/google.golang.org/grpc/internal/resolver/dns/go113.go
@@ -0,0 +1,33 @@
+// +build go1.13
+
+/*
+ *
+ * Copyright 2019 gRPC authors.
+ *
+ * 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 dns
+
+import "net"
+
+func init() {
+ filterError = func(err error) error {
+ if dnsErr, ok := err.(*net.DNSError); ok && dnsErr.IsNotFound {
+ // The name does not exist; not an error.
+ return nil
+ }
+ return err
+ }
+}
diff --git a/vendor/google.golang.org/grpc/internal/resolver/passthrough/passthrough.go b/vendor/google.golang.org/grpc/internal/resolver/passthrough/passthrough.go
index 893d5d12c..520d9229e 100644
--- a/vendor/google.golang.org/grpc/internal/resolver/passthrough/passthrough.go
+++ b/vendor/google.golang.org/grpc/internal/resolver/passthrough/passthrough.go
@@ -26,7 +26,7 @@ const scheme = "passthrough"
type passthroughBuilder struct{}
-func (*passthroughBuilder) Build(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOption) (resolver.Resolver, error) {
+func (*passthroughBuilder) Build(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions) (resolver.Resolver, error) {
r := &passthroughResolver{
target: target,
cc: cc,
@@ -48,7 +48,7 @@ func (r *passthroughResolver) start() {
r.cc.UpdateState(resolver.State{Addresses: []resolver.Address{{Addr: r.target.Endpoint}}})
}
-func (*passthroughResolver) ResolveNow(o resolver.ResolveNowOption) {}
+func (*passthroughResolver) ResolveNow(o resolver.ResolveNowOptions) {}
func (*passthroughResolver) Close() {}
diff --git a/vendor/google.golang.org/grpc/internal/transport/handler_server.go b/vendor/google.golang.org/grpc/internal/transport/handler_server.go
index 78f9ddc3d..c3c32dafe 100644
--- a/vendor/google.golang.org/grpc/internal/transport/handler_server.go
+++ b/vendor/google.golang.org/grpc/internal/transport/handler_server.go
@@ -227,7 +227,9 @@ func (ht *serverHandlerTransport) WriteStatus(s *Stream, st *status.Status) erro
if err == nil { // transport has not been closed
if ht.stats != nil {
- ht.stats.HandleRPC(s.Context(), &stats.OutTrailer{})
+ ht.stats.HandleRPC(s.Context(), &stats.OutTrailer{
+ Trailer: s.trailer.Copy(),
+ })
}
}
ht.Close()
@@ -289,7 +291,9 @@ func (ht *serverHandlerTransport) WriteHeader(s *Stream, md metadata.MD) error {
if err == nil {
if ht.stats != nil {
- ht.stats.HandleRPC(s.Context(), &stats.OutHeader{})
+ ht.stats.HandleRPC(s.Context(), &stats.OutHeader{
+ Header: md.Copy(),
+ })
}
}
return err
@@ -334,7 +338,7 @@ func (ht *serverHandlerTransport) HandleStreams(startStream func(*Stream), trace
Addr: ht.RemoteAddr(),
}
if req.TLS != nil {
- pr.AuthInfo = credentials.TLSInfo{State: *req.TLS}
+ pr.AuthInfo = credentials.TLSInfo{State: *req.TLS, CommonAuthInfo: credentials.CommonAuthInfo{credentials.PrivacyAndIntegrity}}
}
ctx = metadata.NewIncomingContext(ctx, ht.headerMD)
s.ctx = peer.NewContext(ctx, pr)
diff --git a/vendor/google.golang.org/grpc/internal/transport/http2_client.go b/vendor/google.golang.org/grpc/internal/transport/http2_client.go
index 294661a3f..2d6feeb1b 100644
--- a/vendor/google.golang.org/grpc/internal/transport/http2_client.go
+++ b/vendor/google.golang.org/grpc/internal/transport/http2_client.go
@@ -45,9 +45,14 @@ import (
"google.golang.org/grpc/status"
)
+// clientConnectionCounter counts the number of connections a client has
+// initiated (equal to the number of http2Clients created). Must be accessed
+// atomically.
+var clientConnectionCounter uint64
+
// http2Client implements the ClientTransport interface with HTTP2.
type http2Client struct {
- lastRead int64 // keep this field 64-bit aligned
+ lastRead int64 // Keep this field 64-bit aligned. Accessed atomically.
ctx context.Context
cancel context.CancelFunc
ctxDone <-chan struct{} // Cache the ctx.Done() chan.
@@ -126,6 +131,8 @@ type http2Client struct {
onClose func()
bufferPool *bufferPool
+
+ connectionID uint64
}
func dial(ctx context.Context, fn func(context.Context, string) (net.Conn, error), addr string) (net.Conn, error) {
@@ -329,6 +336,8 @@ func newHTTP2Client(connectCtx, ctx context.Context, addr TargetInfo, opts Conne
}
}
+ t.connectionID = atomic.AddUint64(&clientConnectionCounter, 1)
+
if err := t.framer.writer.Flush(); err != nil {
return nil, err
}
@@ -394,7 +403,8 @@ func (t *http2Client) getPeer() *peer.Peer {
func (t *http2Client) createHeaderFields(ctx context.Context, callHdr *CallHdr) ([]hpack.HeaderField, error) {
aud := t.createAudience(callHdr)
ri := credentials.RequestInfo{
- Method: callHdr.Method,
+ Method: callHdr.Method,
+ AuthInfo: t.authInfo,
}
ctxWithRequestInfo := internal.NewRequestInfoContext.(func(context.Context, credentials.RequestInfo) context.Context)(ctx, ri)
authData, err := t.getTrAuthData(ctxWithRequestInfo, aud)
@@ -424,6 +434,7 @@ func (t *http2Client) createHeaderFields(ctx context.Context, callHdr *CallHdr)
if callHdr.SendCompress != "" {
headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-encoding", Value: callHdr.SendCompress})
+ headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-accept-encoding", Value: callHdr.SendCompress})
}
if dl, ok := ctx.Deadline(); ok {
// Send out timeout regardless its value. The server can detect timeout context by itself.
@@ -669,12 +680,14 @@ func (t *http2Client) NewStream(ctx context.Context, callHdr *CallHdr) (_ *Strea
}
}
if t.statsHandler != nil {
+ header, _, _ := metadata.FromOutgoingContextRaw(ctx)
outHeader := &stats.OutHeader{
Client: true,
FullMethod: callHdr.Method,
RemoteAddr: t.remoteAddr,
LocalAddr: t.localAddr,
Compression: callHdr.SendCompress,
+ Header: header.Copy(),
}
t.statsHandler.HandleRPC(s.ctx, outHeader)
}
@@ -1177,12 +1190,14 @@ func (t *http2Client) operateHeaders(frame *http2.MetaHeadersFrame) {
inHeader := &stats.InHeader{
Client: true,
WireLength: int(frame.Header().Length),
+ Header: s.header.Copy(),
}
t.statsHandler.HandleRPC(s.ctx, inHeader)
} else {
inTrailer := &stats.InTrailer{
Client: true,
WireLength: int(frame.Header().Length),
+ Trailer: s.trailer.Copy(),
}
t.statsHandler.HandleRPC(s.ctx, inTrailer)
}
@@ -1369,7 +1384,6 @@ func (t *http2Client) keepalive() {
// acked).
sleepDuration := minTime(t.kp.Time, timeoutLeft)
timeoutLeft -= sleepDuration
- prevNano = lastRead
timer.Reset(sleepDuration)
case <-t.ctx.Done():
if !timer.Stop() {
diff --git a/vendor/google.golang.org/grpc/internal/transport/http2_server.go b/vendor/google.golang.org/grpc/internal/transport/http2_server.go
index 076038364..8b04b0392 100644
--- a/vendor/google.golang.org/grpc/internal/transport/http2_server.go
+++ b/vendor/google.golang.org/grpc/internal/transport/http2_server.go
@@ -62,8 +62,13 @@ var (
statusRawProto = internal.StatusRawProto.(func(*status.Status) *spb.Status)
)
+// serverConnectionCounter counts the number of connections a server has seen
+// (equal to the number of http2Servers created). Must be accessed atomically.
+var serverConnectionCounter uint64
+
// http2Server implements the ServerTransport interface with HTTP2.
type http2Server struct {
+ lastRead int64 // Keep this field 64-bit aligned. Accessed atomically.
ctx context.Context
done chan struct{}
conn net.Conn
@@ -83,12 +88,8 @@ type http2Server struct {
controlBuf *controlBuffer
fc *trInFlow
stats stats.Handler
- // Flag to keep track of reading activity on transport.
- // 1 is true and 0 is false.
- activity uint32 // Accessed atomically.
// Keepalive and max-age parameters for the server.
kp keepalive.ServerParameters
-
// Keepalive enforcement policy.
kep keepalive.EnforcementPolicy
// The time instance last ping was received.
@@ -124,6 +125,8 @@ type http2Server struct {
channelzID int64 // channelz unique identification number
czData *channelzData
bufferPool *bufferPool
+
+ connectionID uint64
}
// newHTTP2Server constructs a ServerTransport based on HTTP2. ConnectionError is
@@ -253,6 +256,9 @@ func newHTTP2Server(conn net.Conn, config *ServerConfig) (_ ServerTransport, err
if channelz.IsOn() {
t.channelzID = channelz.RegisterNormalSocket(t, config.ChannelzParentID, fmt.Sprintf("%s -> %s", t.remoteAddr, t.localAddr))
}
+
+ t.connectionID = atomic.AddUint64(&serverConnectionCounter, 1)
+
t.framer.writer.Flush()
defer func() {
@@ -277,7 +283,7 @@ func newHTTP2Server(conn net.Conn, config *ServerConfig) (_ ServerTransport, err
if err != nil {
return nil, connectionErrorf(false, err, "transport: http2Server.HandleStreams failed to read initial settings frame: %v", err)
}
- atomic.StoreUint32(&t.activity, 1)
+ atomic.StoreInt64(&t.lastRead, time.Now().UnixNano())
sf, ok := frame.(*http2.SettingsFrame)
if !ok {
return nil, connectionErrorf(false, nil, "transport: http2Server.HandleStreams saw invalid preface type %T from client", frame)
@@ -416,6 +422,7 @@ func (t *http2Server) operateHeaders(frame *http2.MetaHeadersFrame, handle func(
LocalAddr: t.localAddr,
Compression: s.recvCompress,
WireLength: int(frame.Header().Length),
+ Header: metadata.MD(state.data.mdata).Copy(),
}
t.stats.HandleRPC(s.ctx, inHeader)
}
@@ -449,7 +456,7 @@ func (t *http2Server) HandleStreams(handle func(*Stream), traceCtx func(context.
for {
t.controlBuf.throttle()
frame, err := t.framer.fr.ReadFrame()
- atomic.StoreUint32(&t.activity, 1)
+ atomic.StoreInt64(&t.lastRead, time.Now().UnixNano())
if err != nil {
if se, ok := err.(http2.StreamError); ok {
warningf("transport: http2Server.HandleStreams encountered http2.StreamError: %v", se)
@@ -808,7 +815,9 @@ func (t *http2Server) writeHeaderLocked(s *Stream) error {
if t.stats != nil {
// Note: WireLength is not set in outHeader.
// TODO(mmukhi): Revisit this later, if needed.
- outHeader := &stats.OutHeader{}
+ outHeader := &stats.OutHeader{
+ Header: s.header.Copy(),
+ }
t.stats.HandleRPC(s.Context(), outHeader)
}
return nil
@@ -871,7 +880,9 @@ func (t *http2Server) WriteStatus(s *Stream, st *status.Status) error {
rst := s.getState() == streamActive
t.finishStream(s, rst, http2.ErrCodeNo, trailingHeader, true)
if t.stats != nil {
- t.stats.HandleRPC(s.Context(), &stats.OutTrailer{})
+ t.stats.HandleRPC(s.Context(), &stats.OutTrailer{
+ Trailer: s.trailer.Copy(),
+ })
}
return nil
}
@@ -932,32 +943,35 @@ func (t *http2Server) Write(s *Stream, hdr []byte, data []byte, opts *Options) e
// after an additional duration of keepalive.Timeout.
func (t *http2Server) keepalive() {
p := &ping{}
- var pingSent bool
- maxIdle := time.NewTimer(t.kp.MaxConnectionIdle)
- maxAge := time.NewTimer(t.kp.MaxConnectionAge)
- keepalive := time.NewTimer(t.kp.Time)
- // NOTE: All exit paths of this function should reset their
- // respective timers. A failure to do so will cause the
- // following clean-up to deadlock and eventually leak.
+ // True iff a ping has been sent, and no data has been received since then.
+ outstandingPing := false
+ // Amount of time remaining before which we should receive an ACK for the
+ // last sent ping.
+ kpTimeoutLeft := time.Duration(0)
+ // Records the last value of t.lastRead before we go block on the timer.
+ // This is required to check for read activity since then.
+ prevNano := time.Now().UnixNano()
+ // Initialize the different timers to their default values.
+ idleTimer := time.NewTimer(t.kp.MaxConnectionIdle)
+ ageTimer := time.NewTimer(t.kp.MaxConnectionAge)
+ kpTimer := time.NewTimer(t.kp.Time)
defer func() {
- if !maxIdle.Stop() {
- <-maxIdle.C
- }
- if !maxAge.Stop() {
- <-maxAge.C
- }
- if !keepalive.Stop() {
- <-keepalive.C
- }
+ // We need to drain the underlying channel in these timers after a call
+ // to Stop(), only if we are interested in resetting them. Clearly we
+ // are not interested in resetting them here.
+ idleTimer.Stop()
+ ageTimer.Stop()
+ kpTimer.Stop()
}()
+
for {
select {
- case <-maxIdle.C:
+ case <-idleTimer.C:
t.mu.Lock()
idle := t.idle
if idle.IsZero() { // The connection is non-idle.
t.mu.Unlock()
- maxIdle.Reset(t.kp.MaxConnectionIdle)
+ idleTimer.Reset(t.kp.MaxConnectionIdle)
continue
}
val := t.kp.MaxConnectionIdle - time.Since(idle)
@@ -966,43 +980,51 @@ func (t *http2Server) keepalive() {
// The connection has been idle for a duration of keepalive.MaxConnectionIdle or more.
// Gracefully close the connection.
t.drain(http2.ErrCodeNo, []byte{})
- // Resetting the timer so that the clean-up doesn't deadlock.
- maxIdle.Reset(infinity)
return
}
- maxIdle.Reset(val)
- case <-maxAge.C:
+ idleTimer.Reset(val)
+ case <-ageTimer.C:
t.drain(http2.ErrCodeNo, []byte{})
- maxAge.Reset(t.kp.MaxConnectionAgeGrace)
+ ageTimer.Reset(t.kp.MaxConnectionAgeGrace)
select {
- case <-maxAge.C:
+ case <-ageTimer.C:
// Close the connection after grace period.
infof("transport: closing server transport due to maximum connection age.")
t.Close()
- // Resetting the timer so that the clean-up doesn't deadlock.
- maxAge.Reset(infinity)
case <-t.done:
}
return
- case <-keepalive.C:
- if atomic.CompareAndSwapUint32(&t.activity, 1, 0) {
- pingSent = false
- keepalive.Reset(t.kp.Time)
+ case <-kpTimer.C:
+ lastRead := atomic.LoadInt64(&t.lastRead)
+ if lastRead > prevNano {
+ // There has been read activity since the last time we were
+ // here. Setup the timer to fire at kp.Time seconds from
+ // lastRead time and continue.
+ outstandingPing = false
+ kpTimer.Reset(time.Duration(lastRead) + t.kp.Time - time.Duration(time.Now().UnixNano()))
+ prevNano = lastRead
continue
}
- if pingSent {
+ if outstandingPing && kpTimeoutLeft <= 0 {
infof("transport: closing server transport due to idleness.")
t.Close()
- // Resetting the timer so that the clean-up doesn't deadlock.
- keepalive.Reset(infinity)
return
}
- pingSent = true
- if channelz.IsOn() {
- atomic.AddInt64(&t.czData.kpCount, 1)
+ if !outstandingPing {
+ if channelz.IsOn() {
+ atomic.AddInt64(&t.czData.kpCount, 1)
+ }
+ t.controlBuf.put(p)
+ kpTimeoutLeft = t.kp.Timeout
+ outstandingPing = true
}
- t.controlBuf.put(p)
- keepalive.Reset(t.kp.Timeout)
+ // The amount of time to sleep here is the minimum of kp.Time and
+ // timeoutLeft. This will ensure that we wait only for kp.Time
+ // before sending out the next ping (for cases where the ping is
+ // acked).
+ sleepDuration := minTime(t.kp.Time, kpTimeoutLeft)
+ kpTimeoutLeft -= sleepDuration
+ kpTimer.Reset(sleepDuration)
case <-t.done:
return
}
diff --git a/vendor/google.golang.org/grpc/internal/transport/transport.go b/vendor/google.golang.org/grpc/internal/transport/transport.go
index bfab940bd..a30da9eb3 100644
--- a/vendor/google.golang.org/grpc/internal/transport/transport.go
+++ b/vendor/google.golang.org/grpc/internal/transport/transport.go
@@ -73,10 +73,11 @@ type recvMsg struct {
}
// recvBuffer is an unbounded channel of recvMsg structs.
-// Note recvBuffer differs from controlBuffer only in that recvBuffer
-// holds a channel of only recvMsg structs instead of objects implementing "item" interface.
-// recvBuffer is written to much more often than
-// controlBuffer and using strict recvMsg structs helps avoid allocation in "recvBuffer.put"
+//
+// Note: recvBuffer differs from buffer.Unbounded only in the fact that it
+// holds a channel of recvMsg structs instead of objects implementing "item"
+// interface. recvBuffer is written to much more often and using strict recvMsg
+// structs helps avoid allocation in "recvBuffer.put"
type recvBuffer struct {
c chan recvMsg
mu sync.Mutex
diff --git a/vendor/google.golang.org/grpc/picker_wrapper.go b/vendor/google.golang.org/grpc/picker_wrapper.go
index 45baa2ae1..00447894f 100644
--- a/vendor/google.golang.org/grpc/picker_wrapper.go
+++ b/vendor/google.golang.org/grpc/picker_wrapper.go
@@ -20,6 +20,7 @@ package grpc
import (
"context"
+ "fmt"
"io"
"sync"
@@ -31,49 +32,78 @@ import (
"google.golang.org/grpc/status"
)
+// v2PickerWrapper wraps a balancer.Picker while providing the
+// balancer.V2Picker API. It requires a pickerWrapper to generate errors
+// including the latest connectionError. To be deleted when balancer.Picker is
+// updated to the balancer.V2Picker API.
+type v2PickerWrapper struct {
+ picker balancer.Picker
+ connErr *connErr
+}
+
+func (v *v2PickerWrapper) Pick(info balancer.PickInfo) (balancer.PickResult, error) {
+ sc, done, err := v.picker.Pick(info.Ctx, info)
+ if err != nil {
+ if err == balancer.ErrTransientFailure {
+ return balancer.PickResult{}, balancer.TransientFailureError(fmt.Errorf("%v, latest connection error: %v", err, v.connErr.connectionError()))
+ }
+ return balancer.PickResult{}, err
+ }
+ return balancer.PickResult{SubConn: sc, Done: done}, nil
+}
+
// pickerWrapper is a wrapper of balancer.Picker. It blocks on certain pick
// actions and unblock when there's a picker update.
type pickerWrapper struct {
mu sync.Mutex
done bool
blockingCh chan struct{}
- picker balancer.Picker
+ picker balancer.V2Picker
- // The latest connection happened.
- connErrMu sync.Mutex
- connErr error
+ // The latest connection error. TODO: remove when V1 picker is deprecated;
+ // balancer should be responsible for providing the error.
+ *connErr
}
-func newPickerWrapper() *pickerWrapper {
- bp := &pickerWrapper{blockingCh: make(chan struct{})}
- return bp
+type connErr struct {
+ mu sync.Mutex
+ err error
}
-func (bp *pickerWrapper) updateConnectionError(err error) {
- bp.connErrMu.Lock()
- bp.connErr = err
- bp.connErrMu.Unlock()
+func (c *connErr) updateConnectionError(err error) {
+ c.mu.Lock()
+ c.err = err
+ c.mu.Unlock()
}
-func (bp *pickerWrapper) connectionError() error {
- bp.connErrMu.Lock()
- err := bp.connErr
- bp.connErrMu.Unlock()
+func (c *connErr) connectionError() error {
+ c.mu.Lock()
+ err := c.err
+ c.mu.Unlock()
return err
}
+func newPickerWrapper() *pickerWrapper {
+ return &pickerWrapper{blockingCh: make(chan struct{}), connErr: &connErr{}}
+}
+
// updatePicker is called by UpdateBalancerState. It unblocks all blocked pick.
-func (bp *pickerWrapper) updatePicker(p balancer.Picker) {
- bp.mu.Lock()
- if bp.done {
- bp.mu.Unlock()
+func (pw *pickerWrapper) updatePicker(p balancer.Picker) {
+ pw.updatePickerV2(&v2PickerWrapper{picker: p, connErr: pw.connErr})
+}
+
+// updatePicker is called by UpdateBalancerState. It unblocks all blocked pick.
+func (pw *pickerWrapper) updatePickerV2(p balancer.V2Picker) {
+ pw.mu.Lock()
+ if pw.done {
+ pw.mu.Unlock()
return
}
- bp.picker = p
- // bp.blockingCh should never be nil.
- close(bp.blockingCh)
- bp.blockingCh = make(chan struct{})
- bp.mu.Unlock()
+ pw.picker = p
+ // pw.blockingCh should never be nil.
+ close(pw.blockingCh)
+ pw.blockingCh = make(chan struct{})
+ pw.mu.Unlock()
}
func doneChannelzWrapper(acw *acBalancerWrapper, done func(balancer.DoneInfo)) func(balancer.DoneInfo) {
@@ -100,83 +130,85 @@ func doneChannelzWrapper(acw *acBalancerWrapper, done func(balancer.DoneInfo)) f
// - the current picker returns other errors and failfast is false.
// - the subConn returned by the current picker is not READY
// When one of these situations happens, pick blocks until the picker gets updated.
-func (bp *pickerWrapper) pick(ctx context.Context, failfast bool, opts balancer.PickOptions) (transport.ClientTransport, func(balancer.DoneInfo), error) {
+func (pw *pickerWrapper) pick(ctx context.Context, failfast bool, info balancer.PickInfo) (transport.ClientTransport, func(balancer.DoneInfo), error) {
var ch chan struct{}
+ var lastPickErr error
for {
- bp.mu.Lock()
- if bp.done {
- bp.mu.Unlock()
+ pw.mu.Lock()
+ if pw.done {
+ pw.mu.Unlock()
return nil, nil, ErrClientConnClosing
}
- if bp.picker == nil {
- ch = bp.blockingCh
+ if pw.picker == nil {
+ ch = pw.blockingCh
}
- if ch == bp.blockingCh {
+ if ch == pw.blockingCh {
// This could happen when either:
- // - bp.picker is nil (the previous if condition), or
+ // - pw.picker is nil (the previous if condition), or
// - has called pick on the current picker.
- bp.mu.Unlock()
+ pw.mu.Unlock()
select {
case <-ctx.Done():
- if connectionErr := bp.connectionError(); connectionErr != nil {
- switch ctx.Err() {
- case context.DeadlineExceeded:
- return nil, nil, status.Errorf(codes.DeadlineExceeded, "latest connection error: %v", connectionErr)
- case context.Canceled:
- return nil, nil, status.Errorf(codes.Canceled, "latest connection error: %v", connectionErr)
- }
+ var errStr string
+ if lastPickErr != nil {
+ errStr = "latest balancer error: " + lastPickErr.Error()
+ } else if connectionErr := pw.connectionError(); connectionErr != nil {
+ errStr = "latest connection error: " + connectionErr.Error()
+ } else {
+ errStr = ctx.Err().Error()
+ }
+ switch ctx.Err() {
+ case context.DeadlineExceeded:
+ return nil, nil, status.Error(codes.DeadlineExceeded, errStr)
+ case context.Canceled:
+ return nil, nil, status.Error(codes.Canceled, errStr)
}
- return nil, nil, ctx.Err()
case <-ch:
}
continue
}
- ch = bp.blockingCh
- p := bp.picker
- bp.mu.Unlock()
+ ch = pw.blockingCh
+ p := pw.picker
+ pw.mu.Unlock()
- subConn, done, err := p.Pick(ctx, opts)
+ pickResult, err := p.Pick(info)
if err != nil {
- switch err {
- case balancer.ErrNoSubConnAvailable:
+ if err == balancer.ErrNoSubConnAvailable {
continue
- case balancer.ErrTransientFailure:
+ }
+ if tfe, ok := err.(interface{ IsTransientFailure() bool }); ok && tfe.IsTransientFailure() {
if !failfast {
+ lastPickErr = err
continue
}
- return nil, nil, status.Errorf(codes.Unavailable, "%v, latest connection error: %v", err, bp.connectionError())
- case context.DeadlineExceeded:
- return nil, nil, status.Error(codes.DeadlineExceeded, err.Error())
- case context.Canceled:
- return nil, nil, status.Error(codes.Canceled, err.Error())
- default:
- if _, ok := status.FromError(err); ok {
- return nil, nil, err
- }
- // err is some other error.
- return nil, nil, status.Error(codes.Unknown, err.Error())
+ return nil, nil, status.Error(codes.Unavailable, err.Error())
}
+ if _, ok := status.FromError(err); ok {
+ return nil, nil, err
+ }
+ // err is some other error.
+ return nil, nil, status.Error(codes.Unknown, err.Error())
}
- acw, ok := subConn.(*acBalancerWrapper)
+ acw, ok := pickResult.SubConn.(*acBalancerWrapper)
if !ok {
grpclog.Error("subconn returned from pick is not *acBalancerWrapper")
continue
}
if t, ok := acw.getAddrConn().getReadyTransport(); ok {
if channelz.IsOn() {
- return t, doneChannelzWrapper(acw, done), nil
+ return t, doneChannelzWrapper(acw, pickResult.Done), nil
}
- return t, done, nil
+ return t, pickResult.Done, nil
}
- if done != nil {
+ if pickResult.Done != nil {
// Calling done with nil error, no bytes sent and no bytes received.
// DoneInfo with default value works.
- done(balancer.DoneInfo{})
+ pickResult.Done(balancer.DoneInfo{})
}
grpclog.Infof("blockingPicker: the picked transport is not ready, loop back to repick")
// If ok == false, ac.state is not READY.
@@ -186,12 +218,12 @@ func (bp *pickerWrapper) pick(ctx context.Context, failfast bool, opts balancer.
}
}
-func (bp *pickerWrapper) close() {
- bp.mu.Lock()
- defer bp.mu.Unlock()
- if bp.done {
+func (pw *pickerWrapper) close() {
+ pw.mu.Lock()
+ defer pw.mu.Unlock()
+ if pw.done {
return
}
- bp.done = true
- close(bp.blockingCh)
+ pw.done = true
+ close(pw.blockingCh)
}
diff --git a/vendor/google.golang.org/grpc/pickfirst.go b/vendor/google.golang.org/grpc/pickfirst.go
index ed05b02ed..c43dac9ad 100644
--- a/vendor/google.golang.org/grpc/pickfirst.go
+++ b/vendor/google.golang.org/grpc/pickfirst.go
@@ -19,12 +19,14 @@
package grpc
import (
- "context"
+ "errors"
"google.golang.org/grpc/balancer"
+ "google.golang.org/grpc/codes"
"google.golang.org/grpc/connectivity"
"google.golang.org/grpc/grpclog"
"google.golang.org/grpc/resolver"
+ "google.golang.org/grpc/status"
)
// PickFirstBalancerName is the name of the pick_first balancer.
@@ -45,35 +47,67 @@ func (*pickfirstBuilder) Name() string {
}
type pickfirstBalancer struct {
- cc balancer.ClientConn
- sc balancer.SubConn
+ state connectivity.State
+ cc balancer.ClientConn
+ sc balancer.SubConn
}
+var _ balancer.V2Balancer = &pickfirstBalancer{} // Assert we implement v2
+
func (b *pickfirstBalancer) HandleResolvedAddrs(addrs []resolver.Address, err error) {
if err != nil {
- if grpclog.V(2) {
- grpclog.Infof("pickfirstBalancer: HandleResolvedAddrs called with error %v", err)
- }
+ b.ResolverError(err)
return
}
+ b.UpdateClientConnState(balancer.ClientConnState{ResolverState: resolver.State{Addresses: addrs}}) // Ignore error
+}
+
+func (b *pickfirstBalancer) HandleSubConnStateChange(sc balancer.SubConn, s connectivity.State) {
+ b.UpdateSubConnState(sc, balancer.SubConnState{ConnectivityState: s})
+}
+
+func (b *pickfirstBalancer) ResolverError(err error) {
+ switch b.state {
+ case connectivity.TransientFailure, connectivity.Idle, connectivity.Connecting:
+ // Set a failing picker if we don't have a good picker.
+ b.cc.UpdateState(balancer.State{ConnectivityState: connectivity.TransientFailure,
+ Picker: &picker{err: status.Errorf(codes.Unavailable, "name resolver error: %v", err)}},
+ )
+ }
+ if grpclog.V(2) {
+ grpclog.Infof("pickfirstBalancer: ResolverError called with error %v", err)
+ }
+}
+
+func (b *pickfirstBalancer) UpdateClientConnState(cs balancer.ClientConnState) error {
+ if len(cs.ResolverState.Addresses) == 0 {
+ b.ResolverError(errors.New("produced zero addresses"))
+ return balancer.ErrBadResolverState
+ }
if b.sc == nil {
- b.sc, err = b.cc.NewSubConn(addrs, balancer.NewSubConnOptions{})
+ var err error
+ b.sc, err = b.cc.NewSubConn(cs.ResolverState.Addresses, balancer.NewSubConnOptions{})
if err != nil {
- //TODO(yuxuanli): why not change the cc state to Idle?
if grpclog.V(2) {
grpclog.Errorf("pickfirstBalancer: failed to NewSubConn: %v", err)
}
- return
+ b.state = connectivity.TransientFailure
+ b.cc.UpdateState(balancer.State{ConnectivityState: connectivity.TransientFailure,
+ Picker: &picker{err: status.Errorf(codes.Unavailable, "error creating connection: %v", err)}},
+ )
+ return balancer.ErrBadResolverState
}
- b.cc.UpdateBalancerState(connectivity.Idle, &picker{sc: b.sc})
+ b.state = connectivity.Idle
+ b.cc.UpdateState(balancer.State{ConnectivityState: connectivity.Idle, Picker: &picker{result: balancer.PickResult{SubConn: b.sc}}})
b.sc.Connect()
} else {
- b.sc.UpdateAddresses(addrs)
+ b.sc.UpdateAddresses(cs.ResolverState.Addresses)
b.sc.Connect()
}
+ return nil
}
-func (b *pickfirstBalancer) HandleSubConnStateChange(sc balancer.SubConn, s connectivity.State) {
+func (b *pickfirstBalancer) UpdateSubConnState(sc balancer.SubConn, s balancer.SubConnState) {
if grpclog.V(2) {
grpclog.Infof("pickfirstBalancer: HandleSubConnStateChange: %p, %v", sc, s)
}
@@ -83,18 +117,28 @@ func (b *pickfirstBalancer) HandleSubConnStateChange(sc balancer.SubConn, s conn
}
return
}
- if s == connectivity.Shutdown {
+ b.state = s.ConnectivityState
+ if s.ConnectivityState == connectivity.Shutdown {
b.sc = nil
return
}
- switch s {
+ switch s.ConnectivityState {
case connectivity.Ready, connectivity.Idle:
- b.cc.UpdateBalancerState(s, &picker{sc: sc})
+ b.cc.UpdateState(balancer.State{ConnectivityState: s.ConnectivityState, Picker: &picker{result: balancer.PickResult{SubConn: sc}}})
case connectivity.Connecting:
- b.cc.UpdateBalancerState(s, &picker{err: balancer.ErrNoSubConnAvailable})
+ b.cc.UpdateState(balancer.State{ConnectivityState: s.ConnectivityState, Picker: &picker{err: balancer.ErrNoSubConnAvailable}})
case connectivity.TransientFailure:
- b.cc.UpdateBalancerState(s, &picker{err: balancer.ErrTransientFailure})
+ err := balancer.ErrTransientFailure
+ // TODO: this can be unconditional after the V1 API is removed, as
+ // SubConnState will always contain a connection error.
+ if s.ConnectionError != nil {
+ err = balancer.TransientFailureError(s.ConnectionError)
+ }
+ b.cc.UpdateState(balancer.State{
+ ConnectivityState: s.ConnectivityState,
+ Picker: &picker{err: err},
+ })
}
}
@@ -102,15 +146,12 @@ func (b *pickfirstBalancer) Close() {
}
type picker struct {
- err error
- sc balancer.SubConn
+ result balancer.PickResult
+ err error
}
-func (p *picker) Pick(ctx context.Context, opts balancer.PickOptions) (balancer.SubConn, func(balancer.DoneInfo), error) {
- if p.err != nil {
- return nil, nil, p.err
- }
- return p.sc, nil, nil
+func (p *picker) Pick(info balancer.PickInfo) (balancer.PickResult, error) {
+ return p.result, p.err
}
func init() {
diff --git a/vendor/google.golang.org/grpc/resolver/resolver.go b/vendor/google.golang.org/grpc/resolver/resolver.go
index 4c5423ba0..fe14b2fb9 100644
--- a/vendor/google.golang.org/grpc/resolver/resolver.go
+++ b/vendor/google.golang.org/grpc/resolver/resolver.go
@@ -24,6 +24,7 @@ import (
"context"
"net"
+ "google.golang.org/grpc/attributes"
"google.golang.org/grpc/credentials"
"google.golang.org/grpc/serviceconfig"
)
@@ -73,12 +74,18 @@ func GetDefaultScheme() string {
}
// AddressType indicates the address type returned by name resolution.
+//
+// Deprecated: use Attributes in Address instead.
type AddressType uint8
const (
// Backend indicates the address is for a backend server.
+ //
+ // Deprecated: use Attributes in Address instead.
Backend AddressType = iota
// GRPCLB indicates the address is for a grpclb load balancer.
+ //
+ // Deprecated: use Attributes in Address instead.
GRPCLB
)
@@ -87,8 +94,7 @@ const (
type Address struct {
// Addr is the server address on which a connection will be established.
Addr string
- // Type is the type of this address.
- Type AddressType
+
// ServerName is the name of this address.
// If non-empty, the ServerName is used as the transport certification authority for
// the address, instead of the hostname from the Dial target string. In most cases,
@@ -101,14 +107,26 @@ type Address struct {
// is insecure to populate it with data from untrusted inputs since untrusted
// values could be used to bypass the authority checks performed by TLS.
ServerName string
+
+ // Attributes contains arbitrary data about this address intended for
+ // consumption by the load balancing policy.
+ Attributes *attributes.Attributes
+
+ // Type is the type of this address.
+ //
+ // Deprecated: use Attributes instead.
+ Type AddressType
+
// Metadata is the information associated with Addr, which may be used
// to make load balancing decision.
+ //
+ // Deprecated: use Attributes instead.
Metadata interface{}
}
-// BuildOption includes additional information for the builder to create
+// BuildOptions includes additional information for the builder to create
// the resolver.
-type BuildOption struct {
+type BuildOptions struct {
// DisableServiceConfig indicates whether a resolver implementation should
// fetch service config data.
DisableServiceConfig bool
@@ -141,6 +159,10 @@ type State struct {
// config. If it is nil, it indicates no service config is present or the
// resolver does not provide service configs.
ServiceConfig *serviceconfig.ParseResult
+
+ // Attributes contains arbitrary data about the resolver intended for
+ // consumption by the load balancing policy.
+ Attributes *attributes.Attributes
}
// ClientConn contains the callbacks for resolver to notify any updates
@@ -202,14 +224,14 @@ type Builder interface {
//
// gRPC dial calls Build synchronously, and fails if the returned error is
// not nil.
- Build(target Target, cc ClientConn, opts BuildOption) (Resolver, error)
+ Build(target Target, cc ClientConn, opts BuildOptions) (Resolver, error)
// Scheme returns the scheme supported by this resolver.
// Scheme is defined at https://github.com/grpc/grpc/blob/master/doc/naming.md.
Scheme() string
}
-// ResolveNowOption includes additional information for ResolveNow.
-type ResolveNowOption struct{}
+// ResolveNowOptions includes additional information for ResolveNow.
+type ResolveNowOptions struct{}
// Resolver watches for the updates on the specified target.
// Updates include address updates and service config updates.
@@ -218,7 +240,7 @@ type Resolver interface {
// again. It's just a hint, resolver can ignore this if it's not necessary.
//
// It could be called multiple times concurrently.
- ResolveNow(ResolveNowOption)
+ ResolveNow(ResolveNowOptions)
// Close closes the resolver.
Close()
}
diff --git a/vendor/google.golang.org/grpc/resolver_conn_wrapper.go b/vendor/google.golang.org/grpc/resolver_conn_wrapper.go
index 7dcefcfa0..3eaf724cd 100644
--- a/vendor/google.golang.org/grpc/resolver_conn_wrapper.go
+++ b/vendor/google.golang.org/grpc/resolver_conn_wrapper.go
@@ -34,7 +34,7 @@ import (
)
// ccResolverWrapper is a wrapper on top of cc for resolvers.
-// It implements resolver.ClientConnection interface.
+// It implements resolver.ClientConn interface.
type ccResolverWrapper struct {
cc *ClientConn
resolverMu sync.Mutex
@@ -74,15 +74,9 @@ func parseTarget(target string) (ret resolver.Target) {
return ret
}
-// newCCResolverWrapper uses the resolver.Builder stored in the ClientConn to
-// build a Resolver and returns a ccResolverWrapper object which wraps the
-// newly built resolver.
-func newCCResolverWrapper(cc *ClientConn) (*ccResolverWrapper, error) {
- rb := cc.dopts.resolverBuilder
- if rb == nil {
- return nil, fmt.Errorf("could not get resolver for scheme: %q", cc.parsedTarget.Scheme)
- }
-
+// newCCResolverWrapper uses the resolver.Builder to build a Resolver and
+// returns a ccResolverWrapper object which wraps the newly built resolver.
+func newCCResolverWrapper(cc *ClientConn, rb resolver.Builder) (*ccResolverWrapper, error) {
ccr := &ccResolverWrapper{
cc: cc,
done: grpcsync.NewEvent(),
@@ -92,7 +86,7 @@ func newCCResolverWrapper(cc *ClientConn) (*ccResolverWrapper, error) {
if creds := cc.dopts.copts.TransportCredentials; creds != nil {
credsClone = creds.Clone()
}
- rbo := resolver.BuildOption{
+ rbo := resolver.BuildOptions{
DisableServiceConfig: cc.dopts.disableServiceConfig,
DialCreds: credsClone,
CredsBundle: cc.dopts.copts.CredsBundle,
@@ -105,15 +99,15 @@ func newCCResolverWrapper(cc *ClientConn) (*ccResolverWrapper, error) {
// rb.Build-->ccr.ReportError-->ccr.poll-->ccr.resolveNow, would end up
// accessing ccr.resolver which is being assigned here.
ccr.resolverMu.Lock()
+ defer ccr.resolverMu.Unlock()
ccr.resolver, err = rb.Build(cc.parsedTarget, ccr, rbo)
if err != nil {
return nil, err
}
- ccr.resolverMu.Unlock()
return ccr, nil
}
-func (ccr *ccResolverWrapper) resolveNow(o resolver.ResolveNowOption) {
+func (ccr *ccResolverWrapper) resolveNow(o resolver.ResolveNowOptions) {
ccr.resolverMu.Lock()
if !ccr.done.HasFired() {
ccr.resolver.ResolveNow(o)
@@ -149,7 +143,7 @@ func (ccr *ccResolverWrapper) poll(err error) {
ccr.polling = p
go func() {
for i := 0; ; i++ {
- ccr.resolveNow(resolver.ResolveNowOption{})
+ ccr.resolveNow(resolver.ResolveNowOptions{})
t := time.NewTimer(ccr.cc.dopts.resolveNowBackoff(i))
select {
case <-p:
@@ -217,6 +211,10 @@ func (ccr *ccResolverWrapper) NewServiceConfig(sc string) {
return
}
grpclog.Infof("ccResolverWrapper: got new service config: %v", sc)
+ if ccr.cc.dopts.disableServiceConfig {
+ grpclog.Infof("Service config lookups disabled; ignoring config")
+ return
+ }
scpr := parseServiceConfig(sc)
if scpr.Err != nil {
grpclog.Warningf("ccResolverWrapper: error parsing service config: %v", scpr.Err)
diff --git a/vendor/google.golang.org/grpc/rpc_util.go b/vendor/google.golang.org/grpc/rpc_util.go
index edaba7957..d3a4adc5e 100644
--- a/vendor/google.golang.org/grpc/rpc_util.go
+++ b/vendor/google.golang.org/grpc/rpc_util.go
@@ -871,7 +871,7 @@ type channelzData struct {
// The SupportPackageIsVersion variables are referenced from generated protocol
// buffer files to ensure compatibility with the gRPC version used. The latest
-// support package version is 5.
+// support package version is 6.
//
// Older versions are kept for compatibility. They may be removed if
// compatibility cannot be maintained.
@@ -881,6 +881,7 @@ const (
SupportPackageIsVersion3 = true
SupportPackageIsVersion4 = true
SupportPackageIsVersion5 = true
+ SupportPackageIsVersion6 = true
)
const grpcUA = "grpc-go/" + Version
diff --git a/vendor/google.golang.org/grpc/server.go b/vendor/google.golang.org/grpc/server.go
index e54083d85..0d75cb109 100644
--- a/vendor/google.golang.org/grpc/server.go
+++ b/vendor/google.golang.org/grpc/server.go
@@ -344,8 +344,8 @@ func StatsHandler(h stats.Handler) ServerOption {
// unknown service handler. The provided method is a bidi-streaming RPC service
// handler that will be invoked instead of returning the "unimplemented" gRPC
// error whenever a request is received for an unregistered service or method.
-// The handling function has full access to the Context of the request and the
-// stream, and the invocation bypasses interceptors.
+// The handling function and stream interceptor (if set) have full access to
+// the ServerStream, including its Context.
func UnknownServiceHandler(streamHandler StreamHandler) ServerOption {
return newFuncServerOption(func(o *serverOptions) {
o.unknownStreamDesc = &StreamDesc{
@@ -865,41 +865,58 @@ func (s *Server) sendResponse(t transport.ServerTransport, stream *transport.Str
}
func (s *Server) processUnaryRPC(t transport.ServerTransport, stream *transport.Stream, srv *service, md *MethodDesc, trInfo *traceInfo) (err error) {
- if channelz.IsOn() {
- s.incrCallsStarted()
- defer func() {
- if err != nil && err != io.EOF {
- s.incrCallsFailed()
- } else {
- s.incrCallsSucceeded()
- }
- }()
- }
sh := s.opts.statsHandler
- if sh != nil {
- beginTime := time.Now()
- begin := &stats.Begin{
- BeginTime: beginTime,
+ if sh != nil || trInfo != nil || channelz.IsOn() {
+ if channelz.IsOn() {
+ s.incrCallsStarted()
}
- sh.HandleRPC(stream.Context(), begin)
- defer func() {
- end := &stats.End{
+ var statsBegin *stats.Begin
+ if sh != nil {
+ beginTime := time.Now()
+ statsBegin = &stats.Begin{
BeginTime: beginTime,
- EndTime: time.Now(),
}
- if err != nil && err != io.EOF {
- end.Error = toRPCErr(err)
- }
- sh.HandleRPC(stream.Context(), end)
- }()
- }
- if trInfo != nil {
- defer trInfo.tr.Finish()
- trInfo.tr.LazyLog(&trInfo.firstLine, false)
+ sh.HandleRPC(stream.Context(), statsBegin)
+ }
+ if trInfo != nil {
+ trInfo.tr.LazyLog(&trInfo.firstLine, false)
+ }
+ // The deferred error handling for tracing, stats handler and channelz are
+ // combined into one function to reduce stack usage -- a defer takes ~56-64
+ // bytes on the stack, so overflowing the stack will require a stack
+ // re-allocation, which is expensive.
+ //
+ // To maintain behavior similar to separate deferred statements, statements
+ // should be executed in the reverse order. That is, tracing first, stats
+ // handler second, and channelz last. Note that panics *within* defers will
+ // lead to different behavior, but that's an acceptable compromise; that
+ // would be undefined behavior territory anyway.
defer func() {
- if err != nil && err != io.EOF {
- trInfo.tr.LazyLog(&fmtStringer{"%v", []interface{}{err}}, true)
- trInfo.tr.SetError()
+ if trInfo != nil {
+ if err != nil && err != io.EOF {
+ trInfo.tr.LazyLog(&fmtStringer{"%v", []interface{}{err}}, true)
+ trInfo.tr.SetError()
+ }
+ trInfo.tr.Finish()
+ }
+
+ if sh != nil {
+ end := &stats.End{
+ BeginTime: statsBegin.BeginTime,
+ EndTime: time.Now(),
+ }
+ if err != nil && err != io.EOF {
+ end.Error = toRPCErr(err)
+ }
+ sh.HandleRPC(stream.Context(), end)
+ }
+
+ if channelz.IsOn() {
+ if err != nil && err != io.EOF {
+ s.incrCallsFailed()
+ } else {
+ s.incrCallsSucceeded()
+ }
}
}()
}
@@ -1099,31 +1116,15 @@ func (s *Server) processUnaryRPC(t transport.ServerTransport, stream *transport.
func (s *Server) processStreamingRPC(t transport.ServerTransport, stream *transport.Stream, srv *service, sd *StreamDesc, trInfo *traceInfo) (err error) {
if channelz.IsOn() {
s.incrCallsStarted()
- defer func() {
- if err != nil && err != io.EOF {
- s.incrCallsFailed()
- } else {
- s.incrCallsSucceeded()
- }
- }()
}
sh := s.opts.statsHandler
+ var statsBegin *stats.Begin
if sh != nil {
beginTime := time.Now()
- begin := &stats.Begin{
+ statsBegin = &stats.Begin{
BeginTime: beginTime,
}
- sh.HandleRPC(stream.Context(), begin)
- defer func() {
- end := &stats.End{
- BeginTime: beginTime,
- EndTime: time.Now(),
- }
- if err != nil && err != io.EOF {
- end.Error = toRPCErr(err)
- }
- sh.HandleRPC(stream.Context(), end)
- }()
+ sh.HandleRPC(stream.Context(), statsBegin)
}
ctx := NewContextWithServerTransportStream(stream.Context(), stream)
ss := &serverStream{
@@ -1138,6 +1139,41 @@ func (s *Server) processStreamingRPC(t transport.ServerTransport, stream *transp
statsHandler: sh,
}
+ if sh != nil || trInfo != nil || channelz.IsOn() {
+ // See comment in processUnaryRPC on defers.
+ defer func() {
+ if trInfo != nil {
+ 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()
+ }
+
+ if sh != nil {
+ end := &stats.End{
+ BeginTime: statsBegin.BeginTime,
+ EndTime: time.Now(),
+ }
+ if err != nil && err != io.EOF {
+ end.Error = toRPCErr(err)
+ }
+ sh.HandleRPC(stream.Context(), end)
+ }
+
+ if channelz.IsOn() {
+ if err != nil && err != io.EOF {
+ s.incrCallsFailed()
+ } else {
+ s.incrCallsSucceeded()
+ }
+ }
+ }()
+ }
+
ss.binlog = binarylog.GetMethodLogger(stream.Method())
if ss.binlog != nil {
md, _ := metadata.FromIncomingContext(ctx)
@@ -1191,16 +1227,6 @@ func (s *Server) processStreamingRPC(t transport.ServerTransport, stream *transp
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
var server interface{}
diff --git a/vendor/google.golang.org/grpc/service_config.go b/vendor/google.golang.org/grpc/service_config.go
index 4f8836d48..5a80a575a 100644
--- a/vendor/google.golang.org/grpc/service_config.go
+++ b/vendor/google.golang.org/grpc/service_config.go
@@ -136,9 +136,9 @@ type retryPolicy struct {
maxAttempts int
// Exponential backoff parameters. The initial retry attempt will occur at
- // random(0, initialBackoffMS). In general, the nth attempt will occur at
+ // random(0, initialBackoff). In general, the nth attempt will occur at
// random(0,
- // min(initialBackoffMS*backoffMultiplier**(n-1), maxBackoffMS)).
+ // min(initialBackoff*backoffMultiplier**(n-1), maxBackoff)).
//
// These fields are required and must be greater than zero.
initialBackoff time.Duration
diff --git a/vendor/google.golang.org/grpc/stats/stats.go b/vendor/google.golang.org/grpc/stats/stats.go
index f3f593c84..9e22c393f 100644
--- a/vendor/google.golang.org/grpc/stats/stats.go
+++ b/vendor/google.golang.org/grpc/stats/stats.go
@@ -91,6 +91,8 @@ type InHeader struct {
LocalAddr net.Addr
// Compression is the compression algorithm used for the RPC.
Compression string
+ // Header contains the header metadata received.
+ Header metadata.MD
}
// IsClient indicates if the stats information is from client side.
@@ -104,6 +106,9 @@ type InTrailer struct {
Client bool
// WireLength is the wire length of trailer.
WireLength int
+ // Trailer contains the trailer metadata received from the server. This
+ // field is only valid if this InTrailer is from the client side.
+ Trailer metadata.MD
}
// IsClient indicates if the stats information is from client side.
@@ -146,6 +151,8 @@ type OutHeader struct {
LocalAddr net.Addr
// Compression is the compression algorithm used for the RPC.
Compression string
+ // Header contains the header metadata sent.
+ Header metadata.MD
}
// IsClient indicates if this stats information is from client side.
@@ -159,6 +166,9 @@ type OutTrailer struct {
Client bool
// WireLength is the wire length of trailer.
WireLength int
+ // Trailer contains the trailer metadata sent to the client. This
+ // field is only valid if this OutTrailer is from the server side.
+ Trailer metadata.MD
}
// IsClient indicates if this stats information is from client side.
@@ -176,6 +186,7 @@ type End struct {
EndTime time.Time
// Trailer contains the trailer metadata received from the server. This
// field is only valid if this End is from the client side.
+ // Deprecated: use Trailer in InTrailer instead.
Trailer metadata.MD
// Error is the error the RPC ended with. It is an error generated from
// status.Status and can be converted back to status.Status using
diff --git a/vendor/google.golang.org/grpc/trace.go b/vendor/google.golang.org/grpc/trace.go
index 0a57b9994..07a2d26b3 100644
--- a/vendor/google.golang.org/grpc/trace.go
+++ b/vendor/google.golang.org/grpc/trace.go
@@ -41,9 +41,6 @@ func methodFamily(m string) string {
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
}
diff --git a/vendor/google.golang.org/grpc/version.go b/vendor/google.golang.org/grpc/version.go
index 40af09639..1a831b159 100644
--- a/vendor/google.golang.org/grpc/version.go
+++ b/vendor/google.golang.org/grpc/version.go
@@ -19,4 +19,4 @@
package grpc
// Version is the current grpc version.
-const Version = "1.25.1"
+const Version = "1.27.1"
diff --git a/vendor/google.golang.org/grpc/vet.sh b/vendor/google.golang.org/grpc/vet.sh
index f324be509..0e7370727 100644
--- a/vendor/google.golang.org/grpc/vet.sh
+++ b/vendor/google.golang.org/grpc/vet.sh
@@ -81,7 +81,7 @@ fi
# - Do not import math/rand for real library code. Use internal/grpcrand for
# thread safety.
-git grep -l '"math/rand"' -- "*.go" 2>&1 | (! grep -v '^examples\|^stress\|grpcrand\|wrr_test')
+git grep -l '"math/rand"' -- "*.go" 2>&1 | (! grep -v '^examples\|^stress\|grpcrand\|^benchmark\|wrr_test')
# - Ensure all ptypes proto packages are renamed when importing.
(! git grep "\(import \|^\s*\)\"github.com/golang/protobuf/ptypes/" -- "*.go")
@@ -92,10 +92,12 @@ go list -f {{.Dir}} ./... | xargs go run test/go_vet/vet.go
# - gofmt, goimports, golint (with exceptions for generated code), go vet.
gofmt -s -d -l . 2>&1 | fail_on_output
-goimports -l . 2>&1 | (! grep -vE "(_mock|\.pb)\.go") | fail_on_output
+goimports -l . 2>&1 | (! grep -vE "(_mock|\.pb)\.go")
golint ./... 2>&1 | (! grep -vE "(_mock|\.pb)\.go:")
go vet -all .
+misspell -error .
+
# - Check that generated proto files are up to date.
if [[ -z "${VET_SKIP_PROTO}" ]]; then
PATH="/home/travis/bin:${PATH}" make proto && \
@@ -111,32 +113,47 @@ if go help mod >& /dev/null; then
fi
# - Collection of static analysis checks
-# TODO(dfawley): don't use deprecated functions in examples.
-staticcheck -go 1.9 -checks 'inherit,-ST1015' -ignore '
-google.golang.org/grpc/balancer.go:SA1019
-google.golang.org/grpc/balancer/grpclb/grpclb_remote_balancer.go:SA1019
-google.golang.org/grpc/balancer/grpclb/grpclb_test.go:SA1019
-google.golang.org/grpc/balancer/roundrobin/roundrobin_test.go:SA1019
-google.golang.org/grpc/xds/internal/balancer/edsbalancer/balancergroup.go:SA1019
-google.golang.org/grpc/xds/internal/resolver/xds_resolver.go:SA1019
-google.golang.org/grpc/xds/internal/balancer/xds.go:SA1019
-google.golang.org/grpc/xds/internal/balancer/xds_client.go:SA1019
-google.golang.org/grpc/balancer_conn_wrappers.go:SA1019
-google.golang.org/grpc/balancer_test.go:SA1019
-google.golang.org/grpc/benchmark/benchmain/main.go:SA1019
-google.golang.org/grpc/benchmark/worker/benchmark_client.go:SA1019
-google.golang.org/grpc/clientconn.go:S1024
-google.golang.org/grpc/clientconn_state_transition_test.go:SA1019
-google.golang.org/grpc/clientconn_test.go:SA1019
-google.golang.org/grpc/examples/features/debugging/client/main.go:SA1019
-google.golang.org/grpc/examples/features/load_balancing/client/main.go:SA1019
-google.golang.org/grpc/internal/transport/handler_server.go:SA1019
-google.golang.org/grpc/internal/transport/handler_server_test.go:SA1019
-google.golang.org/grpc/internal/resolver/dns/dns_resolver.go:SA1019
-google.golang.org/grpc/stats/stats_test.go:SA1019
-google.golang.org/grpc/test/balancer_test.go:SA1019
-google.golang.org/grpc/test/channelz_test.go:SA1019
-google.golang.org/grpc/test/end2end_test.go:SA1019
-google.golang.org/grpc/test/healthcheck_test.go:SA1019
-' ./...
-misspell -error .
+#
+# TODO(dfawley): don't use deprecated functions in examples or first-party
+# plugins.
+SC_OUT="$(mktemp)"
+staticcheck -go 1.9 -checks 'inherit,-ST1015' ./... > "${SC_OUT}" || true
+# Error if anything other than deprecation warnings are printed.
+(! grep -v "is deprecated:.*SA1019" "${SC_OUT}")
+# Only ignore the following deprecated types/fields/functions.
+(! grep -Fv '.HandleResolvedAddrs
+.HandleSubConnStateChange
+.HeaderMap
+.NewAddress
+.NewServiceConfig
+.Metadata is deprecated: use Attributes
+.Type is deprecated: use Attributes
+.UpdateBalancerState
+balancer.Picker
+grpc.CallCustomCodec
+grpc.Code
+grpc.Compressor
+grpc.Decompressor
+grpc.MaxMsgSize
+grpc.MethodConfig
+grpc.NewGZIPCompressor
+grpc.NewGZIPDecompressor
+grpc.RPCCompressor
+grpc.RPCDecompressor
+grpc.RoundRobin
+grpc.ServiceConfig
+grpc.WithBalancer
+grpc.WithBalancerName
+grpc.WithCompressor
+grpc.WithDecompressor
+grpc.WithDialer
+grpc.WithMaxMsgSize
+grpc.WithServiceConfig
+grpc.WithTimeout
+http.CloseNotifier
+naming.Resolver
+naming.Update
+naming.Watcher
+resolver.Backend
+resolver.GRPCLB' "${SC_OUT}"
+)
diff --git a/vendor/gopkg.in/yaml.v2/.travis.yml b/vendor/gopkg.in/yaml.v2/.travis.yml
index 9f556934d..055480b9e 100644
--- a/vendor/gopkg.in/yaml.v2/.travis.yml
+++ b/vendor/gopkg.in/yaml.v2/.travis.yml
@@ -1,12 +1,16 @@
language: go
go:
- - 1.4
- - 1.5
- - 1.6
- - 1.7
- - 1.8
- - 1.9
- - tip
+ - "1.4.x"
+ - "1.5.x"
+ - "1.6.x"
+ - "1.7.x"
+ - "1.8.x"
+ - "1.9.x"
+ - "1.10.x"
+ - "1.11.x"
+ - "1.12.x"
+ - "1.13.x"
+ - "tip"
go_import_path: gopkg.in/yaml.v2
diff --git a/vendor/gopkg.in/yaml.v2/scannerc.go b/vendor/gopkg.in/yaml.v2/scannerc.go
index 570b8ecd1..0b9bb6030 100644
--- a/vendor/gopkg.in/yaml.v2/scannerc.go
+++ b/vendor/gopkg.in/yaml.v2/scannerc.go
@@ -626,31 +626,18 @@ func trace(args ...interface{}) func() {
func yaml_parser_fetch_more_tokens(parser *yaml_parser_t) bool {
// While we need more tokens to fetch, do it.
for {
- // Check if we really need to fetch more tokens.
- need_more_tokens := false
-
- if parser.tokens_head == len(parser.tokens) {
- // Queue is empty.
- need_more_tokens = true
- } else {
- // Check if any potential simple key may occupy the head position.
- if !yaml_parser_stale_simple_keys(parser) {
+ if parser.tokens_head != len(parser.tokens) {
+ // If queue is non-empty, check if any potential simple key may
+ // occupy the head position.
+ head_tok_idx, ok := parser.simple_keys_by_tok[parser.tokens_parsed]
+ if !ok {
+ break
+ } else if valid, ok := yaml_simple_key_is_valid(parser, &parser.simple_keys[head_tok_idx]); !ok {
return false
- }
-
- for i := range parser.simple_keys {
- simple_key := &parser.simple_keys[i]
- if simple_key.possible && simple_key.token_number == parser.tokens_parsed {
- need_more_tokens = true
- break
- }
+ } else if !valid {
+ break
}
}
-
- // We are finished.
- if !need_more_tokens {
- break
- }
// Fetch the next token.
if !yaml_parser_fetch_next_token(parser) {
return false
@@ -678,11 +665,6 @@ func yaml_parser_fetch_next_token(parser *yaml_parser_t) bool {
return false
}
- // Remove obsolete potential simple keys.
- if !yaml_parser_stale_simple_keys(parser) {
- return false
- }
-
// Check the indentation level against the current column.
if !yaml_parser_unroll_indent(parser, parser.mark.column) {
return false
@@ -837,29 +819,30 @@ func yaml_parser_fetch_next_token(parser *yaml_parser_t) bool {
"found character that cannot start any token")
}
-// Check the list of potential simple keys and remove the positions that
-// cannot contain simple keys anymore.
-func yaml_parser_stale_simple_keys(parser *yaml_parser_t) bool {
- // Check for a potential simple key for each flow level.
- for i := range parser.simple_keys {
- simple_key := &parser.simple_keys[i]
-
- // The specification requires that a simple key
- //
- // - is limited to a single line,
- // - is shorter than 1024 characters.
- if simple_key.possible && (simple_key.mark.line < parser.mark.line || simple_key.mark.index+1024 < parser.mark.index) {
-
- // Check if the potential simple key to be removed is required.
- if simple_key.required {
- return yaml_parser_set_scanner_error(parser,
- "while scanning a simple key", simple_key.mark,
- "could not find expected ':'")
- }
- simple_key.possible = false
+func yaml_simple_key_is_valid(parser *yaml_parser_t, simple_key *yaml_simple_key_t) (valid, ok bool) {
+ if !simple_key.possible {
+ return false, true
+ }
+
+ // The 1.2 specification says:
+ //
+ // "If the ? indicator is omitted, parsing needs to see past the
+ // implicit key to recognize it as such. To limit the amount of
+ // lookahead required, the “:” indicator must appear at most 1024
+ // Unicode characters beyond the start of the key. In addition, the key
+ // is restricted to a single line."
+ //
+ if simple_key.mark.line < parser.mark.line || simple_key.mark.index+1024 < parser.mark.index {
+ // Check if the potential simple key to be removed is required.
+ if simple_key.required {
+ return false, yaml_parser_set_scanner_error(parser,
+ "while scanning a simple key", simple_key.mark,
+ "could not find expected ':'")
}
+ simple_key.possible = false
+ return false, true
}
- return true
+ return true, true
}
// Check if a simple key may start at the current position and add it if
@@ -879,13 +862,14 @@ func yaml_parser_save_simple_key(parser *yaml_parser_t) bool {
possible: true,
required: required,
token_number: parser.tokens_parsed + (len(parser.tokens) - parser.tokens_head),
+ mark: parser.mark,
}
- simple_key.mark = parser.mark
if !yaml_parser_remove_simple_key(parser) {
return false
}
parser.simple_keys[len(parser.simple_keys)-1] = simple_key
+ parser.simple_keys_by_tok[simple_key.token_number] = len(parser.simple_keys) - 1
}
return true
}
@@ -900,9 +884,10 @@ func yaml_parser_remove_simple_key(parser *yaml_parser_t) bool {
"while scanning a simple key", parser.simple_keys[i].mark,
"could not find expected ':'")
}
+ // Remove the key from the stack.
+ parser.simple_keys[i].possible = false
+ delete(parser.simple_keys_by_tok, parser.simple_keys[i].token_number)
}
- // Remove the key from the stack.
- parser.simple_keys[i].possible = false
return true
}
@@ -912,7 +897,12 @@ const max_flow_level = 10000
// Increase the flow level and resize the simple key list if needed.
func yaml_parser_increase_flow_level(parser *yaml_parser_t) bool {
// Reset the simple key on the next level.
- parser.simple_keys = append(parser.simple_keys, yaml_simple_key_t{})
+ parser.simple_keys = append(parser.simple_keys, yaml_simple_key_t{
+ possible: false,
+ required: false,
+ token_number: parser.tokens_parsed + (len(parser.tokens) - parser.tokens_head),
+ mark: parser.mark,
+ })
// Increase the flow level.
parser.flow_level++
@@ -928,7 +918,9 @@ func yaml_parser_increase_flow_level(parser *yaml_parser_t) bool {
func yaml_parser_decrease_flow_level(parser *yaml_parser_t) bool {
if parser.flow_level > 0 {
parser.flow_level--
- parser.simple_keys = parser.simple_keys[:len(parser.simple_keys)-1]
+ last := len(parser.simple_keys) - 1
+ delete(parser.simple_keys_by_tok, parser.simple_keys[last].token_number)
+ parser.simple_keys = parser.simple_keys[:last]
}
return true
}
@@ -1005,6 +997,8 @@ func yaml_parser_fetch_stream_start(parser *yaml_parser_t) bool {
// Initialize the simple key stack.
parser.simple_keys = append(parser.simple_keys, yaml_simple_key_t{})
+ parser.simple_keys_by_tok = make(map[int]int)
+
// A simple key is allowed at the beginning of the stream.
parser.simple_key_allowed = true
@@ -1286,7 +1280,11 @@ func yaml_parser_fetch_value(parser *yaml_parser_t) bool {
simple_key := &parser.simple_keys[len(parser.simple_keys)-1]
// Have we found a simple key?
- if simple_key.possible {
+ if valid, ok := yaml_simple_key_is_valid(parser, simple_key); !ok {
+ return false
+
+ } else if valid {
+
// Create the KEY token and insert it into the queue.
token := yaml_token_t{
typ: yaml_KEY_TOKEN,
@@ -1304,6 +1302,7 @@ func yaml_parser_fetch_value(parser *yaml_parser_t) bool {
// Remove the simple key.
simple_key.possible = false
+ delete(parser.simple_keys_by_tok, simple_key.token_number)
// A simple key cannot follow another simple key.
parser.simple_key_allowed = false
diff --git a/vendor/gopkg.in/yaml.v2/yaml.go b/vendor/gopkg.in/yaml.v2/yaml.go
index de85aa4cd..89650e293 100644
--- a/vendor/gopkg.in/yaml.v2/yaml.go
+++ b/vendor/gopkg.in/yaml.v2/yaml.go
@@ -89,7 +89,7 @@ func UnmarshalStrict(in []byte, out interface{}) (err error) {
return unmarshal(in, out, true)
}
-// A Decorder reads and decodes YAML values from an input stream.
+// A Decoder reads and decodes YAML values from an input stream.
type Decoder struct {
strict bool
parser *parser
diff --git a/vendor/gopkg.in/yaml.v2/yamlh.go b/vendor/gopkg.in/yaml.v2/yamlh.go
index e25cee563..f6a9c8e34 100644
--- a/vendor/gopkg.in/yaml.v2/yamlh.go
+++ b/vendor/gopkg.in/yaml.v2/yamlh.go
@@ -579,6 +579,7 @@ type yaml_parser_t struct {
simple_key_allowed bool // May a simple key occur at the current position?
simple_keys []yaml_simple_key_t // The stack of simple keys.
+ simple_keys_by_tok map[int]int // possible simple_key indexes indexed by token_number
// Parser stuff
diff --git a/vendor/modules.txt b/vendor/modules.txt
index 029017e48..a857b56e2 100644
--- a/vendor/modules.txt
+++ b/vendor/modules.txt
@@ -1,14 +1,14 @@
-# bazil.org/fuse v0.0.0-20191225233854-3a99aca11732
+# bazil.org/fuse v0.0.0-20200117225306-7b5117fecadc
bazil.org/fuse
bazil.org/fuse/fs
bazil.org/fuse/fuseutil
-# cloud.google.com/go v0.47.0
+# cloud.google.com/go v0.53.0
cloud.google.com/go/compute/metadata
# github.com/Azure/azure-pipeline-go v0.2.2
github.com/Azure/azure-pipeline-go/pipeline
# github.com/Azure/azure-storage-blob-go v0.8.0
github.com/Azure/azure-storage-blob-go/azblob
-# github.com/Unknwon/goconfig v0.0.0-20190425194916-3dba17dd7b9e
+# github.com/Unknwon/goconfig v0.0.0-20191126170842-860a72fb44fd
github.com/Unknwon/goconfig
# github.com/a8m/tree v0.0.0-20181222104329-6a0b80129de4
github.com/a8m/tree
@@ -19,11 +19,11 @@ github.com/anacrolix/dms/dlna
github.com/anacrolix/dms/soap
github.com/anacrolix/dms/ssdp
github.com/anacrolix/dms/upnp
-github.com/anacrolix/dms/upnpav
# github.com/atotto/clipboard v0.1.2
github.com/atotto/clipboard
-# github.com/aws/aws-sdk-go v1.25.31
+# github.com/aws/aws-sdk-go v1.29.9
github.com/aws/aws-sdk-go/aws
+github.com/aws/aws-sdk-go/aws/arn
github.com/aws/aws-sdk-go/aws/awserr
github.com/aws/aws-sdk-go/aws/awsutil
github.com/aws/aws-sdk-go/aws/client
@@ -41,6 +41,7 @@ github.com/aws/aws-sdk-go/aws/endpoints
github.com/aws/aws-sdk-go/aws/request
github.com/aws/aws-sdk-go/aws/session
github.com/aws/aws-sdk-go/aws/signer/v4
+github.com/aws/aws-sdk-go/internal/context
github.com/aws/aws-sdk-go/internal/ini
github.com/aws/aws-sdk-go/internal/s3err
github.com/aws/aws-sdk-go/internal/sdkio
@@ -48,6 +49,8 @@ github.com/aws/aws-sdk-go/internal/sdkmath
github.com/aws/aws-sdk-go/internal/sdkrand
github.com/aws/aws-sdk-go/internal/sdkuri
github.com/aws/aws-sdk-go/internal/shareddefaults
+github.com/aws/aws-sdk-go/internal/strings
+github.com/aws/aws-sdk-go/internal/sync/singleflight
github.com/aws/aws-sdk-go/private/protocol
github.com/aws/aws-sdk-go/private/protocol/eventstream
github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi
@@ -58,17 +61,18 @@ github.com/aws/aws-sdk-go/private/protocol/rest
github.com/aws/aws-sdk-go/private/protocol/restxml
github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil
github.com/aws/aws-sdk-go/service/s3
+github.com/aws/aws-sdk-go/service/s3/internal/arn
github.com/aws/aws-sdk-go/service/sts
github.com/aws/aws-sdk-go/service/sts/stsiface
# github.com/billziss-gh/cgofuse v1.2.0
github.com/billziss-gh/cgofuse/fuse
-# github.com/cpuguy83/go-md2man v1.0.10
-github.com/cpuguy83/go-md2man/md2man
+# github.com/cpuguy83/go-md2man/v2 v2.0.0
+github.com/cpuguy83/go-md2man/v2/md2man
# github.com/davecgh/go-spew v1.1.1
github.com/davecgh/go-spew/spew
# github.com/djherbis/times v1.2.0
github.com/djherbis/times
-# github.com/dropbox/dropbox-sdk-go-unofficial v5.4.0+incompatible
+# github.com/dropbox/dropbox-sdk-go-unofficial v5.6.0+incompatible
github.com/dropbox/dropbox-sdk-go-unofficial/dropbox
github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/async
github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/auth
@@ -84,9 +88,9 @@ github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/users
github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/users_common
# github.com/etcd-io/bbolt v1.3.3
github.com/etcd-io/bbolt
-# github.com/golang/groupcache v0.0.0-20191027212112-611e8accdfc9
+# github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e
github.com/golang/groupcache/lru
-# github.com/golang/protobuf v1.3.2
+# github.com/golang/protobuf v1.3.3
github.com/golang/protobuf/proto
github.com/golang/protobuf/ptypes
github.com/golang/protobuf/ptypes/any
@@ -104,7 +108,7 @@ github.com/hanwen/go-fuse/v2/internal/utimens
github.com/hanwen/go-fuse/v2/splice
# github.com/inconshreveable/mousetrap v1.0.0
github.com/inconshreveable/mousetrap
-# github.com/jlaffaye/ftp v0.0.0-20191025175106-a59fe673c9b2
+# github.com/jlaffaye/ftp v0.0.0-20191218041957-e1b8fdd0dcc3
github.com/jlaffaye/ftp
# github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af
github.com/jmespath/go-jmespath
@@ -122,19 +126,19 @@ github.com/koofr/go-koofrclient
github.com/kr/fs
# github.com/mattn/go-colorable v0.1.4
github.com/mattn/go-colorable
-# github.com/mattn/go-ieproxy v0.0.0-20190805055040-f9202b1cfdeb
+# github.com/mattn/go-ieproxy v0.0.0-20200203040449-2dbc853185d9
github.com/mattn/go-ieproxy
-# github.com/mattn/go-isatty v0.0.11-0.20191112051248-2a2f0ea997f9
+# github.com/mattn/go-isatty v0.0.12
github.com/mattn/go-isatty
-# github.com/mattn/go-runewidth v0.0.7
+# github.com/mattn/go-runewidth v0.0.8
github.com/mattn/go-runewidth
# github.com/mitchellh/go-homedir v1.1.0
github.com/mitchellh/go-homedir
# github.com/ncw/go-acd v0.0.0-20171120105400-887eb06ab6a2
github.com/ncw/go-acd
-# github.com/ncw/swift v1.0.49
+# github.com/ncw/swift v1.0.50
github.com/ncw/swift
-# github.com/nsf/termbox-go v0.0.0-20191229070316-58d4fcbce2a7
+# github.com/nsf/termbox-go v0.0.0-20200204031403-4d2b513ad8be
github.com/nsf/termbox-go
# github.com/okzk/sdnotify v0.0.0-20180710141335-d9becc38acbd
github.com/okzk/sdnotify
@@ -146,30 +150,32 @@ github.com/pengsrc/go-shared/check
github.com/pengsrc/go-shared/convert
github.com/pengsrc/go-shared/log
github.com/pengsrc/go-shared/reopen
-# github.com/pkg/errors v0.8.1
+# github.com/pkg/errors v0.9.1
github.com/pkg/errors
-# github.com/pkg/sftp v1.10.1
+# github.com/pkg/sftp v1.11.0
github.com/pkg/sftp
# github.com/pmezard/go-difflib v1.0.0
github.com/pmezard/go-difflib/difflib
-# github.com/putdotio/go-putio v0.0.0-20190822121956-19b9c636c877
+# github.com/putdotio/go-putio/putio v0.0.0-20200123120452-16d982cac2b8
github.com/putdotio/go-putio/putio
# github.com/rfjakob/eme v0.0.0-20171028163933-2222dbd4ba46
github.com/rfjakob/eme
-# github.com/russross/blackfriday v1.5.2
-github.com/russross/blackfriday
+# github.com/russross/blackfriday/v2 v2.0.1
+github.com/russross/blackfriday/v2
# github.com/sevlyar/go-daemon v0.1.5
github.com/sevlyar/go-daemon
+# github.com/shurcooL/sanitized_anchor_name v1.0.0
+github.com/shurcooL/sanitized_anchor_name
# github.com/sirupsen/logrus v1.4.2
github.com/sirupsen/logrus
-# github.com/skratchdot/open-golang v0.0.0-20190402232053-79abb63cd66e
+# github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
github.com/skratchdot/open-golang/open
-# github.com/spf13/cobra v0.0.5
+# github.com/spf13/cobra v0.0.6
github.com/spf13/cobra
github.com/spf13/cobra/doc
# github.com/spf13/pflag v1.0.5
github.com/spf13/pflag
-# github.com/stretchr/testify v1.4.0
+# github.com/stretchr/testify v1.5.1
github.com/stretchr/testify/assert
github.com/stretchr/testify/require
# github.com/t3rm1n4l/go-mega v0.0.0-20200117211730-79a813bb328d
@@ -178,7 +184,7 @@ github.com/t3rm1n4l/go-mega
github.com/xanzy/ssh-agent
# github.com/youmark/pkcs8 v0.0.0-20191102193632-94c173a94d60
github.com/youmark/pkcs8
-# github.com/yunify/qingstor-sdk-go/v3 v3.1.1
+# github.com/yunify/qingstor-sdk-go/v3 v3.2.0
github.com/yunify/qingstor-sdk-go/v3
github.com/yunify/qingstor-sdk-go/v3/config
github.com/yunify/qingstor-sdk-go/v3/logger
@@ -190,7 +196,7 @@ github.com/yunify/qingstor-sdk-go/v3/request/signer
github.com/yunify/qingstor-sdk-go/v3/request/unpacker
github.com/yunify/qingstor-sdk-go/v3/service
github.com/yunify/qingstor-sdk-go/v3/utils
-# go.opencensus.io v0.22.2
+# go.opencensus.io v0.22.3
go.opencensus.io
go.opencensus.io/internal
go.opencensus.io/internal/tagencoding
@@ -207,9 +213,9 @@ go.opencensus.io/trace
go.opencensus.io/trace/internal
go.opencensus.io/trace/propagation
go.opencensus.io/trace/tracestate
-# goftp.io/server v0.0.0-20190812052725-72a57b186803
+# goftp.io/server v0.3.2
goftp.io/server
-# golang.org/x/crypto v0.0.0-20200109152110-61a87790db17
+# golang.org/x/crypto v0.0.0-20200221231518-2aa609cf4a9d
golang.org/x/crypto/bcrypt
golang.org/x/crypto/blowfish
golang.org/x/crypto/chacha20
@@ -224,8 +230,9 @@ golang.org/x/crypto/salsa20/salsa
golang.org/x/crypto/scrypt
golang.org/x/crypto/ssh
golang.org/x/crypto/ssh/agent
+golang.org/x/crypto/ssh/internal/bcrypt_pbkdf
golang.org/x/crypto/ssh/terminal
-# golang.org/x/net v0.0.0-20191109021931-daa7c04131f5
+# golang.org/x/net v0.0.0-20200222125558-5a598a2470a0
golang.org/x/net/bpf
golang.org/x/net/context
golang.org/x/net/context/ctxhttp
@@ -245,7 +252,7 @@ golang.org/x/net/trace
golang.org/x/net/webdav
golang.org/x/net/webdav/internal/xml
golang.org/x/net/websocket
-# golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
+# golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
golang.org/x/oauth2
golang.org/x/oauth2/google
golang.org/x/oauth2/internal
@@ -253,7 +260,7 @@ golang.org/x/oauth2/jws
golang.org/x/oauth2/jwt
# golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e
golang.org/x/sync/errgroup
-# golang.org/x/sys v0.0.0-20191210023423-ac6580df4449
+# golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae
golang.org/x/sys/cpu
golang.org/x/sys/unix
golang.org/x/sys/windows
@@ -265,16 +272,18 @@ golang.org/x/text/unicode/bidi
golang.org/x/text/unicode/norm
# golang.org/x/time v0.0.0-20191024005414-555d28b269f0
golang.org/x/time/rate
-# google.golang.org/api v0.13.0
+# google.golang.org/api v0.18.0
google.golang.org/api/drive/v2
google.golang.org/api/drive/v3
google.golang.org/api/googleapi
-google.golang.org/api/googleapi/internal/uritemplates
google.golang.org/api/googleapi/transport
google.golang.org/api/internal
google.golang.org/api/internal/gensupport
+google.golang.org/api/internal/third_party/uritemplates
google.golang.org/api/option
+google.golang.org/api/option/internaloption
google.golang.org/api/storage/v1
+google.golang.org/api/transport/cert
google.golang.org/api/transport/http
google.golang.org/api/transport/http/internal/propagation
# google.golang.org/appengine v1.6.5
@@ -288,10 +297,11 @@ google.golang.org/appengine/internal/modules
google.golang.org/appengine/internal/remote_api
google.golang.org/appengine/internal/urlfetch
google.golang.org/appengine/urlfetch
-# google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a
+# google.golang.org/genproto v0.0.0-20200225123651-fc8f55426688
google.golang.org/genproto/googleapis/rpc/status
-# google.golang.org/grpc v1.25.1
+# google.golang.org/grpc v1.27.1
google.golang.org/grpc
+google.golang.org/grpc/attributes
google.golang.org/grpc/backoff
google.golang.org/grpc/balancer
google.golang.org/grpc/balancer/base
@@ -326,5 +336,5 @@ google.golang.org/grpc/serviceconfig
google.golang.org/grpc/stats
google.golang.org/grpc/status
google.golang.org/grpc/tap
-# gopkg.in/yaml.v2 v2.2.5
+# gopkg.in/yaml.v2 v2.2.8
gopkg.in/yaml.v2