mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-31 18:28:13 +00:00 
			
		
		
		
	github.com/golang/protobuf v1.2.0
This commit is contained in:
		
							
								
								
									
										5
									
								
								Godeps/LICENSES
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										5
									
								
								Godeps/LICENSES
									
									
									
										generated
									
									
									
								
							| @@ -8749,10 +8749,7 @@ third-party archives. | ||||
| ================================================================================ | ||||
| = vendor/github.com/golang/protobuf licensed under: = | ||||
| 
 | ||||
| Go support for Protocol Buffers - Google's data interchange format | ||||
| 
 | ||||
| Copyright 2010 The Go Authors.  All rights reserved. | ||||
| https://github.com/golang/protobuf | ||||
| 
 | ||||
| Redistribution and use in source and binary forms, with or without | ||||
| modification, are permitted provided that the following conditions are | ||||
| @@ -8781,7 +8778,7 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||||
| OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
| 
 | ||||
| 
 | ||||
| = vendor/github.com/golang/protobuf/LICENSE 14db3a56c3796a940ba32948a15f97d0 | ||||
| = vendor/github.com/golang/protobuf/LICENSE 939cce1ec101726fa754e698ac871622 | ||||
| ================================================================================ | ||||
| 
 | ||||
| 
 | ||||
|   | ||||
							
								
								
									
										2
									
								
								go.mod
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								go.mod
									
									
									
									
									
								
							| @@ -284,7 +284,7 @@ replace ( | ||||
| 	github.com/golang/glog => github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b | ||||
| 	github.com/golang/groupcache => github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903 | ||||
| 	github.com/golang/mock => github.com/golang/mock v0.0.0-20160127222235-bd3c8e81be01 | ||||
| 	github.com/golang/protobuf => github.com/golang/protobuf v1.1.0 | ||||
| 	github.com/golang/protobuf => github.com/golang/protobuf v1.2.0 | ||||
| 	github.com/golangplus/bytes => github.com/golangplus/bytes v0.0.0-20160111154220-45c989fe5450 | ||||
| 	github.com/golangplus/fmt => github.com/golangplus/fmt v0.0.0-20150411045040-2a5d6d7d2995 | ||||
| 	github.com/golangplus/testing => github.com/golangplus/testing v0.0.0-20180327235837-af21d9c3145e | ||||
|   | ||||
							
								
								
									
										4
									
								
								go.sum
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								go.sum
									
									
									
									
									
								
							| @@ -163,8 +163,8 @@ github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903 h1:LbsanbbD6LieF | ||||
| github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= | ||||
| github.com/golang/mock v0.0.0-20160127222235-bd3c8e81be01 h1:rtnkE5nwSSDcZrbt4gcVsFPeSXXe7Nq2vCn9DBb0Y8I= | ||||
| github.com/golang/mock v0.0.0-20160127222235-bd3c8e81be01/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= | ||||
| github.com/golang/protobuf v1.1.0 h1:0iH4Ffd/meGoXqF2lSAhZHt8X+cPgkfn/cb6Cce5Vpc= | ||||
| github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= | ||||
| github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/golangplus/bytes v0.0.0-20160111154220-45c989fe5450 h1:7xqw01UYS+KCI25bMrPxwNYkSns2Db1ziQPpVq99FpE= | ||||
| github.com/golangplus/bytes v0.0.0-20160111154220-45c989fe5450/go.mod h1:Bk6SMAONeMXrxql8uvOKuAZSu8aM5RUGv+1C6IJaEho= | ||||
| github.com/golangplus/fmt v0.0.0-20150411045040-2a5d6d7d2995 h1:f5gsjBiF9tRRVomCvrkGMMWI8W1f2OBFar2c5oakAP0= | ||||
|   | ||||
							
								
								
									
										1
									
								
								staging/src/k8s.io/api/go.mod
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1
									
								
								staging/src/k8s.io/api/go.mod
									
									
									
										generated
									
									
									
								
							| @@ -12,7 +12,6 @@ require ( | ||||
|  | ||||
| replace ( | ||||
| 	github.com/gogo/protobuf => github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 | ||||
| 	github.com/golang/protobuf => github.com/golang/protobuf v1.1.0 | ||||
| 	github.com/onsi/ginkgo => github.com/onsi/ginkgo v0.0.0-20170318221715-67b9df7f55fe | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190209173611-3b5209105503 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190313210603-aa82965741a9 | ||||
|   | ||||
							
								
								
									
										4
									
								
								staging/src/k8s.io/api/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								staging/src/k8s.io/api/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -7,8 +7,8 @@ github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMo | ||||
| github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 h1:WSBJMqJbLxsn+bTCPyPYZfqHdJmc8MK4wrBjMft6BAM= | ||||
| github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= | ||||
| github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= | ||||
| github.com/golang/protobuf v1.1.0 h1:0iH4Ffd/meGoXqF2lSAhZHt8X+cPgkfn/cb6Cce5Vpc= | ||||
| github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= | ||||
| github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf h1:+RRA9JqSOZFfKrOeqr2z77+8R2RKyh8PG66dcu1V0ck= | ||||
| github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= | ||||
| github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= | ||||
|   | ||||
| @@ -39,7 +39,6 @@ require ( | ||||
|  | ||||
| replace ( | ||||
| 	github.com/gogo/protobuf => github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 | ||||
| 	github.com/golang/protobuf => github.com/golang/protobuf v1.1.0 | ||||
| 	github.com/onsi/ginkgo => github.com/onsi/ginkgo v0.0.0-20170318221715-67b9df7f55fe | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190209173611-3b5209105503 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190313210603-aa82965741a9 | ||||
|   | ||||
| @@ -68,8 +68,8 @@ github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekf | ||||
| github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= | ||||
| github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903 h1:LbsanbbD6LieFkXbj9YNNBupiGHJgFeLpO0j0Fza1h8= | ||||
| github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= | ||||
| github.com/golang/protobuf v1.1.0 h1:0iH4Ffd/meGoXqF2lSAhZHt8X+cPgkfn/cb6Cce5Vpc= | ||||
| github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= | ||||
| github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/google/btree v0.0.0-20160524151835-7d79101e329e h1:JHB7F/4TJCrYBW8+GZO8VkWDj1jxcWuCl6uxKODiyi4= | ||||
| github.com/google/btree v0.0.0-20160524151835-7d79101e329e/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= | ||||
| github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= | ||||
|   | ||||
							
								
								
									
										1
									
								
								staging/src/k8s.io/apimachinery/go.mod
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1
									
								
								staging/src/k8s.io/apimachinery/go.mod
									
									
									
										generated
									
									
									
								
							| @@ -37,7 +37,6 @@ require ( | ||||
|  | ||||
| replace ( | ||||
| 	github.com/gogo/protobuf => github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 | ||||
| 	github.com/golang/protobuf => github.com/golang/protobuf v1.1.0 | ||||
| 	github.com/onsi/ginkgo => github.com/onsi/ginkgo v0.0.0-20170318221715-67b9df7f55fe | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190209173611-3b5209105503 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190313210603-aa82965741a9 | ||||
|   | ||||
							
								
								
									
										4
									
								
								staging/src/k8s.io/apimachinery/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								staging/src/k8s.io/apimachinery/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -11,8 +11,8 @@ github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 h1:WSBJMqJbLxsn+bTCP | ||||
| github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= | ||||
| github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903 h1:LbsanbbD6LieFkXbj9YNNBupiGHJgFeLpO0j0Fza1h8= | ||||
| github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= | ||||
| github.com/golang/protobuf v1.1.0 h1:0iH4Ffd/meGoXqF2lSAhZHt8X+cPgkfn/cb6Cce5Vpc= | ||||
| github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= | ||||
| github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf h1:+RRA9JqSOZFfKrOeqr2z77+8R2RKyh8PG66dcu1V0ck= | ||||
| github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= | ||||
| github.com/google/uuid v1.0.0 h1:b4Gk+7WdP/d3HZH8EJsZpvV7EtDOgaZLtnaNGIu1adA= | ||||
|   | ||||
							
								
								
									
										1
									
								
								staging/src/k8s.io/apiserver/go.mod
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1
									
								
								staging/src/k8s.io/apiserver/go.mod
									
									
									
										generated
									
									
									
								
							| @@ -75,7 +75,6 @@ require ( | ||||
|  | ||||
| replace ( | ||||
| 	github.com/gogo/protobuf => github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 | ||||
| 	github.com/golang/protobuf => github.com/golang/protobuf v1.1.0 | ||||
| 	github.com/onsi/ginkgo => github.com/onsi/ginkgo v0.0.0-20170318221715-67b9df7f55fe | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190209173611-3b5209105503 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190313210603-aa82965741a9 | ||||
|   | ||||
							
								
								
									
										4
									
								
								staging/src/k8s.io/apiserver/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								staging/src/k8s.io/apiserver/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -53,8 +53,8 @@ github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekf | ||||
| github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= | ||||
| github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903 h1:LbsanbbD6LieFkXbj9YNNBupiGHJgFeLpO0j0Fza1h8= | ||||
| github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= | ||||
| github.com/golang/protobuf v1.1.0 h1:0iH4Ffd/meGoXqF2lSAhZHt8X+cPgkfn/cb6Cce5Vpc= | ||||
| github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= | ||||
| github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/google/btree v0.0.0-20160524151835-7d79101e329e h1:JHB7F/4TJCrYBW8+GZO8VkWDj1jxcWuCl6uxKODiyi4= | ||||
| github.com/google/btree v0.0.0-20160524151835-7d79101e329e/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= | ||||
| github.com/google/go-cmp v0.2.0 h1:+dTQ8DZQJz0Mb/HjFlkptS1FeQ4cWSnN941F8aEG4SQ= | ||||
|   | ||||
							
								
								
									
										1
									
								
								staging/src/k8s.io/cli-runtime/go.mod
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1
									
								
								staging/src/k8s.io/cli-runtime/go.mod
									
									
									
										generated
									
									
									
								
							| @@ -28,7 +28,6 @@ require ( | ||||
|  | ||||
| replace ( | ||||
| 	github.com/gogo/protobuf => github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 | ||||
| 	github.com/golang/protobuf => github.com/golang/protobuf v1.1.0 | ||||
| 	github.com/onsi/ginkgo => github.com/onsi/ginkgo v0.0.0-20170318221715-67b9df7f55fe | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190209173611-3b5209105503 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190313210603-aa82965741a9 | ||||
|   | ||||
							
								
								
									
										4
									
								
								staging/src/k8s.io/cli-runtime/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								staging/src/k8s.io/cli-runtime/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -27,8 +27,8 @@ github.com/go-openapi/swag v0.17.2/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/ | ||||
| github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 h1:WSBJMqJbLxsn+bTCPyPYZfqHdJmc8MK4wrBjMft6BAM= | ||||
| github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= | ||||
| github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= | ||||
| github.com/golang/protobuf v1.1.0 h1:0iH4Ffd/meGoXqF2lSAhZHt8X+cPgkfn/cb6Cce5Vpc= | ||||
| github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= | ||||
| github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/google/btree v0.0.0-20160524151835-7d79101e329e h1:JHB7F/4TJCrYBW8+GZO8VkWDj1jxcWuCl6uxKODiyi4= | ||||
| github.com/google/btree v0.0.0-20160524151835-7d79101e329e/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= | ||||
| github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf h1:+RRA9JqSOZFfKrOeqr2z77+8R2RKyh8PG66dcu1V0ck= | ||||
|   | ||||
							
								
								
									
										1
									
								
								staging/src/k8s.io/client-go/go.mod
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1
									
								
								staging/src/k8s.io/client-go/go.mod
									
									
									
										generated
									
									
									
								
							| @@ -36,7 +36,6 @@ require ( | ||||
|  | ||||
| replace ( | ||||
| 	github.com/gogo/protobuf => github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 | ||||
| 	github.com/golang/protobuf => github.com/golang/protobuf v1.1.0 | ||||
| 	github.com/onsi/ginkgo => github.com/onsi/ginkgo v0.0.0-20170318221715-67b9df7f55fe | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190209173611-3b5209105503 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190313210603-aa82965741a9 | ||||
|   | ||||
							
								
								
									
										4
									
								
								staging/src/k8s.io/client-go/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								staging/src/k8s.io/client-go/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -17,8 +17,8 @@ github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 h1:WSBJMqJbLxsn+bTCP | ||||
| github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= | ||||
| github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903 h1:LbsanbbD6LieFkXbj9YNNBupiGHJgFeLpO0j0Fza1h8= | ||||
| github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= | ||||
| github.com/golang/protobuf v1.1.0 h1:0iH4Ffd/meGoXqF2lSAhZHt8X+cPgkfn/cb6Cce5Vpc= | ||||
| github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= | ||||
| github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/google/btree v0.0.0-20160524151835-7d79101e329e h1:JHB7F/4TJCrYBW8+GZO8VkWDj1jxcWuCl6uxKODiyi4= | ||||
| github.com/google/btree v0.0.0-20160524151835-7d79101e329e/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= | ||||
| github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf h1:+RRA9JqSOZFfKrOeqr2z77+8R2RKyh8PG66dcu1V0ck= | ||||
|   | ||||
							
								
								
									
										1
									
								
								staging/src/k8s.io/cloud-provider/go.mod
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1
									
								
								staging/src/k8s.io/cloud-provider/go.mod
									
									
									
										generated
									
									
									
								
							| @@ -15,7 +15,6 @@ require ( | ||||
|  | ||||
| replace ( | ||||
| 	github.com/gogo/protobuf => github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 | ||||
| 	github.com/golang/protobuf => github.com/golang/protobuf v1.1.0 | ||||
| 	github.com/onsi/ginkgo => github.com/onsi/ginkgo v0.0.0-20170318221715-67b9df7f55fe | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190209173611-3b5209105503 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190313210603-aa82965741a9 | ||||
|   | ||||
							
								
								
									
										4
									
								
								staging/src/k8s.io/cloud-provider/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								staging/src/k8s.io/cloud-provider/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -31,8 +31,8 @@ github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415/go.mod h1:r8qH/GZQm5 | ||||
| github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= | ||||
| github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903 h1:LbsanbbD6LieFkXbj9YNNBupiGHJgFeLpO0j0Fza1h8= | ||||
| github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= | ||||
| github.com/golang/protobuf v1.1.0 h1:0iH4Ffd/meGoXqF2lSAhZHt8X+cPgkfn/cb6Cce5Vpc= | ||||
| github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= | ||||
| github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/google/btree v0.0.0-20160524151835-7d79101e329e/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= | ||||
| github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= | ||||
| github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf h1:+RRA9JqSOZFfKrOeqr2z77+8R2RKyh8PG66dcu1V0ck= | ||||
|   | ||||
							
								
								
									
										1
									
								
								staging/src/k8s.io/cluster-bootstrap/go.mod
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1
									
								
								staging/src/k8s.io/cluster-bootstrap/go.mod
									
									
									
										generated
									
									
									
								
							| @@ -11,7 +11,6 @@ require ( | ||||
|  | ||||
| replace ( | ||||
| 	github.com/gogo/protobuf => github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 | ||||
| 	github.com/golang/protobuf => github.com/golang/protobuf v1.1.0 | ||||
| 	github.com/onsi/ginkgo => github.com/onsi/ginkgo v0.0.0-20170318221715-67b9df7f55fe | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190209173611-3b5209105503 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190313210603-aa82965741a9 | ||||
|   | ||||
							
								
								
									
										2
									
								
								staging/src/k8s.io/cluster-bootstrap/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								staging/src/k8s.io/cluster-bootstrap/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -7,7 +7,7 @@ github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMo | ||||
| github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 h1:WSBJMqJbLxsn+bTCPyPYZfqHdJmc8MK4wrBjMft6BAM= | ||||
| github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= | ||||
| github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= | ||||
| github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf h1:+RRA9JqSOZFfKrOeqr2z77+8R2RKyh8PG66dcu1V0ck= | ||||
| github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= | ||||
| github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= | ||||
|   | ||||
							
								
								
									
										1
									
								
								staging/src/k8s.io/component-base/go.mod
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1
									
								
								staging/src/k8s.io/component-base/go.mod
									
									
									
										generated
									
									
									
								
							| @@ -13,7 +13,6 @@ require ( | ||||
|  | ||||
| replace ( | ||||
| 	github.com/gogo/protobuf => github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 | ||||
| 	github.com/golang/protobuf => github.com/golang/protobuf v1.1.0 | ||||
| 	github.com/onsi/ginkgo => github.com/onsi/ginkgo v0.0.0-20170318221715-67b9df7f55fe | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190209173611-3b5209105503 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190313210603-aa82965741a9 | ||||
|   | ||||
							
								
								
									
										2
									
								
								staging/src/k8s.io/component-base/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								staging/src/k8s.io/component-base/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -7,7 +7,7 @@ github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMo | ||||
| github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 h1:WSBJMqJbLxsn+bTCPyPYZfqHdJmc8MK4wrBjMft6BAM= | ||||
| github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= | ||||
| github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= | ||||
| github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf h1:+RRA9JqSOZFfKrOeqr2z77+8R2RKyh8PG66dcu1V0ck= | ||||
| github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= | ||||
| github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= | ||||
|   | ||||
							
								
								
									
										1
									
								
								staging/src/k8s.io/cri-api/go.mod
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1
									
								
								staging/src/k8s.io/cri-api/go.mod
									
									
									
										generated
									
									
									
								
							| @@ -20,7 +20,6 @@ require ( | ||||
|  | ||||
| replace ( | ||||
| 	github.com/gogo/protobuf => github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 | ||||
| 	github.com/golang/protobuf => github.com/golang/protobuf v1.1.0 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190313210603-aa82965741a9 | ||||
| 	k8s.io/cri-api => ../cri-api | ||||
| ) | ||||
|   | ||||
							
								
								
									
										4
									
								
								staging/src/k8s.io/cri-api/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								staging/src/k8s.io/cri-api/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -4,8 +4,8 @@ github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 h1:WSBJMqJbLxsn+bTCP | ||||
| github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= | ||||
| 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/protobuf v1.1.0 h1:0iH4Ffd/meGoXqF2lSAhZHt8X+cPgkfn/cb6Cce5Vpc= | ||||
| github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= | ||||
| github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| 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/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w= | ||||
|   | ||||
							
								
								
									
										1
									
								
								staging/src/k8s.io/csi-translation-lib/go.mod
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1
									
								
								staging/src/k8s.io/csi-translation-lib/go.mod
									
									
									
										generated
									
									
									
								
							| @@ -12,7 +12,6 @@ require ( | ||||
|  | ||||
| replace ( | ||||
| 	github.com/gogo/protobuf => github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 | ||||
| 	github.com/golang/protobuf => github.com/golang/protobuf v1.1.0 | ||||
| 	github.com/onsi/ginkgo => github.com/onsi/ginkgo v0.0.0-20170318221715-67b9df7f55fe | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190209173611-3b5209105503 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190313210603-aa82965741a9 | ||||
|   | ||||
							
								
								
									
										2
									
								
								staging/src/k8s.io/csi-translation-lib/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								staging/src/k8s.io/csi-translation-lib/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -30,7 +30,7 @@ github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 h1:WSBJMqJbLxsn+bTCP | ||||
| github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= | ||||
| github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= | ||||
| github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= | ||||
| github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/google/btree v0.0.0-20160524151835-7d79101e329e/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= | ||||
| github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= | ||||
| github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf h1:+RRA9JqSOZFfKrOeqr2z77+8R2RKyh8PG66dcu1V0ck= | ||||
|   | ||||
							
								
								
									
										1
									
								
								staging/src/k8s.io/kube-aggregator/go.mod
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1
									
								
								staging/src/k8s.io/kube-aggregator/go.mod
									
									
									
										generated
									
									
									
								
							| @@ -28,7 +28,6 @@ require ( | ||||
|  | ||||
| replace ( | ||||
| 	github.com/gogo/protobuf => github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 | ||||
| 	github.com/golang/protobuf => github.com/golang/protobuf v1.1.0 | ||||
| 	github.com/onsi/ginkgo => github.com/onsi/ginkgo v0.0.0-20170318221715-67b9df7f55fe | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190209173611-3b5209105503 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190313210603-aa82965741a9 | ||||
|   | ||||
							
								
								
									
										4
									
								
								staging/src/k8s.io/kube-aggregator/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								staging/src/k8s.io/kube-aggregator/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -53,8 +53,8 @@ github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekf | ||||
| github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= | ||||
| github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903 h1:LbsanbbD6LieFkXbj9YNNBupiGHJgFeLpO0j0Fza1h8= | ||||
| github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= | ||||
| github.com/golang/protobuf v1.1.0 h1:0iH4Ffd/meGoXqF2lSAhZHt8X+cPgkfn/cb6Cce5Vpc= | ||||
| github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= | ||||
| github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/google/btree v0.0.0-20160524151835-7d79101e329e h1:JHB7F/4TJCrYBW8+GZO8VkWDj1jxcWuCl6uxKODiyi4= | ||||
| github.com/google/btree v0.0.0-20160524151835-7d79101e329e/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= | ||||
| github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= | ||||
|   | ||||
| @@ -11,7 +11,6 @@ require ( | ||||
|  | ||||
| replace ( | ||||
| 	github.com/gogo/protobuf => github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 | ||||
| 	github.com/golang/protobuf => github.com/golang/protobuf v1.1.0 | ||||
| 	github.com/onsi/ginkgo => github.com/onsi/ginkgo v0.0.0-20170318221715-67b9df7f55fe | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190209173611-3b5209105503 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190313210603-aa82965741a9 | ||||
|   | ||||
| @@ -7,7 +7,7 @@ github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMo | ||||
| github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 h1:WSBJMqJbLxsn+bTCPyPYZfqHdJmc8MK4wrBjMft6BAM= | ||||
| github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= | ||||
| github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= | ||||
| github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf h1:+RRA9JqSOZFfKrOeqr2z77+8R2RKyh8PG66dcu1V0ck= | ||||
| github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= | ||||
| github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= | ||||
|   | ||||
							
								
								
									
										1
									
								
								staging/src/k8s.io/kube-proxy/go.mod
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1
									
								
								staging/src/k8s.io/kube-proxy/go.mod
									
									
									
										generated
									
									
									
								
							| @@ -11,7 +11,6 @@ require ( | ||||
|  | ||||
| replace ( | ||||
| 	github.com/gogo/protobuf => github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 | ||||
| 	github.com/golang/protobuf => github.com/golang/protobuf v1.1.0 | ||||
| 	github.com/onsi/ginkgo => github.com/onsi/ginkgo v0.0.0-20170318221715-67b9df7f55fe | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190209173611-3b5209105503 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190313210603-aa82965741a9 | ||||
|   | ||||
							
								
								
									
										2
									
								
								staging/src/k8s.io/kube-proxy/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								staging/src/k8s.io/kube-proxy/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -7,7 +7,7 @@ github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMo | ||||
| github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 h1:WSBJMqJbLxsn+bTCPyPYZfqHdJmc8MK4wrBjMft6BAM= | ||||
| github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= | ||||
| github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= | ||||
| github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf h1:+RRA9JqSOZFfKrOeqr2z77+8R2RKyh8PG66dcu1V0ck= | ||||
| github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= | ||||
| github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= | ||||
|   | ||||
							
								
								
									
										1
									
								
								staging/src/k8s.io/kube-scheduler/go.mod
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1
									
								
								staging/src/k8s.io/kube-scheduler/go.mod
									
									
									
										generated
									
									
									
								
							| @@ -11,7 +11,6 @@ require ( | ||||
|  | ||||
| replace ( | ||||
| 	github.com/gogo/protobuf => github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 | ||||
| 	github.com/golang/protobuf => github.com/golang/protobuf v1.1.0 | ||||
| 	github.com/onsi/ginkgo => github.com/onsi/ginkgo v0.0.0-20170318221715-67b9df7f55fe | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190209173611-3b5209105503 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190313210603-aa82965741a9 | ||||
|   | ||||
							
								
								
									
										2
									
								
								staging/src/k8s.io/kube-scheduler/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								staging/src/k8s.io/kube-scheduler/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -7,7 +7,7 @@ github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMo | ||||
| github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 h1:WSBJMqJbLxsn+bTCPyPYZfqHdJmc8MK4wrBjMft6BAM= | ||||
| github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= | ||||
| github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= | ||||
| github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf h1:+RRA9JqSOZFfKrOeqr2z77+8R2RKyh8PG66dcu1V0ck= | ||||
| github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= | ||||
| github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= | ||||
|   | ||||
							
								
								
									
										1
									
								
								staging/src/k8s.io/kubelet/go.mod
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1
									
								
								staging/src/k8s.io/kubelet/go.mod
									
									
									
										generated
									
									
									
								
							| @@ -11,7 +11,6 @@ require ( | ||||
|  | ||||
| replace ( | ||||
| 	github.com/gogo/protobuf => github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 | ||||
| 	github.com/golang/protobuf => github.com/golang/protobuf v1.1.0 | ||||
| 	github.com/onsi/ginkgo => github.com/onsi/ginkgo v0.0.0-20170318221715-67b9df7f55fe | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190209173611-3b5209105503 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190313210603-aa82965741a9 | ||||
|   | ||||
							
								
								
									
										2
									
								
								staging/src/k8s.io/kubelet/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								staging/src/k8s.io/kubelet/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -7,7 +7,7 @@ github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMo | ||||
| github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 h1:WSBJMqJbLxsn+bTCPyPYZfqHdJmc8MK4wrBjMft6BAM= | ||||
| github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= | ||||
| github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= | ||||
| github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf h1:+RRA9JqSOZFfKrOeqr2z77+8R2RKyh8PG66dcu1V0ck= | ||||
| github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= | ||||
| github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= | ||||
|   | ||||
							
								
								
									
										1
									
								
								staging/src/k8s.io/metrics/go.mod
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1
									
								
								staging/src/k8s.io/metrics/go.mod
									
									
									
										generated
									
									
									
								
							| @@ -15,7 +15,6 @@ require ( | ||||
|  | ||||
| replace ( | ||||
| 	github.com/gogo/protobuf => github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 | ||||
| 	github.com/golang/protobuf => github.com/golang/protobuf v1.1.0 | ||||
| 	github.com/onsi/ginkgo => github.com/onsi/ginkgo v0.0.0-20170318221715-67b9df7f55fe | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190209173611-3b5209105503 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190313210603-aa82965741a9 | ||||
|   | ||||
							
								
								
									
										4
									
								
								staging/src/k8s.io/metrics/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								staging/src/k8s.io/metrics/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -12,8 +12,8 @@ github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMo | ||||
| github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 h1:WSBJMqJbLxsn+bTCPyPYZfqHdJmc8MK4wrBjMft6BAM= | ||||
| github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= | ||||
| github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= | ||||
| github.com/golang/protobuf v1.1.0 h1:0iH4Ffd/meGoXqF2lSAhZHt8X+cPgkfn/cb6Cce5Vpc= | ||||
| github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= | ||||
| github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/google/btree v0.0.0-20160524151835-7d79101e329e/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= | ||||
| github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf h1:+RRA9JqSOZFfKrOeqr2z77+8R2RKyh8PG66dcu1V0ck= | ||||
| github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= | ||||
|   | ||||
							
								
								
									
										1
									
								
								staging/src/k8s.io/node-api/go.mod
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1
									
								
								staging/src/k8s.io/node-api/go.mod
									
									
									
										generated
									
									
									
								
							| @@ -12,7 +12,6 @@ require ( | ||||
|  | ||||
| replace ( | ||||
| 	github.com/gogo/protobuf => github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 | ||||
| 	github.com/golang/protobuf => github.com/golang/protobuf v1.1.0 | ||||
| 	github.com/onsi/ginkgo => github.com/onsi/ginkgo v0.0.0-20170318221715-67b9df7f55fe | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190209173611-3b5209105503 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190313210603-aa82965741a9 | ||||
|   | ||||
							
								
								
									
										4
									
								
								staging/src/k8s.io/node-api/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								staging/src/k8s.io/node-api/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -13,8 +13,8 @@ github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 h1:WSBJMqJbLxsn+bTCP | ||||
| github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= | ||||
| github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903 h1:LbsanbbD6LieFkXbj9YNNBupiGHJgFeLpO0j0Fza1h8= | ||||
| github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= | ||||
| github.com/golang/protobuf v1.1.0 h1:0iH4Ffd/meGoXqF2lSAhZHt8X+cPgkfn/cb6Cce5Vpc= | ||||
| github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= | ||||
| github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/google/btree v0.0.0-20160524151835-7d79101e329e/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= | ||||
| github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf h1:+RRA9JqSOZFfKrOeqr2z77+8R2RKyh8PG66dcu1V0ck= | ||||
| github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= | ||||
|   | ||||
							
								
								
									
										1
									
								
								staging/src/k8s.io/sample-apiserver/go.mod
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1
									
								
								staging/src/k8s.io/sample-apiserver/go.mod
									
									
									
										generated
									
									
									
								
							| @@ -18,7 +18,6 @@ require ( | ||||
|  | ||||
| replace ( | ||||
| 	github.com/gogo/protobuf => github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 | ||||
| 	github.com/golang/protobuf => github.com/golang/protobuf v1.1.0 | ||||
| 	github.com/onsi/ginkgo => github.com/onsi/ginkgo v0.0.0-20170318221715-67b9df7f55fe | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190209173611-3b5209105503 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190313210603-aa82965741a9 | ||||
|   | ||||
							
								
								
									
										4
									
								
								staging/src/k8s.io/sample-apiserver/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								staging/src/k8s.io/sample-apiserver/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -51,8 +51,8 @@ github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekf | ||||
| github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= | ||||
| github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903 h1:LbsanbbD6LieFkXbj9YNNBupiGHJgFeLpO0j0Fza1h8= | ||||
| github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= | ||||
| github.com/golang/protobuf v1.1.0 h1:0iH4Ffd/meGoXqF2lSAhZHt8X+cPgkfn/cb6Cce5Vpc= | ||||
| github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= | ||||
| github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/google/btree v0.0.0-20160524151835-7d79101e329e h1:JHB7F/4TJCrYBW8+GZO8VkWDj1jxcWuCl6uxKODiyi4= | ||||
| github.com/google/btree v0.0.0-20160524151835-7d79101e329e/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= | ||||
| github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= | ||||
|   | ||||
							
								
								
									
										1
									
								
								staging/src/k8s.io/sample-cli-plugin/go.mod
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1
									
								
								staging/src/k8s.io/sample-cli-plugin/go.mod
									
									
									
										generated
									
									
									
								
							| @@ -13,7 +13,6 @@ require ( | ||||
|  | ||||
| replace ( | ||||
| 	github.com/gogo/protobuf => github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 | ||||
| 	github.com/golang/protobuf => github.com/golang/protobuf v1.1.0 | ||||
| 	github.com/onsi/ginkgo => github.com/onsi/ginkgo v0.0.0-20170318221715-67b9df7f55fe | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190209173611-3b5209105503 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190313210603-aa82965741a9 | ||||
|   | ||||
							
								
								
									
										4
									
								
								staging/src/k8s.io/sample-cli-plugin/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								staging/src/k8s.io/sample-cli-plugin/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -27,8 +27,8 @@ github.com/go-openapi/swag v0.17.2/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/ | ||||
| github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 h1:WSBJMqJbLxsn+bTCPyPYZfqHdJmc8MK4wrBjMft6BAM= | ||||
| github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= | ||||
| github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= | ||||
| github.com/golang/protobuf v1.1.0 h1:0iH4Ffd/meGoXqF2lSAhZHt8X+cPgkfn/cb6Cce5Vpc= | ||||
| github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= | ||||
| github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/google/btree v0.0.0-20160524151835-7d79101e329e h1:JHB7F/4TJCrYBW8+GZO8VkWDj1jxcWuCl6uxKODiyi4= | ||||
| github.com/google/btree v0.0.0-20160524151835-7d79101e329e/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= | ||||
| github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf h1:+RRA9JqSOZFfKrOeqr2z77+8R2RKyh8PG66dcu1V0ck= | ||||
|   | ||||
							
								
								
									
										1
									
								
								staging/src/k8s.io/sample-controller/go.mod
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1
									
								
								staging/src/k8s.io/sample-controller/go.mod
									
									
									
										generated
									
									
									
								
							| @@ -14,7 +14,6 @@ require ( | ||||
|  | ||||
| replace ( | ||||
| 	github.com/gogo/protobuf => github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 | ||||
| 	github.com/golang/protobuf => github.com/golang/protobuf v1.1.0 | ||||
| 	github.com/onsi/ginkgo => github.com/onsi/ginkgo v0.0.0-20170318221715-67b9df7f55fe | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190209173611-3b5209105503 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190313210603-aa82965741a9 | ||||
|   | ||||
							
								
								
									
										4
									
								
								staging/src/k8s.io/sample-controller/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								staging/src/k8s.io/sample-controller/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -13,8 +13,8 @@ github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 h1:WSBJMqJbLxsn+bTCP | ||||
| github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= | ||||
| github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903 h1:LbsanbbD6LieFkXbj9YNNBupiGHJgFeLpO0j0Fza1h8= | ||||
| github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= | ||||
| github.com/golang/protobuf v1.1.0 h1:0iH4Ffd/meGoXqF2lSAhZHt8X+cPgkfn/cb6Cce5Vpc= | ||||
| github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= | ||||
| github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/google/btree v0.0.0-20160524151835-7d79101e329e/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= | ||||
| github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf h1:+RRA9JqSOZFfKrOeqr2z77+8R2RKyh8PG66dcu1V0ck= | ||||
| github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= | ||||
|   | ||||
							
								
								
									
										3
									
								
								vendor/github.com/golang/protobuf/LICENSE
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								vendor/github.com/golang/protobuf/LICENSE
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,7 +1,4 @@ | ||||
| Go support for Protocol Buffers - Google's data interchange format | ||||
|  | ||||
| Copyright 2010 The Go Authors.  All rights reserved. | ||||
| https://github.com/golang/protobuf | ||||
|  | ||||
| Redistribution and use in source and binary forms, with or without | ||||
| modification, are permitted provided that the following conditions are | ||||
|   | ||||
							
								
								
									
										60
									
								
								vendor/github.com/golang/protobuf/jsonpb/jsonpb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										60
									
								
								vendor/github.com/golang/protobuf/jsonpb/jsonpb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -106,6 +106,9 @@ func defaultResolveAny(typeUrl string) (proto.Message, error) { | ||||
| // way they are marshaled to JSON. Messages that implement this should | ||||
| // also implement JSONPBUnmarshaler so that the custom format can be | ||||
| // parsed. | ||||
| // | ||||
| // The JSON marshaling must follow the proto to JSON specification: | ||||
| //	https://developers.google.com/protocol-buffers/docs/proto3#json | ||||
| type JSONPBMarshaler interface { | ||||
| 	MarshalJSONPB(*Marshaler) ([]byte, error) | ||||
| } | ||||
| @@ -114,6 +117,9 @@ type JSONPBMarshaler interface { | ||||
| // the way they are unmarshaled from JSON. Messages that implement this | ||||
| // should also implement JSONPBMarshaler so that the custom format can be | ||||
| // produced. | ||||
| // | ||||
| // The JSON unmarshaling must follow the JSON to proto specification: | ||||
| //	https://developers.google.com/protocol-buffers/docs/proto3#json | ||||
| type JSONPBUnmarshaler interface { | ||||
| 	UnmarshalJSONPB(*Unmarshaler, []byte) error | ||||
| } | ||||
| @@ -565,6 +571,7 @@ func (m *Marshaler) marshalValue(out *errWriter, prop *proto.Properties, v refle | ||||
| 				out.write(m.Indent) | ||||
| 			} | ||||
|  | ||||
| 			// TODO handle map key prop properly | ||||
| 			b, err := json.Marshal(k.Interface()) | ||||
| 			if err != nil { | ||||
| 				return err | ||||
| @@ -586,7 +593,11 @@ func (m *Marshaler) marshalValue(out *errWriter, prop *proto.Properties, v refle | ||||
| 				out.write(` `) | ||||
| 			} | ||||
|  | ||||
| 			if err := m.marshalValue(out, prop, v.MapIndex(k), indent+m.Indent); err != nil { | ||||
| 			vprop := prop | ||||
| 			if prop != nil && prop.MapValProp != nil { | ||||
| 				vprop = prop.MapValProp | ||||
| 			} | ||||
| 			if err := m.marshalValue(out, vprop, v.MapIndex(k), indent+m.Indent); err != nil { | ||||
| 				return err | ||||
| 			} | ||||
| 		} | ||||
| @@ -778,7 +789,7 @@ func (u *Unmarshaler) unmarshalValue(target reflect.Value, inputValue json.RawMe | ||||
|  | ||||
| 			return nil | ||||
| 		case "Duration": | ||||
| 			unq, err := strconv.Unquote(string(inputValue)) | ||||
| 			unq, err := unquote(string(inputValue)) | ||||
| 			if err != nil { | ||||
| 				return err | ||||
| 			} | ||||
| @@ -795,7 +806,7 @@ func (u *Unmarshaler) unmarshalValue(target reflect.Value, inputValue json.RawMe | ||||
| 			target.Field(1).SetInt(ns) | ||||
| 			return nil | ||||
| 		case "Timestamp": | ||||
| 			unq, err := strconv.Unquote(string(inputValue)) | ||||
| 			unq, err := unquote(string(inputValue)) | ||||
| 			if err != nil { | ||||
| 				return err | ||||
| 			} | ||||
| @@ -842,7 +853,7 @@ func (u *Unmarshaler) unmarshalValue(target reflect.Value, inputValue json.RawMe | ||||
| 				target.Field(0).Set(reflect.ValueOf(&stpb.Value_NullValue{})) | ||||
| 			} else if v, err := strconv.ParseFloat(ivStr, 0); err == nil { | ||||
| 				target.Field(0).Set(reflect.ValueOf(&stpb.Value_NumberValue{v})) | ||||
| 			} else if v, err := strconv.Unquote(ivStr); err == nil { | ||||
| 			} else if v, err := unquote(ivStr); err == nil { | ||||
| 				target.Field(0).Set(reflect.ValueOf(&stpb.Value_StringValue{v})) | ||||
| 			} else if v, err := strconv.ParseBool(ivStr); err == nil { | ||||
| 				target.Field(0).Set(reflect.ValueOf(&stpb.Value_BoolValue{v})) | ||||
| @@ -878,6 +889,9 @@ func (u *Unmarshaler) unmarshalValue(target reflect.Value, inputValue json.RawMe | ||||
| 			target.Set(reflect.New(targetType.Elem())) | ||||
| 			target = target.Elem() | ||||
| 		} | ||||
| 		if targetType.Kind() != reflect.Int32 { | ||||
| 			return fmt.Errorf("invalid target %q for enum %s", targetType.Kind(), prop.Enum) | ||||
| 		} | ||||
| 		target.SetInt(int64(n)) | ||||
| 		return nil | ||||
| 	} | ||||
| @@ -1007,16 +1021,22 @@ func (u *Unmarshaler) unmarshalValue(target reflect.Value, inputValue json.RawMe | ||||
| 					k = reflect.ValueOf(ks) | ||||
| 				} else { | ||||
| 					k = reflect.New(targetType.Key()).Elem() | ||||
| 					// TODO: pass the correct Properties if needed. | ||||
| 					if err := u.unmarshalValue(k, json.RawMessage(ks), nil); err != nil { | ||||
| 					var kprop *proto.Properties | ||||
| 					if prop != nil && prop.MapKeyProp != nil { | ||||
| 						kprop = prop.MapKeyProp | ||||
| 					} | ||||
| 					if err := u.unmarshalValue(k, json.RawMessage(ks), kprop); err != nil { | ||||
| 						return err | ||||
| 					} | ||||
| 				} | ||||
|  | ||||
| 				// Unmarshal map value. | ||||
| 				v := reflect.New(targetType.Elem()).Elem() | ||||
| 				// TODO: pass the correct Properties if needed. | ||||
| 				if err := u.unmarshalValue(v, raw, nil); err != nil { | ||||
| 				var vprop *proto.Properties | ||||
| 				if prop != nil && prop.MapValProp != nil { | ||||
| 					vprop = prop.MapValProp | ||||
| 				} | ||||
| 				if err := u.unmarshalValue(v, raw, vprop); err != nil { | ||||
| 					return err | ||||
| 				} | ||||
| 				target.SetMapIndex(k, v) | ||||
| @@ -1025,13 +1045,6 @@ func (u *Unmarshaler) unmarshalValue(target reflect.Value, inputValue json.RawMe | ||||
| 		return nil | ||||
| 	} | ||||
|  | ||||
| 	// 64-bit integers can be encoded as strings. In this case we drop | ||||
| 	// the quotes and proceed as normal. | ||||
| 	isNum := targetType.Kind() == reflect.Int64 || targetType.Kind() == reflect.Uint64 | ||||
| 	if isNum && strings.HasPrefix(string(inputValue), `"`) { | ||||
| 		inputValue = inputValue[1 : len(inputValue)-1] | ||||
| 	} | ||||
|  | ||||
| 	// Non-finite numbers can be encoded as strings. | ||||
| 	isFloat := targetType.Kind() == reflect.Float32 || targetType.Kind() == reflect.Float64 | ||||
| 	if isFloat { | ||||
| @@ -1041,10 +1054,25 @@ func (u *Unmarshaler) unmarshalValue(target reflect.Value, inputValue json.RawMe | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	// integers & floats can be encoded as strings. In this case we drop | ||||
| 	// the quotes and proceed as normal. | ||||
| 	isNum := targetType.Kind() == reflect.Int64 || targetType.Kind() == reflect.Uint64 || | ||||
| 		targetType.Kind() == reflect.Int32 || targetType.Kind() == reflect.Uint32 || | ||||
| 		targetType.Kind() == reflect.Float32 || targetType.Kind() == reflect.Float64 | ||||
| 	if isNum && strings.HasPrefix(string(inputValue), `"`) { | ||||
| 		inputValue = inputValue[1 : len(inputValue)-1] | ||||
| 	} | ||||
|  | ||||
| 	// Use the encoding/json for parsing other value types. | ||||
| 	return json.Unmarshal(inputValue, target.Addr().Interface()) | ||||
| } | ||||
|  | ||||
| func unquote(s string) (string, error) { | ||||
| 	var ret string | ||||
| 	err := json.Unmarshal([]byte(s), &ret) | ||||
| 	return ret, err | ||||
| } | ||||
|  | ||||
| // jsonProperties returns parsed proto.Properties for the field and corrects JSONName attribute. | ||||
| func jsonProperties(f reflect.StructField, origName bool) *proto.Properties { | ||||
| 	var prop proto.Properties | ||||
| @@ -1094,6 +1122,8 @@ func (s mapKeys) Swap(i, j int) { s[i], s[j] = s[j], s[i] } | ||||
| func (s mapKeys) Less(i, j int) bool { | ||||
| 	if k := s[i].Kind(); k == s[j].Kind() { | ||||
| 		switch k { | ||||
| 		case reflect.String: | ||||
| 			return s[i].String() < s[j].String() | ||||
| 		case reflect.Int32, reflect.Int64: | ||||
| 			return s[i].Int() < s[j].Int() | ||||
| 		case reflect.Uint32, reflect.Uint64: | ||||
|   | ||||
							
								
								
									
										18
									
								
								vendor/github.com/golang/protobuf/proto/encode.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										18
									
								
								vendor/github.com/golang/protobuf/proto/encode.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -37,27 +37,9 @@ package proto | ||||
|  | ||||
| import ( | ||||
| 	"errors" | ||||
| 	"fmt" | ||||
| 	"reflect" | ||||
| ) | ||||
|  | ||||
| // RequiredNotSetError is the error returned if Marshal is called with | ||||
| // a protocol buffer struct whose required fields have not | ||||
| // all been initialized. It is also the error returned if Unmarshal is | ||||
| // called with an encoded protocol buffer that does not include all the | ||||
| // required fields. | ||||
| // | ||||
| // When printed, RequiredNotSetError reports the first unset required field in a | ||||
| // message. If the field cannot be precisely determined, it is reported as | ||||
| // "{Unknown}". | ||||
| type RequiredNotSetError struct { | ||||
| 	field string | ||||
| } | ||||
|  | ||||
| func (e *RequiredNotSetError) Error() string { | ||||
| 	return fmt.Sprintf("proto: required field %q not set", e.field) | ||||
| } | ||||
|  | ||||
| var ( | ||||
| 	// errRepeatedHasNil is the error returned if Marshal is called with | ||||
| 	// a struct with a repeated field containing a nil element. | ||||
|   | ||||
							
								
								
									
										62
									
								
								vendor/github.com/golang/protobuf/proto/lib.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										62
									
								
								vendor/github.com/golang/protobuf/proto/lib.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -265,7 +265,6 @@ package proto | ||||
|  | ||||
| import ( | ||||
| 	"encoding/json" | ||||
| 	"errors" | ||||
| 	"fmt" | ||||
| 	"log" | ||||
| 	"reflect" | ||||
| @@ -274,7 +273,66 @@ import ( | ||||
| 	"sync" | ||||
| ) | ||||
|  | ||||
| var errInvalidUTF8 = errors.New("proto: invalid UTF-8 string") | ||||
| // RequiredNotSetError is an error type returned by either Marshal or Unmarshal. | ||||
| // Marshal reports this when a required field is not initialized. | ||||
| // Unmarshal reports this when a required field is missing from the wire data. | ||||
| type RequiredNotSetError struct{ field string } | ||||
|  | ||||
| func (e *RequiredNotSetError) Error() string { | ||||
| 	if e.field == "" { | ||||
| 		return fmt.Sprintf("proto: required field not set") | ||||
| 	} | ||||
| 	return fmt.Sprintf("proto: required field %q not set", e.field) | ||||
| } | ||||
| func (e *RequiredNotSetError) RequiredNotSet() bool { | ||||
| 	return true | ||||
| } | ||||
|  | ||||
| type invalidUTF8Error struct{ field string } | ||||
|  | ||||
| func (e *invalidUTF8Error) Error() string { | ||||
| 	if e.field == "" { | ||||
| 		return "proto: invalid UTF-8 detected" | ||||
| 	} | ||||
| 	return fmt.Sprintf("proto: field %q contains invalid UTF-8", e.field) | ||||
| } | ||||
| func (e *invalidUTF8Error) InvalidUTF8() bool { | ||||
| 	return true | ||||
| } | ||||
|  | ||||
| // errInvalidUTF8 is a sentinel error to identify fields with invalid UTF-8. | ||||
| // This error should not be exposed to the external API as such errors should | ||||
| // be recreated with the field information. | ||||
| var errInvalidUTF8 = &invalidUTF8Error{} | ||||
|  | ||||
| // isNonFatal reports whether the error is either a RequiredNotSet error | ||||
| // or a InvalidUTF8 error. | ||||
| func isNonFatal(err error) bool { | ||||
| 	if re, ok := err.(interface{ RequiredNotSet() bool }); ok && re.RequiredNotSet() { | ||||
| 		return true | ||||
| 	} | ||||
| 	if re, ok := err.(interface{ InvalidUTF8() bool }); ok && re.InvalidUTF8() { | ||||
| 		return true | ||||
| 	} | ||||
| 	return false | ||||
| } | ||||
|  | ||||
| type nonFatal struct{ E error } | ||||
|  | ||||
| // Merge merges err into nf and reports whether it was successful. | ||||
| // Otherwise it returns false for any fatal non-nil errors. | ||||
| func (nf *nonFatal) Merge(err error) (ok bool) { | ||||
| 	if err == nil { | ||||
| 		return true // not an error | ||||
| 	} | ||||
| 	if !isNonFatal(err) { | ||||
| 		return false // fatal error | ||||
| 	} | ||||
| 	if nf.E == nil { | ||||
| 		nf.E = err // store first instance of non-fatal error | ||||
| 	} | ||||
| 	return true | ||||
| } | ||||
|  | ||||
| // Message is implemented by generated protocol buffer messages. | ||||
| type Message interface { | ||||
|   | ||||
							
								
								
									
										16
									
								
								vendor/github.com/golang/protobuf/proto/properties.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								vendor/github.com/golang/protobuf/proto/properties.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -139,7 +139,7 @@ type Properties struct { | ||||
| 	Repeated bool | ||||
| 	Packed   bool   // relevant for repeated primitives only | ||||
| 	Enum     string // set for enum types only | ||||
| 	proto3   bool   // whether this is known to be a proto3 field; set for []byte only | ||||
| 	proto3   bool   // whether this is known to be a proto3 field | ||||
| 	oneof    bool   // whether this is a oneof field | ||||
|  | ||||
| 	Default    string // default value | ||||
| @@ -148,9 +148,9 @@ type Properties struct { | ||||
| 	stype reflect.Type      // set for struct types only | ||||
| 	sprop *StructProperties // set for struct types only | ||||
|  | ||||
| 	mtype    reflect.Type // set for map types only | ||||
| 	mkeyprop *Properties  // set for map types only | ||||
| 	mvalprop *Properties  // set for map types only | ||||
| 	mtype      reflect.Type // set for map types only | ||||
| 	MapKeyProp *Properties  // set for map types only | ||||
| 	MapValProp *Properties  // set for map types only | ||||
| } | ||||
|  | ||||
| // String formats the properties in the protobuf struct field tag style. | ||||
| @@ -275,16 +275,16 @@ func (p *Properties) setFieldProps(typ reflect.Type, f *reflect.StructField, loc | ||||
|  | ||||
| 	case reflect.Map: | ||||
| 		p.mtype = t1 | ||||
| 		p.mkeyprop = &Properties{} | ||||
| 		p.mkeyprop.init(reflect.PtrTo(p.mtype.Key()), "Key", f.Tag.Get("protobuf_key"), nil, lockGetProp) | ||||
| 		p.mvalprop = &Properties{} | ||||
| 		p.MapKeyProp = &Properties{} | ||||
| 		p.MapKeyProp.init(reflect.PtrTo(p.mtype.Key()), "Key", f.Tag.Get("protobuf_key"), nil, lockGetProp) | ||||
| 		p.MapValProp = &Properties{} | ||||
| 		vtype := p.mtype.Elem() | ||||
| 		if vtype.Kind() != reflect.Ptr && vtype.Kind() != reflect.Slice { | ||||
| 			// The value type is not a message (*T) or bytes ([]byte), | ||||
| 			// so we need encoders for the pointer to this type. | ||||
| 			vtype = reflect.PtrTo(vtype) | ||||
| 		} | ||||
| 		p.mvalprop.init(vtype, "Value", f.Tag.Get("protobuf_val"), nil, lockGetProp) | ||||
| 		p.MapValProp.init(vtype, "Value", f.Tag.Get("protobuf_val"), nil, lockGetProp) | ||||
| 	} | ||||
|  | ||||
| 	if p.stype != nil { | ||||
|   | ||||
							
								
								
									
										190
									
								
								vendor/github.com/golang/protobuf/proto/table_marshal.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										190
									
								
								vendor/github.com/golang/protobuf/proto/table_marshal.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -231,7 +231,7 @@ func (u *marshalInfo) marshal(b []byte, ptr pointer, deterministic bool) ([]byte | ||||
| 		return b, err | ||||
| 	} | ||||
|  | ||||
| 	var err, errreq error | ||||
| 	var err, errLater error | ||||
| 	// The old marshaler encodes extensions at beginning. | ||||
| 	if u.extensions.IsValid() { | ||||
| 		e := ptr.offset(u.extensions).toExtensions() | ||||
| @@ -252,11 +252,13 @@ func (u *marshalInfo) marshal(b []byte, ptr pointer, deterministic bool) ([]byte | ||||
| 		} | ||||
| 	} | ||||
| 	for _, f := range u.fields { | ||||
| 		if f.required && errreq == nil { | ||||
| 		if f.required { | ||||
| 			if ptr.offset(f.field).getPointer().isNil() { | ||||
| 				// Required field is not set. | ||||
| 				// We record the error but keep going, to give a complete marshaling. | ||||
| 				errreq = &RequiredNotSetError{f.name} | ||||
| 				if errLater == nil { | ||||
| 					errLater = &RequiredNotSetError{f.name} | ||||
| 				} | ||||
| 				continue | ||||
| 			} | ||||
| 		} | ||||
| @@ -269,14 +271,21 @@ func (u *marshalInfo) marshal(b []byte, ptr pointer, deterministic bool) ([]byte | ||||
| 			if err1, ok := err.(*RequiredNotSetError); ok { | ||||
| 				// Required field in submessage is not set. | ||||
| 				// We record the error but keep going, to give a complete marshaling. | ||||
| 				if errreq == nil { | ||||
| 					errreq = &RequiredNotSetError{f.name + "." + err1.field} | ||||
| 				if errLater == nil { | ||||
| 					errLater = &RequiredNotSetError{f.name + "." + err1.field} | ||||
| 				} | ||||
| 				continue | ||||
| 			} | ||||
| 			if err == errRepeatedHasNil { | ||||
| 				err = errors.New("proto: repeated field " + f.name + " has nil element") | ||||
| 			} | ||||
| 			if err == errInvalidUTF8 { | ||||
| 				if errLater == nil { | ||||
| 					fullName := revProtoTypes[reflect.PtrTo(u.typ)] + "." + f.name | ||||
| 					errLater = &invalidUTF8Error{fullName} | ||||
| 				} | ||||
| 				continue | ||||
| 			} | ||||
| 			return b, err | ||||
| 		} | ||||
| 	} | ||||
| @@ -284,7 +293,7 @@ func (u *marshalInfo) marshal(b []byte, ptr pointer, deterministic bool) ([]byte | ||||
| 		s := *ptr.offset(u.unrecognized).toBytes() | ||||
| 		b = append(b, s...) | ||||
| 	} | ||||
| 	return b, errreq | ||||
| 	return b, errLater | ||||
| } | ||||
|  | ||||
| // computeMarshalInfo initializes the marshal info. | ||||
| @@ -530,6 +539,7 @@ func typeMarshaler(t reflect.Type, tags []string, nozero, oneof bool) (sizer, ma | ||||
|  | ||||
| 	packed := false | ||||
| 	proto3 := false | ||||
| 	validateUTF8 := true | ||||
| 	for i := 2; i < len(tags); i++ { | ||||
| 		if tags[i] == "packed" { | ||||
| 			packed = true | ||||
| @@ -538,6 +548,7 @@ func typeMarshaler(t reflect.Type, tags []string, nozero, oneof bool) (sizer, ma | ||||
| 			proto3 = true | ||||
| 		} | ||||
| 	} | ||||
| 	validateUTF8 = validateUTF8 && proto3 | ||||
|  | ||||
| 	switch t.Kind() { | ||||
| 	case reflect.Bool: | ||||
| @@ -735,6 +746,18 @@ func typeMarshaler(t reflect.Type, tags []string, nozero, oneof bool) (sizer, ma | ||||
| 		} | ||||
| 		return sizeFloat64Value, appendFloat64Value | ||||
| 	case reflect.String: | ||||
| 		if validateUTF8 { | ||||
| 			if pointer { | ||||
| 				return sizeStringPtr, appendUTF8StringPtr | ||||
| 			} | ||||
| 			if slice { | ||||
| 				return sizeStringSlice, appendUTF8StringSlice | ||||
| 			} | ||||
| 			if nozero { | ||||
| 				return sizeStringValueNoZero, appendUTF8StringValueNoZero | ||||
| 			} | ||||
| 			return sizeStringValue, appendUTF8StringValue | ||||
| 		} | ||||
| 		if pointer { | ||||
| 			return sizeStringPtr, appendStringPtr | ||||
| 		} | ||||
| @@ -1984,9 +2007,6 @@ func appendBoolPackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byt | ||||
| } | ||||
| func appendStringValue(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { | ||||
| 	v := *ptr.toString() | ||||
| 	if !utf8.ValidString(v) { | ||||
| 		return nil, errInvalidUTF8 | ||||
| 	} | ||||
| 	b = appendVarint(b, wiretag) | ||||
| 	b = appendVarint(b, uint64(len(v))) | ||||
| 	b = append(b, v...) | ||||
| @@ -1997,9 +2017,6 @@ func appendStringValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]b | ||||
| 	if v == "" { | ||||
| 		return b, nil | ||||
| 	} | ||||
| 	if !utf8.ValidString(v) { | ||||
| 		return nil, errInvalidUTF8 | ||||
| 	} | ||||
| 	b = appendVarint(b, wiretag) | ||||
| 	b = appendVarint(b, uint64(len(v))) | ||||
| 	b = append(b, v...) | ||||
| @@ -2011,24 +2028,83 @@ func appendStringPtr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, err | ||||
| 		return b, nil | ||||
| 	} | ||||
| 	v := *p | ||||
| 	if !utf8.ValidString(v) { | ||||
| 		return nil, errInvalidUTF8 | ||||
| 	} | ||||
| 	b = appendVarint(b, wiretag) | ||||
| 	b = appendVarint(b, uint64(len(v))) | ||||
| 	b = append(b, v...) | ||||
| 	return b, nil | ||||
| } | ||||
| func appendStringSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { | ||||
| 	s := *ptr.toStringSlice() | ||||
| 	for _, v := range s { | ||||
| 		b = appendVarint(b, wiretag) | ||||
| 		b = appendVarint(b, uint64(len(v))) | ||||
| 		b = append(b, v...) | ||||
| 	} | ||||
| 	return b, nil | ||||
| } | ||||
| func appendUTF8StringValue(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { | ||||
| 	var invalidUTF8 bool | ||||
| 	v := *ptr.toString() | ||||
| 	if !utf8.ValidString(v) { | ||||
| 		invalidUTF8 = true | ||||
| 	} | ||||
| 	b = appendVarint(b, wiretag) | ||||
| 	b = appendVarint(b, uint64(len(v))) | ||||
| 	b = append(b, v...) | ||||
| 	if invalidUTF8 { | ||||
| 		return b, errInvalidUTF8 | ||||
| 	} | ||||
| 	return b, nil | ||||
| } | ||||
| func appendUTF8StringValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { | ||||
| 	var invalidUTF8 bool | ||||
| 	v := *ptr.toString() | ||||
| 	if v == "" { | ||||
| 		return b, nil | ||||
| 	} | ||||
| 	if !utf8.ValidString(v) { | ||||
| 		invalidUTF8 = true | ||||
| 	} | ||||
| 	b = appendVarint(b, wiretag) | ||||
| 	b = appendVarint(b, uint64(len(v))) | ||||
| 	b = append(b, v...) | ||||
| 	if invalidUTF8 { | ||||
| 		return b, errInvalidUTF8 | ||||
| 	} | ||||
| 	return b, nil | ||||
| } | ||||
| func appendUTF8StringPtr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { | ||||
| 	var invalidUTF8 bool | ||||
| 	p := *ptr.toStringPtr() | ||||
| 	if p == nil { | ||||
| 		return b, nil | ||||
| 	} | ||||
| 	v := *p | ||||
| 	if !utf8.ValidString(v) { | ||||
| 		invalidUTF8 = true | ||||
| 	} | ||||
| 	b = appendVarint(b, wiretag) | ||||
| 	b = appendVarint(b, uint64(len(v))) | ||||
| 	b = append(b, v...) | ||||
| 	if invalidUTF8 { | ||||
| 		return b, errInvalidUTF8 | ||||
| 	} | ||||
| 	return b, nil | ||||
| } | ||||
| func appendUTF8StringSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { | ||||
| 	var invalidUTF8 bool | ||||
| 	s := *ptr.toStringSlice() | ||||
| 	for _, v := range s { | ||||
| 		if !utf8.ValidString(v) { | ||||
| 			return nil, errInvalidUTF8 | ||||
| 			invalidUTF8 = true | ||||
| 		} | ||||
| 		b = appendVarint(b, wiretag) | ||||
| 		b = appendVarint(b, uint64(len(v))) | ||||
| 		b = append(b, v...) | ||||
| 	} | ||||
| 	if invalidUTF8 { | ||||
| 		return b, errInvalidUTF8 | ||||
| 	} | ||||
| 	return b, nil | ||||
| } | ||||
| func appendBytes(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { | ||||
| @@ -2107,7 +2183,8 @@ func makeGroupSliceMarshaler(u *marshalInfo) (sizer, marshaler) { | ||||
| 		}, | ||||
| 		func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { | ||||
| 			s := ptr.getPointerSlice() | ||||
| 			var err, errreq error | ||||
| 			var err error | ||||
| 			var nerr nonFatal | ||||
| 			for _, v := range s { | ||||
| 				if v.isNil() { | ||||
| 					return b, errRepeatedHasNil | ||||
| @@ -2115,22 +2192,14 @@ func makeGroupSliceMarshaler(u *marshalInfo) (sizer, marshaler) { | ||||
| 				b = appendVarint(b, wiretag) // start group | ||||
| 				b, err = u.marshal(b, v, deterministic) | ||||
| 				b = appendVarint(b, wiretag+(WireEndGroup-WireStartGroup)) // end group | ||||
| 				if err != nil { | ||||
| 					if _, ok := err.(*RequiredNotSetError); ok { | ||||
| 						// Required field in submessage is not set. | ||||
| 						// We record the error but keep going, to give a complete marshaling. | ||||
| 						if errreq == nil { | ||||
| 							errreq = err | ||||
| 						} | ||||
| 						continue | ||||
| 					} | ||||
| 				if !nerr.Merge(err) { | ||||
| 					if err == ErrNil { | ||||
| 						err = errRepeatedHasNil | ||||
| 					} | ||||
| 					return b, err | ||||
| 				} | ||||
| 			} | ||||
| 			return b, errreq | ||||
| 			return b, nerr.E | ||||
| 		} | ||||
| } | ||||
|  | ||||
| @@ -2174,7 +2243,8 @@ func makeMessageSliceMarshaler(u *marshalInfo) (sizer, marshaler) { | ||||
| 		}, | ||||
| 		func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { | ||||
| 			s := ptr.getPointerSlice() | ||||
| 			var err, errreq error | ||||
| 			var err error | ||||
| 			var nerr nonFatal | ||||
| 			for _, v := range s { | ||||
| 				if v.isNil() { | ||||
| 					return b, errRepeatedHasNil | ||||
| @@ -2184,22 +2254,14 @@ func makeMessageSliceMarshaler(u *marshalInfo) (sizer, marshaler) { | ||||
| 				b = appendVarint(b, uint64(siz)) | ||||
| 				b, err = u.marshal(b, v, deterministic) | ||||
|  | ||||
| 				if err != nil { | ||||
| 					if _, ok := err.(*RequiredNotSetError); ok { | ||||
| 						// Required field in submessage is not set. | ||||
| 						// We record the error but keep going, to give a complete marshaling. | ||||
| 						if errreq == nil { | ||||
| 							errreq = err | ||||
| 						} | ||||
| 						continue | ||||
| 					} | ||||
| 				if !nerr.Merge(err) { | ||||
| 					if err == ErrNil { | ||||
| 						err = errRepeatedHasNil | ||||
| 					} | ||||
| 					return b, err | ||||
| 				} | ||||
| 			} | ||||
| 			return b, errreq | ||||
| 			return b, nerr.E | ||||
| 		} | ||||
| } | ||||
|  | ||||
| @@ -2223,6 +2285,25 @@ func makeMapMarshaler(f *reflect.StructField) (sizer, marshaler) { | ||||
| 	// value. | ||||
| 	// Key cannot be pointer-typed. | ||||
| 	valIsPtr := valType.Kind() == reflect.Ptr | ||||
|  | ||||
| 	// If value is a message with nested maps, calling | ||||
| 	// valSizer in marshal may be quadratic. We should use | ||||
| 	// cached version in marshal (but not in size). | ||||
| 	// If value is not message type, we don't have size cache, | ||||
| 	// but it cannot be nested either. Just use valSizer. | ||||
| 	valCachedSizer := valSizer | ||||
| 	if valIsPtr && valType.Elem().Kind() == reflect.Struct { | ||||
| 		u := getMarshalInfo(valType.Elem()) | ||||
| 		valCachedSizer = func(ptr pointer, tagsize int) int { | ||||
| 			// Same as message sizer, but use cache. | ||||
| 			p := ptr.getPointer() | ||||
| 			if p.isNil() { | ||||
| 				return 0 | ||||
| 			} | ||||
| 			siz := u.cachedsize(p) | ||||
| 			return siz + SizeVarint(uint64(siz)) + tagsize | ||||
| 		} | ||||
| 	} | ||||
| 	return func(ptr pointer, tagsize int) int { | ||||
| 			m := ptr.asPointerTo(t).Elem() // the map | ||||
| 			n := 0 | ||||
| @@ -2243,24 +2324,26 @@ func makeMapMarshaler(f *reflect.StructField) (sizer, marshaler) { | ||||
| 			if len(keys) > 1 && deterministic { | ||||
| 				sort.Sort(mapKeys(keys)) | ||||
| 			} | ||||
|  | ||||
| 			var nerr nonFatal | ||||
| 			for _, k := range keys { | ||||
| 				ki := k.Interface() | ||||
| 				vi := m.MapIndex(k).Interface() | ||||
| 				kaddr := toAddrPointer(&ki, false)    // pointer to key | ||||
| 				vaddr := toAddrPointer(&vi, valIsPtr) // pointer to value | ||||
| 				b = appendVarint(b, tag) | ||||
| 				siz := keySizer(kaddr, 1) + valSizer(vaddr, 1) // tag of key = 1 (size=1), tag of val = 2 (size=1) | ||||
| 				siz := keySizer(kaddr, 1) + valCachedSizer(vaddr, 1) // tag of key = 1 (size=1), tag of val = 2 (size=1) | ||||
| 				b = appendVarint(b, uint64(siz)) | ||||
| 				b, err = keyMarshaler(b, kaddr, keyWireTag, deterministic) | ||||
| 				if err != nil { | ||||
| 				if !nerr.Merge(err) { | ||||
| 					return b, err | ||||
| 				} | ||||
| 				b, err = valMarshaler(b, vaddr, valWireTag, deterministic) | ||||
| 				if err != nil && err != ErrNil { // allow nil value in map | ||||
| 				if err != ErrNil && !nerr.Merge(err) { // allow nil value in map | ||||
| 					return b, err | ||||
| 				} | ||||
| 			} | ||||
| 			return b, nil | ||||
| 			return b, nerr.E | ||||
| 		} | ||||
| } | ||||
|  | ||||
| @@ -2333,6 +2416,7 @@ func (u *marshalInfo) appendExtensions(b []byte, ext *XXX_InternalExtensions, de | ||||
| 	defer mu.Unlock() | ||||
|  | ||||
| 	var err error | ||||
| 	var nerr nonFatal | ||||
|  | ||||
| 	// Fast-path for common cases: zero or one extensions. | ||||
| 	// Don't bother sorting the keys. | ||||
| @@ -2352,11 +2436,11 @@ func (u *marshalInfo) appendExtensions(b []byte, ext *XXX_InternalExtensions, de | ||||
| 			v := e.value | ||||
| 			p := toAddrPointer(&v, ei.isptr) | ||||
| 			b, err = ei.marshaler(b, p, ei.wiretag, deterministic) | ||||
| 			if err != nil { | ||||
| 			if !nerr.Merge(err) { | ||||
| 				return b, err | ||||
| 			} | ||||
| 		} | ||||
| 		return b, nil | ||||
| 		return b, nerr.E | ||||
| 	} | ||||
|  | ||||
| 	// Sort the keys to provide a deterministic encoding. | ||||
| @@ -2383,11 +2467,11 @@ func (u *marshalInfo) appendExtensions(b []byte, ext *XXX_InternalExtensions, de | ||||
| 		v := e.value | ||||
| 		p := toAddrPointer(&v, ei.isptr) | ||||
| 		b, err = ei.marshaler(b, p, ei.wiretag, deterministic) | ||||
| 		if err != nil { | ||||
| 		if !nerr.Merge(err) { | ||||
| 			return b, err | ||||
| 		} | ||||
| 	} | ||||
| 	return b, nil | ||||
| 	return b, nerr.E | ||||
| } | ||||
|  | ||||
| // message set format is: | ||||
| @@ -2444,6 +2528,7 @@ func (u *marshalInfo) appendMessageSet(b []byte, ext *XXX_InternalExtensions, de | ||||
| 	defer mu.Unlock() | ||||
|  | ||||
| 	var err error | ||||
| 	var nerr nonFatal | ||||
|  | ||||
| 	// Fast-path for common cases: zero or one extensions. | ||||
| 	// Don't bother sorting the keys. | ||||
| @@ -2470,12 +2555,12 @@ func (u *marshalInfo) appendMessageSet(b []byte, ext *XXX_InternalExtensions, de | ||||
| 			v := e.value | ||||
| 			p := toAddrPointer(&v, ei.isptr) | ||||
| 			b, err = ei.marshaler(b, p, 3<<3|WireBytes, deterministic) | ||||
| 			if err != nil { | ||||
| 			if !nerr.Merge(err) { | ||||
| 				return b, err | ||||
| 			} | ||||
| 			b = append(b, 1<<3|WireEndGroup) | ||||
| 		} | ||||
| 		return b, nil | ||||
| 		return b, nerr.E | ||||
| 	} | ||||
|  | ||||
| 	// Sort the keys to provide a deterministic encoding. | ||||
| @@ -2509,11 +2594,11 @@ func (u *marshalInfo) appendMessageSet(b []byte, ext *XXX_InternalExtensions, de | ||||
| 		p := toAddrPointer(&v, ei.isptr) | ||||
| 		b, err = ei.marshaler(b, p, 3<<3|WireBytes, deterministic) | ||||
| 		b = append(b, 1<<3|WireEndGroup) | ||||
| 		if err != nil { | ||||
| 		if !nerr.Merge(err) { | ||||
| 			return b, err | ||||
| 		} | ||||
| 	} | ||||
| 	return b, nil | ||||
| 	return b, nerr.E | ||||
| } | ||||
|  | ||||
| // sizeV1Extensions computes the size of encoded data for a V1-API extension field. | ||||
| @@ -2556,6 +2641,7 @@ func (u *marshalInfo) appendV1Extensions(b []byte, m map[int32]Extension, determ | ||||
| 	sort.Ints(keys) | ||||
|  | ||||
| 	var err error | ||||
| 	var nerr nonFatal | ||||
| 	for _, k := range keys { | ||||
| 		e := m[int32(k)] | ||||
| 		if e.value == nil || e.desc == nil { | ||||
| @@ -2572,11 +2658,11 @@ func (u *marshalInfo) appendV1Extensions(b []byte, m map[int32]Extension, determ | ||||
| 		v := e.value | ||||
| 		p := toAddrPointer(&v, ei.isptr) | ||||
| 		b, err = ei.marshaler(b, p, ei.wiretag, deterministic) | ||||
| 		if err != nil { | ||||
| 		if !nerr.Merge(err) { | ||||
| 			return b, err | ||||
| 		} | ||||
| 	} | ||||
| 	return b, nil | ||||
| 	return b, nerr.E | ||||
| } | ||||
|  | ||||
| // newMarshaler is the interface representing objects that can marshal themselves. | ||||
|   | ||||
							
								
								
									
										146
									
								
								vendor/github.com/golang/protobuf/proto/table_unmarshal.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										146
									
								
								vendor/github.com/golang/protobuf/proto/table_unmarshal.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -97,6 +97,8 @@ type unmarshalFieldInfo struct { | ||||
|  | ||||
| 	// if a required field, contains a single set bit at this field's index in the required field list. | ||||
| 	reqMask uint64 | ||||
|  | ||||
| 	name string // name of the field, for error reporting | ||||
| } | ||||
|  | ||||
| var ( | ||||
| @@ -136,8 +138,8 @@ func (u *unmarshalInfo) unmarshal(m pointer, b []byte) error { | ||||
| 	if u.isMessageSet { | ||||
| 		return UnmarshalMessageSet(b, m.offset(u.extensions).toExtensions()) | ||||
| 	} | ||||
| 	var reqMask uint64            // bitmask of required fields we've seen. | ||||
| 	var rnse *RequiredNotSetError // an instance of a RequiredNotSetError returned by a submessage. | ||||
| 	var reqMask uint64 // bitmask of required fields we've seen. | ||||
| 	var errLater error | ||||
| 	for len(b) > 0 { | ||||
| 		// Read tag and wire type. | ||||
| 		// Special case 1 and 2 byte varints. | ||||
| @@ -176,11 +178,20 @@ func (u *unmarshalInfo) unmarshal(m pointer, b []byte) error { | ||||
| 			if r, ok := err.(*RequiredNotSetError); ok { | ||||
| 				// Remember this error, but keep parsing. We need to produce | ||||
| 				// a full parse even if a required field is missing. | ||||
| 				rnse = r | ||||
| 				if errLater == nil { | ||||
| 					errLater = r | ||||
| 				} | ||||
| 				reqMask |= f.reqMask | ||||
| 				continue | ||||
| 			} | ||||
| 			if err != errInternalBadWireType { | ||||
| 				if err == errInvalidUTF8 { | ||||
| 					if errLater == nil { | ||||
| 						fullName := revProtoTypes[reflect.PtrTo(u.typ)] + "." + f.name | ||||
| 						errLater = &invalidUTF8Error{fullName} | ||||
| 					} | ||||
| 					continue | ||||
| 				} | ||||
| 				return err | ||||
| 			} | ||||
| 			// Fragments with bad wire type are treated as unknown fields. | ||||
| @@ -239,20 +250,16 @@ func (u *unmarshalInfo) unmarshal(m pointer, b []byte) error { | ||||
| 			emap[int32(tag)] = e | ||||
| 		} | ||||
| 	} | ||||
| 	if rnse != nil { | ||||
| 		// A required field of a submessage/group is missing. Return that error. | ||||
| 		return rnse | ||||
| 	} | ||||
| 	if reqMask != u.reqMask { | ||||
| 	if reqMask != u.reqMask && errLater == nil { | ||||
| 		// A required field of this message is missing. | ||||
| 		for _, n := range u.reqFields { | ||||
| 			if reqMask&1 == 0 { | ||||
| 				return &RequiredNotSetError{n} | ||||
| 				errLater = &RequiredNotSetError{n} | ||||
| 			} | ||||
| 			reqMask >>= 1 | ||||
| 		} | ||||
| 	} | ||||
| 	return nil | ||||
| 	return errLater | ||||
| } | ||||
|  | ||||
| // computeUnmarshalInfo fills in u with information for use | ||||
| @@ -351,7 +358,7 @@ func (u *unmarshalInfo) computeUnmarshalInfo() { | ||||
| 		} | ||||
|  | ||||
| 		// Store the info in the correct slot in the message. | ||||
| 		u.setTag(tag, toField(&f), unmarshal, reqMask) | ||||
| 		u.setTag(tag, toField(&f), unmarshal, reqMask, name) | ||||
| 	} | ||||
|  | ||||
| 	// Find any types associated with oneof fields. | ||||
| @@ -366,10 +373,17 @@ func (u *unmarshalInfo) computeUnmarshalInfo() { | ||||
|  | ||||
| 			f := typ.Field(0) // oneof implementers have one field | ||||
| 			baseUnmarshal := fieldUnmarshaler(&f) | ||||
| 			tagstr := strings.Split(f.Tag.Get("protobuf"), ",")[1] | ||||
| 			tag, err := strconv.Atoi(tagstr) | ||||
| 			tags := strings.Split(f.Tag.Get("protobuf"), ",") | ||||
| 			fieldNum, err := strconv.Atoi(tags[1]) | ||||
| 			if err != nil { | ||||
| 				panic("protobuf tag field not an integer: " + tagstr) | ||||
| 				panic("protobuf tag field not an integer: " + tags[1]) | ||||
| 			} | ||||
| 			var name string | ||||
| 			for _, tag := range tags { | ||||
| 				if strings.HasPrefix(tag, "name=") { | ||||
| 					name = strings.TrimPrefix(tag, "name=") | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
|  | ||||
| 			// Find the oneof field that this struct implements. | ||||
| @@ -380,7 +394,7 @@ func (u *unmarshalInfo) computeUnmarshalInfo() { | ||||
| 					// That lets us know where this struct should be stored | ||||
| 					// when we encounter it during unmarshaling. | ||||
| 					unmarshal := makeUnmarshalOneof(typ, of.ityp, baseUnmarshal) | ||||
| 					u.setTag(tag, of.field, unmarshal, 0) | ||||
| 					u.setTag(fieldNum, of.field, unmarshal, 0, name) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| @@ -401,7 +415,7 @@ func (u *unmarshalInfo) computeUnmarshalInfo() { | ||||
| 	// [0 0] is [tag=0/wiretype=varint varint-encoded-0]. | ||||
| 	u.setTag(0, zeroField, func(b []byte, f pointer, w int) ([]byte, error) { | ||||
| 		return nil, fmt.Errorf("proto: %s: illegal tag 0 (wire type %d)", t, w) | ||||
| 	}, 0) | ||||
| 	}, 0, "") | ||||
|  | ||||
| 	// Set mask for required field check. | ||||
| 	u.reqMask = uint64(1)<<uint(len(u.reqFields)) - 1 | ||||
| @@ -413,8 +427,9 @@ func (u *unmarshalInfo) computeUnmarshalInfo() { | ||||
| // tag = tag # for field | ||||
| // field/unmarshal = unmarshal info for that field. | ||||
| // reqMask = if required, bitmask for field position in required field list. 0 otherwise. | ||||
| func (u *unmarshalInfo) setTag(tag int, field field, unmarshal unmarshaler, reqMask uint64) { | ||||
| 	i := unmarshalFieldInfo{field: field, unmarshal: unmarshal, reqMask: reqMask} | ||||
| // name = short name of the field. | ||||
| func (u *unmarshalInfo) setTag(tag int, field field, unmarshal unmarshaler, reqMask uint64, name string) { | ||||
| 	i := unmarshalFieldInfo{field: field, unmarshal: unmarshal, reqMask: reqMask, name: name} | ||||
| 	n := u.typ.NumField() | ||||
| 	if tag >= 0 && (tag < 16 || tag < 2*n) { // TODO: what are the right numbers here? | ||||
| 		for len(u.dense) <= tag { | ||||
| @@ -442,11 +457,17 @@ func typeUnmarshaler(t reflect.Type, tags string) unmarshaler { | ||||
| 	tagArray := strings.Split(tags, ",") | ||||
| 	encoding := tagArray[0] | ||||
| 	name := "unknown" | ||||
| 	proto3 := false | ||||
| 	validateUTF8 := true | ||||
| 	for _, tag := range tagArray[3:] { | ||||
| 		if strings.HasPrefix(tag, "name=") { | ||||
| 			name = tag[5:] | ||||
| 		} | ||||
| 		if tag == "proto3" { | ||||
| 			proto3 = true | ||||
| 		} | ||||
| 	} | ||||
| 	validateUTF8 = validateUTF8 && proto3 | ||||
|  | ||||
| 	// Figure out packaging (pointer, slice, or both) | ||||
| 	slice := false | ||||
| @@ -594,6 +615,15 @@ func typeUnmarshaler(t reflect.Type, tags string) unmarshaler { | ||||
| 		} | ||||
| 		return unmarshalBytesValue | ||||
| 	case reflect.String: | ||||
| 		if validateUTF8 { | ||||
| 			if pointer { | ||||
| 				return unmarshalUTF8StringPtr | ||||
| 			} | ||||
| 			if slice { | ||||
| 				return unmarshalUTF8StringSlice | ||||
| 			} | ||||
| 			return unmarshalUTF8StringValue | ||||
| 		} | ||||
| 		if pointer { | ||||
| 			return unmarshalStringPtr | ||||
| 		} | ||||
| @@ -1448,9 +1478,6 @@ func unmarshalStringValue(b []byte, f pointer, w int) ([]byte, error) { | ||||
| 		return nil, io.ErrUnexpectedEOF | ||||
| 	} | ||||
| 	v := string(b[:x]) | ||||
| 	if !utf8.ValidString(v) { | ||||
| 		return nil, errInvalidUTF8 | ||||
| 	} | ||||
| 	*f.toString() = v | ||||
| 	return b[x:], nil | ||||
| } | ||||
| @@ -1468,9 +1495,6 @@ func unmarshalStringPtr(b []byte, f pointer, w int) ([]byte, error) { | ||||
| 		return nil, io.ErrUnexpectedEOF | ||||
| 	} | ||||
| 	v := string(b[:x]) | ||||
| 	if !utf8.ValidString(v) { | ||||
| 		return nil, errInvalidUTF8 | ||||
| 	} | ||||
| 	*f.toStringPtr() = &v | ||||
| 	return b[x:], nil | ||||
| } | ||||
| @@ -1488,14 +1512,72 @@ func unmarshalStringSlice(b []byte, f pointer, w int) ([]byte, error) { | ||||
| 		return nil, io.ErrUnexpectedEOF | ||||
| 	} | ||||
| 	v := string(b[:x]) | ||||
| 	if !utf8.ValidString(v) { | ||||
| 		return nil, errInvalidUTF8 | ||||
| 	} | ||||
| 	s := f.toStringSlice() | ||||
| 	*s = append(*s, v) | ||||
| 	return b[x:], nil | ||||
| } | ||||
|  | ||||
| func unmarshalUTF8StringValue(b []byte, f pointer, w int) ([]byte, error) { | ||||
| 	if w != WireBytes { | ||||
| 		return b, errInternalBadWireType | ||||
| 	} | ||||
| 	x, n := decodeVarint(b) | ||||
| 	if n == 0 { | ||||
| 		return nil, io.ErrUnexpectedEOF | ||||
| 	} | ||||
| 	b = b[n:] | ||||
| 	if x > uint64(len(b)) { | ||||
| 		return nil, io.ErrUnexpectedEOF | ||||
| 	} | ||||
| 	v := string(b[:x]) | ||||
| 	*f.toString() = v | ||||
| 	if !utf8.ValidString(v) { | ||||
| 		return b[x:], errInvalidUTF8 | ||||
| 	} | ||||
| 	return b[x:], nil | ||||
| } | ||||
|  | ||||
| func unmarshalUTF8StringPtr(b []byte, f pointer, w int) ([]byte, error) { | ||||
| 	if w != WireBytes { | ||||
| 		return b, errInternalBadWireType | ||||
| 	} | ||||
| 	x, n := decodeVarint(b) | ||||
| 	if n == 0 { | ||||
| 		return nil, io.ErrUnexpectedEOF | ||||
| 	} | ||||
| 	b = b[n:] | ||||
| 	if x > uint64(len(b)) { | ||||
| 		return nil, io.ErrUnexpectedEOF | ||||
| 	} | ||||
| 	v := string(b[:x]) | ||||
| 	*f.toStringPtr() = &v | ||||
| 	if !utf8.ValidString(v) { | ||||
| 		return b[x:], errInvalidUTF8 | ||||
| 	} | ||||
| 	return b[x:], nil | ||||
| } | ||||
|  | ||||
| func unmarshalUTF8StringSlice(b []byte, f pointer, w int) ([]byte, error) { | ||||
| 	if w != WireBytes { | ||||
| 		return b, errInternalBadWireType | ||||
| 	} | ||||
| 	x, n := decodeVarint(b) | ||||
| 	if n == 0 { | ||||
| 		return nil, io.ErrUnexpectedEOF | ||||
| 	} | ||||
| 	b = b[n:] | ||||
| 	if x > uint64(len(b)) { | ||||
| 		return nil, io.ErrUnexpectedEOF | ||||
| 	} | ||||
| 	v := string(b[:x]) | ||||
| 	s := f.toStringSlice() | ||||
| 	*s = append(*s, v) | ||||
| 	if !utf8.ValidString(v) { | ||||
| 		return b[x:], errInvalidUTF8 | ||||
| 	} | ||||
| 	return b[x:], nil | ||||
| } | ||||
|  | ||||
| var emptyBuf [0]byte | ||||
|  | ||||
| func unmarshalBytesValue(b []byte, f pointer, w int) ([]byte, error) { | ||||
| @@ -1674,6 +1756,7 @@ func makeUnmarshalMap(f *reflect.StructField) unmarshaler { | ||||
| 		// Maps will be somewhat slow. Oh well. | ||||
|  | ||||
| 		// Read key and value from data. | ||||
| 		var nerr nonFatal | ||||
| 		k := reflect.New(kt) | ||||
| 		v := reflect.New(vt) | ||||
| 		for len(b) > 0 { | ||||
| @@ -1694,7 +1777,7 @@ func makeUnmarshalMap(f *reflect.StructField) unmarshaler { | ||||
| 				err = errInternalBadWireType // skip unknown tag | ||||
| 			} | ||||
|  | ||||
| 			if err == nil { | ||||
| 			if nerr.Merge(err) { | ||||
| 				continue | ||||
| 			} | ||||
| 			if err != errInternalBadWireType { | ||||
| @@ -1717,7 +1800,7 @@ func makeUnmarshalMap(f *reflect.StructField) unmarshaler { | ||||
| 		// Insert into map. | ||||
| 		m.SetMapIndex(k.Elem(), v.Elem()) | ||||
|  | ||||
| 		return r, nil | ||||
| 		return r, nerr.E | ||||
| 	} | ||||
| } | ||||
|  | ||||
| @@ -1743,15 +1826,16 @@ func makeUnmarshalOneof(typ, ityp reflect.Type, unmarshal unmarshaler) unmarshal | ||||
| 		// Unmarshal data into holder. | ||||
| 		// We unmarshal into the first field of the holder object. | ||||
| 		var err error | ||||
| 		var nerr nonFatal | ||||
| 		b, err = unmarshal(b, valToPointer(v).offset(field0), w) | ||||
| 		if err != nil { | ||||
| 		if !nerr.Merge(err) { | ||||
| 			return nil, err | ||||
| 		} | ||||
|  | ||||
| 		// Write pointer to holder into target field. | ||||
| 		f.asPointerTo(ityp).Elem().Set(v) | ||||
|  | ||||
| 		return b, nil | ||||
| 		return b, nerr.E | ||||
| 	} | ||||
| } | ||||
|  | ||||
|   | ||||
							
								
								
									
										4
									
								
								vendor/github.com/golang/protobuf/proto/text.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								vendor/github.com/golang/protobuf/proto/text.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -353,7 +353,7 @@ func (tm *TextMarshaler) writeStruct(w *textWriter, sv reflect.Value) error { | ||||
| 						return err | ||||
| 					} | ||||
| 				} | ||||
| 				if err := tm.writeAny(w, key, props.mkeyprop); err != nil { | ||||
| 				if err := tm.writeAny(w, key, props.MapKeyProp); err != nil { | ||||
| 					return err | ||||
| 				} | ||||
| 				if err := w.WriteByte('\n'); err != nil { | ||||
| @@ -370,7 +370,7 @@ func (tm *TextMarshaler) writeStruct(w *textWriter, sv reflect.Value) error { | ||||
| 							return err | ||||
| 						} | ||||
| 					} | ||||
| 					if err := tm.writeAny(w, val, props.mvalprop); err != nil { | ||||
| 					if err := tm.writeAny(w, val, props.MapValProp); err != nil { | ||||
| 						return err | ||||
| 					} | ||||
| 					if err := w.WriteByte('\n'); err != nil { | ||||
|   | ||||
							
								
								
									
										6
									
								
								vendor/github.com/golang/protobuf/proto/text_parser.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								vendor/github.com/golang/protobuf/proto/text_parser.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -630,17 +630,17 @@ func (p *textParser) readStruct(sv reflect.Value, terminator string) error { | ||||
| 					if err := p.consumeToken(":"); err != nil { | ||||
| 						return err | ||||
| 					} | ||||
| 					if err := p.readAny(key, props.mkeyprop); err != nil { | ||||
| 					if err := p.readAny(key, props.MapKeyProp); err != nil { | ||||
| 						return err | ||||
| 					} | ||||
| 					if err := p.consumeOptionalSeparator(); err != nil { | ||||
| 						return err | ||||
| 					} | ||||
| 				case "value": | ||||
| 					if err := p.checkForColon(props.mvalprop, dst.Type().Elem()); err != nil { | ||||
| 					if err := p.checkForColon(props.MapValProp, dst.Type().Elem()); err != nil { | ||||
| 						return err | ||||
| 					} | ||||
| 					if err := p.readAny(val, props.mvalprop); err != nil { | ||||
| 					if err := p.readAny(val, props.MapValProp); err != nil { | ||||
| 						return err | ||||
| 					} | ||||
| 					if err := p.consumeOptionalSeparator(); err != nil { | ||||
|   | ||||
							
								
								
									
										10
									
								
								vendor/github.com/golang/protobuf/ptypes/any.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								vendor/github.com/golang/protobuf/ptypes/any.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -130,10 +130,12 @@ func UnmarshalAny(any *any.Any, pb proto.Message) error { | ||||
|  | ||||
| // Is returns true if any value contains a given message type. | ||||
| func Is(any *any.Any, pb proto.Message) bool { | ||||
| 	aname, err := AnyMessageName(any) | ||||
| 	if err != nil { | ||||
| 	// The following is equivalent to AnyMessageName(any) == proto.MessageName(pb), | ||||
| 	// but it avoids scanning TypeUrl for the slash. | ||||
| 	if any == nil { | ||||
| 		return false | ||||
| 	} | ||||
|  | ||||
| 	return aname == proto.MessageName(pb) | ||||
| 	name := proto.MessageName(pb) | ||||
| 	prefix := len(any.TypeUrl) - len(name) | ||||
| 	return prefix >= 1 && any.TypeUrl[prefix-1] == '/' && any.TypeUrl[prefix:] == name | ||||
| } | ||||
|   | ||||
							
								
								
									
										2
									
								
								vendor/github.com/golang/protobuf/ptypes/any/any.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/github.com/golang/protobuf/ptypes/any/any.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -121,7 +121,7 @@ type Any struct { | ||||
| 	// Schemes other than `http`, `https` (or the empty scheme) might be | ||||
| 	// used with implementation specific semantics. | ||||
| 	// | ||||
| 	TypeUrl string `protobuf:"bytes,1,opt,name=type_url,json=typeUrl" json:"type_url,omitempty"` | ||||
| 	TypeUrl string `protobuf:"bytes,1,opt,name=type_url,json=typeUrl,proto3" json:"type_url,omitempty"` | ||||
| 	// Must be a valid serialized protocol buffer of the above specified type. | ||||
| 	Value                []byte   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` | ||||
| 	XXX_NoUnkeyedLiteral struct{} `json:"-"` | ||||
|   | ||||
							
								
								
									
										4
									
								
								vendor/github.com/golang/protobuf/ptypes/duration/duration.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								vendor/github.com/golang/protobuf/ptypes/duration/duration.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -82,14 +82,14 @@ type Duration struct { | ||||
| 	// Signed seconds of the span of time. Must be from -315,576,000,000 | ||||
| 	// to +315,576,000,000 inclusive. Note: these bounds are computed from: | ||||
| 	// 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years | ||||
| 	Seconds int64 `protobuf:"varint,1,opt,name=seconds" json:"seconds,omitempty"` | ||||
| 	Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` | ||||
| 	// Signed fractions of a second at nanosecond resolution of the span | ||||
| 	// of time. Durations less than one second are represented with a 0 | ||||
| 	// `seconds` field and a positive or negative `nanos` field. For durations | ||||
| 	// of one second or more, a non-zero value for the `nanos` field must be | ||||
| 	// of the same sign as the `seconds` field. Must be from -999,999,999 | ||||
| 	// to +999,999,999 inclusive. | ||||
| 	Nanos                int32    `protobuf:"varint,2,opt,name=nanos" json:"nanos,omitempty"` | ||||
| 	Nanos                int32    `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"` | ||||
| 	XXX_NoUnkeyedLiteral struct{} `json:"-"` | ||||
| 	XXX_unrecognized     []byte   `json:"-"` | ||||
| 	XXX_sizecache        int32    `json:"-"` | ||||
|   | ||||
							
								
								
									
										52
									
								
								vendor/github.com/golang/protobuf/ptypes/struct/struct.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										52
									
								
								vendor/github.com/golang/protobuf/ptypes/struct/struct.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -54,7 +54,7 @@ func (NullValue) XXX_WellKnownType() string { return "NullValue" } | ||||
| // The JSON representation for `Struct` is JSON object. | ||||
| type Struct struct { | ||||
| 	// Unordered map of dynamically typed values. | ||||
| 	Fields               map[string]*Value `protobuf:"bytes,1,rep,name=fields" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` | ||||
| 	Fields               map[string]*Value `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` | ||||
| 	XXX_NoUnkeyedLiteral struct{}          `json:"-"` | ||||
| 	XXX_unrecognized     []byte            `json:"-"` | ||||
| 	XXX_sizecache        int32             `json:"-"` | ||||
| @@ -144,30 +144,40 @@ type isValue_Kind interface { | ||||
| } | ||||
|  | ||||
| type Value_NullValue struct { | ||||
| 	NullValue NullValue `protobuf:"varint,1,opt,name=null_value,json=nullValue,enum=google.protobuf.NullValue,oneof"` | ||||
| } | ||||
| type Value_NumberValue struct { | ||||
| 	NumberValue float64 `protobuf:"fixed64,2,opt,name=number_value,json=numberValue,oneof"` | ||||
| } | ||||
| type Value_StringValue struct { | ||||
| 	StringValue string `protobuf:"bytes,3,opt,name=string_value,json=stringValue,oneof"` | ||||
| } | ||||
| type Value_BoolValue struct { | ||||
| 	BoolValue bool `protobuf:"varint,4,opt,name=bool_value,json=boolValue,oneof"` | ||||
| } | ||||
| type Value_StructValue struct { | ||||
| 	StructValue *Struct `protobuf:"bytes,5,opt,name=struct_value,json=structValue,oneof"` | ||||
| } | ||||
| type Value_ListValue struct { | ||||
| 	ListValue *ListValue `protobuf:"bytes,6,opt,name=list_value,json=listValue,oneof"` | ||||
| 	NullValue NullValue `protobuf:"varint,1,opt,name=null_value,json=nullValue,proto3,enum=google.protobuf.NullValue,oneof"` | ||||
| } | ||||
|  | ||||
| func (*Value_NullValue) isValue_Kind()   {} | ||||
| type Value_NumberValue struct { | ||||
| 	NumberValue float64 `protobuf:"fixed64,2,opt,name=number_value,json=numberValue,proto3,oneof"` | ||||
| } | ||||
|  | ||||
| type Value_StringValue struct { | ||||
| 	StringValue string `protobuf:"bytes,3,opt,name=string_value,json=stringValue,proto3,oneof"` | ||||
| } | ||||
|  | ||||
| type Value_BoolValue struct { | ||||
| 	BoolValue bool `protobuf:"varint,4,opt,name=bool_value,json=boolValue,proto3,oneof"` | ||||
| } | ||||
|  | ||||
| type Value_StructValue struct { | ||||
| 	StructValue *Struct `protobuf:"bytes,5,opt,name=struct_value,json=structValue,proto3,oneof"` | ||||
| } | ||||
|  | ||||
| type Value_ListValue struct { | ||||
| 	ListValue *ListValue `protobuf:"bytes,6,opt,name=list_value,json=listValue,proto3,oneof"` | ||||
| } | ||||
|  | ||||
| func (*Value_NullValue) isValue_Kind() {} | ||||
|  | ||||
| func (*Value_NumberValue) isValue_Kind() {} | ||||
|  | ||||
| func (*Value_StringValue) isValue_Kind() {} | ||||
| func (*Value_BoolValue) isValue_Kind()   {} | ||||
|  | ||||
| func (*Value_BoolValue) isValue_Kind() {} | ||||
|  | ||||
| func (*Value_StructValue) isValue_Kind() {} | ||||
| func (*Value_ListValue) isValue_Kind()   {} | ||||
|  | ||||
| func (*Value_ListValue) isValue_Kind() {} | ||||
|  | ||||
| func (m *Value) GetKind() isValue_Kind { | ||||
| 	if m != nil { | ||||
| @@ -358,7 +368,7 @@ func _Value_OneofSizer(msg proto.Message) (n int) { | ||||
| // The JSON representation for `ListValue` is JSON array. | ||||
| type ListValue struct { | ||||
| 	// Repeated field of dynamically typed values. | ||||
| 	Values               []*Value `protobuf:"bytes,1,rep,name=values" json:"values,omitempty"` | ||||
| 	Values               []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` | ||||
| 	XXX_NoUnkeyedLiteral struct{} `json:"-"` | ||||
| 	XXX_unrecognized     []byte   `json:"-"` | ||||
| 	XXX_sizecache        int32    `json:"-"` | ||||
|   | ||||
							
								
								
									
										4
									
								
								vendor/github.com/golang/protobuf/ptypes/timestamp/timestamp.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								vendor/github.com/golang/protobuf/ptypes/timestamp/timestamp.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -100,12 +100,12 @@ type Timestamp struct { | ||||
| 	// Represents seconds of UTC time since Unix epoch | ||||
| 	// 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to | ||||
| 	// 9999-12-31T23:59:59Z inclusive. | ||||
| 	Seconds int64 `protobuf:"varint,1,opt,name=seconds" json:"seconds,omitempty"` | ||||
| 	Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` | ||||
| 	// Non-negative fractions of a second at nanosecond resolution. Negative | ||||
| 	// second values with fractions must still have non-negative nanos values | ||||
| 	// that count forward in time. Must be from 0 to 999,999,999 | ||||
| 	// inclusive. | ||||
| 	Nanos                int32    `protobuf:"varint,2,opt,name=nanos" json:"nanos,omitempty"` | ||||
| 	Nanos                int32    `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"` | ||||
| 	XXX_NoUnkeyedLiteral struct{} `json:"-"` | ||||
| 	XXX_unrecognized     []byte   `json:"-"` | ||||
| 	XXX_sizecache        int32    `json:"-"` | ||||
|   | ||||
							
								
								
									
										16
									
								
								vendor/github.com/golang/protobuf/ptypes/wrappers/wrappers.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								vendor/github.com/golang/protobuf/ptypes/wrappers/wrappers.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -23,7 +23,7 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package | ||||
| // The JSON representation for `DoubleValue` is JSON number. | ||||
| type DoubleValue struct { | ||||
| 	// The double value. | ||||
| 	Value                float64  `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"` | ||||
| 	Value                float64  `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` | ||||
| 	XXX_NoUnkeyedLiteral struct{} `json:"-"` | ||||
| 	XXX_unrecognized     []byte   `json:"-"` | ||||
| 	XXX_sizecache        int32    `json:"-"` | ||||
| @@ -66,7 +66,7 @@ func (m *DoubleValue) GetValue() float64 { | ||||
| // The JSON representation for `FloatValue` is JSON number. | ||||
| type FloatValue struct { | ||||
| 	// The float value. | ||||
| 	Value                float32  `protobuf:"fixed32,1,opt,name=value" json:"value,omitempty"` | ||||
| 	Value                float32  `protobuf:"fixed32,1,opt,name=value,proto3" json:"value,omitempty"` | ||||
| 	XXX_NoUnkeyedLiteral struct{} `json:"-"` | ||||
| 	XXX_unrecognized     []byte   `json:"-"` | ||||
| 	XXX_sizecache        int32    `json:"-"` | ||||
| @@ -109,7 +109,7 @@ func (m *FloatValue) GetValue() float32 { | ||||
| // The JSON representation for `Int64Value` is JSON string. | ||||
| type Int64Value struct { | ||||
| 	// The int64 value. | ||||
| 	Value                int64    `protobuf:"varint,1,opt,name=value" json:"value,omitempty"` | ||||
| 	Value                int64    `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` | ||||
| 	XXX_NoUnkeyedLiteral struct{} `json:"-"` | ||||
| 	XXX_unrecognized     []byte   `json:"-"` | ||||
| 	XXX_sizecache        int32    `json:"-"` | ||||
| @@ -152,7 +152,7 @@ func (m *Int64Value) GetValue() int64 { | ||||
| // The JSON representation for `UInt64Value` is JSON string. | ||||
| type UInt64Value struct { | ||||
| 	// The uint64 value. | ||||
| 	Value                uint64   `protobuf:"varint,1,opt,name=value" json:"value,omitempty"` | ||||
| 	Value                uint64   `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` | ||||
| 	XXX_NoUnkeyedLiteral struct{} `json:"-"` | ||||
| 	XXX_unrecognized     []byte   `json:"-"` | ||||
| 	XXX_sizecache        int32    `json:"-"` | ||||
| @@ -195,7 +195,7 @@ func (m *UInt64Value) GetValue() uint64 { | ||||
| // The JSON representation for `Int32Value` is JSON number. | ||||
| type Int32Value struct { | ||||
| 	// The int32 value. | ||||
| 	Value                int32    `protobuf:"varint,1,opt,name=value" json:"value,omitempty"` | ||||
| 	Value                int32    `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` | ||||
| 	XXX_NoUnkeyedLiteral struct{} `json:"-"` | ||||
| 	XXX_unrecognized     []byte   `json:"-"` | ||||
| 	XXX_sizecache        int32    `json:"-"` | ||||
| @@ -238,7 +238,7 @@ func (m *Int32Value) GetValue() int32 { | ||||
| // The JSON representation for `UInt32Value` is JSON number. | ||||
| type UInt32Value struct { | ||||
| 	// The uint32 value. | ||||
| 	Value                uint32   `protobuf:"varint,1,opt,name=value" json:"value,omitempty"` | ||||
| 	Value                uint32   `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` | ||||
| 	XXX_NoUnkeyedLiteral struct{} `json:"-"` | ||||
| 	XXX_unrecognized     []byte   `json:"-"` | ||||
| 	XXX_sizecache        int32    `json:"-"` | ||||
| @@ -281,7 +281,7 @@ func (m *UInt32Value) GetValue() uint32 { | ||||
| // The JSON representation for `BoolValue` is JSON `true` and `false`. | ||||
| type BoolValue struct { | ||||
| 	// The bool value. | ||||
| 	Value                bool     `protobuf:"varint,1,opt,name=value" json:"value,omitempty"` | ||||
| 	Value                bool     `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` | ||||
| 	XXX_NoUnkeyedLiteral struct{} `json:"-"` | ||||
| 	XXX_unrecognized     []byte   `json:"-"` | ||||
| 	XXX_sizecache        int32    `json:"-"` | ||||
| @@ -324,7 +324,7 @@ func (m *BoolValue) GetValue() bool { | ||||
| // The JSON representation for `StringValue` is JSON string. | ||||
| type StringValue struct { | ||||
| 	// The string value. | ||||
| 	Value                string   `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"` | ||||
| 	Value                string   `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` | ||||
| 	XXX_NoUnkeyedLiteral struct{} `json:"-"` | ||||
| 	XXX_unrecognized     []byte   `json:"-"` | ||||
| 	XXX_sizecache        int32    `json:"-"` | ||||
|   | ||||
							
								
								
									
										2
									
								
								vendor/modules.txt
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/modules.txt
									
									
									
									
										vendored
									
									
								
							| @@ -404,7 +404,7 @@ github.com/gogo/protobuf/vanity/command | ||||
| github.com/golang/groupcache/lru | ||||
| # github.com/golang/mock v0.0.0-20160127222235-bd3c8e81be01 => github.com/golang/mock v0.0.0-20160127222235-bd3c8e81be01 | ||||
| github.com/golang/mock/gomock | ||||
| # github.com/golang/protobuf v1.2.0 => github.com/golang/protobuf v1.1.0 | ||||
| # github.com/golang/protobuf v1.2.0 => github.com/golang/protobuf v1.2.0 | ||||
| github.com/golang/protobuf/jsonpb | ||||
| github.com/golang/protobuf/proto | ||||
| github.com/golang/protobuf/protoc-gen-go/descriptor | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jordan Liggitt
					Jordan Liggitt