19
									
								
								api/go.mod
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								api/go.mod
									
									
									
									
									
								
							| @@ -1,19 +0,0 @@ | ||||
| module github.com/containerd/containerd/api | ||||
|  | ||||
| go 1.16 | ||||
|  | ||||
| require ( | ||||
| 	github.com/containerd/ttrpc v1.1.0 | ||||
| 	github.com/containerd/typeurl v1.0.2 | ||||
| 	github.com/gogo/googleapis v1.4.0 | ||||
| 	github.com/gogo/protobuf v1.3.2 | ||||
| 	github.com/opencontainers/go-digest v1.0.0 | ||||
| 	google.golang.org/grpc v1.43.0 | ||||
| ) | ||||
|  | ||||
| replace ( | ||||
| 	github.com/gogo/googleapis => github.com/gogo/googleapis v1.3.2 | ||||
| 	// urfave/cli must be <= v1.22.1 due to a regression: https://github.com/urfave/cli/issues/1092 | ||||
| 	github.com/urfave/cli => github.com/urfave/cli v1.22.1 | ||||
| 	google.golang.org/genproto => google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63 | ||||
| ) | ||||
							
								
								
									
										154
									
								
								api/go.sum
									
									
									
									
									
								
							
							
						
						
									
										154
									
								
								api/go.sum
									
									
									
									
									
								
							| @@ -1,154 +0,0 @@ | ||||
| cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= | ||||
| cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= | ||||
| github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= | ||||
| github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= | ||||
| github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= | ||||
| github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= | ||||
| github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= | ||||
| github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= | ||||
| github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= | ||||
| github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= | ||||
| github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= | ||||
| github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= | ||||
| github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= | ||||
| github.com/containerd/ttrpc v1.1.0 h1:GbtyLRxb0gOLR0TYQWt3O6B0NvT8tMdorEHqIQo/lWI= | ||||
| github.com/containerd/ttrpc v1.1.0/go.mod h1:XX4ZTnoOId4HklF4edwc4DcqskFZuvXB1Evzy5KFQpQ= | ||||
| github.com/containerd/typeurl v1.0.2 h1:Chlt8zIieDbzQFzXzAeBEF92KhExuE4p9p92/QmY7aY= | ||||
| github.com/containerd/typeurl v1.0.2/go.mod h1:9trJWW2sRlGub4wZJRTW83VtbOLS6hwcDZXTn6oPz9s= | ||||
| github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= | ||||
| github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= | ||||
| github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= | ||||
| github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= | ||||
| github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= | ||||
| github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= | ||||
| github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= | ||||
| github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= | ||||
| github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= | ||||
| github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= | ||||
| github.com/gogo/googleapis v1.3.2 h1:kX1es4djPJrsDhY7aZKJy7aZasdcB5oSOEphMjSB53c= | ||||
| github.com/gogo/googleapis v1.3.2/go.mod h1:5YRNX2z1oM5gXdAkurHa942MDgEJyk02w4OecKY87+c= | ||||
| github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= | ||||
| github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= | ||||
| github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= | ||||
| github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= | ||||
| github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= | ||||
| github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= | ||||
| github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= | ||||
| github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= | ||||
| github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= | ||||
| github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= | ||||
| github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= | ||||
| github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= | ||||
| github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= | ||||
| github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= | ||||
| github.com/golang/protobuf v1.5.0 h1:LUVKkCeviFUMKqHa4tXIIij/lbhnMbP7Fn5wKdKkRh4= | ||||
| github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= | ||||
| github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= | ||||
| github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= | ||||
| github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= | ||||
| github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= | ||||
| github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= | ||||
| github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= | ||||
| github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= | ||||
| github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= | ||||
| github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= | ||||
| github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= | ||||
| github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= | ||||
| github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= | ||||
| github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= | ||||
| github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= | ||||
| github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= | ||||
| github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= | ||||
| github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= | ||||
| github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= | ||||
| github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= | ||||
| github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= | ||||
| github.com/prometheus/procfs v0.6.0 h1:mxy4L2jP6qMonqmq+aTtOx1ifVWUgG/TAmntgbh3xv4= | ||||
| github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= | ||||
| github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= | ||||
| github.com/sirupsen/logrus v1.8.1 h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE= | ||||
| github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= | ||||
| github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= | ||||
| github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= | ||||
| github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= | ||||
| github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= | ||||
| github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= | ||||
| github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= | ||||
| github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= | ||||
| go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= | ||||
| golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= | ||||
| golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= | ||||
| golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= | ||||
| golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= | ||||
| golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= | ||||
| golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= | ||||
| golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= | ||||
| golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= | ||||
| golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= | ||||
| golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= | ||||
| golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= | ||||
| golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= | ||||
| golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= | ||||
| golang.org/x/net v0.0.0-20201021035429-f5854403a974 h1:IX6qOQeG5uLjB/hjjwjedwfjND0hgjPMMyO1RoIXQNI= | ||||
| golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= | ||||
| golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= | ||||
| golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= | ||||
| golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||||
| golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||||
| golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||||
| golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||||
| golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||||
| golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||||
| golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | ||||
| golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c h1:VwygUrnw9jn88c4u8GD3rZQbqrP/tgas88tPUbBxQrk= | ||||
| golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= | ||||
| golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k= | ||||
| golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= | ||||
| golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= | ||||
| golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= | ||||
| golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= | ||||
| golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= | ||||
| golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= | ||||
| golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= | ||||
| golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= | ||||
| golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= | ||||
| golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= | ||||
| golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= | ||||
| golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= | ||||
| golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= | ||||
| google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= | ||||
| google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= | ||||
| google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63 h1:YzfoEYWbODU5Fbt37+h7X16BWQbad7Q4S6gclTKFXM8= | ||||
| google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= | ||||
| google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= | ||||
| google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= | ||||
| google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= | ||||
| google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= | ||||
| google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= | ||||
| google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= | ||||
| google.golang.org/grpc v1.43.0 h1:Eeu7bZtDZ2DpRCsLhUlcrLnvYaMK1Gz86a+hMVvELmM= | ||||
| google.golang.org/grpc v1.43.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= | ||||
| google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= | ||||
| google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= | ||||
| google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= | ||||
| google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= | ||||
| google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= | ||||
| google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= | ||||
| google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= | ||||
| google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= | ||||
| google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= | ||||
| google.golang.org/protobuf v1.27.1 h1:SnqbnDw1V7RiZcXPx5MEeqPv2s79L9i7BJUlG/+RurQ= | ||||
| google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= | ||||
| gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= | ||||
| gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= | ||||
| gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= | ||||
| gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= | ||||
| gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= | ||||
| honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= | ||||
							
								
								
									
										3
									
								
								go.mod
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								go.mod
									
									
									
									
									
								
							| @@ -10,7 +10,6 @@ require ( | ||||
| 	github.com/containerd/btrfs v1.0.0 | ||||
| 	github.com/containerd/cgroups v1.0.2 | ||||
| 	github.com/containerd/console v1.0.3 | ||||
| 	github.com/containerd/containerd/api v1.6.0-beta.3 | ||||
| 	github.com/containerd/continuity v0.2.2 | ||||
| 	github.com/containerd/fifo v1.0.0 | ||||
| 	github.com/containerd/go-cni v1.1.1 | ||||
| @@ -84,8 +83,6 @@ replace ( | ||||
| 	// prevent transitional dependencies due to containerd having a circular | ||||
| 	// dependency on itself through plugins. see .empty-mod/go.mod for details | ||||
| 	github.com/containerd/containerd => ./.empty-mod/ | ||||
| 	// Use the relative local source of the github.com/containerd/containerd/api to build | ||||
| 	github.com/containerd/containerd/api => ./api | ||||
| 	github.com/gogo/googleapis => github.com/gogo/googleapis v1.3.2 | ||||
| 	// urfave/cli must be <= v1.22.1 due to a regression: https://github.com/urfave/cli/issues/1092 | ||||
| 	github.com/urfave/cli => github.com/urfave/cli v1.22.1 | ||||
|   | ||||
| @@ -8,7 +8,6 @@ require ( | ||||
| 	github.com/containerd/cgroups v1.0.2 | ||||
| 	// the actual version of containerd is replaced with the code at the root of this repository | ||||
| 	github.com/containerd/containerd v1.5.8 | ||||
| 	github.com/containerd/containerd/api v1.6.0-beta.3 | ||||
| 	github.com/containerd/go-runc v1.0.0 | ||||
| 	github.com/containerd/ttrpc v1.1.0 | ||||
| 	github.com/containerd/typeurl v1.0.2 | ||||
| @@ -28,7 +27,6 @@ replace ( | ||||
| 	// in the "require" section above are still taken into account for version | ||||
| 	// resolution if newer. | ||||
| 	github.com/containerd/containerd => ../../ | ||||
| 	github.com/containerd/containerd/api => ../../api | ||||
|  | ||||
| 	// Replace rules below must be kept in sync with the main go.mod file at the | ||||
| 	// root, because that's the actual version expected by the "containerd/containerd" | ||||
|   | ||||
							
								
								
									
										1413
									
								
								vendor/github.com/containerd/containerd/api/events/container.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										1413
									
								
								vendor/github.com/containerd/containerd/api/events/container.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										47
									
								
								vendor/github.com/containerd/containerd/api/events/container.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										47
									
								
								vendor/github.com/containerd/containerd/api/events/container.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,47 +0,0 @@ | ||||
| /* | ||||
| 	Copyright The containerd Authors. | ||||
|  | ||||
| 	Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| 	you may not use this file except in compliance with the License. | ||||
| 	You may obtain a copy of the License at | ||||
|  | ||||
| 		http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
| 	Unless required by applicable law or agreed to in writing, software | ||||
| 	distributed under the License is distributed on an "AS IS" BASIS, | ||||
| 	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| 	See the License for the specific language governing permissions and | ||||
| 	limitations under the License. | ||||
| */ | ||||
|  | ||||
| syntax = "proto3"; | ||||
|  | ||||
| package containerd.events; | ||||
|  | ||||
| import "google/protobuf/any.proto"; | ||||
| import weak "gogoproto/gogo.proto"; | ||||
| import weak "github.com/containerd/containerd/protobuf/plugin/fieldpath.proto"; | ||||
|  | ||||
| option go_package = "github.com/containerd/containerd/api/events;events"; | ||||
| option (containerd.plugin.fieldpath_all) = true; | ||||
|  | ||||
| message ContainerCreate { | ||||
| 	string id = 1; | ||||
| 	string image = 2; | ||||
| 	message Runtime { | ||||
| 		string name = 1; | ||||
| 		google.protobuf.Any options = 2; | ||||
| 	} | ||||
| 	Runtime runtime = 3; | ||||
| } | ||||
|  | ||||
| message ContainerUpdate { | ||||
| 	string id = 1; | ||||
| 	string image = 2; | ||||
| 	map<string, string> labels  = 3; | ||||
| 	string snapshot_key = 4; | ||||
| } | ||||
|  | ||||
| message ContainerDelete { | ||||
| 	string id = 1; | ||||
| } | ||||
							
								
								
									
										359
									
								
								vendor/github.com/containerd/containerd/api/events/content.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										359
									
								
								vendor/github.com/containerd/containerd/api/events/content.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,359 +0,0 @@ | ||||
| // Code generated by protoc-gen-gogo. DO NOT EDIT. | ||||
| // source: github.com/containerd/containerd/api/events/content.proto | ||||
|  | ||||
| package events | ||||
|  | ||||
| import ( | ||||
| 	fmt "fmt" | ||||
| 	proto "github.com/gogo/protobuf/proto" | ||||
| 	github_com_opencontainers_go_digest "github.com/opencontainers/go-digest" | ||||
| 	io "io" | ||||
| 	math "math" | ||||
| 	math_bits "math/bits" | ||||
| 	reflect "reflect" | ||||
| 	strings "strings" | ||||
| ) | ||||
|  | ||||
| // Reference imports to suppress errors if they are not otherwise used. | ||||
| var _ = proto.Marshal | ||||
| var _ = fmt.Errorf | ||||
| var _ = math.Inf | ||||
|  | ||||
| // This is a compile-time assertion to ensure that this generated file | ||||
| // is compatible with the proto package it is being compiled against. | ||||
| // A compilation error at this line likely means your copy of the | ||||
| // proto package needs to be updated. | ||||
| const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package | ||||
|  | ||||
| type ContentDelete struct { | ||||
| 	Digest               github_com_opencontainers_go_digest.Digest `protobuf:"bytes,1,opt,name=digest,proto3,customtype=github.com/opencontainers/go-digest.Digest" json:"digest"` | ||||
| 	XXX_NoUnkeyedLiteral struct{}                                   `json:"-"` | ||||
| 	XXX_unrecognized     []byte                                     `json:"-"` | ||||
| 	XXX_sizecache        int32                                      `json:"-"` | ||||
| } | ||||
|  | ||||
| func (m *ContentDelete) Reset()      { *m = ContentDelete{} } | ||||
| func (*ContentDelete) ProtoMessage() {} | ||||
| func (*ContentDelete) Descriptor() ([]byte, []int) { | ||||
| 	return fileDescriptor_dfb34b8b808e2ecd, []int{0} | ||||
| } | ||||
| func (m *ContentDelete) XXX_Unmarshal(b []byte) error { | ||||
| 	return m.Unmarshal(b) | ||||
| } | ||||
| func (m *ContentDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { | ||||
| 	if deterministic { | ||||
| 		return xxx_messageInfo_ContentDelete.Marshal(b, m, deterministic) | ||||
| 	} else { | ||||
| 		b = b[:cap(b)] | ||||
| 		n, err := m.MarshalToSizedBuffer(b) | ||||
| 		if err != nil { | ||||
| 			return nil, err | ||||
| 		} | ||||
| 		return b[:n], nil | ||||
| 	} | ||||
| } | ||||
| func (m *ContentDelete) XXX_Merge(src proto.Message) { | ||||
| 	xxx_messageInfo_ContentDelete.Merge(m, src) | ||||
| } | ||||
| func (m *ContentDelete) XXX_Size() int { | ||||
| 	return m.Size() | ||||
| } | ||||
| func (m *ContentDelete) XXX_DiscardUnknown() { | ||||
| 	xxx_messageInfo_ContentDelete.DiscardUnknown(m) | ||||
| } | ||||
|  | ||||
| var xxx_messageInfo_ContentDelete proto.InternalMessageInfo | ||||
|  | ||||
| func init() { | ||||
| 	proto.RegisterType((*ContentDelete)(nil), "containerd.events.ContentDelete") | ||||
| } | ||||
|  | ||||
| func init() { | ||||
| 	proto.RegisterFile("github.com/containerd/containerd/api/events/content.proto", fileDescriptor_dfb34b8b808e2ecd) | ||||
| } | ||||
|  | ||||
| var fileDescriptor_dfb34b8b808e2ecd = []byte{ | ||||
| 	// 228 bytes of a gzipped FileDescriptorProto | ||||
| 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xb2, 0x4c, 0xcf, 0x2c, 0xc9, | ||||
| 	0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xce, 0xcf, 0x2b, 0x49, 0xcc, 0xcc, 0x4b, 0x2d, | ||||
| 	0x4a, 0x41, 0x66, 0x26, 0x16, 0x64, 0xea, 0xa7, 0x96, 0xa5, 0xe6, 0x95, 0x14, 0x83, 0x45, 0x53, | ||||
| 	0xf3, 0x4a, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0x04, 0x11, 0x8a, 0xf4, 0x20, 0x0a, 0xa4, | ||||
| 	0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0xb2, 0xfa, 0x20, 0x16, 0x44, 0xa1, 0x94, 0x03, 0x41, 0x3b, | ||||
| 	0xc0, 0xea, 0x92, 0x4a, 0xd3, 0xf4, 0x0b, 0x72, 0x4a, 0xd3, 0x33, 0xf3, 0xf4, 0xd3, 0x32, 0x53, | ||||
| 	0x73, 0x52, 0x0a, 0x12, 0x4b, 0x32, 0x20, 0x26, 0x28, 0x45, 0x73, 0xf1, 0x3a, 0x43, 0xec, 0x76, | ||||
| 	0x49, 0xcd, 0x49, 0x2d, 0x49, 0x15, 0xf2, 0xe2, 0x62, 0x4b, 0xc9, 0x4c, 0x4f, 0x2d, 0x2e, 0x91, | ||||
| 	0x60, 0x54, 0x60, 0xd4, 0xe0, 0x74, 0x32, 0x3a, 0x71, 0x4f, 0x9e, 0xe1, 0xd6, 0x3d, 0x79, 0x2d, | ||||
| 	0x24, 0xab, 0xf2, 0x0b, 0x52, 0xf3, 0xe0, 0x76, 0x14, 0xeb, 0xa7, 0xe7, 0xeb, 0x42, 0xb4, 0xe8, | ||||
| 	0xb9, 0x80, 0xa9, 0x20, 0xa8, 0x09, 0x4e, 0x01, 0x27, 0x1e, 0xca, 0x31, 0xdc, 0x78, 0x28, 0xc7, | ||||
| 	0xd0, 0xf0, 0x48, 0x8e, 0xf1, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, | ||||
| 	0x63, 0x5c, 0xf0, 0x45, 0x8e, 0x31, 0xca, 0x88, 0x84, 0x00, 0xb2, 0x86, 0x50, 0x11, 0x0c, 0x11, | ||||
| 	0x8c, 0x49, 0x6c, 0x60, 0x97, 0x1b, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x4b, 0x78, 0x99, 0xee, | ||||
| 	0x61, 0x01, 0x00, 0x00, | ||||
| } | ||||
|  | ||||
| // Field returns the value for the given fieldpath as a string, if defined. | ||||
| // If the value is not defined, the second value will be false. | ||||
| func (m *ContentDelete) Field(fieldpath []string) (string, bool) { | ||||
| 	if len(fieldpath) == 0 { | ||||
| 		return "", false | ||||
| 	} | ||||
|  | ||||
| 	switch fieldpath[0] { | ||||
| 	case "digest": | ||||
| 		return string(m.Digest), len(m.Digest) > 0 | ||||
| 	} | ||||
| 	return "", false | ||||
| } | ||||
| func (m *ContentDelete) Marshal() (dAtA []byte, err error) { | ||||
| 	size := m.Size() | ||||
| 	dAtA = make([]byte, size) | ||||
| 	n, err := m.MarshalToSizedBuffer(dAtA[:size]) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return dAtA[:n], nil | ||||
| } | ||||
|  | ||||
| func (m *ContentDelete) MarshalTo(dAtA []byte) (int, error) { | ||||
| 	size := m.Size() | ||||
| 	return m.MarshalToSizedBuffer(dAtA[:size]) | ||||
| } | ||||
|  | ||||
| func (m *ContentDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) { | ||||
| 	i := len(dAtA) | ||||
| 	_ = i | ||||
| 	var l int | ||||
| 	_ = l | ||||
| 	if m.XXX_unrecognized != nil { | ||||
| 		i -= len(m.XXX_unrecognized) | ||||
| 		copy(dAtA[i:], m.XXX_unrecognized) | ||||
| 	} | ||||
| 	if len(m.Digest) > 0 { | ||||
| 		i -= len(m.Digest) | ||||
| 		copy(dAtA[i:], m.Digest) | ||||
| 		i = encodeVarintContent(dAtA, i, uint64(len(m.Digest))) | ||||
| 		i-- | ||||
| 		dAtA[i] = 0xa | ||||
| 	} | ||||
| 	return len(dAtA) - i, nil | ||||
| } | ||||
|  | ||||
| func encodeVarintContent(dAtA []byte, offset int, v uint64) int { | ||||
| 	offset -= sovContent(v) | ||||
| 	base := offset | ||||
| 	for v >= 1<<7 { | ||||
| 		dAtA[offset] = uint8(v&0x7f | 0x80) | ||||
| 		v >>= 7 | ||||
| 		offset++ | ||||
| 	} | ||||
| 	dAtA[offset] = uint8(v) | ||||
| 	return base | ||||
| } | ||||
| func (m *ContentDelete) Size() (n int) { | ||||
| 	if m == nil { | ||||
| 		return 0 | ||||
| 	} | ||||
| 	var l int | ||||
| 	_ = l | ||||
| 	l = len(m.Digest) | ||||
| 	if l > 0 { | ||||
| 		n += 1 + l + sovContent(uint64(l)) | ||||
| 	} | ||||
| 	if m.XXX_unrecognized != nil { | ||||
| 		n += len(m.XXX_unrecognized) | ||||
| 	} | ||||
| 	return n | ||||
| } | ||||
|  | ||||
| func sovContent(x uint64) (n int) { | ||||
| 	return (math_bits.Len64(x|1) + 6) / 7 | ||||
| } | ||||
| func sozContent(x uint64) (n int) { | ||||
| 	return sovContent(uint64((x << 1) ^ uint64((int64(x) >> 63)))) | ||||
| } | ||||
| func (this *ContentDelete) String() string { | ||||
| 	if this == nil { | ||||
| 		return "nil" | ||||
| 	} | ||||
| 	s := strings.Join([]string{`&ContentDelete{`, | ||||
| 		`Digest:` + fmt.Sprintf("%v", this.Digest) + `,`, | ||||
| 		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, | ||||
| 		`}`, | ||||
| 	}, "") | ||||
| 	return s | ||||
| } | ||||
| func valueToStringContent(v interface{}) string { | ||||
| 	rv := reflect.ValueOf(v) | ||||
| 	if rv.IsNil() { | ||||
| 		return "nil" | ||||
| 	} | ||||
| 	pv := reflect.Indirect(rv).Interface() | ||||
| 	return fmt.Sprintf("*%v", pv) | ||||
| } | ||||
| func (m *ContentDelete) Unmarshal(dAtA []byte) error { | ||||
| 	l := len(dAtA) | ||||
| 	iNdEx := 0 | ||||
| 	for iNdEx < l { | ||||
| 		preIndex := iNdEx | ||||
| 		var wire uint64 | ||||
| 		for shift := uint(0); ; shift += 7 { | ||||
| 			if shift >= 64 { | ||||
| 				return ErrIntOverflowContent | ||||
| 			} | ||||
| 			if iNdEx >= l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			b := dAtA[iNdEx] | ||||
| 			iNdEx++ | ||||
| 			wire |= uint64(b&0x7F) << shift | ||||
| 			if b < 0x80 { | ||||
| 				break | ||||
| 			} | ||||
| 		} | ||||
| 		fieldNum := int32(wire >> 3) | ||||
| 		wireType := int(wire & 0x7) | ||||
| 		if wireType == 4 { | ||||
| 			return fmt.Errorf("proto: ContentDelete: wiretype end group for non-group") | ||||
| 		} | ||||
| 		if fieldNum <= 0 { | ||||
| 			return fmt.Errorf("proto: ContentDelete: illegal tag %d (wire type %d)", fieldNum, wire) | ||||
| 		} | ||||
| 		switch fieldNum { | ||||
| 		case 1: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Digest", wireType) | ||||
| 			} | ||||
| 			var stringLen uint64 | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowContent | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				stringLen |= uint64(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			intStringLen := int(stringLen) | ||||
| 			if intStringLen < 0 { | ||||
| 				return ErrInvalidLengthContent | ||||
| 			} | ||||
| 			postIndex := iNdEx + intStringLen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthContent | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.Digest = github_com_opencontainers_go_digest.Digest(dAtA[iNdEx:postIndex]) | ||||
| 			iNdEx = postIndex | ||||
| 		default: | ||||
| 			iNdEx = preIndex | ||||
| 			skippy, err := skipContent(dAtA[iNdEx:]) | ||||
| 			if err != nil { | ||||
| 				return err | ||||
| 			} | ||||
| 			if (skippy < 0) || (iNdEx+skippy) < 0 { | ||||
| 				return ErrInvalidLengthContent | ||||
| 			} | ||||
| 			if (iNdEx + skippy) > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) | ||||
| 			iNdEx += skippy | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	if iNdEx > l { | ||||
| 		return io.ErrUnexpectedEOF | ||||
| 	} | ||||
| 	return nil | ||||
| } | ||||
| func skipContent(dAtA []byte) (n int, err error) { | ||||
| 	l := len(dAtA) | ||||
| 	iNdEx := 0 | ||||
| 	depth := 0 | ||||
| 	for iNdEx < l { | ||||
| 		var wire uint64 | ||||
| 		for shift := uint(0); ; shift += 7 { | ||||
| 			if shift >= 64 { | ||||
| 				return 0, ErrIntOverflowContent | ||||
| 			} | ||||
| 			if iNdEx >= l { | ||||
| 				return 0, io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			b := dAtA[iNdEx] | ||||
| 			iNdEx++ | ||||
| 			wire |= (uint64(b) & 0x7F) << shift | ||||
| 			if b < 0x80 { | ||||
| 				break | ||||
| 			} | ||||
| 		} | ||||
| 		wireType := int(wire & 0x7) | ||||
| 		switch wireType { | ||||
| 		case 0: | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return 0, ErrIntOverflowContent | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return 0, io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				iNdEx++ | ||||
| 				if dAtA[iNdEx-1] < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 		case 1: | ||||
| 			iNdEx += 8 | ||||
| 		case 2: | ||||
| 			var length int | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return 0, ErrIntOverflowContent | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return 0, io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				length |= (int(b) & 0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			if length < 0 { | ||||
| 				return 0, ErrInvalidLengthContent | ||||
| 			} | ||||
| 			iNdEx += length | ||||
| 		case 3: | ||||
| 			depth++ | ||||
| 		case 4: | ||||
| 			if depth == 0 { | ||||
| 				return 0, ErrUnexpectedEndOfGroupContent | ||||
| 			} | ||||
| 			depth-- | ||||
| 		case 5: | ||||
| 			iNdEx += 4 | ||||
| 		default: | ||||
| 			return 0, fmt.Errorf("proto: illegal wireType %d", wireType) | ||||
| 		} | ||||
| 		if iNdEx < 0 { | ||||
| 			return 0, ErrInvalidLengthContent | ||||
| 		} | ||||
| 		if depth == 0 { | ||||
| 			return iNdEx, nil | ||||
| 		} | ||||
| 	} | ||||
| 	return 0, io.ErrUnexpectedEOF | ||||
| } | ||||
|  | ||||
| var ( | ||||
| 	ErrInvalidLengthContent        = fmt.Errorf("proto: negative length found during unmarshaling") | ||||
| 	ErrIntOverflowContent          = fmt.Errorf("proto: integer overflow") | ||||
| 	ErrUnexpectedEndOfGroupContent = fmt.Errorf("proto: unexpected end of group") | ||||
| ) | ||||
							
								
								
									
										29
									
								
								vendor/github.com/containerd/containerd/api/events/content.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										29
									
								
								vendor/github.com/containerd/containerd/api/events/content.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,29 +0,0 @@ | ||||
| /* | ||||
| 	Copyright The containerd Authors. | ||||
|  | ||||
| 	Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| 	you may not use this file except in compliance with the License. | ||||
| 	You may obtain a copy of the License at | ||||
|  | ||||
| 		http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
| 	Unless required by applicable law or agreed to in writing, software | ||||
| 	distributed under the License is distributed on an "AS IS" BASIS, | ||||
| 	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| 	See the License for the specific language governing permissions and | ||||
| 	limitations under the License. | ||||
| */ | ||||
|  | ||||
| syntax = "proto3"; | ||||
|  | ||||
| package containerd.events; | ||||
|  | ||||
| import weak "gogoproto/gogo.proto"; | ||||
| import weak "github.com/containerd/containerd/protobuf/plugin/fieldpath.proto"; | ||||
|  | ||||
| option go_package = "github.com/containerd/containerd/api/events;events"; | ||||
| option (containerd.plugin.fieldpath_all) = true; | ||||
|  | ||||
| message ContentDelete { | ||||
| 	string digest = 1 [(gogoproto.customtype) = "github.com/opencontainers/go-digest.Digest", (gogoproto.nullable) = false]; | ||||
| } | ||||
							
								
								
									
										19
									
								
								vendor/github.com/containerd/containerd/api/events/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										19
									
								
								vendor/github.com/containerd/containerd/api/events/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,19 +0,0 @@ | ||||
| /* | ||||
|    Copyright The containerd Authors. | ||||
|  | ||||
|    Licensed under the Apache License, Version 2.0 (the "License"); | ||||
|    you may not use this file except in compliance with the License. | ||||
|    You may obtain a copy of the License at | ||||
|  | ||||
|        http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
|    Unless required by applicable law or agreed to in writing, software | ||||
|    distributed under the License is distributed on an "AS IS" BASIS, | ||||
|    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
|    See the License for the specific language governing permissions and | ||||
|    limitations under the License. | ||||
| */ | ||||
|  | ||||
| // Package events has protobuf types for various events that are used in | ||||
| // containerd. | ||||
| package events | ||||
							
								
								
									
										1109
									
								
								vendor/github.com/containerd/containerd/api/events/image.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										1109
									
								
								vendor/github.com/containerd/containerd/api/events/image.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										38
									
								
								vendor/github.com/containerd/containerd/api/events/image.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										38
									
								
								vendor/github.com/containerd/containerd/api/events/image.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,38 +0,0 @@ | ||||
| /* | ||||
| 	Copyright The containerd Authors. | ||||
|  | ||||
| 	Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| 	you may not use this file except in compliance with the License. | ||||
| 	You may obtain a copy of the License at | ||||
|  | ||||
| 		http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
| 	Unless required by applicable law or agreed to in writing, software | ||||
| 	distributed under the License is distributed on an "AS IS" BASIS, | ||||
| 	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| 	See the License for the specific language governing permissions and | ||||
| 	limitations under the License. | ||||
| */ | ||||
|  | ||||
| syntax = "proto3"; | ||||
|  | ||||
| package containerd.services.images.v1; | ||||
|  | ||||
| import weak "github.com/containerd/containerd/protobuf/plugin/fieldpath.proto"; | ||||
|  | ||||
| option go_package = "github.com/containerd/containerd/api/events;events"; | ||||
| option (containerd.plugin.fieldpath_all) = true; | ||||
|  | ||||
| message ImageCreate { | ||||
| 	string name = 1; | ||||
| 	map<string, string> labels = 2; | ||||
| } | ||||
|  | ||||
| message ImageUpdate { | ||||
| 	string name = 1; | ||||
| 	map<string, string> labels = 2; | ||||
| } | ||||
|  | ||||
| message ImageDelete { | ||||
| 	string name = 1; | ||||
| } | ||||
							
								
								
									
										1109
									
								
								vendor/github.com/containerd/containerd/api/events/namespace.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										1109
									
								
								vendor/github.com/containerd/containerd/api/events/namespace.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										39
									
								
								vendor/github.com/containerd/containerd/api/events/namespace.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										39
									
								
								vendor/github.com/containerd/containerd/api/events/namespace.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,39 +0,0 @@ | ||||
| /* | ||||
| 	Copyright The containerd Authors. | ||||
|  | ||||
| 	Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| 	you may not use this file except in compliance with the License. | ||||
| 	You may obtain a copy of the License at | ||||
|  | ||||
| 		http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
| 	Unless required by applicable law or agreed to in writing, software | ||||
| 	distributed under the License is distributed on an "AS IS" BASIS, | ||||
| 	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| 	See the License for the specific language governing permissions and | ||||
| 	limitations under the License. | ||||
| */ | ||||
|  | ||||
| syntax = "proto3"; | ||||
|  | ||||
| package containerd.events; | ||||
|  | ||||
| import weak "gogoproto/gogo.proto"; | ||||
| import weak "github.com/containerd/containerd/protobuf/plugin/fieldpath.proto"; | ||||
|  | ||||
| option go_package = "github.com/containerd/containerd/api/events;events"; | ||||
| option (containerd.plugin.fieldpath_all) = true; | ||||
|  | ||||
| message NamespaceCreate { | ||||
| 	string name = 1; | ||||
| 	map<string, string> labels  = 2; | ||||
| } | ||||
|  | ||||
| message NamespaceUpdate { | ||||
| 	string name = 1; | ||||
| 	map<string, string> labels  = 2; | ||||
| } | ||||
|  | ||||
| message NamespaceDelete { | ||||
| 	string name = 1; | ||||
| } | ||||
							
								
								
									
										848
									
								
								vendor/github.com/containerd/containerd/api/events/snapshot.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										848
									
								
								vendor/github.com/containerd/containerd/api/events/snapshot.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,848 +0,0 @@ | ||||
| // Code generated by protoc-gen-gogo. DO NOT EDIT. | ||||
| // source: github.com/containerd/containerd/api/events/snapshot.proto | ||||
|  | ||||
| package events | ||||
|  | ||||
| import ( | ||||
| 	fmt "fmt" | ||||
| 	proto "github.com/gogo/protobuf/proto" | ||||
| 	io "io" | ||||
| 	math "math" | ||||
| 	math_bits "math/bits" | ||||
| 	reflect "reflect" | ||||
| 	strings "strings" | ||||
| ) | ||||
|  | ||||
| // Reference imports to suppress errors if they are not otherwise used. | ||||
| var _ = proto.Marshal | ||||
| var _ = fmt.Errorf | ||||
| var _ = math.Inf | ||||
|  | ||||
| // This is a compile-time assertion to ensure that this generated file | ||||
| // is compatible with the proto package it is being compiled against. | ||||
| // A compilation error at this line likely means your copy of the | ||||
| // proto package needs to be updated. | ||||
| const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package | ||||
|  | ||||
| type SnapshotPrepare struct { | ||||
| 	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` | ||||
| 	Parent               string   `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"` | ||||
| 	XXX_NoUnkeyedLiteral struct{} `json:"-"` | ||||
| 	XXX_unrecognized     []byte   `json:"-"` | ||||
| 	XXX_sizecache        int32    `json:"-"` | ||||
| } | ||||
|  | ||||
| func (m *SnapshotPrepare) Reset()      { *m = SnapshotPrepare{} } | ||||
| func (*SnapshotPrepare) ProtoMessage() {} | ||||
| func (*SnapshotPrepare) Descriptor() ([]byte, []int) { | ||||
| 	return fileDescriptor_bd6c184d3d9aa5f2, []int{0} | ||||
| } | ||||
| func (m *SnapshotPrepare) XXX_Unmarshal(b []byte) error { | ||||
| 	return m.Unmarshal(b) | ||||
| } | ||||
| func (m *SnapshotPrepare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { | ||||
| 	if deterministic { | ||||
| 		return xxx_messageInfo_SnapshotPrepare.Marshal(b, m, deterministic) | ||||
| 	} else { | ||||
| 		b = b[:cap(b)] | ||||
| 		n, err := m.MarshalToSizedBuffer(b) | ||||
| 		if err != nil { | ||||
| 			return nil, err | ||||
| 		} | ||||
| 		return b[:n], nil | ||||
| 	} | ||||
| } | ||||
| func (m *SnapshotPrepare) XXX_Merge(src proto.Message) { | ||||
| 	xxx_messageInfo_SnapshotPrepare.Merge(m, src) | ||||
| } | ||||
| func (m *SnapshotPrepare) XXX_Size() int { | ||||
| 	return m.Size() | ||||
| } | ||||
| func (m *SnapshotPrepare) XXX_DiscardUnknown() { | ||||
| 	xxx_messageInfo_SnapshotPrepare.DiscardUnknown(m) | ||||
| } | ||||
|  | ||||
| var xxx_messageInfo_SnapshotPrepare proto.InternalMessageInfo | ||||
|  | ||||
| type SnapshotCommit struct { | ||||
| 	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` | ||||
| 	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` | ||||
| 	XXX_NoUnkeyedLiteral struct{} `json:"-"` | ||||
| 	XXX_unrecognized     []byte   `json:"-"` | ||||
| 	XXX_sizecache        int32    `json:"-"` | ||||
| } | ||||
|  | ||||
| func (m *SnapshotCommit) Reset()      { *m = SnapshotCommit{} } | ||||
| func (*SnapshotCommit) ProtoMessage() {} | ||||
| func (*SnapshotCommit) Descriptor() ([]byte, []int) { | ||||
| 	return fileDescriptor_bd6c184d3d9aa5f2, []int{1} | ||||
| } | ||||
| func (m *SnapshotCommit) XXX_Unmarshal(b []byte) error { | ||||
| 	return m.Unmarshal(b) | ||||
| } | ||||
| func (m *SnapshotCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { | ||||
| 	if deterministic { | ||||
| 		return xxx_messageInfo_SnapshotCommit.Marshal(b, m, deterministic) | ||||
| 	} else { | ||||
| 		b = b[:cap(b)] | ||||
| 		n, err := m.MarshalToSizedBuffer(b) | ||||
| 		if err != nil { | ||||
| 			return nil, err | ||||
| 		} | ||||
| 		return b[:n], nil | ||||
| 	} | ||||
| } | ||||
| func (m *SnapshotCommit) XXX_Merge(src proto.Message) { | ||||
| 	xxx_messageInfo_SnapshotCommit.Merge(m, src) | ||||
| } | ||||
| func (m *SnapshotCommit) XXX_Size() int { | ||||
| 	return m.Size() | ||||
| } | ||||
| func (m *SnapshotCommit) XXX_DiscardUnknown() { | ||||
| 	xxx_messageInfo_SnapshotCommit.DiscardUnknown(m) | ||||
| } | ||||
|  | ||||
| var xxx_messageInfo_SnapshotCommit proto.InternalMessageInfo | ||||
|  | ||||
| type SnapshotRemove struct { | ||||
| 	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` | ||||
| 	XXX_NoUnkeyedLiteral struct{} `json:"-"` | ||||
| 	XXX_unrecognized     []byte   `json:"-"` | ||||
| 	XXX_sizecache        int32    `json:"-"` | ||||
| } | ||||
|  | ||||
| func (m *SnapshotRemove) Reset()      { *m = SnapshotRemove{} } | ||||
| func (*SnapshotRemove) ProtoMessage() {} | ||||
| func (*SnapshotRemove) Descriptor() ([]byte, []int) { | ||||
| 	return fileDescriptor_bd6c184d3d9aa5f2, []int{2} | ||||
| } | ||||
| func (m *SnapshotRemove) XXX_Unmarshal(b []byte) error { | ||||
| 	return m.Unmarshal(b) | ||||
| } | ||||
| func (m *SnapshotRemove) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { | ||||
| 	if deterministic { | ||||
| 		return xxx_messageInfo_SnapshotRemove.Marshal(b, m, deterministic) | ||||
| 	} else { | ||||
| 		b = b[:cap(b)] | ||||
| 		n, err := m.MarshalToSizedBuffer(b) | ||||
| 		if err != nil { | ||||
| 			return nil, err | ||||
| 		} | ||||
| 		return b[:n], nil | ||||
| 	} | ||||
| } | ||||
| func (m *SnapshotRemove) XXX_Merge(src proto.Message) { | ||||
| 	xxx_messageInfo_SnapshotRemove.Merge(m, src) | ||||
| } | ||||
| func (m *SnapshotRemove) XXX_Size() int { | ||||
| 	return m.Size() | ||||
| } | ||||
| func (m *SnapshotRemove) XXX_DiscardUnknown() { | ||||
| 	xxx_messageInfo_SnapshotRemove.DiscardUnknown(m) | ||||
| } | ||||
|  | ||||
| var xxx_messageInfo_SnapshotRemove proto.InternalMessageInfo | ||||
|  | ||||
| func init() { | ||||
| 	proto.RegisterType((*SnapshotPrepare)(nil), "containerd.events.SnapshotPrepare") | ||||
| 	proto.RegisterType((*SnapshotCommit)(nil), "containerd.events.SnapshotCommit") | ||||
| 	proto.RegisterType((*SnapshotRemove)(nil), "containerd.events.SnapshotRemove") | ||||
| } | ||||
|  | ||||
| func init() { | ||||
| 	proto.RegisterFile("github.com/containerd/containerd/api/events/snapshot.proto", fileDescriptor_bd6c184d3d9aa5f2) | ||||
| } | ||||
|  | ||||
| var fileDescriptor_bd6c184d3d9aa5f2 = []byte{ | ||||
| 	// 235 bytes of a gzipped FileDescriptorProto | ||||
| 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xb2, 0x4a, 0xcf, 0x2c, 0xc9, | ||||
| 	0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xce, 0xcf, 0x2b, 0x49, 0xcc, 0xcc, 0x4b, 0x2d, | ||||
| 	0x4a, 0x41, 0x66, 0x26, 0x16, 0x64, 0xea, 0xa7, 0x96, 0xa5, 0xe6, 0x95, 0x14, 0xeb, 0x17, 0xe7, | ||||
| 	0x25, 0x16, 0x14, 0x67, 0xe4, 0x97, 0xe8, 0x15, 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0x09, 0x22, 0x54, | ||||
| 	0xe9, 0x41, 0x54, 0x48, 0x39, 0x10, 0x34, 0x0e, 0xac, 0x35, 0xa9, 0x34, 0x4d, 0xbf, 0x20, 0xa7, | ||||
| 	0x34, 0x3d, 0x33, 0x4f, 0x3f, 0x2d, 0x33, 0x35, 0x27, 0xa5, 0x20, 0xb1, 0x24, 0x03, 0x62, 0xa8, | ||||
| 	0x92, 0x35, 0x17, 0x7f, 0x30, 0xd4, 0x9a, 0x80, 0xa2, 0xd4, 0x82, 0xc4, 0xa2, 0x54, 0x21, 0x01, | ||||
| 	0x2e, 0xe6, 0xec, 0xd4, 0x4a, 0x09, 0x46, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x10, 0x53, 0x48, 0x8c, | ||||
| 	0x8b, 0x0d, 0x24, 0x93, 0x57, 0x22, 0xc1, 0x04, 0x16, 0x84, 0xf2, 0x94, 0xcc, 0xb8, 0xf8, 0x60, | ||||
| 	0x9a, 0x9d, 0xf3, 0x73, 0x73, 0x33, 0x4b, 0xb0, 0xe8, 0x15, 0xe2, 0x62, 0xc9, 0x4b, 0xcc, 0x4d, | ||||
| 	0x85, 0xea, 0x04, 0xb3, 0x95, 0x94, 0x10, 0xfa, 0x82, 0x52, 0x73, 0xf3, 0xcb, 0xb0, 0xd8, 0xe9, | ||||
| 	0x14, 0x70, 0xe2, 0xa1, 0x1c, 0xc3, 0x8d, 0x87, 0x72, 0x0c, 0x0d, 0x8f, 0xe4, 0x18, 0x4f, 0x3c, | ||||
| 	0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x05, 0x5f, 0xe4, 0x18, 0xa3, | ||||
| 	0x8c, 0x48, 0x08, 0x47, 0x6b, 0x08, 0x15, 0xc1, 0x90, 0xc4, 0x06, 0xf6, 0xb3, 0x31, 0x20, 0x00, | ||||
| 	0x00, 0xff, 0xff, 0x69, 0x66, 0xa9, 0x2a, 0x86, 0x01, 0x00, 0x00, | ||||
| } | ||||
|  | ||||
| // Field returns the value for the given fieldpath as a string, if defined. | ||||
| // If the value is not defined, the second value will be false. | ||||
| func (m *SnapshotPrepare) Field(fieldpath []string) (string, bool) { | ||||
| 	if len(fieldpath) == 0 { | ||||
| 		return "", false | ||||
| 	} | ||||
|  | ||||
| 	switch fieldpath[0] { | ||||
| 	case "key": | ||||
| 		return string(m.Key), len(m.Key) > 0 | ||||
| 	case "parent": | ||||
| 		return string(m.Parent), len(m.Parent) > 0 | ||||
| 	} | ||||
| 	return "", false | ||||
| } | ||||
|  | ||||
| // Field returns the value for the given fieldpath as a string, if defined. | ||||
| // If the value is not defined, the second value will be false. | ||||
| func (m *SnapshotCommit) Field(fieldpath []string) (string, bool) { | ||||
| 	if len(fieldpath) == 0 { | ||||
| 		return "", false | ||||
| 	} | ||||
|  | ||||
| 	switch fieldpath[0] { | ||||
| 	case "key": | ||||
| 		return string(m.Key), len(m.Key) > 0 | ||||
| 	case "name": | ||||
| 		return string(m.Name), len(m.Name) > 0 | ||||
| 	} | ||||
| 	return "", false | ||||
| } | ||||
|  | ||||
| // Field returns the value for the given fieldpath as a string, if defined. | ||||
| // If the value is not defined, the second value will be false. | ||||
| func (m *SnapshotRemove) Field(fieldpath []string) (string, bool) { | ||||
| 	if len(fieldpath) == 0 { | ||||
| 		return "", false | ||||
| 	} | ||||
|  | ||||
| 	switch fieldpath[0] { | ||||
| 	case "key": | ||||
| 		return string(m.Key), len(m.Key) > 0 | ||||
| 	} | ||||
| 	return "", false | ||||
| } | ||||
| func (m *SnapshotPrepare) Marshal() (dAtA []byte, err error) { | ||||
| 	size := m.Size() | ||||
| 	dAtA = make([]byte, size) | ||||
| 	n, err := m.MarshalToSizedBuffer(dAtA[:size]) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return dAtA[:n], nil | ||||
| } | ||||
|  | ||||
| func (m *SnapshotPrepare) MarshalTo(dAtA []byte) (int, error) { | ||||
| 	size := m.Size() | ||||
| 	return m.MarshalToSizedBuffer(dAtA[:size]) | ||||
| } | ||||
|  | ||||
| func (m *SnapshotPrepare) MarshalToSizedBuffer(dAtA []byte) (int, error) { | ||||
| 	i := len(dAtA) | ||||
| 	_ = i | ||||
| 	var l int | ||||
| 	_ = l | ||||
| 	if m.XXX_unrecognized != nil { | ||||
| 		i -= len(m.XXX_unrecognized) | ||||
| 		copy(dAtA[i:], m.XXX_unrecognized) | ||||
| 	} | ||||
| 	if len(m.Parent) > 0 { | ||||
| 		i -= len(m.Parent) | ||||
| 		copy(dAtA[i:], m.Parent) | ||||
| 		i = encodeVarintSnapshot(dAtA, i, uint64(len(m.Parent))) | ||||
| 		i-- | ||||
| 		dAtA[i] = 0x12 | ||||
| 	} | ||||
| 	if len(m.Key) > 0 { | ||||
| 		i -= len(m.Key) | ||||
| 		copy(dAtA[i:], m.Key) | ||||
| 		i = encodeVarintSnapshot(dAtA, i, uint64(len(m.Key))) | ||||
| 		i-- | ||||
| 		dAtA[i] = 0xa | ||||
| 	} | ||||
| 	return len(dAtA) - i, nil | ||||
| } | ||||
|  | ||||
| func (m *SnapshotCommit) Marshal() (dAtA []byte, err error) { | ||||
| 	size := m.Size() | ||||
| 	dAtA = make([]byte, size) | ||||
| 	n, err := m.MarshalToSizedBuffer(dAtA[:size]) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return dAtA[:n], nil | ||||
| } | ||||
|  | ||||
| func (m *SnapshotCommit) MarshalTo(dAtA []byte) (int, error) { | ||||
| 	size := m.Size() | ||||
| 	return m.MarshalToSizedBuffer(dAtA[:size]) | ||||
| } | ||||
|  | ||||
| func (m *SnapshotCommit) MarshalToSizedBuffer(dAtA []byte) (int, error) { | ||||
| 	i := len(dAtA) | ||||
| 	_ = i | ||||
| 	var l int | ||||
| 	_ = l | ||||
| 	if m.XXX_unrecognized != nil { | ||||
| 		i -= len(m.XXX_unrecognized) | ||||
| 		copy(dAtA[i:], m.XXX_unrecognized) | ||||
| 	} | ||||
| 	if len(m.Name) > 0 { | ||||
| 		i -= len(m.Name) | ||||
| 		copy(dAtA[i:], m.Name) | ||||
| 		i = encodeVarintSnapshot(dAtA, i, uint64(len(m.Name))) | ||||
| 		i-- | ||||
| 		dAtA[i] = 0x12 | ||||
| 	} | ||||
| 	if len(m.Key) > 0 { | ||||
| 		i -= len(m.Key) | ||||
| 		copy(dAtA[i:], m.Key) | ||||
| 		i = encodeVarintSnapshot(dAtA, i, uint64(len(m.Key))) | ||||
| 		i-- | ||||
| 		dAtA[i] = 0xa | ||||
| 	} | ||||
| 	return len(dAtA) - i, nil | ||||
| } | ||||
|  | ||||
| func (m *SnapshotRemove) Marshal() (dAtA []byte, err error) { | ||||
| 	size := m.Size() | ||||
| 	dAtA = make([]byte, size) | ||||
| 	n, err := m.MarshalToSizedBuffer(dAtA[:size]) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return dAtA[:n], nil | ||||
| } | ||||
|  | ||||
| func (m *SnapshotRemove) MarshalTo(dAtA []byte) (int, error) { | ||||
| 	size := m.Size() | ||||
| 	return m.MarshalToSizedBuffer(dAtA[:size]) | ||||
| } | ||||
|  | ||||
| func (m *SnapshotRemove) MarshalToSizedBuffer(dAtA []byte) (int, error) { | ||||
| 	i := len(dAtA) | ||||
| 	_ = i | ||||
| 	var l int | ||||
| 	_ = l | ||||
| 	if m.XXX_unrecognized != nil { | ||||
| 		i -= len(m.XXX_unrecognized) | ||||
| 		copy(dAtA[i:], m.XXX_unrecognized) | ||||
| 	} | ||||
| 	if len(m.Key) > 0 { | ||||
| 		i -= len(m.Key) | ||||
| 		copy(dAtA[i:], m.Key) | ||||
| 		i = encodeVarintSnapshot(dAtA, i, uint64(len(m.Key))) | ||||
| 		i-- | ||||
| 		dAtA[i] = 0xa | ||||
| 	} | ||||
| 	return len(dAtA) - i, nil | ||||
| } | ||||
|  | ||||
| func encodeVarintSnapshot(dAtA []byte, offset int, v uint64) int { | ||||
| 	offset -= sovSnapshot(v) | ||||
| 	base := offset | ||||
| 	for v >= 1<<7 { | ||||
| 		dAtA[offset] = uint8(v&0x7f | 0x80) | ||||
| 		v >>= 7 | ||||
| 		offset++ | ||||
| 	} | ||||
| 	dAtA[offset] = uint8(v) | ||||
| 	return base | ||||
| } | ||||
| func (m *SnapshotPrepare) Size() (n int) { | ||||
| 	if m == nil { | ||||
| 		return 0 | ||||
| 	} | ||||
| 	var l int | ||||
| 	_ = l | ||||
| 	l = len(m.Key) | ||||
| 	if l > 0 { | ||||
| 		n += 1 + l + sovSnapshot(uint64(l)) | ||||
| 	} | ||||
| 	l = len(m.Parent) | ||||
| 	if l > 0 { | ||||
| 		n += 1 + l + sovSnapshot(uint64(l)) | ||||
| 	} | ||||
| 	if m.XXX_unrecognized != nil { | ||||
| 		n += len(m.XXX_unrecognized) | ||||
| 	} | ||||
| 	return n | ||||
| } | ||||
|  | ||||
| func (m *SnapshotCommit) Size() (n int) { | ||||
| 	if m == nil { | ||||
| 		return 0 | ||||
| 	} | ||||
| 	var l int | ||||
| 	_ = l | ||||
| 	l = len(m.Key) | ||||
| 	if l > 0 { | ||||
| 		n += 1 + l + sovSnapshot(uint64(l)) | ||||
| 	} | ||||
| 	l = len(m.Name) | ||||
| 	if l > 0 { | ||||
| 		n += 1 + l + sovSnapshot(uint64(l)) | ||||
| 	} | ||||
| 	if m.XXX_unrecognized != nil { | ||||
| 		n += len(m.XXX_unrecognized) | ||||
| 	} | ||||
| 	return n | ||||
| } | ||||
|  | ||||
| func (m *SnapshotRemove) Size() (n int) { | ||||
| 	if m == nil { | ||||
| 		return 0 | ||||
| 	} | ||||
| 	var l int | ||||
| 	_ = l | ||||
| 	l = len(m.Key) | ||||
| 	if l > 0 { | ||||
| 		n += 1 + l + sovSnapshot(uint64(l)) | ||||
| 	} | ||||
| 	if m.XXX_unrecognized != nil { | ||||
| 		n += len(m.XXX_unrecognized) | ||||
| 	} | ||||
| 	return n | ||||
| } | ||||
|  | ||||
| func sovSnapshot(x uint64) (n int) { | ||||
| 	return (math_bits.Len64(x|1) + 6) / 7 | ||||
| } | ||||
| func sozSnapshot(x uint64) (n int) { | ||||
| 	return sovSnapshot(uint64((x << 1) ^ uint64((int64(x) >> 63)))) | ||||
| } | ||||
| func (this *SnapshotPrepare) String() string { | ||||
| 	if this == nil { | ||||
| 		return "nil" | ||||
| 	} | ||||
| 	s := strings.Join([]string{`&SnapshotPrepare{`, | ||||
| 		`Key:` + fmt.Sprintf("%v", this.Key) + `,`, | ||||
| 		`Parent:` + fmt.Sprintf("%v", this.Parent) + `,`, | ||||
| 		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, | ||||
| 		`}`, | ||||
| 	}, "") | ||||
| 	return s | ||||
| } | ||||
| func (this *SnapshotCommit) String() string { | ||||
| 	if this == nil { | ||||
| 		return "nil" | ||||
| 	} | ||||
| 	s := strings.Join([]string{`&SnapshotCommit{`, | ||||
| 		`Key:` + fmt.Sprintf("%v", this.Key) + `,`, | ||||
| 		`Name:` + fmt.Sprintf("%v", this.Name) + `,`, | ||||
| 		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, | ||||
| 		`}`, | ||||
| 	}, "") | ||||
| 	return s | ||||
| } | ||||
| func (this *SnapshotRemove) String() string { | ||||
| 	if this == nil { | ||||
| 		return "nil" | ||||
| 	} | ||||
| 	s := strings.Join([]string{`&SnapshotRemove{`, | ||||
| 		`Key:` + fmt.Sprintf("%v", this.Key) + `,`, | ||||
| 		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, | ||||
| 		`}`, | ||||
| 	}, "") | ||||
| 	return s | ||||
| } | ||||
| func valueToStringSnapshot(v interface{}) string { | ||||
| 	rv := reflect.ValueOf(v) | ||||
| 	if rv.IsNil() { | ||||
| 		return "nil" | ||||
| 	} | ||||
| 	pv := reflect.Indirect(rv).Interface() | ||||
| 	return fmt.Sprintf("*%v", pv) | ||||
| } | ||||
| func (m *SnapshotPrepare) Unmarshal(dAtA []byte) error { | ||||
| 	l := len(dAtA) | ||||
| 	iNdEx := 0 | ||||
| 	for iNdEx < l { | ||||
| 		preIndex := iNdEx | ||||
| 		var wire uint64 | ||||
| 		for shift := uint(0); ; shift += 7 { | ||||
| 			if shift >= 64 { | ||||
| 				return ErrIntOverflowSnapshot | ||||
| 			} | ||||
| 			if iNdEx >= l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			b := dAtA[iNdEx] | ||||
| 			iNdEx++ | ||||
| 			wire |= uint64(b&0x7F) << shift | ||||
| 			if b < 0x80 { | ||||
| 				break | ||||
| 			} | ||||
| 		} | ||||
| 		fieldNum := int32(wire >> 3) | ||||
| 		wireType := int(wire & 0x7) | ||||
| 		if wireType == 4 { | ||||
| 			return fmt.Errorf("proto: SnapshotPrepare: wiretype end group for non-group") | ||||
| 		} | ||||
| 		if fieldNum <= 0 { | ||||
| 			return fmt.Errorf("proto: SnapshotPrepare: illegal tag %d (wire type %d)", fieldNum, wire) | ||||
| 		} | ||||
| 		switch fieldNum { | ||||
| 		case 1: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) | ||||
| 			} | ||||
| 			var stringLen uint64 | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowSnapshot | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				stringLen |= uint64(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			intStringLen := int(stringLen) | ||||
| 			if intStringLen < 0 { | ||||
| 				return ErrInvalidLengthSnapshot | ||||
| 			} | ||||
| 			postIndex := iNdEx + intStringLen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthSnapshot | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.Key = string(dAtA[iNdEx:postIndex]) | ||||
| 			iNdEx = postIndex | ||||
| 		case 2: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Parent", wireType) | ||||
| 			} | ||||
| 			var stringLen uint64 | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowSnapshot | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				stringLen |= uint64(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			intStringLen := int(stringLen) | ||||
| 			if intStringLen < 0 { | ||||
| 				return ErrInvalidLengthSnapshot | ||||
| 			} | ||||
| 			postIndex := iNdEx + intStringLen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthSnapshot | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.Parent = string(dAtA[iNdEx:postIndex]) | ||||
| 			iNdEx = postIndex | ||||
| 		default: | ||||
| 			iNdEx = preIndex | ||||
| 			skippy, err := skipSnapshot(dAtA[iNdEx:]) | ||||
| 			if err != nil { | ||||
| 				return err | ||||
| 			} | ||||
| 			if (skippy < 0) || (iNdEx+skippy) < 0 { | ||||
| 				return ErrInvalidLengthSnapshot | ||||
| 			} | ||||
| 			if (iNdEx + skippy) > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) | ||||
| 			iNdEx += skippy | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	if iNdEx > l { | ||||
| 		return io.ErrUnexpectedEOF | ||||
| 	} | ||||
| 	return nil | ||||
| } | ||||
| func (m *SnapshotCommit) Unmarshal(dAtA []byte) error { | ||||
| 	l := len(dAtA) | ||||
| 	iNdEx := 0 | ||||
| 	for iNdEx < l { | ||||
| 		preIndex := iNdEx | ||||
| 		var wire uint64 | ||||
| 		for shift := uint(0); ; shift += 7 { | ||||
| 			if shift >= 64 { | ||||
| 				return ErrIntOverflowSnapshot | ||||
| 			} | ||||
| 			if iNdEx >= l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			b := dAtA[iNdEx] | ||||
| 			iNdEx++ | ||||
| 			wire |= uint64(b&0x7F) << shift | ||||
| 			if b < 0x80 { | ||||
| 				break | ||||
| 			} | ||||
| 		} | ||||
| 		fieldNum := int32(wire >> 3) | ||||
| 		wireType := int(wire & 0x7) | ||||
| 		if wireType == 4 { | ||||
| 			return fmt.Errorf("proto: SnapshotCommit: wiretype end group for non-group") | ||||
| 		} | ||||
| 		if fieldNum <= 0 { | ||||
| 			return fmt.Errorf("proto: SnapshotCommit: illegal tag %d (wire type %d)", fieldNum, wire) | ||||
| 		} | ||||
| 		switch fieldNum { | ||||
| 		case 1: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) | ||||
| 			} | ||||
| 			var stringLen uint64 | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowSnapshot | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				stringLen |= uint64(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			intStringLen := int(stringLen) | ||||
| 			if intStringLen < 0 { | ||||
| 				return ErrInvalidLengthSnapshot | ||||
| 			} | ||||
| 			postIndex := iNdEx + intStringLen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthSnapshot | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.Key = string(dAtA[iNdEx:postIndex]) | ||||
| 			iNdEx = postIndex | ||||
| 		case 2: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) | ||||
| 			} | ||||
| 			var stringLen uint64 | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowSnapshot | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				stringLen |= uint64(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			intStringLen := int(stringLen) | ||||
| 			if intStringLen < 0 { | ||||
| 				return ErrInvalidLengthSnapshot | ||||
| 			} | ||||
| 			postIndex := iNdEx + intStringLen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthSnapshot | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.Name = string(dAtA[iNdEx:postIndex]) | ||||
| 			iNdEx = postIndex | ||||
| 		default: | ||||
| 			iNdEx = preIndex | ||||
| 			skippy, err := skipSnapshot(dAtA[iNdEx:]) | ||||
| 			if err != nil { | ||||
| 				return err | ||||
| 			} | ||||
| 			if (skippy < 0) || (iNdEx+skippy) < 0 { | ||||
| 				return ErrInvalidLengthSnapshot | ||||
| 			} | ||||
| 			if (iNdEx + skippy) > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) | ||||
| 			iNdEx += skippy | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	if iNdEx > l { | ||||
| 		return io.ErrUnexpectedEOF | ||||
| 	} | ||||
| 	return nil | ||||
| } | ||||
| func (m *SnapshotRemove) Unmarshal(dAtA []byte) error { | ||||
| 	l := len(dAtA) | ||||
| 	iNdEx := 0 | ||||
| 	for iNdEx < l { | ||||
| 		preIndex := iNdEx | ||||
| 		var wire uint64 | ||||
| 		for shift := uint(0); ; shift += 7 { | ||||
| 			if shift >= 64 { | ||||
| 				return ErrIntOverflowSnapshot | ||||
| 			} | ||||
| 			if iNdEx >= l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			b := dAtA[iNdEx] | ||||
| 			iNdEx++ | ||||
| 			wire |= uint64(b&0x7F) << shift | ||||
| 			if b < 0x80 { | ||||
| 				break | ||||
| 			} | ||||
| 		} | ||||
| 		fieldNum := int32(wire >> 3) | ||||
| 		wireType := int(wire & 0x7) | ||||
| 		if wireType == 4 { | ||||
| 			return fmt.Errorf("proto: SnapshotRemove: wiretype end group for non-group") | ||||
| 		} | ||||
| 		if fieldNum <= 0 { | ||||
| 			return fmt.Errorf("proto: SnapshotRemove: illegal tag %d (wire type %d)", fieldNum, wire) | ||||
| 		} | ||||
| 		switch fieldNum { | ||||
| 		case 1: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) | ||||
| 			} | ||||
| 			var stringLen uint64 | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowSnapshot | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				stringLen |= uint64(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			intStringLen := int(stringLen) | ||||
| 			if intStringLen < 0 { | ||||
| 				return ErrInvalidLengthSnapshot | ||||
| 			} | ||||
| 			postIndex := iNdEx + intStringLen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthSnapshot | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.Key = string(dAtA[iNdEx:postIndex]) | ||||
| 			iNdEx = postIndex | ||||
| 		default: | ||||
| 			iNdEx = preIndex | ||||
| 			skippy, err := skipSnapshot(dAtA[iNdEx:]) | ||||
| 			if err != nil { | ||||
| 				return err | ||||
| 			} | ||||
| 			if (skippy < 0) || (iNdEx+skippy) < 0 { | ||||
| 				return ErrInvalidLengthSnapshot | ||||
| 			} | ||||
| 			if (iNdEx + skippy) > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) | ||||
| 			iNdEx += skippy | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	if iNdEx > l { | ||||
| 		return io.ErrUnexpectedEOF | ||||
| 	} | ||||
| 	return nil | ||||
| } | ||||
| func skipSnapshot(dAtA []byte) (n int, err error) { | ||||
| 	l := len(dAtA) | ||||
| 	iNdEx := 0 | ||||
| 	depth := 0 | ||||
| 	for iNdEx < l { | ||||
| 		var wire uint64 | ||||
| 		for shift := uint(0); ; shift += 7 { | ||||
| 			if shift >= 64 { | ||||
| 				return 0, ErrIntOverflowSnapshot | ||||
| 			} | ||||
| 			if iNdEx >= l { | ||||
| 				return 0, io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			b := dAtA[iNdEx] | ||||
| 			iNdEx++ | ||||
| 			wire |= (uint64(b) & 0x7F) << shift | ||||
| 			if b < 0x80 { | ||||
| 				break | ||||
| 			} | ||||
| 		} | ||||
| 		wireType := int(wire & 0x7) | ||||
| 		switch wireType { | ||||
| 		case 0: | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return 0, ErrIntOverflowSnapshot | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return 0, io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				iNdEx++ | ||||
| 				if dAtA[iNdEx-1] < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 		case 1: | ||||
| 			iNdEx += 8 | ||||
| 		case 2: | ||||
| 			var length int | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return 0, ErrIntOverflowSnapshot | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return 0, io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				length |= (int(b) & 0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			if length < 0 { | ||||
| 				return 0, ErrInvalidLengthSnapshot | ||||
| 			} | ||||
| 			iNdEx += length | ||||
| 		case 3: | ||||
| 			depth++ | ||||
| 		case 4: | ||||
| 			if depth == 0 { | ||||
| 				return 0, ErrUnexpectedEndOfGroupSnapshot | ||||
| 			} | ||||
| 			depth-- | ||||
| 		case 5: | ||||
| 			iNdEx += 4 | ||||
| 		default: | ||||
| 			return 0, fmt.Errorf("proto: illegal wireType %d", wireType) | ||||
| 		} | ||||
| 		if iNdEx < 0 { | ||||
| 			return 0, ErrInvalidLengthSnapshot | ||||
| 		} | ||||
| 		if depth == 0 { | ||||
| 			return iNdEx, nil | ||||
| 		} | ||||
| 	} | ||||
| 	return 0, io.ErrUnexpectedEOF | ||||
| } | ||||
|  | ||||
| var ( | ||||
| 	ErrInvalidLengthSnapshot        = fmt.Errorf("proto: negative length found during unmarshaling") | ||||
| 	ErrIntOverflowSnapshot          = fmt.Errorf("proto: integer overflow") | ||||
| 	ErrUnexpectedEndOfGroupSnapshot = fmt.Errorf("proto: unexpected end of group") | ||||
| ) | ||||
							
								
								
									
										38
									
								
								vendor/github.com/containerd/containerd/api/events/snapshot.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										38
									
								
								vendor/github.com/containerd/containerd/api/events/snapshot.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,38 +0,0 @@ | ||||
| /* | ||||
| 	Copyright The containerd Authors. | ||||
|  | ||||
| 	Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| 	you may not use this file except in compliance with the License. | ||||
| 	You may obtain a copy of the License at | ||||
|  | ||||
| 		http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
| 	Unless required by applicable law or agreed to in writing, software | ||||
| 	distributed under the License is distributed on an "AS IS" BASIS, | ||||
| 	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| 	See the License for the specific language governing permissions and | ||||
| 	limitations under the License. | ||||
| */ | ||||
|  | ||||
| syntax = "proto3"; | ||||
|  | ||||
| package containerd.events; | ||||
|  | ||||
| import weak "github.com/containerd/containerd/protobuf/plugin/fieldpath.proto"; | ||||
|  | ||||
| option go_package = "github.com/containerd/containerd/api/events;events"; | ||||
| option (containerd.plugin.fieldpath_all) = true; | ||||
|  | ||||
| message SnapshotPrepare { | ||||
| 	string key = 1; | ||||
| 	string parent = 2; | ||||
| } | ||||
|  | ||||
| message SnapshotCommit { | ||||
| 	string key = 1; | ||||
| 	string name = 2; | ||||
| } | ||||
|  | ||||
| message SnapshotRemove { | ||||
| 	string key = 1; | ||||
| } | ||||
							
								
								
									
										3261
									
								
								vendor/github.com/containerd/containerd/api/events/task.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										3261
									
								
								vendor/github.com/containerd/containerd/api/events/task.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										94
									
								
								vendor/github.com/containerd/containerd/api/events/task.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										94
									
								
								vendor/github.com/containerd/containerd/api/events/task.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,94 +0,0 @@ | ||||
| /* | ||||
| 	Copyright The containerd Authors. | ||||
|  | ||||
| 	Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| 	you may not use this file except in compliance with the License. | ||||
| 	You may obtain a copy of the License at | ||||
|  | ||||
| 		http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
| 	Unless required by applicable law or agreed to in writing, software | ||||
| 	distributed under the License is distributed on an "AS IS" BASIS, | ||||
| 	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| 	See the License for the specific language governing permissions and | ||||
| 	limitations under the License. | ||||
| */ | ||||
|  | ||||
| syntax = "proto3"; | ||||
|  | ||||
| package containerd.events; | ||||
|  | ||||
| import weak "gogoproto/gogo.proto"; | ||||
| import "google/protobuf/timestamp.proto"; | ||||
| import "github.com/containerd/containerd/api/types/mount.proto"; | ||||
| import weak "github.com/containerd/containerd/protobuf/plugin/fieldpath.proto"; | ||||
|  | ||||
| option go_package = "github.com/containerd/containerd/api/events;events"; | ||||
| option (containerd.plugin.fieldpath_all) = true; | ||||
|  | ||||
| message TaskCreate { | ||||
| 	string container_id = 1; | ||||
| 	string bundle = 2; | ||||
| 	repeated containerd.types.Mount rootfs = 3; | ||||
| 	TaskIO io = 4 [(gogoproto.customname) = "IO"]; | ||||
| 	string checkpoint = 5; | ||||
| 	uint32 pid = 6; | ||||
| } | ||||
|  | ||||
| message TaskStart { | ||||
| 	string container_id = 1; | ||||
| 	uint32 pid = 2; | ||||
| } | ||||
|  | ||||
| message TaskDelete { | ||||
| 	string container_id = 1; | ||||
| 	uint32 pid = 2; | ||||
| 	uint32 exit_status = 3; | ||||
| 	google.protobuf.Timestamp exited_at = 4 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false]; | ||||
| 	// id is the specific exec. By default if omitted will be `""` thus matches | ||||
| 	// the init exec of the task matching `container_id`. | ||||
| 	string id = 5; | ||||
| } | ||||
|  | ||||
| message TaskIO { | ||||
| 	string stdin = 1; | ||||
| 	string stdout = 2; | ||||
| 	string stderr = 3; | ||||
| 	bool terminal = 4; | ||||
| } | ||||
|  | ||||
| message TaskExit { | ||||
| 	string container_id = 1; | ||||
| 	string id = 2; | ||||
| 	uint32 pid = 3; | ||||
| 	uint32 exit_status = 4; | ||||
| 	google.protobuf.Timestamp exited_at = 5 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| message TaskOOM { | ||||
| 	string container_id = 1; | ||||
| } | ||||
|  | ||||
| message TaskExecAdded { | ||||
| 	string container_id = 1; | ||||
| 	string exec_id = 2; | ||||
| } | ||||
|  | ||||
| message TaskExecStarted { | ||||
| 	string container_id = 1; | ||||
| 	string exec_id = 2; | ||||
| 	uint32 pid = 3; | ||||
| } | ||||
|  | ||||
| message TaskPaused { | ||||
| 	string container_id = 1; | ||||
| } | ||||
|  | ||||
| message TaskResumed { | ||||
| 	string container_id = 1; | ||||
| } | ||||
|  | ||||
| message TaskCheckpointed { | ||||
| 	string container_id = 1; | ||||
| 	string checkpoint = 2; | ||||
| } | ||||
							
								
								
									
										3584
									
								
								vendor/github.com/containerd/containerd/api/services/containers/v1/containers.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										3584
									
								
								vendor/github.com/containerd/containerd/api/services/containers/v1/containers.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										179
									
								
								vendor/github.com/containerd/containerd/api/services/containers/v1/containers.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										179
									
								
								vendor/github.com/containerd/containerd/api/services/containers/v1/containers.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,179 +0,0 @@ | ||||
| /* | ||||
| 	Copyright The containerd Authors. | ||||
|  | ||||
| 	Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| 	you may not use this file except in compliance with the License. | ||||
| 	You may obtain a copy of the License at | ||||
|  | ||||
| 		http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
| 	Unless required by applicable law or agreed to in writing, software | ||||
| 	distributed under the License is distributed on an "AS IS" BASIS, | ||||
| 	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| 	See the License for the specific language governing permissions and | ||||
| 	limitations under the License. | ||||
| */ | ||||
|  | ||||
| syntax = "proto3"; | ||||
|  | ||||
| package containerd.services.containers.v1; | ||||
|  | ||||
| import weak "gogoproto/gogo.proto"; | ||||
| import "google/protobuf/any.proto"; | ||||
| import "google/protobuf/empty.proto"; | ||||
| import "google/protobuf/field_mask.proto"; | ||||
| import "google/protobuf/timestamp.proto"; | ||||
|  | ||||
| option go_package = "github.com/containerd/containerd/api/services/containers/v1;containers"; | ||||
|  | ||||
| // Containers provides metadata storage for containers used in the execution | ||||
| // service. | ||||
| // | ||||
| // The objects here provide an state-independent view of containers for use in | ||||
| // management and resource pinning. From that perspective, containers do not | ||||
| // have a "state" but rather this is the set of resources that will be | ||||
| // considered in use by the container. | ||||
| // | ||||
| // From the perspective of the execution service, these objects represent the | ||||
| // base parameters for creating a container process. | ||||
| // | ||||
| // In general, when looking to add fields for this type, first ask yourself | ||||
| // whether or not the function of the field has to do with runtime execution or | ||||
| // is invariant of the runtime state of the container. If it has to do with | ||||
| // runtime, or changes as the "container" is started and stops, it probably | ||||
| // doesn't belong on this object. | ||||
| service Containers { | ||||
| 	rpc Get(GetContainerRequest) returns (GetContainerResponse); | ||||
| 	rpc List(ListContainersRequest) returns (ListContainersResponse); | ||||
| 	rpc ListStream(ListContainersRequest) returns (stream ListContainerMessage); | ||||
| 	rpc Create(CreateContainerRequest) returns (CreateContainerResponse); | ||||
| 	rpc Update(UpdateContainerRequest) returns (UpdateContainerResponse); | ||||
| 	rpc Delete(DeleteContainerRequest) returns (google.protobuf.Empty); | ||||
| } | ||||
|  | ||||
| message Container { | ||||
| 	// ID is the user-specified identifier. | ||||
| 	// | ||||
| 	// This field may not be updated. | ||||
| 	string id = 1; | ||||
|  | ||||
| 	// Labels provides an area to include arbitrary data on containers. | ||||
| 	// | ||||
| 	// The combined size of a key/value pair cannot exceed 4096 bytes. | ||||
| 	// | ||||
| 	// Note that to add a new value to this field, read the existing set and | ||||
| 	// include the entire result in the update call. | ||||
| 	map<string, string> labels  = 2; | ||||
|  | ||||
| 	// Image contains the reference of the image used to build the | ||||
| 	// specification and snapshots for running this container. | ||||
| 	// | ||||
| 	// If this field is updated, the spec and rootfs needed to updated, as well. | ||||
| 	string image = 3; | ||||
|  | ||||
| 	message Runtime { | ||||
| 		// Name is the name of the runtime. | ||||
| 		string name = 1; | ||||
| 		// Options specify additional runtime initialization options. | ||||
| 		google.protobuf.Any options = 2; | ||||
| 	} | ||||
| 	// Runtime specifies which runtime to use for executing this container. | ||||
| 	Runtime runtime = 4; | ||||
|  | ||||
| 	// Spec to be used when creating the container. This is runtime specific. | ||||
| 	google.protobuf.Any spec = 5; | ||||
|  | ||||
| 	// Snapshotter specifies the snapshotter name used for rootfs | ||||
| 	string snapshotter = 6; | ||||
|  | ||||
| 	// SnapshotKey specifies the snapshot key to use for the container's root | ||||
| 	// filesystem. When starting a task from this container, a caller should | ||||
| 	// look up the mounts from the snapshot service and include those on the | ||||
| 	// task create request. | ||||
| 	// | ||||
| 	// Snapshots referenced in this field will not be garbage collected. | ||||
| 	// | ||||
| 	// This field is set to empty when the rootfs is not a snapshot. | ||||
| 	// | ||||
| 	// This field may be updated. | ||||
| 	string snapshot_key = 7; | ||||
|  | ||||
| 	// CreatedAt is the time the container was first created. | ||||
| 	google.protobuf.Timestamp created_at = 8 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false]; | ||||
|  | ||||
| 	// UpdatedAt is the last time the container was mutated. | ||||
| 	google.protobuf.Timestamp updated_at = 9 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false]; | ||||
|  | ||||
| 	// Extensions allow clients to provide zero or more blobs that are directly | ||||
| 	// associated with the container. One may provide protobuf, json, or other | ||||
| 	// encoding formats. The primary use of this is to further decorate the | ||||
| 	// container object with fields that may be specific to a client integration. | ||||
| 	// | ||||
| 	// The key portion of this map should identify a "name" for the extension | ||||
| 	// that should be unique against other extensions. When updating extension | ||||
| 	// data, one should only update the specified extension using field paths | ||||
| 	// to select a specific map key. | ||||
| 	map<string, google.protobuf.Any> extensions = 10 [(gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| message GetContainerRequest { | ||||
| 	string id = 1; | ||||
| } | ||||
|  | ||||
| message GetContainerResponse { | ||||
| 	Container container = 1 [(gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| message ListContainersRequest { | ||||
| 	// Filters contains one or more filters using the syntax defined in the | ||||
| 	// containerd filter package. | ||||
| 	// | ||||
| 	// The returned result will be those that match any of the provided | ||||
| 	// filters. Expanded, containers that match the following will be | ||||
| 	// returned: | ||||
| 	// | ||||
| 	//   filters[0] or filters[1] or ... or filters[n-1] or filters[n] | ||||
| 	// | ||||
| 	// If filters is zero-length or nil, all items will be returned. | ||||
| 	repeated string filters = 1; | ||||
| } | ||||
|  | ||||
| message ListContainersResponse { | ||||
| 	repeated Container containers = 1 [(gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| message CreateContainerRequest { | ||||
| 	Container container = 1 [(gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| message CreateContainerResponse { | ||||
| 	Container container = 1 [(gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| // UpdateContainerRequest updates the metadata on one or more container. | ||||
| // | ||||
| // The operation should follow semantics described in | ||||
| // https://developers.google.com/protocol-buffers/docs/reference/csharp/class/google/protobuf/well-known-types/field-mask, | ||||
| // unless otherwise qualified. | ||||
| message UpdateContainerRequest { | ||||
| 	// Container provides the target values, as declared by the mask, for the update. | ||||
| 	// | ||||
| 	// The ID field must be set. | ||||
| 	Container container = 1 [(gogoproto.nullable) = false]; | ||||
|  | ||||
| 	// UpdateMask specifies which fields to perform the update on. If empty, | ||||
| 	// the operation applies to all fields. | ||||
| 	google.protobuf.FieldMask update_mask = 2; | ||||
| } | ||||
|  | ||||
| message UpdateContainerResponse { | ||||
| 	Container container = 1 [(gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| message DeleteContainerRequest { | ||||
| 	string id = 1; | ||||
| } | ||||
|  | ||||
| message ListContainerMessage { | ||||
| 	Container container = 1; | ||||
| } | ||||
							
								
								
									
										17
									
								
								vendor/github.com/containerd/containerd/api/services/containers/v1/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								vendor/github.com/containerd/containerd/api/services/containers/v1/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,17 +0,0 @@ | ||||
| /* | ||||
|    Copyright The containerd Authors. | ||||
|  | ||||
|    Licensed under the Apache License, Version 2.0 (the "License"); | ||||
|    you may not use this file except in compliance with the License. | ||||
|    You may obtain a copy of the License at | ||||
|  | ||||
|        http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
|    Unless required by applicable law or agreed to in writing, software | ||||
|    distributed under the License is distributed on an "AS IS" BASIS, | ||||
|    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
|    See the License for the specific language governing permissions and | ||||
|    limitations under the License. | ||||
| */ | ||||
|  | ||||
| package containers | ||||
							
								
								
									
										5425
									
								
								vendor/github.com/containerd/containerd/api/services/content/v1/content.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										5425
									
								
								vendor/github.com/containerd/containerd/api/services/content/v1/content.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										334
									
								
								vendor/github.com/containerd/containerd/api/services/content/v1/content.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										334
									
								
								vendor/github.com/containerd/containerd/api/services/content/v1/content.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,334 +0,0 @@ | ||||
| /* | ||||
| 	Copyright The containerd Authors. | ||||
|  | ||||
| 	Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| 	you may not use this file except in compliance with the License. | ||||
| 	You may obtain a copy of the License at | ||||
|  | ||||
| 		http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
| 	Unless required by applicable law or agreed to in writing, software | ||||
| 	distributed under the License is distributed on an "AS IS" BASIS, | ||||
| 	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| 	See the License for the specific language governing permissions and | ||||
| 	limitations under the License. | ||||
| */ | ||||
|  | ||||
| syntax = "proto3"; | ||||
|  | ||||
| package containerd.services.content.v1; | ||||
|  | ||||
| import weak "gogoproto/gogo.proto"; | ||||
| import "google/protobuf/field_mask.proto"; | ||||
| import "google/protobuf/timestamp.proto"; | ||||
| import "google/protobuf/empty.proto"; | ||||
|  | ||||
| option go_package = "github.com/containerd/containerd/api/services/content/v1;content"; | ||||
|  | ||||
| // Content provides access to a content addressable storage system. | ||||
| service Content { | ||||
| 	// Info returns information about a committed object. | ||||
| 	// | ||||
| 	// This call can be used for getting the size of content and checking for | ||||
| 	// existence. | ||||
| 	rpc Info(InfoRequest) returns (InfoResponse); | ||||
|  | ||||
| 	// Update updates content metadata. | ||||
| 	// | ||||
| 	// This call can be used to manage the mutable content labels. The | ||||
| 	// immutable metadata such as digest, size, and committed at cannot | ||||
| 	// be updated. | ||||
| 	rpc Update(UpdateRequest) returns (UpdateResponse); | ||||
|  | ||||
| 	// List streams the entire set of content as Info objects and closes the | ||||
| 	// stream. | ||||
| 	// | ||||
| 	// Typically, this will yield a large response, chunked into messages. | ||||
| 	// Clients should make provisions to ensure they can handle the entire data | ||||
| 	// set. | ||||
| 	rpc List(ListContentRequest) returns (stream ListContentResponse); | ||||
|  | ||||
| 	// Delete will delete the referenced object. | ||||
| 	rpc Delete(DeleteContentRequest) returns (google.protobuf.Empty); | ||||
|  | ||||
| 	// Read allows one to read an object based on the offset into the content. | ||||
| 	// | ||||
| 	// The requested data may be returned in one or more messages. | ||||
| 	rpc Read(ReadContentRequest) returns (stream ReadContentResponse); | ||||
|  | ||||
| 	// Status returns the status for a single reference. | ||||
| 	rpc Status(StatusRequest) returns (StatusResponse); | ||||
|  | ||||
| 	// ListStatuses returns the status of ongoing object ingestions, started via | ||||
| 	// Write. | ||||
| 	// | ||||
| 	// Only those matching the regular expression will be provided in the | ||||
| 	// response. If the provided regular expression is empty, all ingestions | ||||
| 	// will be provided. | ||||
| 	rpc ListStatuses(ListStatusesRequest) returns (ListStatusesResponse); | ||||
|  | ||||
| 	// Write begins or resumes writes to a resource identified by a unique ref. | ||||
| 	// Only one active stream may exist at a time for each ref. | ||||
| 	// | ||||
| 	// Once a write stream has started, it may only write to a single ref, thus | ||||
| 	// once a stream is started, the ref may be omitted on subsequent writes. | ||||
| 	// | ||||
| 	// For any write transaction represented by a ref, only a single write may | ||||
| 	// be made to a given offset. If overlapping writes occur, it is an error. | ||||
| 	// Writes should be sequential and implementations may throw an error if | ||||
| 	// this is required. | ||||
| 	// | ||||
| 	// If expected_digest is set and already part of the content store, the | ||||
| 	// write will fail. | ||||
| 	// | ||||
| 	// When completed, the commit flag should be set to true. If expected size | ||||
| 	// or digest is set, the content will be validated against those values. | ||||
| 	rpc Write(stream WriteContentRequest) returns (stream WriteContentResponse); | ||||
|  | ||||
| 	// Abort cancels the ongoing write named in the request. Any resources | ||||
| 	// associated with the write will be collected. | ||||
| 	rpc Abort(AbortRequest) returns (google.protobuf.Empty); | ||||
| } | ||||
|  | ||||
| message Info { | ||||
| 	// Digest is the hash identity of the blob. | ||||
| 	string digest = 1 [(gogoproto.customtype) = "github.com/opencontainers/go-digest.Digest", (gogoproto.nullable) = false]; | ||||
|  | ||||
| 	// Size is the total number of bytes in the blob. | ||||
| 	int64 size = 2; | ||||
|  | ||||
| 	// CreatedAt provides the time at which the blob was committed. | ||||
| 	google.protobuf.Timestamp created_at = 3 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false]; | ||||
|  | ||||
| 	// UpdatedAt provides the time the info was last updated. | ||||
| 	google.protobuf.Timestamp updated_at = 4 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false]; | ||||
|  | ||||
| 	// Labels are arbitrary data on snapshots. | ||||
| 	// | ||||
| 	// The combined size of a key/value pair cannot exceed 4096 bytes. | ||||
| 	map<string, string> labels  = 5; | ||||
| } | ||||
|  | ||||
| message InfoRequest { | ||||
| 	string digest = 1 [(gogoproto.customtype) = "github.com/opencontainers/go-digest.Digest", (gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| message InfoResponse { | ||||
| 	Info info = 1 [(gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| message UpdateRequest { | ||||
| 	Info info = 1 [(gogoproto.nullable) = false]; | ||||
|  | ||||
| 	// UpdateMask specifies which fields to perform the update on. If empty, | ||||
| 	// the operation applies to all fields. | ||||
| 	// | ||||
| 	// In info, Digest, Size, and CreatedAt are immutable, | ||||
| 	// other field may be updated using this mask. | ||||
| 	// If no mask is provided, all mutable field are updated. | ||||
| 	google.protobuf.FieldMask update_mask = 2; | ||||
| } | ||||
|  | ||||
| message UpdateResponse { | ||||
| 	Info info = 1 [(gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| message ListContentRequest { | ||||
| 	// Filters contains one or more filters using the syntax defined in the | ||||
| 	// containerd filter package. | ||||
| 	// | ||||
| 	// The returned result will be those that match any of the provided | ||||
| 	// filters. Expanded, containers that match the following will be | ||||
| 	// returned: | ||||
| 	// | ||||
| 	//   filters[0] or filters[1] or ... or filters[n-1] or filters[n] | ||||
| 	// | ||||
| 	// If filters is zero-length or nil, all items will be returned. | ||||
| 	repeated string filters = 1; | ||||
| } | ||||
|  | ||||
| message ListContentResponse { | ||||
| 	repeated Info info = 1 [(gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| message DeleteContentRequest { | ||||
| 	// Digest specifies which content to delete. | ||||
| 	string digest = 1 [(gogoproto.customtype) = "github.com/opencontainers/go-digest.Digest", (gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| // ReadContentRequest defines the fields that make up a request to read a portion of | ||||
| // data from a stored object. | ||||
| message ReadContentRequest { | ||||
| 	// Digest is the hash identity to read. | ||||
| 	string digest = 1 [(gogoproto.customtype) = "github.com/opencontainers/go-digest.Digest", (gogoproto.nullable) = false]; | ||||
|  | ||||
| 	// Offset specifies the number of bytes from the start at which to begin | ||||
| 	// the read. If zero or less, the read will be from the start. This uses | ||||
| 	// standard zero-indexed semantics. | ||||
| 	int64 offset = 2; | ||||
|  | ||||
| 	// size is the total size of the read. If zero, the entire blob will be | ||||
| 	// returned by the service. | ||||
| 	int64 size = 3; | ||||
| } | ||||
|  | ||||
| // ReadContentResponse carries byte data for a read request. | ||||
| message ReadContentResponse { | ||||
| 	int64 offset = 1; // offset of the returned data | ||||
| 	bytes data = 2; // actual data | ||||
| } | ||||
|  | ||||
| message Status { | ||||
| 	google.protobuf.Timestamp started_at = 1 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false]; | ||||
| 	google.protobuf.Timestamp updated_at = 2 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false]; | ||||
| 	string ref = 3; | ||||
| 	int64 offset = 4; | ||||
| 	int64 total = 5; | ||||
| 	string expected = 6 [(gogoproto.customtype) = "github.com/opencontainers/go-digest.Digest", (gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
|  | ||||
| message StatusRequest { | ||||
| 	string ref = 1; | ||||
| } | ||||
|  | ||||
| message StatusResponse { | ||||
| 	Status status = 1; | ||||
| } | ||||
|  | ||||
| message ListStatusesRequest { | ||||
| 	repeated string filters = 1; | ||||
| } | ||||
|  | ||||
| message ListStatusesResponse { | ||||
| 	repeated Status statuses = 1 [(gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| // WriteAction defines the behavior of a WriteRequest. | ||||
| enum WriteAction { | ||||
| 	option (gogoproto.goproto_enum_prefix) = false; | ||||
| 	option (gogoproto.enum_customname) = "WriteAction"; | ||||
|  | ||||
| 	// WriteActionStat instructs the writer to return the current status while | ||||
| 	// holding the lock on the write. | ||||
| 	STAT = 0 [(gogoproto.enumvalue_customname) = "WriteActionStat"]; | ||||
|  | ||||
| 	// WriteActionWrite sets the action for the write request to write data. | ||||
| 	// | ||||
| 	// Any data included will be written at the provided offset. The | ||||
| 	// transaction will be left open for further writes. | ||||
| 	// | ||||
| 	// This is the default. | ||||
| 	WRITE = 1 [(gogoproto.enumvalue_customname) = "WriteActionWrite"]; | ||||
|  | ||||
| 	// WriteActionCommit will write any outstanding data in the message and | ||||
| 	// commit the write, storing it under the digest. | ||||
| 	// | ||||
| 	// This can be used in a single message to send the data, verify it and | ||||
| 	// commit it. | ||||
| 	// | ||||
| 	// This action will always terminate the write. | ||||
| 	COMMIT = 2 [(gogoproto.enumvalue_customname) = "WriteActionCommit"]; | ||||
| } | ||||
|  | ||||
| // WriteContentRequest writes data to the request ref at offset. | ||||
| message WriteContentRequest { | ||||
| 	// Action sets the behavior of the write. | ||||
| 	// | ||||
| 	// When this is a write and the ref is not yet allocated, the ref will be | ||||
| 	// allocated and the data will be written at offset. | ||||
| 	// | ||||
| 	// If the action is write and the ref is allocated, it will accept data to | ||||
| 	// an offset that has not yet been written. | ||||
| 	// | ||||
| 	// If the action is write and there is no data, the current write status | ||||
| 	// will be returned. This works differently from status because the stream | ||||
| 	// holds a lock. | ||||
| 	WriteAction action = 1; | ||||
|  | ||||
| 	// Ref identifies the pre-commit object to write to. | ||||
| 	string ref = 2; | ||||
|  | ||||
| 	// Total can be set to have the service validate the total size of the | ||||
| 	// committed content. | ||||
| 	// | ||||
| 	// The latest value before or with the commit action message will be use to | ||||
| 	// validate the content. If the offset overflows total, the service may | ||||
| 	// report an error. It is only required on one message for the write. | ||||
| 	// | ||||
| 	// If the value is zero or less, no validation of the final content will be | ||||
| 	// performed. | ||||
| 	int64 total = 3; | ||||
|  | ||||
| 	// Expected can be set to have the service validate the final content against | ||||
| 	// the provided digest. | ||||
| 	// | ||||
| 	// If the digest is already present in the object store, an AlreadyExists | ||||
| 	// error will be returned. | ||||
| 	// | ||||
| 	// Only the latest version will be used to check the content against the | ||||
| 	// digest. It is only required to include it on a single message, before or | ||||
| 	// with the commit action message. | ||||
| 	string expected = 4 [(gogoproto.customtype) = "github.com/opencontainers/go-digest.Digest", (gogoproto.nullable) = false]; | ||||
|  | ||||
| 	// Offset specifies the number of bytes from the start at which to begin | ||||
| 	// the write. For most implementations, this means from the start of the | ||||
| 	// file. This uses standard, zero-indexed semantics. | ||||
| 	// | ||||
| 	// If the action is write, the remote may remove all previously written | ||||
| 	// data after the offset. Implementations may support arbitrary offsets but | ||||
| 	// MUST support reseting this value to zero with a write. If an | ||||
| 	// implementation does not support a write at a particular offset, an | ||||
| 	// OutOfRange error must be returned. | ||||
| 	int64 offset = 5; | ||||
|  | ||||
| 	// Data is the actual bytes to be written. | ||||
| 	// | ||||
| 	// If this is empty and the message is not a commit, a response will be | ||||
| 	// returned with the current write state. | ||||
| 	bytes data = 6; | ||||
|  | ||||
| 	// Labels are arbitrary data on snapshots. | ||||
| 	// | ||||
| 	// The combined size of a key/value pair cannot exceed 4096 bytes. | ||||
| 	map<string, string> labels  = 7; | ||||
| } | ||||
|  | ||||
| // WriteContentResponse is returned on the culmination of a write call. | ||||
| message WriteContentResponse { | ||||
| 	// Action contains the action for the final message of the stream. A writer | ||||
| 	// should confirm that they match the intended result. | ||||
| 	WriteAction action = 1; | ||||
|  | ||||
| 	// StartedAt provides the time at which the write began. | ||||
| 	// | ||||
| 	// This must be set for stat and commit write actions. All other write | ||||
| 	// actions may omit this. | ||||
| 	google.protobuf.Timestamp started_at = 2 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false]; | ||||
|  | ||||
| 	// UpdatedAt provides the last time of a successful write. | ||||
| 	// | ||||
| 	// This must be set for stat and commit write actions. All other write | ||||
| 	// actions may omit this. | ||||
| 	google.protobuf.Timestamp updated_at = 3 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false]; | ||||
|  | ||||
| 	// Offset is the current committed size for the write. | ||||
| 	int64 offset = 4; | ||||
|  | ||||
| 	// Total provides the current, expected total size of the write. | ||||
| 	// | ||||
| 	// We include this to provide consistency with the Status structure on the | ||||
| 	// client writer. | ||||
| 	// | ||||
| 	// This is only valid on the Stat and Commit response. | ||||
| 	int64 total = 5; | ||||
|  | ||||
| 	// Digest, if present, includes the digest up to the currently committed | ||||
| 	// bytes. If action is commit, this field will be set. It is implementation | ||||
| 	// defined if this is set for other actions. | ||||
| 	string digest = 6 [(gogoproto.customtype) = "github.com/opencontainers/go-digest.Digest", (gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| message AbortRequest { | ||||
| 	string ref = 1; | ||||
| } | ||||
							
								
								
									
										17
									
								
								vendor/github.com/containerd/containerd/api/services/content/v1/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								vendor/github.com/containerd/containerd/api/services/content/v1/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,17 +0,0 @@ | ||||
| /* | ||||
|    Copyright The containerd Authors. | ||||
|  | ||||
|    Licensed under the Apache License, Version 2.0 (the "License"); | ||||
|    you may not use this file except in compliance with the License. | ||||
|    You may obtain a copy of the License at | ||||
|  | ||||
|        http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
|    Unless required by applicable law or agreed to in writing, software | ||||
|    distributed under the License is distributed on an "AS IS" BASIS, | ||||
|    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
|    See the License for the specific language governing permissions and | ||||
|    limitations under the License. | ||||
| */ | ||||
|  | ||||
| package content | ||||
							
								
								
									
										1666
									
								
								vendor/github.com/containerd/containerd/api/services/diff/v1/diff.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										1666
									
								
								vendor/github.com/containerd/containerd/api/services/diff/v1/diff.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										81
									
								
								vendor/github.com/containerd/containerd/api/services/diff/v1/diff.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										81
									
								
								vendor/github.com/containerd/containerd/api/services/diff/v1/diff.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,81 +0,0 @@ | ||||
| /* | ||||
| 	Copyright The containerd Authors. | ||||
|  | ||||
| 	Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| 	you may not use this file except in compliance with the License. | ||||
| 	You may obtain a copy of the License at | ||||
|  | ||||
| 		http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
| 	Unless required by applicable law or agreed to in writing, software | ||||
| 	distributed under the License is distributed on an "AS IS" BASIS, | ||||
| 	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| 	See the License for the specific language governing permissions and | ||||
| 	limitations under the License. | ||||
| */ | ||||
|  | ||||
| syntax = "proto3"; | ||||
|  | ||||
| package containerd.services.diff.v1; | ||||
|  | ||||
| import weak "gogoproto/gogo.proto"; | ||||
| import "google/protobuf/any.proto"; | ||||
| import "github.com/containerd/containerd/api/types/mount.proto"; | ||||
| import "github.com/containerd/containerd/api/types/descriptor.proto"; | ||||
|  | ||||
| option go_package = "github.com/containerd/containerd/api/services/diff/v1;diff"; | ||||
|  | ||||
| // Diff service creates and applies diffs | ||||
| service Diff { | ||||
| 	// Apply applies the content associated with the provided digests onto | ||||
| 	// the provided mounts. Archive content will be extracted and | ||||
| 	// decompressed if necessary. | ||||
| 	rpc Apply(ApplyRequest) returns (ApplyResponse); | ||||
|  | ||||
| 	// Diff creates a diff between the given mounts and uploads the result | ||||
| 	// to the content store. | ||||
| 	rpc Diff(DiffRequest) returns (DiffResponse); | ||||
| } | ||||
|  | ||||
| message ApplyRequest { | ||||
| 	// Diff is the descriptor of the diff to be extracted | ||||
| 	containerd.types.Descriptor diff = 1; | ||||
|  | ||||
| 	repeated containerd.types.Mount mounts = 2; | ||||
|  | ||||
| 	map<string, google.protobuf.Any> payloads = 3; | ||||
| } | ||||
|  | ||||
| message ApplyResponse { | ||||
| 	// Applied is the descriptor for the object which was applied. | ||||
| 	// If the input was a compressed blob then the result will be | ||||
| 	// the descriptor for the uncompressed blob. | ||||
| 	containerd.types.Descriptor applied = 1; | ||||
| } | ||||
|  | ||||
| message DiffRequest { | ||||
| 	// Left are the mounts which represent the older copy | ||||
| 	// in which is the base of the computed changes. | ||||
| 	repeated containerd.types.Mount left = 1; | ||||
|  | ||||
| 	// Right are the mounts which represents the newer copy | ||||
| 	// in which changes from the left were made into. | ||||
| 	repeated containerd.types.Mount right = 2; | ||||
|  | ||||
| 	// MediaType is the media type descriptor for the created diff | ||||
| 	// object | ||||
| 	string media_type = 3; | ||||
|  | ||||
| 	// Ref identifies the pre-commit content store object. This | ||||
| 	// reference can be used to get the status from the content store. | ||||
| 	string ref = 4; | ||||
|  | ||||
| 	// Labels are the labels to apply to the generated content | ||||
| 	// on content store commit. | ||||
| 	map<string, string> labels = 5; | ||||
| } | ||||
|  | ||||
| message DiffResponse { | ||||
| 	// Diff is the descriptor of the diff which can be applied | ||||
| 	containerd.types.Descriptor diff = 3; | ||||
| } | ||||
							
								
								
									
										17
									
								
								vendor/github.com/containerd/containerd/api/services/diff/v1/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								vendor/github.com/containerd/containerd/api/services/diff/v1/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,17 +0,0 @@ | ||||
| /* | ||||
|    Copyright The containerd Authors. | ||||
|  | ||||
|    Licensed under the Apache License, Version 2.0 (the "License"); | ||||
|    you may not use this file except in compliance with the License. | ||||
|    You may obtain a copy of the License at | ||||
|  | ||||
|        http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
|    Unless required by applicable law or agreed to in writing, software | ||||
|    distributed under the License is distributed on an "AS IS" BASIS, | ||||
|    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
|    See the License for the specific language governing permissions and | ||||
|    limitations under the License. | ||||
| */ | ||||
|  | ||||
| package diff | ||||
							
								
								
									
										18
									
								
								vendor/github.com/containerd/containerd/api/services/events/v1/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										18
									
								
								vendor/github.com/containerd/containerd/api/services/events/v1/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,18 +0,0 @@ | ||||
| /* | ||||
|    Copyright The containerd Authors. | ||||
|  | ||||
|    Licensed under the Apache License, Version 2.0 (the "License"); | ||||
|    you may not use this file except in compliance with the License. | ||||
|    You may obtain a copy of the License at | ||||
|  | ||||
|        http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
|    Unless required by applicable law or agreed to in writing, software | ||||
|    distributed under the License is distributed on an "AS IS" BASIS, | ||||
|    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
|    See the License for the specific language governing permissions and | ||||
|    limitations under the License. | ||||
| */ | ||||
|  | ||||
| // Package events defines the event pushing and subscription service. | ||||
| package events | ||||
							
								
								
									
										1372
									
								
								vendor/github.com/containerd/containerd/api/services/events/v1/events.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										1372
									
								
								vendor/github.com/containerd/containerd/api/services/events/v1/events.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										72
									
								
								vendor/github.com/containerd/containerd/api/services/events/v1/events.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										72
									
								
								vendor/github.com/containerd/containerd/api/services/events/v1/events.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,72 +0,0 @@ | ||||
| /* | ||||
| 	Copyright The containerd Authors. | ||||
|  | ||||
| 	Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| 	you may not use this file except in compliance with the License. | ||||
| 	You may obtain a copy of the License at | ||||
|  | ||||
| 		http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
| 	Unless required by applicable law or agreed to in writing, software | ||||
| 	distributed under the License is distributed on an "AS IS" BASIS, | ||||
| 	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| 	See the License for the specific language governing permissions and | ||||
| 	limitations under the License. | ||||
| */ | ||||
|  | ||||
| syntax = "proto3"; | ||||
|  | ||||
| package containerd.services.events.v1; | ||||
|  | ||||
| import weak "github.com/containerd/containerd/protobuf/plugin/fieldpath.proto"; | ||||
| import weak "gogoproto/gogo.proto"; | ||||
| import "google/protobuf/any.proto"; | ||||
| import "google/protobuf/empty.proto"; | ||||
| import "google/protobuf/timestamp.proto"; | ||||
|  | ||||
| option go_package = "github.com/containerd/containerd/api/services/events/v1;events"; | ||||
|  | ||||
| service Events { | ||||
| 	// Publish an event to a topic. | ||||
| 	// | ||||
| 	// The event will be packed into a timestamp envelope with the namespace | ||||
| 	// introspected from the context. The envelope will then be dispatched. | ||||
| 	rpc Publish(PublishRequest) returns (google.protobuf.Empty); | ||||
|  | ||||
| 	// Forward sends an event that has already been packaged into an envelope | ||||
| 	// with a timestamp and namespace. | ||||
| 	// | ||||
| 	// This is useful if earlier timestamping is required or when forwarding on | ||||
| 	// behalf of another component, namespace or publisher. | ||||
| 	rpc Forward(ForwardRequest) returns (google.protobuf.Empty); | ||||
|  | ||||
| 	// Subscribe to a stream of events, possibly returning only that match any | ||||
| 	// of the provided filters. | ||||
| 	// | ||||
| 	// Unlike many other methods in containerd, subscribers will get messages | ||||
| 	// from all namespaces unless otherwise specified. If this is not desired, | ||||
| 	// a filter can be provided in the format 'namespace==<namespace>' to | ||||
| 	// restrict the received events. | ||||
| 	rpc Subscribe(SubscribeRequest) returns (stream Envelope); | ||||
| } | ||||
|  | ||||
| message PublishRequest { | ||||
| 	string topic = 1; | ||||
| 	google.protobuf.Any event = 2; | ||||
| } | ||||
|  | ||||
| message ForwardRequest { | ||||
| 	Envelope envelope = 1; | ||||
| } | ||||
|  | ||||
| message SubscribeRequest { | ||||
| 	repeated string filters = 1; | ||||
| } | ||||
|  | ||||
| message Envelope { | ||||
| 	option (containerd.plugin.fieldpath) = true; | ||||
| 	google.protobuf.Timestamp timestamp = 1 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false]; | ||||
| 	string namespace = 2; | ||||
| 	string topic = 3; | ||||
| 	google.protobuf.Any event = 4; | ||||
| } | ||||
							
								
								
									
										17
									
								
								vendor/github.com/containerd/containerd/api/services/images/v1/docs.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								vendor/github.com/containerd/containerd/api/services/images/v1/docs.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,17 +0,0 @@ | ||||
| /* | ||||
|    Copyright The containerd Authors. | ||||
|  | ||||
|    Licensed under the Apache License, Version 2.0 (the "License"); | ||||
|    you may not use this file except in compliance with the License. | ||||
|    You may obtain a copy of the License at | ||||
|  | ||||
|        http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
|    Unless required by applicable law or agreed to in writing, software | ||||
|    distributed under the License is distributed on an "AS IS" BASIS, | ||||
|    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
|    See the License for the specific language governing permissions and | ||||
|    limitations under the License. | ||||
| */ | ||||
|  | ||||
| package images | ||||
							
								
								
									
										2738
									
								
								vendor/github.com/containerd/containerd/api/services/images/v1/images.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2738
									
								
								vendor/github.com/containerd/containerd/api/services/images/v1/images.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										140
									
								
								vendor/github.com/containerd/containerd/api/services/images/v1/images.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										140
									
								
								vendor/github.com/containerd/containerd/api/services/images/v1/images.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,140 +0,0 @@ | ||||
| /* | ||||
| 	Copyright The containerd Authors. | ||||
|  | ||||
| 	Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| 	you may not use this file except in compliance with the License. | ||||
| 	You may obtain a copy of the License at | ||||
|  | ||||
| 		http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
| 	Unless required by applicable law or agreed to in writing, software | ||||
| 	distributed under the License is distributed on an "AS IS" BASIS, | ||||
| 	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| 	See the License for the specific language governing permissions and | ||||
| 	limitations under the License. | ||||
| */ | ||||
|  | ||||
| syntax = "proto3"; | ||||
|  | ||||
| package containerd.services.images.v1; | ||||
|  | ||||
| import weak "gogoproto/gogo.proto"; | ||||
| import "google/protobuf/empty.proto"; | ||||
| import "google/protobuf/field_mask.proto"; | ||||
| import "google/protobuf/timestamp.proto"; | ||||
| import "github.com/containerd/containerd/api/types/descriptor.proto"; | ||||
|  | ||||
| option go_package = "github.com/containerd/containerd/api/services/images/v1;images"; | ||||
|  | ||||
| // Images is a service that allows one to register images with containerd. | ||||
| // | ||||
| // In containerd, an image is merely the mapping of a name to a content root, | ||||
| // described by a descriptor. The behavior and state of image is purely | ||||
| // dictated by the type of the descriptor. | ||||
| // | ||||
| // From the perspective of this service, these references are mostly shallow, | ||||
| // in that the existence of the required content won't be validated until | ||||
| // required by consuming services. | ||||
| // | ||||
| // As such, this can really be considered a "metadata service". | ||||
| service Images { | ||||
| 	// Get returns an image by name. | ||||
| 	rpc Get(GetImageRequest) returns (GetImageResponse); | ||||
|  | ||||
| 	// List returns a list of all images known to containerd. | ||||
| 	rpc List(ListImagesRequest) returns (ListImagesResponse); | ||||
|  | ||||
| 	// Create an image record in the metadata store. | ||||
| 	// | ||||
| 	// The name of the image must be unique. | ||||
| 	rpc Create(CreateImageRequest) returns (CreateImageResponse); | ||||
|  | ||||
| 	// Update assigns the name to a given target image based on the provided | ||||
| 	// image. | ||||
| 	rpc Update(UpdateImageRequest) returns (UpdateImageResponse); | ||||
|  | ||||
| 	// Delete deletes the image by name. | ||||
| 	rpc Delete(DeleteImageRequest) returns (google.protobuf.Empty); | ||||
| } | ||||
|  | ||||
| message Image { | ||||
| 	// Name provides a unique name for the image. | ||||
| 	// | ||||
| 	// Containerd treats this as the primary identifier. | ||||
| 	string name = 1; | ||||
|  | ||||
| 	// Labels provides free form labels for the image. These are runtime only | ||||
| 	// and do not get inherited into the package image in any way. | ||||
| 	// | ||||
| 	// Labels may be updated using the field mask. | ||||
| 	// The combined size of a key/value pair cannot exceed 4096 bytes. | ||||
| 	map<string, string> labels = 2; | ||||
|  | ||||
| 	// Target describes the content entry point of the image. | ||||
| 	containerd.types.Descriptor target = 3 [(gogoproto.nullable) = false]; | ||||
|  | ||||
| 	// CreatedAt is the time the image was first created. | ||||
| 	google.protobuf.Timestamp created_at = 7 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false]; | ||||
|  | ||||
| 	// UpdatedAt is the last time the image was mutated. | ||||
| 	google.protobuf.Timestamp updated_at = 8 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| message GetImageRequest { | ||||
| 	string name = 1; | ||||
| } | ||||
|  | ||||
| message GetImageResponse { | ||||
| 	Image image = 1; | ||||
| } | ||||
|  | ||||
| message CreateImageRequest { | ||||
| 	Image image = 1 [(gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| message CreateImageResponse { | ||||
| 	Image image = 1 [(gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| message UpdateImageRequest { | ||||
| 	// Image provides a full or partial image for update. | ||||
| 	// | ||||
| 	// The name field must be set or an error will be returned. | ||||
| 	Image image = 1 [(gogoproto.nullable) = false]; | ||||
|  | ||||
| 	// UpdateMask specifies which fields to perform the update on. If empty, | ||||
| 	// the operation applies to all fields. | ||||
| 	google.protobuf.FieldMask update_mask = 2; | ||||
| } | ||||
|  | ||||
| message UpdateImageResponse { | ||||
| 	Image image = 1 [(gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| message ListImagesRequest { | ||||
| 	// Filters contains one or more filters using the syntax defined in the | ||||
| 	// containerd filter package. | ||||
| 	// | ||||
| 	// The returned result will be those that match any of the provided | ||||
| 	// filters. Expanded, images that match the following will be | ||||
| 	// returned: | ||||
| 	// | ||||
| 	//   filters[0] or filters[1] or ... or filters[n-1] or filters[n] | ||||
| 	// | ||||
| 	// If filters is zero-length or nil, all items will be returned. | ||||
| 	repeated string filters = 1; | ||||
| } | ||||
|  | ||||
| message ListImagesResponse { | ||||
| 	repeated Image images = 1 [(gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| message DeleteImageRequest { | ||||
| 	string name = 1; | ||||
|  | ||||
| 	// Sync indicates that the delete and cleanup should be done | ||||
| 	// synchronously before returning to the caller | ||||
| 	// | ||||
| 	// Default is false | ||||
| 	bool sync = 2; | ||||
| } | ||||
							
								
								
									
										17
									
								
								vendor/github.com/containerd/containerd/api/services/introspection/v1/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								vendor/github.com/containerd/containerd/api/services/introspection/v1/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,17 +0,0 @@ | ||||
| /* | ||||
|    Copyright The containerd Authors. | ||||
|  | ||||
|    Licensed under the Apache License, Version 2.0 (the "License"); | ||||
|    you may not use this file except in compliance with the License. | ||||
|    You may obtain a copy of the License at | ||||
|  | ||||
|        http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
|    Unless required by applicable law or agreed to in writing, software | ||||
|    distributed under the License is distributed on an "AS IS" BASIS, | ||||
|    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
|    See the License for the specific language governing permissions and | ||||
|    limitations under the License. | ||||
| */ | ||||
|  | ||||
| package introspection | ||||
							
								
								
									
										1536
									
								
								vendor/github.com/containerd/containerd/api/services/introspection/v1/introspection.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										1536
									
								
								vendor/github.com/containerd/containerd/api/services/introspection/v1/introspection.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										104
									
								
								vendor/github.com/containerd/containerd/api/services/introspection/v1/introspection.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										104
									
								
								vendor/github.com/containerd/containerd/api/services/introspection/v1/introspection.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,104 +0,0 @@ | ||||
| /* | ||||
| 	Copyright The containerd Authors. | ||||
|  | ||||
| 	Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| 	you may not use this file except in compliance with the License. | ||||
| 	You may obtain a copy of the License at | ||||
|  | ||||
| 		http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
| 	Unless required by applicable law or agreed to in writing, software | ||||
| 	distributed under the License is distributed on an "AS IS" BASIS, | ||||
| 	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| 	See the License for the specific language governing permissions and | ||||
| 	limitations under the License. | ||||
| */ | ||||
|  | ||||
| syntax = "proto3"; | ||||
|  | ||||
| package containerd.services.introspection.v1; | ||||
|  | ||||
| import "github.com/containerd/containerd/api/types/platform.proto"; | ||||
| import "google/rpc/status.proto"; | ||||
| import "google/protobuf/empty.proto"; | ||||
| import weak "gogoproto/gogo.proto"; | ||||
|  | ||||
| option go_package = "github.com/containerd/containerd/api/services/introspection/v1;introspection"; | ||||
|  | ||||
| service Introspection { | ||||
| 	// Plugins returns a list of plugins in containerd. | ||||
| 	// | ||||
| 	// Clients can use this to detect features and capabilities when using | ||||
| 	// containerd. | ||||
| 	rpc Plugins(PluginsRequest) returns (PluginsResponse); | ||||
| 	// Server returns information about the containerd server | ||||
| 	rpc Server(google.protobuf.Empty) returns (ServerResponse); | ||||
| } | ||||
|  | ||||
| message Plugin { | ||||
| 	// Type defines the type of plugin. | ||||
| 	// | ||||
| 	// See package plugin for a list of possible values. Non core plugins may | ||||
| 	// define their own values during registration. | ||||
| 	string type = 1; | ||||
|  | ||||
| 	// ID identifies the plugin uniquely in the system. | ||||
| 	string id = 2; | ||||
|  | ||||
| 	// Requires lists the plugin types required by this plugin. | ||||
| 	repeated string requires = 3; | ||||
|  | ||||
| 	// Platforms enumerates the platforms this plugin will support. | ||||
| 	// | ||||
| 	// If values are provided here, the plugin will only be operable under the | ||||
| 	// provided platforms. | ||||
| 	// | ||||
| 	// If this is empty, the plugin will work across all platforms. | ||||
| 	// | ||||
| 	// If the plugin prefers certain platforms over others, they should be | ||||
| 	// listed from most to least preferred. | ||||
| 	repeated types.Platform platforms = 4 [(gogoproto.nullable) = false]; | ||||
|  | ||||
| 	// Exports allows plugins to provide values about state or configuration to | ||||
| 	// interested parties. | ||||
| 	// | ||||
| 	// One example is exposing the configured path of a snapshotter plugin. | ||||
| 	map<string, string> exports = 5; | ||||
|  | ||||
| 	// Capabilities allows plugins to communicate feature switches to allow | ||||
| 	// clients to detect features that may not be on be default or may be | ||||
| 	// different from version to version. | ||||
| 	// | ||||
| 	// Use this sparingly. | ||||
| 	repeated string capabilities = 6; | ||||
|  | ||||
| 	// InitErr will be set if the plugin fails initialization. | ||||
| 	// | ||||
| 	// This means the plugin may have been registered but a non-terminal error | ||||
| 	// was encountered during initialization. | ||||
| 	// | ||||
| 	// Plugins that have this value set cannot be used. | ||||
| 	google.rpc.Status init_err = 7; | ||||
| } | ||||
|  | ||||
| message PluginsRequest { | ||||
| 	// Filters contains one or more filters using the syntax defined in the | ||||
| 	// containerd filter package. | ||||
| 	// | ||||
| 	// The returned result will be those that match any of the provided | ||||
| 	// filters. Expanded, plugins that match the following will be | ||||
| 	// returned: | ||||
| 	// | ||||
| 	//   filters[0] or filters[1] or ... or filters[n-1] or filters[n] | ||||
| 	// | ||||
| 	// If filters is zero-length or nil, all items will be returned. | ||||
| 	repeated string filters = 1; | ||||
| } | ||||
|  | ||||
| message PluginsResponse { | ||||
| 	repeated Plugin plugins = 1 [(gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| message ServerResponse { | ||||
| 	string uuid = 1 [(gogoproto.customname) = "UUID"]; | ||||
| } | ||||
							
								
								
									
										17
									
								
								vendor/github.com/containerd/containerd/api/services/leases/v1/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								vendor/github.com/containerd/containerd/api/services/leases/v1/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,17 +0,0 @@ | ||||
| /* | ||||
|    Copyright The containerd Authors. | ||||
|  | ||||
|    Licensed under the Apache License, Version 2.0 (the "License"); | ||||
|    you may not use this file except in compliance with the License. | ||||
|    You may obtain a copy of the License at | ||||
|  | ||||
|        http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
|    Unless required by applicable law or agreed to in writing, software | ||||
|    distributed under the License is distributed on an "AS IS" BASIS, | ||||
|    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
|    See the License for the specific language governing permissions and | ||||
|    limitations under the License. | ||||
| */ | ||||
|  | ||||
| package leases | ||||
							
								
								
									
										3108
									
								
								vendor/github.com/containerd/containerd/api/services/leases/v1/leases.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										3108
									
								
								vendor/github.com/containerd/containerd/api/services/leases/v1/leases.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										117
									
								
								vendor/github.com/containerd/containerd/api/services/leases/v1/leases.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										117
									
								
								vendor/github.com/containerd/containerd/api/services/leases/v1/leases.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,117 +0,0 @@ | ||||
| /* | ||||
| 	Copyright The containerd Authors. | ||||
|  | ||||
| 	Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| 	you may not use this file except in compliance with the License. | ||||
| 	You may obtain a copy of the License at | ||||
|  | ||||
| 		http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
| 	Unless required by applicable law or agreed to in writing, software | ||||
| 	distributed under the License is distributed on an "AS IS" BASIS, | ||||
| 	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| 	See the License for the specific language governing permissions and | ||||
| 	limitations under the License. | ||||
| */ | ||||
| syntax = "proto3"; | ||||
|  | ||||
| package containerd.services.leases.v1; | ||||
|  | ||||
| import weak "gogoproto/gogo.proto"; | ||||
| import "google/protobuf/empty.proto"; | ||||
| import "google/protobuf/timestamp.proto"; | ||||
|  | ||||
| option go_package = "github.com/containerd/containerd/api/services/leases/v1;leases"; | ||||
|  | ||||
| // Leases service manages resources leases within the metadata store. | ||||
| service Leases { | ||||
| 	// Create creates a new lease for managing changes to metadata. A lease | ||||
| 	// can be used to protect objects from being removed. | ||||
| 	rpc Create(CreateRequest) returns (CreateResponse); | ||||
|  | ||||
| 	// Delete deletes the lease and makes any unreferenced objects created | ||||
| 	// during the lease eligible for garbage collection if not referenced | ||||
| 	// or retained by other resources during the lease. | ||||
| 	rpc Delete(DeleteRequest) returns (google.protobuf.Empty); | ||||
|  | ||||
| 	// List lists all active leases, returning the full list of | ||||
| 	// leases and optionally including the referenced resources. | ||||
| 	rpc List(ListRequest) returns (ListResponse); | ||||
|  | ||||
| 	// AddResource references the resource by the provided lease. | ||||
| 	rpc AddResource(AddResourceRequest) returns (google.protobuf.Empty); | ||||
|  | ||||
| 	// DeleteResource dereferences the resource by the provided lease. | ||||
| 	rpc DeleteResource(DeleteResourceRequest) returns (google.protobuf.Empty); | ||||
|  | ||||
| 	// ListResources lists all the resources referenced by the lease. | ||||
| 	rpc ListResources(ListResourcesRequest) returns (ListResourcesResponse); | ||||
| } | ||||
|  | ||||
| // Lease is an object which retains resources while it exists. | ||||
| message Lease { | ||||
| 	string id = 1; | ||||
|  | ||||
| 	google.protobuf.Timestamp created_at = 2 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false]; | ||||
|  | ||||
| 	map<string, string> labels = 3; | ||||
| } | ||||
|  | ||||
| message CreateRequest { | ||||
| 	// ID is used to identity the lease, when the id is not set the service | ||||
| 	// generates a random identifier for the lease. | ||||
| 	string id = 1; | ||||
|  | ||||
| 	map<string, string> labels = 3; | ||||
| } | ||||
|  | ||||
| message CreateResponse { | ||||
| 	Lease lease = 1; | ||||
| } | ||||
|  | ||||
| message DeleteRequest { | ||||
| 	string id = 1; | ||||
|  | ||||
| 	// Sync indicates that the delete and cleanup should be done | ||||
| 	// synchronously before returning to the caller | ||||
| 	// | ||||
| 	// Default is false | ||||
| 	bool sync = 2; | ||||
| } | ||||
|  | ||||
| message ListRequest { | ||||
| 	repeated string filters = 1; | ||||
| } | ||||
|  | ||||
| message ListResponse { | ||||
| 	repeated Lease leases = 1; | ||||
| } | ||||
|  | ||||
| message Resource { | ||||
| 	string id = 1; | ||||
|  | ||||
| 	// For snapshotter resource, there are many snapshotter types here, like | ||||
| 	// overlayfs, devmapper etc. The type will be formatted with type, | ||||
| 	// like "snapshotter/overlayfs". | ||||
| 	string type = 2; | ||||
| } | ||||
|  | ||||
| message AddResourceRequest { | ||||
| 	string id = 1; | ||||
|  | ||||
| 	Resource resource = 2 [(gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| message DeleteResourceRequest { | ||||
| 	string id = 1; | ||||
|  | ||||
| 	Resource resource = 2 [(gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| message ListResourcesRequest { | ||||
| 	string id = 1; | ||||
| } | ||||
|  | ||||
| message ListResourcesResponse { | ||||
| 	repeated Resource resources = 1	[(gogoproto.nullable) = false]; | ||||
| } | ||||
							
								
								
									
										17
									
								
								vendor/github.com/containerd/containerd/api/services/namespaces/v1/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								vendor/github.com/containerd/containerd/api/services/namespaces/v1/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,17 +0,0 @@ | ||||
| /* | ||||
|    Copyright The containerd Authors. | ||||
|  | ||||
|    Licensed under the Apache License, Version 2.0 (the "License"); | ||||
|    you may not use this file except in compliance with the License. | ||||
|    You may obtain a copy of the License at | ||||
|  | ||||
|        http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
|    Unless required by applicable law or agreed to in writing, software | ||||
|    distributed under the License is distributed on an "AS IS" BASIS, | ||||
|    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
|    See the License for the specific language governing permissions and | ||||
|    limitations under the License. | ||||
| */ | ||||
|  | ||||
| package namespaces | ||||
							
								
								
									
										2518
									
								
								vendor/github.com/containerd/containerd/api/services/namespaces/v1/namespace.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2518
									
								
								vendor/github.com/containerd/containerd/api/services/namespaces/v1/namespace.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										108
									
								
								vendor/github.com/containerd/containerd/api/services/namespaces/v1/namespace.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										108
									
								
								vendor/github.com/containerd/containerd/api/services/namespaces/v1/namespace.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,108 +0,0 @@ | ||||
| /* | ||||
| 	Copyright The containerd Authors. | ||||
|  | ||||
| 	Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| 	you may not use this file except in compliance with the License. | ||||
| 	You may obtain a copy of the License at | ||||
|  | ||||
| 		http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
| 	Unless required by applicable law or agreed to in writing, software | ||||
| 	distributed under the License is distributed on an "AS IS" BASIS, | ||||
| 	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| 	See the License for the specific language governing permissions and | ||||
| 	limitations under the License. | ||||
| */ | ||||
|  | ||||
| syntax = "proto3"; | ||||
|  | ||||
| package containerd.services.namespaces.v1; | ||||
|  | ||||
| import weak "gogoproto/gogo.proto"; | ||||
| import "google/protobuf/empty.proto"; | ||||
| import "google/protobuf/field_mask.proto"; | ||||
|  | ||||
| option go_package = "github.com/containerd/containerd/api/services/namespaces/v1;namespaces"; | ||||
|  | ||||
| // Namespaces provides the ability to manipulate containerd namespaces. | ||||
| // | ||||
| // All objects in the system are required to be a member of a namespace. If a | ||||
| // namespace is deleted, all objects, including containers, images and | ||||
| // snapshots, will be deleted, as well. | ||||
| // | ||||
| // Unless otherwise noted, operations in containerd apply only to the namespace | ||||
| // supplied per request. | ||||
| // | ||||
| // I hope this goes without saying, but namespaces are themselves NOT | ||||
| // namespaced. | ||||
| service Namespaces { | ||||
| 	rpc Get(GetNamespaceRequest) returns (GetNamespaceResponse); | ||||
| 	rpc List(ListNamespacesRequest) returns (ListNamespacesResponse); | ||||
| 	rpc Create(CreateNamespaceRequest) returns (CreateNamespaceResponse); | ||||
| 	rpc Update(UpdateNamespaceRequest) returns (UpdateNamespaceResponse); | ||||
| 	rpc Delete(DeleteNamespaceRequest) returns (google.protobuf.Empty); | ||||
| } | ||||
|  | ||||
| message Namespace { | ||||
| 	string name = 1; | ||||
|  | ||||
| 	// Labels provides an area to include arbitrary data on namespaces. | ||||
| 	// | ||||
| 	// The combined size of a key/value pair cannot exceed 4096 bytes. | ||||
| 	// | ||||
| 	// Note that to add a new value to this field, read the existing set and | ||||
| 	// include the entire result in the update call. | ||||
| 	map<string, string> labels  = 2; | ||||
| } | ||||
|  | ||||
| message GetNamespaceRequest { | ||||
| 	string name = 1; | ||||
| } | ||||
|  | ||||
| message GetNamespaceResponse { | ||||
| 	Namespace namespace = 1 [(gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| message ListNamespacesRequest { | ||||
| 	string filter = 1; | ||||
| } | ||||
|  | ||||
| message ListNamespacesResponse { | ||||
| 	repeated Namespace namespaces = 1 [(gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| message CreateNamespaceRequest { | ||||
| 	Namespace namespace = 1 [(gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| message CreateNamespaceResponse { | ||||
| 	Namespace namespace = 1 [(gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| // UpdateNamespaceRequest updates the metadata for a namespace. | ||||
| // | ||||
| // The operation should follow semantics described in | ||||
| // https://developers.google.com/protocol-buffers/docs/reference/csharp/class/google/protobuf/well-known-types/field-mask, | ||||
| // unless otherwise qualified. | ||||
| message UpdateNamespaceRequest { | ||||
| 	// Namespace provides the target value, as declared by the mask, for the update. | ||||
| 	// | ||||
| 	// The namespace field must be set. | ||||
| 	Namespace namespace = 1 [(gogoproto.nullable) = false]; | ||||
|  | ||||
| 	// UpdateMask specifies which fields to perform the update on. If empty, | ||||
| 	// the operation applies to all fields. | ||||
| 	// | ||||
| 	// For the most part, this applies only to selectively updating labels on | ||||
| 	// the namespace. While field masks are typically limited to ascii alphas | ||||
| 	// and digits, we just take everything after the "labels." as the map key. | ||||
| 	google.protobuf.FieldMask update_mask = 2; | ||||
| } | ||||
|  | ||||
| message UpdateNamespaceResponse { | ||||
| 	Namespace namespace = 1 [(gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| message DeleteNamespaceRequest { | ||||
| 	string name = 1; | ||||
| } | ||||
							
								
								
									
										17
									
								
								vendor/github.com/containerd/containerd/api/services/snapshots/v1/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								vendor/github.com/containerd/containerd/api/services/snapshots/v1/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,17 +0,0 @@ | ||||
| /* | ||||
|    Copyright The containerd Authors. | ||||
|  | ||||
|    Licensed under the Apache License, Version 2.0 (the "License"); | ||||
|    you may not use this file except in compliance with the License. | ||||
|    You may obtain a copy of the License at | ||||
|  | ||||
|        http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
|    Unless required by applicable law or agreed to in writing, software | ||||
|    distributed under the License is distributed on an "AS IS" BASIS, | ||||
|    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
|    See the License for the specific language governing permissions and | ||||
|    limitations under the License. | ||||
| */ | ||||
|  | ||||
| package snapshots | ||||
							
								
								
									
										5541
									
								
								vendor/github.com/containerd/containerd/api/services/snapshots/v1/snapshots.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										5541
									
								
								vendor/github.com/containerd/containerd/api/services/snapshots/v1/snapshots.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										183
									
								
								vendor/github.com/containerd/containerd/api/services/snapshots/v1/snapshots.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										183
									
								
								vendor/github.com/containerd/containerd/api/services/snapshots/v1/snapshots.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,183 +0,0 @@ | ||||
| /* | ||||
| 	Copyright The containerd Authors. | ||||
|  | ||||
| 	Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| 	you may not use this file except in compliance with the License. | ||||
| 	You may obtain a copy of the License at | ||||
|  | ||||
| 		http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
| 	Unless required by applicable law or agreed to in writing, software | ||||
| 	distributed under the License is distributed on an "AS IS" BASIS, | ||||
| 	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| 	See the License for the specific language governing permissions and | ||||
| 	limitations under the License. | ||||
| */ | ||||
|  | ||||
| syntax = "proto3"; | ||||
|  | ||||
| package containerd.services.snapshots.v1; | ||||
|  | ||||
| import weak "gogoproto/gogo.proto"; | ||||
| import "google/protobuf/empty.proto"; | ||||
| import "google/protobuf/field_mask.proto"; | ||||
| import "google/protobuf/timestamp.proto"; | ||||
| import "github.com/containerd/containerd/api/types/mount.proto"; | ||||
|  | ||||
| option go_package = "github.com/containerd/containerd/api/services/snapshots/v1;snapshots"; | ||||
|  | ||||
| // Snapshot service manages snapshots | ||||
| service Snapshots { | ||||
| 	rpc Prepare(PrepareSnapshotRequest) returns (PrepareSnapshotResponse); | ||||
| 	rpc View(ViewSnapshotRequest) returns (ViewSnapshotResponse); | ||||
| 	rpc Mounts(MountsRequest) returns (MountsResponse); | ||||
| 	rpc Commit(CommitSnapshotRequest) returns (google.protobuf.Empty); | ||||
| 	rpc Remove(RemoveSnapshotRequest) returns (google.protobuf.Empty); | ||||
| 	rpc Stat(StatSnapshotRequest) returns (StatSnapshotResponse); | ||||
| 	rpc Update(UpdateSnapshotRequest) returns (UpdateSnapshotResponse); | ||||
| 	rpc List(ListSnapshotsRequest) returns (stream ListSnapshotsResponse); | ||||
| 	rpc Usage(UsageRequest) returns (UsageResponse); | ||||
| 	rpc Cleanup(CleanupRequest) returns (google.protobuf.Empty); | ||||
| } | ||||
|  | ||||
| message PrepareSnapshotRequest { | ||||
| 	string snapshotter = 1; | ||||
| 	string key = 2; | ||||
| 	string parent = 3; | ||||
|  | ||||
| 	// Labels are arbitrary data on snapshots. | ||||
| 	// | ||||
| 	// The combined size of a key/value pair cannot exceed 4096 bytes. | ||||
| 	map<string, string> labels  = 4; | ||||
| } | ||||
|  | ||||
| message PrepareSnapshotResponse { | ||||
| 	repeated containerd.types.Mount mounts = 1; | ||||
| } | ||||
|  | ||||
| message ViewSnapshotRequest { | ||||
| 	string snapshotter = 1; | ||||
| 	string key = 2; | ||||
| 	string parent = 3; | ||||
|  | ||||
| 	// Labels are arbitrary data on snapshots. | ||||
| 	// | ||||
| 	// The combined size of a key/value pair cannot exceed 4096 bytes. | ||||
| 	map<string, string> labels  = 4; | ||||
| } | ||||
|  | ||||
| message ViewSnapshotResponse { | ||||
| 	repeated containerd.types.Mount mounts = 1; | ||||
| } | ||||
|  | ||||
| message MountsRequest { | ||||
| 	string snapshotter = 1; | ||||
| 	string key = 2; | ||||
| } | ||||
|  | ||||
| message MountsResponse { | ||||
| 	repeated containerd.types.Mount mounts = 1; | ||||
| } | ||||
|  | ||||
| message RemoveSnapshotRequest { | ||||
| 	string snapshotter = 1; | ||||
| 	string key = 2; | ||||
| } | ||||
|  | ||||
| message CommitSnapshotRequest { | ||||
| 	string snapshotter = 1; | ||||
| 	string name = 2; | ||||
| 	string key = 3; | ||||
|  | ||||
| 	// Labels are arbitrary data on snapshots. | ||||
| 	// | ||||
| 	// The combined size of a key/value pair cannot exceed 4096 bytes. | ||||
| 	map<string, string> labels  = 4; | ||||
| } | ||||
|  | ||||
| message StatSnapshotRequest { | ||||
| 	string snapshotter = 1; | ||||
| 	string key = 2; | ||||
| } | ||||
|  | ||||
| enum Kind { | ||||
| 	option (gogoproto.goproto_enum_prefix) = false; | ||||
| 	option (gogoproto.enum_customname) = "Kind"; | ||||
|  | ||||
| 	UNKNOWN = 0 [(gogoproto.enumvalue_customname) = "KindUnknown"]; | ||||
| 	VIEW = 1 [(gogoproto.enumvalue_customname) = "KindView"]; | ||||
| 	ACTIVE = 2 [(gogoproto.enumvalue_customname) = "KindActive"]; | ||||
| 	COMMITTED = 3 [(gogoproto.enumvalue_customname) = "KindCommitted"]; | ||||
| } | ||||
|  | ||||
| message Info { | ||||
| 	string name = 1; | ||||
| 	string parent = 2; | ||||
| 	Kind kind = 3; | ||||
|  | ||||
| 	// CreatedAt provides the time at which the snapshot was created. | ||||
| 	google.protobuf.Timestamp created_at = 4 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false]; | ||||
|  | ||||
| 	// UpdatedAt provides the time the info was last updated. | ||||
| 	google.protobuf.Timestamp updated_at = 5 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false]; | ||||
|  | ||||
| 	// Labels are arbitrary data on snapshots. | ||||
| 	// | ||||
| 	// The combined size of a key/value pair cannot exceed 4096 bytes. | ||||
| 	map<string, string> labels  = 6; | ||||
| } | ||||
|  | ||||
| message StatSnapshotResponse { | ||||
| 	Info info = 1 [(gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| message UpdateSnapshotRequest { | ||||
| 	string snapshotter = 1; | ||||
| 	Info info = 2 [(gogoproto.nullable) = false]; | ||||
|  | ||||
| 	// UpdateMask specifies which fields to perform the update on. If empty, | ||||
| 	// the operation applies to all fields. | ||||
| 	// | ||||
| 	// In info, Name, Parent, Kind, Created are immutable, | ||||
| 	// other field may be updated using this mask. | ||||
| 	// If no mask is provided, all mutable field are updated. | ||||
| 	google.protobuf.FieldMask update_mask = 3; | ||||
| } | ||||
|  | ||||
| message UpdateSnapshotResponse { | ||||
| 	Info info = 1 [(gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| message ListSnapshotsRequest{ | ||||
| 	string snapshotter = 1; | ||||
|  | ||||
| 	// Filters contains one or more filters using the syntax defined in the | ||||
| 	// containerd filter package. | ||||
| 	// | ||||
| 	// The returned result will be those that match any of the provided | ||||
| 	// filters. Expanded, images that match the following will be | ||||
| 	// returned: | ||||
| 	// | ||||
| 	//   filters[0] or filters[1] or ... or filters[n-1] or filters[n] | ||||
| 	// | ||||
| 	// If filters is zero-length or nil, all items will be returned. | ||||
| 	repeated string filters = 2; | ||||
| } | ||||
|  | ||||
| message ListSnapshotsResponse { | ||||
| 	repeated Info info = 1 [(gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| message UsageRequest { | ||||
| 	string snapshotter = 1; | ||||
| 	string key = 2; | ||||
| } | ||||
|  | ||||
| message UsageResponse { | ||||
| 	int64 size = 1; | ||||
| 	int64 inodes = 2; | ||||
| } | ||||
|  | ||||
| message CleanupRequest { | ||||
| 	string snapshotter = 1; | ||||
| } | ||||
							
								
								
									
										17
									
								
								vendor/github.com/containerd/containerd/api/services/tasks/v1/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								vendor/github.com/containerd/containerd/api/services/tasks/v1/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,17 +0,0 @@ | ||||
| /* | ||||
|    Copyright The containerd Authors. | ||||
|  | ||||
|    Licensed under the Apache License, Version 2.0 (the "License"); | ||||
|    you may not use this file except in compliance with the License. | ||||
|    You may obtain a copy of the License at | ||||
|  | ||||
|        http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
|    Unless required by applicable law or agreed to in writing, software | ||||
|    distributed under the License is distributed on an "AS IS" BASIS, | ||||
|    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
|    See the License for the specific language governing permissions and | ||||
|    limitations under the License. | ||||
| */ | ||||
|  | ||||
| package tasks | ||||
							
								
								
									
										7511
									
								
								vendor/github.com/containerd/containerd/api/services/tasks/v1/tasks.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										7511
									
								
								vendor/github.com/containerd/containerd/api/services/tasks/v1/tasks.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										228
									
								
								vendor/github.com/containerd/containerd/api/services/tasks/v1/tasks.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										228
									
								
								vendor/github.com/containerd/containerd/api/services/tasks/v1/tasks.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,228 +0,0 @@ | ||||
| /* | ||||
| 	Copyright The containerd Authors. | ||||
|  | ||||
| 	Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| 	you may not use this file except in compliance with the License. | ||||
| 	You may obtain a copy of the License at | ||||
|  | ||||
| 		http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
| 	Unless required by applicable law or agreed to in writing, software | ||||
| 	distributed under the License is distributed on an "AS IS" BASIS, | ||||
| 	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| 	See the License for the specific language governing permissions and | ||||
| 	limitations under the License. | ||||
| */ | ||||
|  | ||||
| syntax = "proto3"; | ||||
|  | ||||
| package containerd.services.tasks.v1; | ||||
|  | ||||
| import "google/protobuf/empty.proto"; | ||||
| import "google/protobuf/any.proto"; | ||||
| import weak "gogoproto/gogo.proto"; | ||||
| import "github.com/containerd/containerd/api/types/mount.proto"; | ||||
| import "github.com/containerd/containerd/api/types/metrics.proto"; | ||||
| import "github.com/containerd/containerd/api/types/descriptor.proto"; | ||||
| import "github.com/containerd/containerd/api/types/task/task.proto"; | ||||
| import "google/protobuf/timestamp.proto"; | ||||
|  | ||||
| option go_package = "github.com/containerd/containerd/api/services/tasks/v1;tasks"; | ||||
|  | ||||
| service Tasks { | ||||
| 	// Create a task. | ||||
| 	rpc Create(CreateTaskRequest) returns (CreateTaskResponse); | ||||
|  | ||||
| 	// Start a process. | ||||
| 	rpc Start(StartRequest) returns (StartResponse); | ||||
|  | ||||
| 	// Delete a task and on disk state. | ||||
| 	rpc Delete(DeleteTaskRequest) returns (DeleteResponse); | ||||
|  | ||||
| 	rpc DeleteProcess(DeleteProcessRequest) returns (DeleteResponse); | ||||
|  | ||||
| 	rpc Get(GetRequest) returns (GetResponse); | ||||
|  | ||||
| 	rpc List(ListTasksRequest) returns (ListTasksResponse); | ||||
|  | ||||
| 	// Kill a task or process. | ||||
| 	rpc Kill(KillRequest) returns (google.protobuf.Empty); | ||||
|  | ||||
| 	rpc Exec(ExecProcessRequest) returns (google.protobuf.Empty); | ||||
|  | ||||
| 	rpc ResizePty(ResizePtyRequest) returns (google.protobuf.Empty); | ||||
|  | ||||
| 	rpc CloseIO(CloseIORequest) returns (google.protobuf.Empty); | ||||
|  | ||||
| 	rpc Pause(PauseTaskRequest) returns (google.protobuf.Empty); | ||||
|  | ||||
| 	rpc Resume(ResumeTaskRequest) returns (google.protobuf.Empty); | ||||
|  | ||||
| 	rpc ListPids(ListPidsRequest) returns (ListPidsResponse); | ||||
|  | ||||
| 	rpc Checkpoint(CheckpointTaskRequest) returns (CheckpointTaskResponse); | ||||
|  | ||||
| 	rpc Update(UpdateTaskRequest) returns (google.protobuf.Empty); | ||||
|  | ||||
| 	rpc Metrics(MetricsRequest) returns (MetricsResponse); | ||||
|  | ||||
| 	rpc Wait(WaitRequest) returns (WaitResponse); | ||||
| } | ||||
|  | ||||
| message CreateTaskRequest { | ||||
| 	string container_id = 1; | ||||
|  | ||||
| 	// RootFS provides the pre-chroot mounts to perform in the shim before | ||||
| 	// executing the container task. | ||||
| 	// | ||||
| 	// These are for mounts that cannot be performed in the user namespace. | ||||
| 	// Typically, these mounts should be resolved from snapshots specified on | ||||
| 	// the container object. | ||||
| 	repeated containerd.types.Mount rootfs = 3; | ||||
|  | ||||
| 	string stdin = 4; | ||||
| 	string stdout = 5; | ||||
| 	string stderr = 6; | ||||
| 	bool terminal = 7; | ||||
|  | ||||
| 	containerd.types.Descriptor checkpoint = 8; | ||||
|  | ||||
| 	google.protobuf.Any options = 9; | ||||
|  | ||||
| 	string runtime_path = 10; | ||||
| } | ||||
|  | ||||
| message CreateTaskResponse { | ||||
| 	string container_id = 1; | ||||
| 	uint32 pid = 2; | ||||
| } | ||||
|  | ||||
| message StartRequest { | ||||
| 	string container_id = 1; | ||||
| 	string exec_id = 2; | ||||
| } | ||||
|  | ||||
| message StartResponse { | ||||
| 	uint32 pid = 1; | ||||
| } | ||||
|  | ||||
| message DeleteTaskRequest { | ||||
| 	string container_id = 1; | ||||
| } | ||||
|  | ||||
| message DeleteResponse { | ||||
| 	string id = 1; | ||||
| 	uint32 pid = 2; | ||||
| 	uint32 exit_status = 3; | ||||
| 	google.protobuf.Timestamp exited_at = 4 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| message DeleteProcessRequest { | ||||
| 	string container_id = 1; | ||||
| 	string exec_id = 2; | ||||
| } | ||||
|  | ||||
| message GetRequest { | ||||
| 	string container_id = 1; | ||||
| 	string exec_id = 2; | ||||
| } | ||||
|  | ||||
| message GetResponse { | ||||
| 	containerd.v1.types.Process process = 1; | ||||
| } | ||||
|  | ||||
| message ListTasksRequest { | ||||
| 	string filter = 1; | ||||
| } | ||||
|  | ||||
| message ListTasksResponse { | ||||
| 	repeated containerd.v1.types.Process tasks = 1; | ||||
| } | ||||
|  | ||||
| message KillRequest { | ||||
| 	string container_id = 1; | ||||
| 	string exec_id = 2; | ||||
| 	uint32 signal = 3; | ||||
| 	bool all = 4; | ||||
| } | ||||
|  | ||||
| message ExecProcessRequest { | ||||
| 	string container_id = 1; | ||||
| 	string stdin = 2; | ||||
| 	string stdout = 3; | ||||
| 	string stderr = 4; | ||||
| 	bool terminal = 5; | ||||
| 	// Spec for starting a process in the target container. | ||||
| 	// | ||||
| 	// For runc, this is a process spec, for example. | ||||
| 	google.protobuf.Any spec = 6; | ||||
| 	// id of the exec process | ||||
| 	string exec_id = 7; | ||||
| } | ||||
|  | ||||
| message ExecProcessResponse { | ||||
| } | ||||
|  | ||||
| message ResizePtyRequest { | ||||
| 	string container_id = 1; | ||||
| 	string exec_id = 2; | ||||
| 	uint32 width = 3; | ||||
| 	uint32 height = 4; | ||||
| } | ||||
|  | ||||
| message CloseIORequest { | ||||
| 	string container_id = 1; | ||||
| 	string exec_id = 2; | ||||
| 	bool stdin = 3; | ||||
| } | ||||
|  | ||||
| message PauseTaskRequest { | ||||
| 	string container_id = 1; | ||||
| } | ||||
|  | ||||
| message ResumeTaskRequest { | ||||
| 	string container_id = 1; | ||||
| } | ||||
|  | ||||
| message ListPidsRequest { | ||||
| 	string container_id = 1; | ||||
| } | ||||
|  | ||||
| message ListPidsResponse { | ||||
| 	// Processes includes the process ID and additional process information | ||||
| 	repeated containerd.v1.types.ProcessInfo processes = 1; | ||||
| } | ||||
|  | ||||
| message CheckpointTaskRequest { | ||||
| 	string container_id = 1; | ||||
| 	string parent_checkpoint = 2 [(gogoproto.customtype) = "github.com/opencontainers/go-digest.Digest", (gogoproto.nullable) = false]; | ||||
| 	google.protobuf.Any options = 3; | ||||
| } | ||||
|  | ||||
| message CheckpointTaskResponse { | ||||
| 	repeated containerd.types.Descriptor descriptors = 1; | ||||
| } | ||||
|  | ||||
| message UpdateTaskRequest { | ||||
| 	string container_id = 1; | ||||
| 	google.protobuf.Any resources = 2; | ||||
| 	map<string, string> annotations = 3; | ||||
| } | ||||
|  | ||||
| message MetricsRequest { | ||||
| 	repeated string filters = 1; | ||||
| } | ||||
|  | ||||
| message MetricsResponse { | ||||
| 	repeated types.Metric metrics = 1; | ||||
| } | ||||
|  | ||||
| message WaitRequest { | ||||
| 	string container_id = 1; | ||||
| 	string exec_id = 2; | ||||
| } | ||||
|  | ||||
| message WaitResponse { | ||||
| 	uint32 exit_status = 1; | ||||
| 	google.protobuf.Timestamp exited_at = 2 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false]; | ||||
| } | ||||
							
								
								
									
										18
									
								
								vendor/github.com/containerd/containerd/api/services/ttrpc/events/v1/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										18
									
								
								vendor/github.com/containerd/containerd/api/services/ttrpc/events/v1/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,18 +0,0 @@ | ||||
| /* | ||||
|    Copyright The containerd Authors. | ||||
|  | ||||
|    Licensed under the Apache License, Version 2.0 (the "License"); | ||||
|    you may not use this file except in compliance with the License. | ||||
|    You may obtain a copy of the License at | ||||
|  | ||||
|        http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
|    Unless required by applicable law or agreed to in writing, software | ||||
|    distributed under the License is distributed on an "AS IS" BASIS, | ||||
|    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
|    See the License for the specific language governing permissions and | ||||
|    limitations under the License. | ||||
| */ | ||||
|  | ||||
| // Package events defines the ttrpc event service. | ||||
| package events | ||||
							
								
								
									
										760
									
								
								vendor/github.com/containerd/containerd/api/services/ttrpc/events/v1/events.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										760
									
								
								vendor/github.com/containerd/containerd/api/services/ttrpc/events/v1/events.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,760 +0,0 @@ | ||||
| // Code generated by protoc-gen-gogo. DO NOT EDIT. | ||||
| // source: github.com/containerd/containerd/api/services/ttrpc/events/v1/events.proto | ||||
|  | ||||
| package events | ||||
|  | ||||
| import ( | ||||
| 	context "context" | ||||
| 	fmt "fmt" | ||||
| 	github_com_containerd_ttrpc "github.com/containerd/ttrpc" | ||||
| 	github_com_containerd_typeurl "github.com/containerd/typeurl" | ||||
| 	proto "github.com/gogo/protobuf/proto" | ||||
| 	github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" | ||||
| 	types "github.com/gogo/protobuf/types" | ||||
| 	io "io" | ||||
| 	math "math" | ||||
| 	math_bits "math/bits" | ||||
| 	reflect "reflect" | ||||
| 	strings "strings" | ||||
| 	time "time" | ||||
| ) | ||||
|  | ||||
| // Reference imports to suppress errors if they are not otherwise used. | ||||
| var _ = proto.Marshal | ||||
| var _ = fmt.Errorf | ||||
| var _ = math.Inf | ||||
| var _ = time.Kitchen | ||||
|  | ||||
| // This is a compile-time assertion to ensure that this generated file | ||||
| // is compatible with the proto package it is being compiled against. | ||||
| // A compilation error at this line likely means your copy of the | ||||
| // proto package needs to be updated. | ||||
| const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package | ||||
|  | ||||
| type ForwardRequest struct { | ||||
| 	Envelope             *Envelope `protobuf:"bytes,1,opt,name=envelope,proto3" json:"envelope,omitempty"` | ||||
| 	XXX_NoUnkeyedLiteral struct{}  `json:"-"` | ||||
| 	XXX_unrecognized     []byte    `json:"-"` | ||||
| 	XXX_sizecache        int32     `json:"-"` | ||||
| } | ||||
|  | ||||
| func (m *ForwardRequest) Reset()      { *m = ForwardRequest{} } | ||||
| func (*ForwardRequest) ProtoMessage() {} | ||||
| func (*ForwardRequest) Descriptor() ([]byte, []int) { | ||||
| 	return fileDescriptor_19f98672016720b5, []int{0} | ||||
| } | ||||
| func (m *ForwardRequest) XXX_Unmarshal(b []byte) error { | ||||
| 	return m.Unmarshal(b) | ||||
| } | ||||
| func (m *ForwardRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { | ||||
| 	if deterministic { | ||||
| 		return xxx_messageInfo_ForwardRequest.Marshal(b, m, deterministic) | ||||
| 	} else { | ||||
| 		b = b[:cap(b)] | ||||
| 		n, err := m.MarshalToSizedBuffer(b) | ||||
| 		if err != nil { | ||||
| 			return nil, err | ||||
| 		} | ||||
| 		return b[:n], nil | ||||
| 	} | ||||
| } | ||||
| func (m *ForwardRequest) XXX_Merge(src proto.Message) { | ||||
| 	xxx_messageInfo_ForwardRequest.Merge(m, src) | ||||
| } | ||||
| func (m *ForwardRequest) XXX_Size() int { | ||||
| 	return m.Size() | ||||
| } | ||||
| func (m *ForwardRequest) XXX_DiscardUnknown() { | ||||
| 	xxx_messageInfo_ForwardRequest.DiscardUnknown(m) | ||||
| } | ||||
|  | ||||
| var xxx_messageInfo_ForwardRequest proto.InternalMessageInfo | ||||
|  | ||||
| type Envelope struct { | ||||
| 	Timestamp            time.Time  `protobuf:"bytes,1,opt,name=timestamp,proto3,stdtime" json:"timestamp"` | ||||
| 	Namespace            string     `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` | ||||
| 	Topic                string     `protobuf:"bytes,3,opt,name=topic,proto3" json:"topic,omitempty"` | ||||
| 	Event                *types.Any `protobuf:"bytes,4,opt,name=event,proto3" json:"event,omitempty"` | ||||
| 	XXX_NoUnkeyedLiteral struct{}   `json:"-"` | ||||
| 	XXX_unrecognized     []byte     `json:"-"` | ||||
| 	XXX_sizecache        int32      `json:"-"` | ||||
| } | ||||
|  | ||||
| func (m *Envelope) Reset()      { *m = Envelope{} } | ||||
| func (*Envelope) ProtoMessage() {} | ||||
| func (*Envelope) Descriptor() ([]byte, []int) { | ||||
| 	return fileDescriptor_19f98672016720b5, []int{1} | ||||
| } | ||||
| func (m *Envelope) XXX_Unmarshal(b []byte) error { | ||||
| 	return m.Unmarshal(b) | ||||
| } | ||||
| func (m *Envelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { | ||||
| 	if deterministic { | ||||
| 		return xxx_messageInfo_Envelope.Marshal(b, m, deterministic) | ||||
| 	} else { | ||||
| 		b = b[:cap(b)] | ||||
| 		n, err := m.MarshalToSizedBuffer(b) | ||||
| 		if err != nil { | ||||
| 			return nil, err | ||||
| 		} | ||||
| 		return b[:n], nil | ||||
| 	} | ||||
| } | ||||
| func (m *Envelope) XXX_Merge(src proto.Message) { | ||||
| 	xxx_messageInfo_Envelope.Merge(m, src) | ||||
| } | ||||
| func (m *Envelope) XXX_Size() int { | ||||
| 	return m.Size() | ||||
| } | ||||
| func (m *Envelope) XXX_DiscardUnknown() { | ||||
| 	xxx_messageInfo_Envelope.DiscardUnknown(m) | ||||
| } | ||||
|  | ||||
| var xxx_messageInfo_Envelope proto.InternalMessageInfo | ||||
|  | ||||
| func init() { | ||||
| 	proto.RegisterType((*ForwardRequest)(nil), "containerd.services.events.ttrpc.v1.ForwardRequest") | ||||
| 	proto.RegisterType((*Envelope)(nil), "containerd.services.events.ttrpc.v1.Envelope") | ||||
| } | ||||
|  | ||||
| func init() { | ||||
| 	proto.RegisterFile("github.com/containerd/containerd/api/services/ttrpc/events/v1/events.proto", fileDescriptor_19f98672016720b5) | ||||
| } | ||||
|  | ||||
| var fileDescriptor_19f98672016720b5 = []byte{ | ||||
| 	// 396 bytes of a gzipped FileDescriptorProto | ||||
| 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x52, 0xc1, 0x8e, 0xd3, 0x30, | ||||
| 	0x10, 0x8d, 0x61, 0x77, 0x69, 0x8d, 0xc4, 0xc1, 0xaa, 0x50, 0x08, 0x28, 0x59, 0x2d, 0x97, 0x15, | ||||
| 	0x12, 0xb6, 0x76, 0xf7, 0x06, 0x17, 0xa8, 0x28, 0x12, 0x1c, 0x23, 0x84, 0x2a, 0x90, 0x10, 0x6e, | ||||
| 	0x3a, 0x4d, 0x2d, 0x25, 0xb6, 0x49, 0x9c, 0xa0, 0xde, 0xfa, 0x09, 0x7c, 0x0c, 0x17, 0xfe, 0xa0, | ||||
| 	0x47, 0x8e, 0x9c, 0x80, 0xe6, 0x4b, 0x50, 0x9d, 0xa4, 0x81, 0xf6, 0x40, 0xa5, 0xbd, 0xbd, 0xcc, | ||||
| 	0x7b, 0x6f, 0xde, 0xcc, 0xc4, 0xf8, 0x75, 0x2c, 0xcc, 0xbc, 0x98, 0xd0, 0x48, 0xa5, 0x2c, 0x52, | ||||
| 	0xd2, 0x70, 0x21, 0x21, 0x9b, 0xfe, 0x0d, 0xb9, 0x16, 0x2c, 0x87, 0xac, 0x14, 0x11, 0xe4, 0xcc, | ||||
| 	0x98, 0x4c, 0x47, 0x0c, 0x4a, 0x90, 0x26, 0x67, 0xe5, 0x45, 0x83, 0xa8, 0xce, 0x94, 0x51, 0xe4, | ||||
| 	0x61, 0xe7, 0xa2, 0xad, 0x83, 0x36, 0x0a, 0x6b, 0xa4, 0xe5, 0x85, 0xf7, 0xec, 0xbf, 0x81, 0xb6, | ||||
| 	0xd9, 0xa4, 0x98, 0x31, 0x9d, 0x14, 0xb1, 0x90, 0x6c, 0x26, 0x20, 0x99, 0x6a, 0x6e, 0xe6, 0x75, | ||||
| 	0x8c, 0x37, 0x88, 0x55, 0xac, 0x2c, 0x64, 0x1b, 0xd4, 0x54, 0xef, 0xc5, 0x4a, 0xc5, 0x09, 0x74, | ||||
| 	0x6e, 0x2e, 0x17, 0x0d, 0x75, 0x7f, 0x97, 0x82, 0x54, 0x9b, 0x96, 0x0c, 0x76, 0x49, 0x23, 0x52, | ||||
| 	0xc8, 0x0d, 0x4f, 0x75, 0x2d, 0x38, 0x7b, 0x8f, 0xef, 0xbc, 0x54, 0xd9, 0x67, 0x9e, 0x4d, 0x43, | ||||
| 	0xf8, 0x54, 0x40, 0x6e, 0xc8, 0x2b, 0xdc, 0x03, 0x59, 0x42, 0xa2, 0x34, 0xb8, 0xe8, 0x14, 0x9d, | ||||
| 	0xdf, 0xbe, 0x7c, 0x4c, 0x0f, 0x58, 0x9d, 0x8e, 0x1a, 0x53, 0xb8, 0xb5, 0x9f, 0x7d, 0x45, 0xb8, | ||||
| 	0xd7, 0x96, 0xc9, 0x10, 0xf7, 0xb7, 0xe1, 0x4d, 0x63, 0x8f, 0xd6, 0xe3, 0xd1, 0x76, 0x3c, 0xfa, | ||||
| 	0xa6, 0x55, 0x0c, 0x7b, 0xab, 0x9f, 0x81, 0xf3, 0xe5, 0x57, 0x80, 0xc2, 0xce, 0x46, 0x1e, 0xe0, | ||||
| 	0xbe, 0xe4, 0x29, 0xe4, 0x9a, 0x47, 0xe0, 0xde, 0x38, 0x45, 0xe7, 0xfd, 0xb0, 0x2b, 0x90, 0x01, | ||||
| 	0x3e, 0x36, 0x4a, 0x8b, 0xc8, 0xbd, 0x69, 0x99, 0xfa, 0x83, 0x3c, 0xc2, 0xc7, 0x76, 0x54, 0xf7, | ||||
| 	0xc8, 0x66, 0x0e, 0xf6, 0x32, 0x9f, 0xcb, 0x45, 0x58, 0x4b, 0x9e, 0x1c, 0x2d, 0xbf, 0x05, 0xe8, | ||||
| 	0xf2, 0x23, 0x3e, 0x19, 0xd9, 0xe5, 0xc8, 0x5b, 0x7c, 0xab, 0xb9, 0x0e, 0xb9, 0x3a, 0xe8, 0x08, | ||||
| 	0xff, 0xde, 0xd2, 0xbb, 0xbb, 0x17, 0x36, 0xda, 0xfc, 0x9c, 0xe1, 0x87, 0xd5, 0xda, 0x77, 0x7e, | ||||
| 	0xac, 0x7d, 0x67, 0x59, 0xf9, 0x68, 0x55, 0xf9, 0xe8, 0x7b, 0xe5, 0xa3, 0xdf, 0x95, 0x8f, 0xde, | ||||
| 	0xbd, 0xb8, 0xd6, 0x8b, 0x7d, 0x5a, 0xa3, 0xb1, 0x33, 0x46, 0x93, 0x13, 0x9b, 0x79, 0xf5, 0x27, | ||||
| 	0x00, 0x00, 0xff, 0xff, 0xd4, 0x90, 0xbd, 0x09, 0x04, 0x03, 0x00, 0x00, | ||||
| } | ||||
|  | ||||
| // Field returns the value for the given fieldpath as a string, if defined. | ||||
| // If the value is not defined, the second value will be false. | ||||
| func (m *Envelope) Field(fieldpath []string) (string, bool) { | ||||
| 	if len(fieldpath) == 0 { | ||||
| 		return "", false | ||||
| 	} | ||||
|  | ||||
| 	switch fieldpath[0] { | ||||
| 	// unhandled: timestamp | ||||
| 	case "namespace": | ||||
| 		return string(m.Namespace), len(m.Namespace) > 0 | ||||
| 	case "topic": | ||||
| 		return string(m.Topic), len(m.Topic) > 0 | ||||
| 	case "event": | ||||
| 		decoded, err := github_com_containerd_typeurl.UnmarshalAny(m.Event) | ||||
| 		if err != nil { | ||||
| 			return "", false | ||||
| 		} | ||||
|  | ||||
| 		adaptor, ok := decoded.(interface{ Field([]string) (string, bool) }) | ||||
| 		if !ok { | ||||
| 			return "", false | ||||
| 		} | ||||
| 		return adaptor.Field(fieldpath[1:]) | ||||
| 	} | ||||
| 	return "", false | ||||
| } | ||||
| func (m *ForwardRequest) Marshal() (dAtA []byte, err error) { | ||||
| 	size := m.Size() | ||||
| 	dAtA = make([]byte, size) | ||||
| 	n, err := m.MarshalToSizedBuffer(dAtA[:size]) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return dAtA[:n], nil | ||||
| } | ||||
|  | ||||
| func (m *ForwardRequest) MarshalTo(dAtA []byte) (int, error) { | ||||
| 	size := m.Size() | ||||
| 	return m.MarshalToSizedBuffer(dAtA[:size]) | ||||
| } | ||||
|  | ||||
| func (m *ForwardRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { | ||||
| 	i := len(dAtA) | ||||
| 	_ = i | ||||
| 	var l int | ||||
| 	_ = l | ||||
| 	if m.XXX_unrecognized != nil { | ||||
| 		i -= len(m.XXX_unrecognized) | ||||
| 		copy(dAtA[i:], m.XXX_unrecognized) | ||||
| 	} | ||||
| 	if m.Envelope != nil { | ||||
| 		{ | ||||
| 			size, err := m.Envelope.MarshalToSizedBuffer(dAtA[:i]) | ||||
| 			if err != nil { | ||||
| 				return 0, err | ||||
| 			} | ||||
| 			i -= size | ||||
| 			i = encodeVarintEvents(dAtA, i, uint64(size)) | ||||
| 		} | ||||
| 		i-- | ||||
| 		dAtA[i] = 0xa | ||||
| 	} | ||||
| 	return len(dAtA) - i, nil | ||||
| } | ||||
|  | ||||
| func (m *Envelope) Marshal() (dAtA []byte, err error) { | ||||
| 	size := m.Size() | ||||
| 	dAtA = make([]byte, size) | ||||
| 	n, err := m.MarshalToSizedBuffer(dAtA[:size]) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return dAtA[:n], nil | ||||
| } | ||||
|  | ||||
| func (m *Envelope) MarshalTo(dAtA []byte) (int, error) { | ||||
| 	size := m.Size() | ||||
| 	return m.MarshalToSizedBuffer(dAtA[:size]) | ||||
| } | ||||
|  | ||||
| func (m *Envelope) MarshalToSizedBuffer(dAtA []byte) (int, error) { | ||||
| 	i := len(dAtA) | ||||
| 	_ = i | ||||
| 	var l int | ||||
| 	_ = l | ||||
| 	if m.XXX_unrecognized != nil { | ||||
| 		i -= len(m.XXX_unrecognized) | ||||
| 		copy(dAtA[i:], m.XXX_unrecognized) | ||||
| 	} | ||||
| 	if m.Event != nil { | ||||
| 		{ | ||||
| 			size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) | ||||
| 			if err != nil { | ||||
| 				return 0, err | ||||
| 			} | ||||
| 			i -= size | ||||
| 			i = encodeVarintEvents(dAtA, i, uint64(size)) | ||||
| 		} | ||||
| 		i-- | ||||
| 		dAtA[i] = 0x22 | ||||
| 	} | ||||
| 	if len(m.Topic) > 0 { | ||||
| 		i -= len(m.Topic) | ||||
| 		copy(dAtA[i:], m.Topic) | ||||
| 		i = encodeVarintEvents(dAtA, i, uint64(len(m.Topic))) | ||||
| 		i-- | ||||
| 		dAtA[i] = 0x1a | ||||
| 	} | ||||
| 	if len(m.Namespace) > 0 { | ||||
| 		i -= len(m.Namespace) | ||||
| 		copy(dAtA[i:], m.Namespace) | ||||
| 		i = encodeVarintEvents(dAtA, i, uint64(len(m.Namespace))) | ||||
| 		i-- | ||||
| 		dAtA[i] = 0x12 | ||||
| 	} | ||||
| 	n3, err3 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Timestamp):]) | ||||
| 	if err3 != nil { | ||||
| 		return 0, err3 | ||||
| 	} | ||||
| 	i -= n3 | ||||
| 	i = encodeVarintEvents(dAtA, i, uint64(n3)) | ||||
| 	i-- | ||||
| 	dAtA[i] = 0xa | ||||
| 	return len(dAtA) - i, nil | ||||
| } | ||||
|  | ||||
| func encodeVarintEvents(dAtA []byte, offset int, v uint64) int { | ||||
| 	offset -= sovEvents(v) | ||||
| 	base := offset | ||||
| 	for v >= 1<<7 { | ||||
| 		dAtA[offset] = uint8(v&0x7f | 0x80) | ||||
| 		v >>= 7 | ||||
| 		offset++ | ||||
| 	} | ||||
| 	dAtA[offset] = uint8(v) | ||||
| 	return base | ||||
| } | ||||
| func (m *ForwardRequest) Size() (n int) { | ||||
| 	if m == nil { | ||||
| 		return 0 | ||||
| 	} | ||||
| 	var l int | ||||
| 	_ = l | ||||
| 	if m.Envelope != nil { | ||||
| 		l = m.Envelope.Size() | ||||
| 		n += 1 + l + sovEvents(uint64(l)) | ||||
| 	} | ||||
| 	if m.XXX_unrecognized != nil { | ||||
| 		n += len(m.XXX_unrecognized) | ||||
| 	} | ||||
| 	return n | ||||
| } | ||||
|  | ||||
| func (m *Envelope) Size() (n int) { | ||||
| 	if m == nil { | ||||
| 		return 0 | ||||
| 	} | ||||
| 	var l int | ||||
| 	_ = l | ||||
| 	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Timestamp) | ||||
| 	n += 1 + l + sovEvents(uint64(l)) | ||||
| 	l = len(m.Namespace) | ||||
| 	if l > 0 { | ||||
| 		n += 1 + l + sovEvents(uint64(l)) | ||||
| 	} | ||||
| 	l = len(m.Topic) | ||||
| 	if l > 0 { | ||||
| 		n += 1 + l + sovEvents(uint64(l)) | ||||
| 	} | ||||
| 	if m.Event != nil { | ||||
| 		l = m.Event.Size() | ||||
| 		n += 1 + l + sovEvents(uint64(l)) | ||||
| 	} | ||||
| 	if m.XXX_unrecognized != nil { | ||||
| 		n += len(m.XXX_unrecognized) | ||||
| 	} | ||||
| 	return n | ||||
| } | ||||
|  | ||||
| func sovEvents(x uint64) (n int) { | ||||
| 	return (math_bits.Len64(x|1) + 6) / 7 | ||||
| } | ||||
| func sozEvents(x uint64) (n int) { | ||||
| 	return sovEvents(uint64((x << 1) ^ uint64((int64(x) >> 63)))) | ||||
| } | ||||
| func (this *ForwardRequest) String() string { | ||||
| 	if this == nil { | ||||
| 		return "nil" | ||||
| 	} | ||||
| 	s := strings.Join([]string{`&ForwardRequest{`, | ||||
| 		`Envelope:` + strings.Replace(this.Envelope.String(), "Envelope", "Envelope", 1) + `,`, | ||||
| 		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, | ||||
| 		`}`, | ||||
| 	}, "") | ||||
| 	return s | ||||
| } | ||||
| func (this *Envelope) String() string { | ||||
| 	if this == nil { | ||||
| 		return "nil" | ||||
| 	} | ||||
| 	s := strings.Join([]string{`&Envelope{`, | ||||
| 		`Timestamp:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Timestamp), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`, | ||||
| 		`Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, | ||||
| 		`Topic:` + fmt.Sprintf("%v", this.Topic) + `,`, | ||||
| 		`Event:` + strings.Replace(fmt.Sprintf("%v", this.Event), "Any", "types.Any", 1) + `,`, | ||||
| 		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, | ||||
| 		`}`, | ||||
| 	}, "") | ||||
| 	return s | ||||
| } | ||||
| func valueToStringEvents(v interface{}) string { | ||||
| 	rv := reflect.ValueOf(v) | ||||
| 	if rv.IsNil() { | ||||
| 		return "nil" | ||||
| 	} | ||||
| 	pv := reflect.Indirect(rv).Interface() | ||||
| 	return fmt.Sprintf("*%v", pv) | ||||
| } | ||||
|  | ||||
| type EventsService interface { | ||||
| 	Forward(ctx context.Context, req *ForwardRequest) (*types.Empty, error) | ||||
| } | ||||
|  | ||||
| func RegisterEventsService(srv *github_com_containerd_ttrpc.Server, svc EventsService) { | ||||
| 	srv.Register("containerd.services.events.ttrpc.v1.Events", map[string]github_com_containerd_ttrpc.Method{ | ||||
| 		"Forward": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { | ||||
| 			var req ForwardRequest | ||||
| 			if err := unmarshal(&req); err != nil { | ||||
| 				return nil, err | ||||
| 			} | ||||
| 			return svc.Forward(ctx, &req) | ||||
| 		}, | ||||
| 	}) | ||||
| } | ||||
|  | ||||
| type eventsClient struct { | ||||
| 	client *github_com_containerd_ttrpc.Client | ||||
| } | ||||
|  | ||||
| func NewEventsClient(client *github_com_containerd_ttrpc.Client) EventsService { | ||||
| 	return &eventsClient{ | ||||
| 		client: client, | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func (c *eventsClient) Forward(ctx context.Context, req *ForwardRequest) (*types.Empty, error) { | ||||
| 	var resp types.Empty | ||||
| 	if err := c.client.Call(ctx, "containerd.services.events.ttrpc.v1.Events", "Forward", req, &resp); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return &resp, nil | ||||
| } | ||||
| func (m *ForwardRequest) Unmarshal(dAtA []byte) error { | ||||
| 	l := len(dAtA) | ||||
| 	iNdEx := 0 | ||||
| 	for iNdEx < l { | ||||
| 		preIndex := iNdEx | ||||
| 		var wire uint64 | ||||
| 		for shift := uint(0); ; shift += 7 { | ||||
| 			if shift >= 64 { | ||||
| 				return ErrIntOverflowEvents | ||||
| 			} | ||||
| 			if iNdEx >= l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			b := dAtA[iNdEx] | ||||
| 			iNdEx++ | ||||
| 			wire |= uint64(b&0x7F) << shift | ||||
| 			if b < 0x80 { | ||||
| 				break | ||||
| 			} | ||||
| 		} | ||||
| 		fieldNum := int32(wire >> 3) | ||||
| 		wireType := int(wire & 0x7) | ||||
| 		if wireType == 4 { | ||||
| 			return fmt.Errorf("proto: ForwardRequest: wiretype end group for non-group") | ||||
| 		} | ||||
| 		if fieldNum <= 0 { | ||||
| 			return fmt.Errorf("proto: ForwardRequest: illegal tag %d (wire type %d)", fieldNum, wire) | ||||
| 		} | ||||
| 		switch fieldNum { | ||||
| 		case 1: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Envelope", wireType) | ||||
| 			} | ||||
| 			var msglen int | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowEvents | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				msglen |= int(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			if msglen < 0 { | ||||
| 				return ErrInvalidLengthEvents | ||||
| 			} | ||||
| 			postIndex := iNdEx + msglen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthEvents | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			if m.Envelope == nil { | ||||
| 				m.Envelope = &Envelope{} | ||||
| 			} | ||||
| 			if err := m.Envelope.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { | ||||
| 				return err | ||||
| 			} | ||||
| 			iNdEx = postIndex | ||||
| 		default: | ||||
| 			iNdEx = preIndex | ||||
| 			skippy, err := skipEvents(dAtA[iNdEx:]) | ||||
| 			if err != nil { | ||||
| 				return err | ||||
| 			} | ||||
| 			if (skippy < 0) || (iNdEx+skippy) < 0 { | ||||
| 				return ErrInvalidLengthEvents | ||||
| 			} | ||||
| 			if (iNdEx + skippy) > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) | ||||
| 			iNdEx += skippy | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	if iNdEx > l { | ||||
| 		return io.ErrUnexpectedEOF | ||||
| 	} | ||||
| 	return nil | ||||
| } | ||||
| func (m *Envelope) Unmarshal(dAtA []byte) error { | ||||
| 	l := len(dAtA) | ||||
| 	iNdEx := 0 | ||||
| 	for iNdEx < l { | ||||
| 		preIndex := iNdEx | ||||
| 		var wire uint64 | ||||
| 		for shift := uint(0); ; shift += 7 { | ||||
| 			if shift >= 64 { | ||||
| 				return ErrIntOverflowEvents | ||||
| 			} | ||||
| 			if iNdEx >= l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			b := dAtA[iNdEx] | ||||
| 			iNdEx++ | ||||
| 			wire |= uint64(b&0x7F) << shift | ||||
| 			if b < 0x80 { | ||||
| 				break | ||||
| 			} | ||||
| 		} | ||||
| 		fieldNum := int32(wire >> 3) | ||||
| 		wireType := int(wire & 0x7) | ||||
| 		if wireType == 4 { | ||||
| 			return fmt.Errorf("proto: Envelope: wiretype end group for non-group") | ||||
| 		} | ||||
| 		if fieldNum <= 0 { | ||||
| 			return fmt.Errorf("proto: Envelope: illegal tag %d (wire type %d)", fieldNum, wire) | ||||
| 		} | ||||
| 		switch fieldNum { | ||||
| 		case 1: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) | ||||
| 			} | ||||
| 			var msglen int | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowEvents | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				msglen |= int(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			if msglen < 0 { | ||||
| 				return ErrInvalidLengthEvents | ||||
| 			} | ||||
| 			postIndex := iNdEx + msglen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthEvents | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { | ||||
| 				return err | ||||
| 			} | ||||
| 			iNdEx = postIndex | ||||
| 		case 2: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) | ||||
| 			} | ||||
| 			var stringLen uint64 | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowEvents | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				stringLen |= uint64(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			intStringLen := int(stringLen) | ||||
| 			if intStringLen < 0 { | ||||
| 				return ErrInvalidLengthEvents | ||||
| 			} | ||||
| 			postIndex := iNdEx + intStringLen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthEvents | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.Namespace = string(dAtA[iNdEx:postIndex]) | ||||
| 			iNdEx = postIndex | ||||
| 		case 3: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Topic", wireType) | ||||
| 			} | ||||
| 			var stringLen uint64 | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowEvents | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				stringLen |= uint64(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			intStringLen := int(stringLen) | ||||
| 			if intStringLen < 0 { | ||||
| 				return ErrInvalidLengthEvents | ||||
| 			} | ||||
| 			postIndex := iNdEx + intStringLen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthEvents | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.Topic = string(dAtA[iNdEx:postIndex]) | ||||
| 			iNdEx = postIndex | ||||
| 		case 4: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Event", wireType) | ||||
| 			} | ||||
| 			var msglen int | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowEvents | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				msglen |= int(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			if msglen < 0 { | ||||
| 				return ErrInvalidLengthEvents | ||||
| 			} | ||||
| 			postIndex := iNdEx + msglen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthEvents | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			if m.Event == nil { | ||||
| 				m.Event = &types.Any{} | ||||
| 			} | ||||
| 			if err := m.Event.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { | ||||
| 				return err | ||||
| 			} | ||||
| 			iNdEx = postIndex | ||||
| 		default: | ||||
| 			iNdEx = preIndex | ||||
| 			skippy, err := skipEvents(dAtA[iNdEx:]) | ||||
| 			if err != nil { | ||||
| 				return err | ||||
| 			} | ||||
| 			if (skippy < 0) || (iNdEx+skippy) < 0 { | ||||
| 				return ErrInvalidLengthEvents | ||||
| 			} | ||||
| 			if (iNdEx + skippy) > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) | ||||
| 			iNdEx += skippy | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	if iNdEx > l { | ||||
| 		return io.ErrUnexpectedEOF | ||||
| 	} | ||||
| 	return nil | ||||
| } | ||||
| func skipEvents(dAtA []byte) (n int, err error) { | ||||
| 	l := len(dAtA) | ||||
| 	iNdEx := 0 | ||||
| 	depth := 0 | ||||
| 	for iNdEx < l { | ||||
| 		var wire uint64 | ||||
| 		for shift := uint(0); ; shift += 7 { | ||||
| 			if shift >= 64 { | ||||
| 				return 0, ErrIntOverflowEvents | ||||
| 			} | ||||
| 			if iNdEx >= l { | ||||
| 				return 0, io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			b := dAtA[iNdEx] | ||||
| 			iNdEx++ | ||||
| 			wire |= (uint64(b) & 0x7F) << shift | ||||
| 			if b < 0x80 { | ||||
| 				break | ||||
| 			} | ||||
| 		} | ||||
| 		wireType := int(wire & 0x7) | ||||
| 		switch wireType { | ||||
| 		case 0: | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return 0, ErrIntOverflowEvents | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return 0, io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				iNdEx++ | ||||
| 				if dAtA[iNdEx-1] < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 		case 1: | ||||
| 			iNdEx += 8 | ||||
| 		case 2: | ||||
| 			var length int | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return 0, ErrIntOverflowEvents | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return 0, io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				length |= (int(b) & 0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			if length < 0 { | ||||
| 				return 0, ErrInvalidLengthEvents | ||||
| 			} | ||||
| 			iNdEx += length | ||||
| 		case 3: | ||||
| 			depth++ | ||||
| 		case 4: | ||||
| 			if depth == 0 { | ||||
| 				return 0, ErrUnexpectedEndOfGroupEvents | ||||
| 			} | ||||
| 			depth-- | ||||
| 		case 5: | ||||
| 			iNdEx += 4 | ||||
| 		default: | ||||
| 			return 0, fmt.Errorf("proto: illegal wireType %d", wireType) | ||||
| 		} | ||||
| 		if iNdEx < 0 { | ||||
| 			return 0, ErrInvalidLengthEvents | ||||
| 		} | ||||
| 		if depth == 0 { | ||||
| 			return iNdEx, nil | ||||
| 		} | ||||
| 	} | ||||
| 	return 0, io.ErrUnexpectedEOF | ||||
| } | ||||
|  | ||||
| var ( | ||||
| 	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling") | ||||
| 	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow") | ||||
| 	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") | ||||
| ) | ||||
							
								
								
									
										48
									
								
								vendor/github.com/containerd/containerd/api/services/ttrpc/events/v1/events.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										48
									
								
								vendor/github.com/containerd/containerd/api/services/ttrpc/events/v1/events.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,48 +0,0 @@ | ||||
| /* | ||||
| 	Copyright The containerd Authors. | ||||
|  | ||||
| 	Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| 	you may not use this file except in compliance with the License. | ||||
| 	You may obtain a copy of the License at | ||||
|  | ||||
| 		http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
| 	Unless required by applicable law or agreed to in writing, software | ||||
| 	distributed under the License is distributed on an "AS IS" BASIS, | ||||
| 	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| 	See the License for the specific language governing permissions and | ||||
| 	limitations under the License. | ||||
| */ | ||||
|  | ||||
| syntax = "proto3"; | ||||
|  | ||||
| package containerd.services.events.ttrpc.v1; | ||||
|  | ||||
| import weak "github.com/containerd/containerd/protobuf/plugin/fieldpath.proto"; | ||||
| import weak "gogoproto/gogo.proto"; | ||||
| import "google/protobuf/any.proto"; | ||||
| import "google/protobuf/empty.proto"; | ||||
| import "google/protobuf/timestamp.proto"; | ||||
|  | ||||
| option go_package = "github.com/containerd/containerd/api/services/ttrpc/events/v1;events"; | ||||
|  | ||||
| service Events { | ||||
| 	// Forward sends an event that has already been packaged into an envelope | ||||
| 	// with a timestamp and namespace. | ||||
| 	// | ||||
| 	// This is useful if earlier timestamping is required or when forwarding on | ||||
| 	// behalf of another component, namespace or publisher. | ||||
| 	rpc Forward(ForwardRequest) returns (google.protobuf.Empty); | ||||
| } | ||||
|  | ||||
| message ForwardRequest { | ||||
| 	Envelope envelope = 1; | ||||
| } | ||||
|  | ||||
| message Envelope { | ||||
| 	option (containerd.plugin.fieldpath) = true; | ||||
| 	google.protobuf.Timestamp timestamp = 1 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false]; | ||||
| 	string namespace = 2; | ||||
| 	string topic = 3; | ||||
| 	google.protobuf.Any event = 4; | ||||
| } | ||||
							
								
								
									
										18
									
								
								vendor/github.com/containerd/containerd/api/services/version/v1/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										18
									
								
								vendor/github.com/containerd/containerd/api/services/version/v1/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,18 +0,0 @@ | ||||
| /* | ||||
|    Copyright The containerd Authors. | ||||
|  | ||||
|    Licensed under the Apache License, Version 2.0 (the "License"); | ||||
|    you may not use this file except in compliance with the License. | ||||
|    You may obtain a copy of the License at | ||||
|  | ||||
|        http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
|    Unless required by applicable law or agreed to in writing, software | ||||
|    distributed under the License is distributed on an "AS IS" BASIS, | ||||
|    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
|    See the License for the specific language governing permissions and | ||||
|    limitations under the License. | ||||
| */ | ||||
|  | ||||
| // Package version defines the version service. | ||||
| package version | ||||
							
								
								
									
										476
									
								
								vendor/github.com/containerd/containerd/api/services/version/v1/version.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										476
									
								
								vendor/github.com/containerd/containerd/api/services/version/v1/version.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,476 +0,0 @@ | ||||
| // Code generated by protoc-gen-gogo. DO NOT EDIT. | ||||
| // source: github.com/containerd/containerd/api/services/version/v1/version.proto | ||||
|  | ||||
| package version | ||||
|  | ||||
| import ( | ||||
| 	context "context" | ||||
| 	fmt "fmt" | ||||
| 	proto "github.com/gogo/protobuf/proto" | ||||
| 	types "github.com/gogo/protobuf/types" | ||||
| 	grpc "google.golang.org/grpc" | ||||
| 	codes "google.golang.org/grpc/codes" | ||||
| 	status "google.golang.org/grpc/status" | ||||
| 	io "io" | ||||
| 	math "math" | ||||
| 	math_bits "math/bits" | ||||
| 	reflect "reflect" | ||||
| 	strings "strings" | ||||
| ) | ||||
|  | ||||
| // Reference imports to suppress errors if they are not otherwise used. | ||||
| var _ = proto.Marshal | ||||
| var _ = fmt.Errorf | ||||
| var _ = math.Inf | ||||
|  | ||||
| // This is a compile-time assertion to ensure that this generated file | ||||
| // is compatible with the proto package it is being compiled against. | ||||
| // A compilation error at this line likely means your copy of the | ||||
| // proto package needs to be updated. | ||||
| const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package | ||||
|  | ||||
| type VersionResponse struct { | ||||
| 	Version              string   `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` | ||||
| 	Revision             string   `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` | ||||
| 	XXX_NoUnkeyedLiteral struct{} `json:"-"` | ||||
| 	XXX_unrecognized     []byte   `json:"-"` | ||||
| 	XXX_sizecache        int32    `json:"-"` | ||||
| } | ||||
|  | ||||
| func (m *VersionResponse) Reset()      { *m = VersionResponse{} } | ||||
| func (*VersionResponse) ProtoMessage() {} | ||||
| func (*VersionResponse) Descriptor() ([]byte, []int) { | ||||
| 	return fileDescriptor_128109001e578ffe, []int{0} | ||||
| } | ||||
| func (m *VersionResponse) XXX_Unmarshal(b []byte) error { | ||||
| 	return m.Unmarshal(b) | ||||
| } | ||||
| func (m *VersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { | ||||
| 	if deterministic { | ||||
| 		return xxx_messageInfo_VersionResponse.Marshal(b, m, deterministic) | ||||
| 	} else { | ||||
| 		b = b[:cap(b)] | ||||
| 		n, err := m.MarshalToSizedBuffer(b) | ||||
| 		if err != nil { | ||||
| 			return nil, err | ||||
| 		} | ||||
| 		return b[:n], nil | ||||
| 	} | ||||
| } | ||||
| func (m *VersionResponse) XXX_Merge(src proto.Message) { | ||||
| 	xxx_messageInfo_VersionResponse.Merge(m, src) | ||||
| } | ||||
| func (m *VersionResponse) XXX_Size() int { | ||||
| 	return m.Size() | ||||
| } | ||||
| func (m *VersionResponse) XXX_DiscardUnknown() { | ||||
| 	xxx_messageInfo_VersionResponse.DiscardUnknown(m) | ||||
| } | ||||
|  | ||||
| var xxx_messageInfo_VersionResponse proto.InternalMessageInfo | ||||
|  | ||||
| func init() { | ||||
| 	proto.RegisterType((*VersionResponse)(nil), "containerd.services.version.v1.VersionResponse") | ||||
| } | ||||
|  | ||||
| func init() { | ||||
| 	proto.RegisterFile("github.com/containerd/containerd/api/services/version/v1/version.proto", fileDescriptor_128109001e578ffe) | ||||
| } | ||||
|  | ||||
| var fileDescriptor_128109001e578ffe = []byte{ | ||||
| 	// 243 bytes of a gzipped FileDescriptorProto | ||||
| 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x72, 0x4b, 0xcf, 0x2c, 0xc9, | ||||
| 	0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xce, 0xcf, 0x2b, 0x49, 0xcc, 0xcc, 0x4b, 0x2d, | ||||
| 	0x4a, 0x41, 0x66, 0x26, 0x16, 0x64, 0xea, 0x17, 0xa7, 0x16, 0x95, 0x65, 0x26, 0xa7, 0x16, 0xeb, | ||||
| 	0x97, 0xa5, 0x16, 0x15, 0x67, 0xe6, 0xe7, 0xe9, 0x97, 0x19, 0xc2, 0x98, 0x7a, 0x05, 0x45, 0xf9, | ||||
| 	0x25, 0xf9, 0x42, 0x72, 0x08, 0x1d, 0x7a, 0x30, 0xd5, 0x7a, 0x30, 0x25, 0x65, 0x86, 0x52, 0xd2, | ||||
| 	0xe9, 0xf9, 0xf9, 0xe9, 0x39, 0xa9, 0xfa, 0x60, 0xd5, 0x49, 0xa5, 0x69, 0xfa, 0xa9, 0xb9, 0x05, | ||||
| 	0x25, 0x95, 0x10, 0xcd, 0x52, 0x22, 0xe9, 0xf9, 0xe9, 0xf9, 0x60, 0xa6, 0x3e, 0x88, 0x05, 0x11, | ||||
| 	0x55, 0x72, 0xe7, 0xe2, 0x0f, 0x83, 0x18, 0x10, 0x94, 0x5a, 0x5c, 0x90, 0x9f, 0x57, 0x9c, 0x2a, | ||||
| 	0x24, 0xc1, 0xc5, 0x0e, 0x35, 0x53, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x08, 0xc6, 0x15, 0x92, | ||||
| 	0xe2, 0xe2, 0x28, 0x4a, 0x2d, 0xcb, 0x04, 0x4b, 0x31, 0x81, 0xa5, 0xe0, 0x7c, 0xa3, 0x58, 0x2e, | ||||
| 	0x76, 0xa8, 0x41, 0x42, 0x41, 0x08, 0xa6, 0x98, 0x1e, 0xc4, 0x49, 0x7a, 0x30, 0x27, 0xe9, 0xb9, | ||||
| 	0x82, 0x9c, 0x24, 0xa5, 0xaf, 0x87, 0xdf, 0x2b, 0x7a, 0x68, 0x8e, 0x72, 0x8a, 0x3a, 0xf1, 0x50, | ||||
| 	0x8e, 0xe1, 0xc6, 0x43, 0x39, 0x86, 0x86, 0x47, 0x72, 0x8c, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, | ||||
| 	0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0x63, 0x94, 0x03, 0xb9, 0x81, 0x6b, 0x0d, 0x65, 0x46, 0x30, | ||||
| 	0x26, 0xb1, 0x81, 0x9d, 0x67, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x95, 0x0d, 0x52, 0x23, 0xa9, | ||||
| 	0x01, 0x00, 0x00, | ||||
| } | ||||
|  | ||||
| // Reference imports to suppress errors if they are not otherwise used. | ||||
| var _ context.Context | ||||
| var _ grpc.ClientConn | ||||
|  | ||||
| // This is a compile-time assertion to ensure that this generated file | ||||
| // is compatible with the grpc package it is being compiled against. | ||||
| const _ = grpc.SupportPackageIsVersion4 | ||||
|  | ||||
| // VersionClient is the client API for Version service. | ||||
| // | ||||
| // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. | ||||
| type VersionClient interface { | ||||
| 	Version(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*VersionResponse, error) | ||||
| } | ||||
|  | ||||
| type versionClient struct { | ||||
| 	cc *grpc.ClientConn | ||||
| } | ||||
|  | ||||
| func NewVersionClient(cc *grpc.ClientConn) VersionClient { | ||||
| 	return &versionClient{cc} | ||||
| } | ||||
|  | ||||
| func (c *versionClient) Version(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*VersionResponse, error) { | ||||
| 	out := new(VersionResponse) | ||||
| 	err := c.cc.Invoke(ctx, "/containerd.services.version.v1.Version/Version", in, out, opts...) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return out, nil | ||||
| } | ||||
|  | ||||
| // VersionServer is the server API for Version service. | ||||
| type VersionServer interface { | ||||
| 	Version(context.Context, *types.Empty) (*VersionResponse, error) | ||||
| } | ||||
|  | ||||
| // UnimplementedVersionServer can be embedded to have forward compatible implementations. | ||||
| type UnimplementedVersionServer struct { | ||||
| } | ||||
|  | ||||
| func (*UnimplementedVersionServer) Version(ctx context.Context, req *types.Empty) (*VersionResponse, error) { | ||||
| 	return nil, status.Errorf(codes.Unimplemented, "method Version not implemented") | ||||
| } | ||||
|  | ||||
| func RegisterVersionServer(s *grpc.Server, srv VersionServer) { | ||||
| 	s.RegisterService(&_Version_serviceDesc, srv) | ||||
| } | ||||
|  | ||||
| func _Version_Version_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | ||||
| 	in := new(types.Empty) | ||||
| 	if err := dec(in); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	if interceptor == nil { | ||||
| 		return srv.(VersionServer).Version(ctx, in) | ||||
| 	} | ||||
| 	info := &grpc.UnaryServerInfo{ | ||||
| 		Server:     srv, | ||||
| 		FullMethod: "/containerd.services.version.v1.Version/Version", | ||||
| 	} | ||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { | ||||
| 		return srv.(VersionServer).Version(ctx, req.(*types.Empty)) | ||||
| 	} | ||||
| 	return interceptor(ctx, in, info, handler) | ||||
| } | ||||
|  | ||||
| var _Version_serviceDesc = grpc.ServiceDesc{ | ||||
| 	ServiceName: "containerd.services.version.v1.Version", | ||||
| 	HandlerType: (*VersionServer)(nil), | ||||
| 	Methods: []grpc.MethodDesc{ | ||||
| 		{ | ||||
| 			MethodName: "Version", | ||||
| 			Handler:    _Version_Version_Handler, | ||||
| 		}, | ||||
| 	}, | ||||
| 	Streams:  []grpc.StreamDesc{}, | ||||
| 	Metadata: "github.com/containerd/containerd/api/services/version/v1/version.proto", | ||||
| } | ||||
|  | ||||
| func (m *VersionResponse) Marshal() (dAtA []byte, err error) { | ||||
| 	size := m.Size() | ||||
| 	dAtA = make([]byte, size) | ||||
| 	n, err := m.MarshalToSizedBuffer(dAtA[:size]) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return dAtA[:n], nil | ||||
| } | ||||
|  | ||||
| func (m *VersionResponse) MarshalTo(dAtA []byte) (int, error) { | ||||
| 	size := m.Size() | ||||
| 	return m.MarshalToSizedBuffer(dAtA[:size]) | ||||
| } | ||||
|  | ||||
| func (m *VersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { | ||||
| 	i := len(dAtA) | ||||
| 	_ = i | ||||
| 	var l int | ||||
| 	_ = l | ||||
| 	if m.XXX_unrecognized != nil { | ||||
| 		i -= len(m.XXX_unrecognized) | ||||
| 		copy(dAtA[i:], m.XXX_unrecognized) | ||||
| 	} | ||||
| 	if len(m.Revision) > 0 { | ||||
| 		i -= len(m.Revision) | ||||
| 		copy(dAtA[i:], m.Revision) | ||||
| 		i = encodeVarintVersion(dAtA, i, uint64(len(m.Revision))) | ||||
| 		i-- | ||||
| 		dAtA[i] = 0x12 | ||||
| 	} | ||||
| 	if len(m.Version) > 0 { | ||||
| 		i -= len(m.Version) | ||||
| 		copy(dAtA[i:], m.Version) | ||||
| 		i = encodeVarintVersion(dAtA, i, uint64(len(m.Version))) | ||||
| 		i-- | ||||
| 		dAtA[i] = 0xa | ||||
| 	} | ||||
| 	return len(dAtA) - i, nil | ||||
| } | ||||
|  | ||||
| func encodeVarintVersion(dAtA []byte, offset int, v uint64) int { | ||||
| 	offset -= sovVersion(v) | ||||
| 	base := offset | ||||
| 	for v >= 1<<7 { | ||||
| 		dAtA[offset] = uint8(v&0x7f | 0x80) | ||||
| 		v >>= 7 | ||||
| 		offset++ | ||||
| 	} | ||||
| 	dAtA[offset] = uint8(v) | ||||
| 	return base | ||||
| } | ||||
| func (m *VersionResponse) Size() (n int) { | ||||
| 	if m == nil { | ||||
| 		return 0 | ||||
| 	} | ||||
| 	var l int | ||||
| 	_ = l | ||||
| 	l = len(m.Version) | ||||
| 	if l > 0 { | ||||
| 		n += 1 + l + sovVersion(uint64(l)) | ||||
| 	} | ||||
| 	l = len(m.Revision) | ||||
| 	if l > 0 { | ||||
| 		n += 1 + l + sovVersion(uint64(l)) | ||||
| 	} | ||||
| 	if m.XXX_unrecognized != nil { | ||||
| 		n += len(m.XXX_unrecognized) | ||||
| 	} | ||||
| 	return n | ||||
| } | ||||
|  | ||||
| func sovVersion(x uint64) (n int) { | ||||
| 	return (math_bits.Len64(x|1) + 6) / 7 | ||||
| } | ||||
| func sozVersion(x uint64) (n int) { | ||||
| 	return sovVersion(uint64((x << 1) ^ uint64((int64(x) >> 63)))) | ||||
| } | ||||
| func (this *VersionResponse) String() string { | ||||
| 	if this == nil { | ||||
| 		return "nil" | ||||
| 	} | ||||
| 	s := strings.Join([]string{`&VersionResponse{`, | ||||
| 		`Version:` + fmt.Sprintf("%v", this.Version) + `,`, | ||||
| 		`Revision:` + fmt.Sprintf("%v", this.Revision) + `,`, | ||||
| 		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, | ||||
| 		`}`, | ||||
| 	}, "") | ||||
| 	return s | ||||
| } | ||||
| func valueToStringVersion(v interface{}) string { | ||||
| 	rv := reflect.ValueOf(v) | ||||
| 	if rv.IsNil() { | ||||
| 		return "nil" | ||||
| 	} | ||||
| 	pv := reflect.Indirect(rv).Interface() | ||||
| 	return fmt.Sprintf("*%v", pv) | ||||
| } | ||||
| func (m *VersionResponse) Unmarshal(dAtA []byte) error { | ||||
| 	l := len(dAtA) | ||||
| 	iNdEx := 0 | ||||
| 	for iNdEx < l { | ||||
| 		preIndex := iNdEx | ||||
| 		var wire uint64 | ||||
| 		for shift := uint(0); ; shift += 7 { | ||||
| 			if shift >= 64 { | ||||
| 				return ErrIntOverflowVersion | ||||
| 			} | ||||
| 			if iNdEx >= l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			b := dAtA[iNdEx] | ||||
| 			iNdEx++ | ||||
| 			wire |= uint64(b&0x7F) << shift | ||||
| 			if b < 0x80 { | ||||
| 				break | ||||
| 			} | ||||
| 		} | ||||
| 		fieldNum := int32(wire >> 3) | ||||
| 		wireType := int(wire & 0x7) | ||||
| 		if wireType == 4 { | ||||
| 			return fmt.Errorf("proto: VersionResponse: wiretype end group for non-group") | ||||
| 		} | ||||
| 		if fieldNum <= 0 { | ||||
| 			return fmt.Errorf("proto: VersionResponse: illegal tag %d (wire type %d)", fieldNum, wire) | ||||
| 		} | ||||
| 		switch fieldNum { | ||||
| 		case 1: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) | ||||
| 			} | ||||
| 			var stringLen uint64 | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowVersion | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				stringLen |= uint64(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			intStringLen := int(stringLen) | ||||
| 			if intStringLen < 0 { | ||||
| 				return ErrInvalidLengthVersion | ||||
| 			} | ||||
| 			postIndex := iNdEx + intStringLen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthVersion | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.Version = string(dAtA[iNdEx:postIndex]) | ||||
| 			iNdEx = postIndex | ||||
| 		case 2: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) | ||||
| 			} | ||||
| 			var stringLen uint64 | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowVersion | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				stringLen |= uint64(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			intStringLen := int(stringLen) | ||||
| 			if intStringLen < 0 { | ||||
| 				return ErrInvalidLengthVersion | ||||
| 			} | ||||
| 			postIndex := iNdEx + intStringLen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthVersion | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.Revision = string(dAtA[iNdEx:postIndex]) | ||||
| 			iNdEx = postIndex | ||||
| 		default: | ||||
| 			iNdEx = preIndex | ||||
| 			skippy, err := skipVersion(dAtA[iNdEx:]) | ||||
| 			if err != nil { | ||||
| 				return err | ||||
| 			} | ||||
| 			if (skippy < 0) || (iNdEx+skippy) < 0 { | ||||
| 				return ErrInvalidLengthVersion | ||||
| 			} | ||||
| 			if (iNdEx + skippy) > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) | ||||
| 			iNdEx += skippy | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	if iNdEx > l { | ||||
| 		return io.ErrUnexpectedEOF | ||||
| 	} | ||||
| 	return nil | ||||
| } | ||||
| func skipVersion(dAtA []byte) (n int, err error) { | ||||
| 	l := len(dAtA) | ||||
| 	iNdEx := 0 | ||||
| 	depth := 0 | ||||
| 	for iNdEx < l { | ||||
| 		var wire uint64 | ||||
| 		for shift := uint(0); ; shift += 7 { | ||||
| 			if shift >= 64 { | ||||
| 				return 0, ErrIntOverflowVersion | ||||
| 			} | ||||
| 			if iNdEx >= l { | ||||
| 				return 0, io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			b := dAtA[iNdEx] | ||||
| 			iNdEx++ | ||||
| 			wire |= (uint64(b) & 0x7F) << shift | ||||
| 			if b < 0x80 { | ||||
| 				break | ||||
| 			} | ||||
| 		} | ||||
| 		wireType := int(wire & 0x7) | ||||
| 		switch wireType { | ||||
| 		case 0: | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return 0, ErrIntOverflowVersion | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return 0, io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				iNdEx++ | ||||
| 				if dAtA[iNdEx-1] < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 		case 1: | ||||
| 			iNdEx += 8 | ||||
| 		case 2: | ||||
| 			var length int | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return 0, ErrIntOverflowVersion | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return 0, io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				length |= (int(b) & 0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			if length < 0 { | ||||
| 				return 0, ErrInvalidLengthVersion | ||||
| 			} | ||||
| 			iNdEx += length | ||||
| 		case 3: | ||||
| 			depth++ | ||||
| 		case 4: | ||||
| 			if depth == 0 { | ||||
| 				return 0, ErrUnexpectedEndOfGroupVersion | ||||
| 			} | ||||
| 			depth-- | ||||
| 		case 5: | ||||
| 			iNdEx += 4 | ||||
| 		default: | ||||
| 			return 0, fmt.Errorf("proto: illegal wireType %d", wireType) | ||||
| 		} | ||||
| 		if iNdEx < 0 { | ||||
| 			return 0, ErrInvalidLengthVersion | ||||
| 		} | ||||
| 		if depth == 0 { | ||||
| 			return iNdEx, nil | ||||
| 		} | ||||
| 	} | ||||
| 	return 0, io.ErrUnexpectedEOF | ||||
| } | ||||
|  | ||||
| var ( | ||||
| 	ErrInvalidLengthVersion        = fmt.Errorf("proto: negative length found during unmarshaling") | ||||
| 	ErrIntOverflowVersion          = fmt.Errorf("proto: integer overflow") | ||||
| 	ErrUnexpectedEndOfGroupVersion = fmt.Errorf("proto: unexpected end of group") | ||||
| ) | ||||
							
								
								
									
										34
									
								
								vendor/github.com/containerd/containerd/api/services/version/v1/version.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										34
									
								
								vendor/github.com/containerd/containerd/api/services/version/v1/version.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,34 +0,0 @@ | ||||
| /* | ||||
| 	Copyright The containerd Authors. | ||||
|  | ||||
| 	Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| 	you may not use this file except in compliance with the License. | ||||
| 	You may obtain a copy of the License at | ||||
|  | ||||
| 		http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
| 	Unless required by applicable law or agreed to in writing, software | ||||
| 	distributed under the License is distributed on an "AS IS" BASIS, | ||||
| 	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| 	See the License for the specific language governing permissions and | ||||
| 	limitations under the License. | ||||
| */ | ||||
|  | ||||
| syntax = "proto3"; | ||||
|  | ||||
| package containerd.services.version.v1; | ||||
|  | ||||
| import "google/protobuf/empty.proto"; | ||||
| import weak "gogoproto/gogo.proto"; | ||||
|  | ||||
| // TODO(stevvooe): Should version service actually be versioned? | ||||
| option go_package = "github.com/containerd/containerd/api/services/version/v1;version"; | ||||
|  | ||||
| service Version { | ||||
| 	rpc Version(google.protobuf.Empty) returns (VersionResponse); | ||||
| } | ||||
|  | ||||
| message VersionResponse { | ||||
| 	string version = 1; | ||||
| 	string revision = 2; | ||||
| } | ||||
							
								
								
									
										598
									
								
								vendor/github.com/containerd/containerd/api/types/descriptor.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										598
									
								
								vendor/github.com/containerd/containerd/api/types/descriptor.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,598 +0,0 @@ | ||||
| // Code generated by protoc-gen-gogo. DO NOT EDIT. | ||||
| // source: github.com/containerd/containerd/api/types/descriptor.proto | ||||
|  | ||||
| package types | ||||
|  | ||||
| import ( | ||||
| 	fmt "fmt" | ||||
| 	proto "github.com/gogo/protobuf/proto" | ||||
| 	github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" | ||||
| 	github_com_opencontainers_go_digest "github.com/opencontainers/go-digest" | ||||
| 	io "io" | ||||
| 	math "math" | ||||
| 	math_bits "math/bits" | ||||
| 	reflect "reflect" | ||||
| 	strings "strings" | ||||
| ) | ||||
|  | ||||
| // Reference imports to suppress errors if they are not otherwise used. | ||||
| var _ = proto.Marshal | ||||
| var _ = fmt.Errorf | ||||
| var _ = math.Inf | ||||
|  | ||||
| // This is a compile-time assertion to ensure that this generated file | ||||
| // is compatible with the proto package it is being compiled against. | ||||
| // A compilation error at this line likely means your copy of the | ||||
| // proto package needs to be updated. | ||||
| const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package | ||||
|  | ||||
| // Descriptor describes a blob in a content store. | ||||
| // | ||||
| // This descriptor can be used to reference content from an | ||||
| // oci descriptor found in a manifest. | ||||
| // See https://godoc.org/github.com/opencontainers/image-spec/specs-go/v1#Descriptor | ||||
| type Descriptor struct { | ||||
| 	MediaType            string                                     `protobuf:"bytes,1,opt,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"` | ||||
| 	Digest               github_com_opencontainers_go_digest.Digest `protobuf:"bytes,2,opt,name=digest,proto3,customtype=github.com/opencontainers/go-digest.Digest" json:"digest"` | ||||
| 	Size_                int64                                      `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` | ||||
| 	Annotations          map[string]string                          `protobuf:"bytes,5,rep,name=annotations,proto3" json:"annotations,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:"-"` | ||||
| } | ||||
|  | ||||
| func (m *Descriptor) Reset()      { *m = Descriptor{} } | ||||
| func (*Descriptor) ProtoMessage() {} | ||||
| func (*Descriptor) Descriptor() ([]byte, []int) { | ||||
| 	return fileDescriptor_37f958df3707db9e, []int{0} | ||||
| } | ||||
| func (m *Descriptor) XXX_Unmarshal(b []byte) error { | ||||
| 	return m.Unmarshal(b) | ||||
| } | ||||
| func (m *Descriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { | ||||
| 	if deterministic { | ||||
| 		return xxx_messageInfo_Descriptor.Marshal(b, m, deterministic) | ||||
| 	} else { | ||||
| 		b = b[:cap(b)] | ||||
| 		n, err := m.MarshalToSizedBuffer(b) | ||||
| 		if err != nil { | ||||
| 			return nil, err | ||||
| 		} | ||||
| 		return b[:n], nil | ||||
| 	} | ||||
| } | ||||
| func (m *Descriptor) XXX_Merge(src proto.Message) { | ||||
| 	xxx_messageInfo_Descriptor.Merge(m, src) | ||||
| } | ||||
| func (m *Descriptor) XXX_Size() int { | ||||
| 	return m.Size() | ||||
| } | ||||
| func (m *Descriptor) XXX_DiscardUnknown() { | ||||
| 	xxx_messageInfo_Descriptor.DiscardUnknown(m) | ||||
| } | ||||
|  | ||||
| var xxx_messageInfo_Descriptor proto.InternalMessageInfo | ||||
|  | ||||
| func init() { | ||||
| 	proto.RegisterType((*Descriptor)(nil), "containerd.types.Descriptor") | ||||
| 	proto.RegisterMapType((map[string]string)(nil), "containerd.types.Descriptor.AnnotationsEntry") | ||||
| } | ||||
|  | ||||
| func init() { | ||||
| 	proto.RegisterFile("github.com/containerd/containerd/api/types/descriptor.proto", fileDescriptor_37f958df3707db9e) | ||||
| } | ||||
|  | ||||
| var fileDescriptor_37f958df3707db9e = []byte{ | ||||
| 	// 311 bytes of a gzipped FileDescriptorProto | ||||
| 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xb2, 0x4e, 0xcf, 0x2c, 0xc9, | ||||
| 	0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xce, 0xcf, 0x2b, 0x49, 0xcc, 0xcc, 0x4b, 0x2d, | ||||
| 	0x4a, 0x41, 0x66, 0x26, 0x16, 0x64, 0xea, 0x97, 0x54, 0x16, 0xa4, 0x16, 0xeb, 0xa7, 0xa4, 0x16, | ||||
| 	0x27, 0x17, 0x65, 0x16, 0x94, 0xe4, 0x17, 0xe9, 0x15, 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0x09, 0x20, | ||||
| 	0x94, 0xe9, 0x81, 0x95, 0x48, 0x89, 0xa4, 0xe7, 0xa7, 0xe7, 0x83, 0x25, 0xf5, 0x41, 0x2c, 0x88, | ||||
| 	0x3a, 0xa5, 0x39, 0x4c, 0x5c, 0x5c, 0x2e, 0x70, 0xcd, 0x42, 0xb2, 0x5c, 0x5c, 0xb9, 0xa9, 0x29, | ||||
| 	0x99, 0x89, 0xf1, 0x20, 0x3d, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x9c, 0x60, 0x91, 0x90, | ||||
| 	0xca, 0x82, 0x54, 0x21, 0x2f, 0x2e, 0xb6, 0x94, 0xcc, 0xf4, 0xd4, 0xe2, 0x12, 0x09, 0x26, 0x90, | ||||
| 	0x94, 0x93, 0xd1, 0x89, 0x7b, 0xf2, 0x0c, 0xb7, 0xee, 0xc9, 0x6b, 0x21, 0x39, 0x35, 0xbf, 0x20, | ||||
| 	0x35, 0x0f, 0x6e, 0x79, 0xb1, 0x7e, 0x7a, 0xbe, 0x2e, 0x44, 0x8b, 0x9e, 0x0b, 0x98, 0x0a, 0x82, | ||||
| 	0x9a, 0x20, 0x24, 0xc4, 0xc5, 0x52, 0x9c, 0x59, 0x95, 0x2a, 0xc1, 0xac, 0xc0, 0xa8, 0xc1, 0x1c, | ||||
| 	0x04, 0x66, 0x0b, 0xf9, 0x73, 0x71, 0x27, 0xe6, 0xe5, 0xe5, 0x97, 0x24, 0x96, 0x64, 0xe6, 0xe7, | ||||
| 	0x15, 0x4b, 0xb0, 0x2a, 0x30, 0x6b, 0x70, 0x1b, 0xe9, 0xea, 0xa1, 0xfb, 0x45, 0x0f, 0xe1, 0x62, | ||||
| 	0x3d, 0x47, 0x84, 0x7a, 0xd7, 0xbc, 0x92, 0xa2, 0xca, 0x20, 0x64, 0x13, 0xa4, 0xec, 0xb8, 0x04, | ||||
| 	0xd0, 0x15, 0x08, 0x09, 0x70, 0x31, 0x67, 0xa7, 0x56, 0x42, 0x3d, 0x07, 0x62, 0x0a, 0x89, 0x70, | ||||
| 	0xb1, 0x96, 0x25, 0xe6, 0x94, 0xa6, 0x42, 0x7c, 0x15, 0x04, 0xe1, 0x58, 0x31, 0x59, 0x30, 0x3a, | ||||
| 	0x79, 0x9d, 0x78, 0x28, 0xc7, 0x70, 0xe3, 0xa1, 0x1c, 0x43, 0xc3, 0x23, 0x39, 0xc6, 0x13, 0x8f, | ||||
| 	0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x31, 0xca, 0x80, 0xf8, 0xd8, 0xb1, | ||||
| 	0x06, 0x93, 0x11, 0x0c, 0x49, 0x6c, 0xe0, 0x30, 0x37, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x22, | ||||
| 	0x8a, 0x20, 0x4a, 0xda, 0x01, 0x00, 0x00, | ||||
| } | ||||
|  | ||||
| func (m *Descriptor) Marshal() (dAtA []byte, err error) { | ||||
| 	size := m.Size() | ||||
| 	dAtA = make([]byte, size) | ||||
| 	n, err := m.MarshalToSizedBuffer(dAtA[:size]) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return dAtA[:n], nil | ||||
| } | ||||
|  | ||||
| func (m *Descriptor) MarshalTo(dAtA []byte) (int, error) { | ||||
| 	size := m.Size() | ||||
| 	return m.MarshalToSizedBuffer(dAtA[:size]) | ||||
| } | ||||
|  | ||||
| func (m *Descriptor) MarshalToSizedBuffer(dAtA []byte) (int, error) { | ||||
| 	i := len(dAtA) | ||||
| 	_ = i | ||||
| 	var l int | ||||
| 	_ = l | ||||
| 	if m.XXX_unrecognized != nil { | ||||
| 		i -= len(m.XXX_unrecognized) | ||||
| 		copy(dAtA[i:], m.XXX_unrecognized) | ||||
| 	} | ||||
| 	if len(m.Annotations) > 0 { | ||||
| 		for k := range m.Annotations { | ||||
| 			v := m.Annotations[k] | ||||
| 			baseI := i | ||||
| 			i -= len(v) | ||||
| 			copy(dAtA[i:], v) | ||||
| 			i = encodeVarintDescriptor(dAtA, i, uint64(len(v))) | ||||
| 			i-- | ||||
| 			dAtA[i] = 0x12 | ||||
| 			i -= len(k) | ||||
| 			copy(dAtA[i:], k) | ||||
| 			i = encodeVarintDescriptor(dAtA, i, uint64(len(k))) | ||||
| 			i-- | ||||
| 			dAtA[i] = 0xa | ||||
| 			i = encodeVarintDescriptor(dAtA, i, uint64(baseI-i)) | ||||
| 			i-- | ||||
| 			dAtA[i] = 0x2a | ||||
| 		} | ||||
| 	} | ||||
| 	if m.Size_ != 0 { | ||||
| 		i = encodeVarintDescriptor(dAtA, i, uint64(m.Size_)) | ||||
| 		i-- | ||||
| 		dAtA[i] = 0x18 | ||||
| 	} | ||||
| 	if len(m.Digest) > 0 { | ||||
| 		i -= len(m.Digest) | ||||
| 		copy(dAtA[i:], m.Digest) | ||||
| 		i = encodeVarintDescriptor(dAtA, i, uint64(len(m.Digest))) | ||||
| 		i-- | ||||
| 		dAtA[i] = 0x12 | ||||
| 	} | ||||
| 	if len(m.MediaType) > 0 { | ||||
| 		i -= len(m.MediaType) | ||||
| 		copy(dAtA[i:], m.MediaType) | ||||
| 		i = encodeVarintDescriptor(dAtA, i, uint64(len(m.MediaType))) | ||||
| 		i-- | ||||
| 		dAtA[i] = 0xa | ||||
| 	} | ||||
| 	return len(dAtA) - i, nil | ||||
| } | ||||
|  | ||||
| func encodeVarintDescriptor(dAtA []byte, offset int, v uint64) int { | ||||
| 	offset -= sovDescriptor(v) | ||||
| 	base := offset | ||||
| 	for v >= 1<<7 { | ||||
| 		dAtA[offset] = uint8(v&0x7f | 0x80) | ||||
| 		v >>= 7 | ||||
| 		offset++ | ||||
| 	} | ||||
| 	dAtA[offset] = uint8(v) | ||||
| 	return base | ||||
| } | ||||
| func (m *Descriptor) Size() (n int) { | ||||
| 	if m == nil { | ||||
| 		return 0 | ||||
| 	} | ||||
| 	var l int | ||||
| 	_ = l | ||||
| 	l = len(m.MediaType) | ||||
| 	if l > 0 { | ||||
| 		n += 1 + l + sovDescriptor(uint64(l)) | ||||
| 	} | ||||
| 	l = len(m.Digest) | ||||
| 	if l > 0 { | ||||
| 		n += 1 + l + sovDescriptor(uint64(l)) | ||||
| 	} | ||||
| 	if m.Size_ != 0 { | ||||
| 		n += 1 + sovDescriptor(uint64(m.Size_)) | ||||
| 	} | ||||
| 	if len(m.Annotations) > 0 { | ||||
| 		for k, v := range m.Annotations { | ||||
| 			_ = k | ||||
| 			_ = v | ||||
| 			mapEntrySize := 1 + len(k) + sovDescriptor(uint64(len(k))) + 1 + len(v) + sovDescriptor(uint64(len(v))) | ||||
| 			n += mapEntrySize + 1 + sovDescriptor(uint64(mapEntrySize)) | ||||
| 		} | ||||
| 	} | ||||
| 	if m.XXX_unrecognized != nil { | ||||
| 		n += len(m.XXX_unrecognized) | ||||
| 	} | ||||
| 	return n | ||||
| } | ||||
|  | ||||
| func sovDescriptor(x uint64) (n int) { | ||||
| 	return (math_bits.Len64(x|1) + 6) / 7 | ||||
| } | ||||
| func sozDescriptor(x uint64) (n int) { | ||||
| 	return sovDescriptor(uint64((x << 1) ^ uint64((int64(x) >> 63)))) | ||||
| } | ||||
| func (this *Descriptor) String() string { | ||||
| 	if this == nil { | ||||
| 		return "nil" | ||||
| 	} | ||||
| 	keysForAnnotations := make([]string, 0, len(this.Annotations)) | ||||
| 	for k, _ := range this.Annotations { | ||||
| 		keysForAnnotations = append(keysForAnnotations, k) | ||||
| 	} | ||||
| 	github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations) | ||||
| 	mapStringForAnnotations := "map[string]string{" | ||||
| 	for _, k := range keysForAnnotations { | ||||
| 		mapStringForAnnotations += fmt.Sprintf("%v: %v,", k, this.Annotations[k]) | ||||
| 	} | ||||
| 	mapStringForAnnotations += "}" | ||||
| 	s := strings.Join([]string{`&Descriptor{`, | ||||
| 		`MediaType:` + fmt.Sprintf("%v", this.MediaType) + `,`, | ||||
| 		`Digest:` + fmt.Sprintf("%v", this.Digest) + `,`, | ||||
| 		`Size_:` + fmt.Sprintf("%v", this.Size_) + `,`, | ||||
| 		`Annotations:` + mapStringForAnnotations + `,`, | ||||
| 		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, | ||||
| 		`}`, | ||||
| 	}, "") | ||||
| 	return s | ||||
| } | ||||
| func valueToStringDescriptor(v interface{}) string { | ||||
| 	rv := reflect.ValueOf(v) | ||||
| 	if rv.IsNil() { | ||||
| 		return "nil" | ||||
| 	} | ||||
| 	pv := reflect.Indirect(rv).Interface() | ||||
| 	return fmt.Sprintf("*%v", pv) | ||||
| } | ||||
| func (m *Descriptor) Unmarshal(dAtA []byte) error { | ||||
| 	l := len(dAtA) | ||||
| 	iNdEx := 0 | ||||
| 	for iNdEx < l { | ||||
| 		preIndex := iNdEx | ||||
| 		var wire uint64 | ||||
| 		for shift := uint(0); ; shift += 7 { | ||||
| 			if shift >= 64 { | ||||
| 				return ErrIntOverflowDescriptor | ||||
| 			} | ||||
| 			if iNdEx >= l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			b := dAtA[iNdEx] | ||||
| 			iNdEx++ | ||||
| 			wire |= uint64(b&0x7F) << shift | ||||
| 			if b < 0x80 { | ||||
| 				break | ||||
| 			} | ||||
| 		} | ||||
| 		fieldNum := int32(wire >> 3) | ||||
| 		wireType := int(wire & 0x7) | ||||
| 		if wireType == 4 { | ||||
| 			return fmt.Errorf("proto: Descriptor: wiretype end group for non-group") | ||||
| 		} | ||||
| 		if fieldNum <= 0 { | ||||
| 			return fmt.Errorf("proto: Descriptor: illegal tag %d (wire type %d)", fieldNum, wire) | ||||
| 		} | ||||
| 		switch fieldNum { | ||||
| 		case 1: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field MediaType", wireType) | ||||
| 			} | ||||
| 			var stringLen uint64 | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowDescriptor | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				stringLen |= uint64(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			intStringLen := int(stringLen) | ||||
| 			if intStringLen < 0 { | ||||
| 				return ErrInvalidLengthDescriptor | ||||
| 			} | ||||
| 			postIndex := iNdEx + intStringLen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthDescriptor | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.MediaType = string(dAtA[iNdEx:postIndex]) | ||||
| 			iNdEx = postIndex | ||||
| 		case 2: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Digest", wireType) | ||||
| 			} | ||||
| 			var stringLen uint64 | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowDescriptor | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				stringLen |= uint64(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			intStringLen := int(stringLen) | ||||
| 			if intStringLen < 0 { | ||||
| 				return ErrInvalidLengthDescriptor | ||||
| 			} | ||||
| 			postIndex := iNdEx + intStringLen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthDescriptor | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.Digest = github_com_opencontainers_go_digest.Digest(dAtA[iNdEx:postIndex]) | ||||
| 			iNdEx = postIndex | ||||
| 		case 3: | ||||
| 			if wireType != 0 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType) | ||||
| 			} | ||||
| 			m.Size_ = 0 | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowDescriptor | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				m.Size_ |= int64(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 		case 5: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType) | ||||
| 			} | ||||
| 			var msglen int | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowDescriptor | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				msglen |= int(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			if msglen < 0 { | ||||
| 				return ErrInvalidLengthDescriptor | ||||
| 			} | ||||
| 			postIndex := iNdEx + msglen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthDescriptor | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			if m.Annotations == nil { | ||||
| 				m.Annotations = make(map[string]string) | ||||
| 			} | ||||
| 			var mapkey string | ||||
| 			var mapvalue string | ||||
| 			for iNdEx < postIndex { | ||||
| 				entryPreIndex := iNdEx | ||||
| 				var wire uint64 | ||||
| 				for shift := uint(0); ; shift += 7 { | ||||
| 					if shift >= 64 { | ||||
| 						return ErrIntOverflowDescriptor | ||||
| 					} | ||||
| 					if iNdEx >= l { | ||||
| 						return io.ErrUnexpectedEOF | ||||
| 					} | ||||
| 					b := dAtA[iNdEx] | ||||
| 					iNdEx++ | ||||
| 					wire |= uint64(b&0x7F) << shift | ||||
| 					if b < 0x80 { | ||||
| 						break | ||||
| 					} | ||||
| 				} | ||||
| 				fieldNum := int32(wire >> 3) | ||||
| 				if fieldNum == 1 { | ||||
| 					var stringLenmapkey uint64 | ||||
| 					for shift := uint(0); ; shift += 7 { | ||||
| 						if shift >= 64 { | ||||
| 							return ErrIntOverflowDescriptor | ||||
| 						} | ||||
| 						if iNdEx >= l { | ||||
| 							return io.ErrUnexpectedEOF | ||||
| 						} | ||||
| 						b := dAtA[iNdEx] | ||||
| 						iNdEx++ | ||||
| 						stringLenmapkey |= uint64(b&0x7F) << shift | ||||
| 						if b < 0x80 { | ||||
| 							break | ||||
| 						} | ||||
| 					} | ||||
| 					intStringLenmapkey := int(stringLenmapkey) | ||||
| 					if intStringLenmapkey < 0 { | ||||
| 						return ErrInvalidLengthDescriptor | ||||
| 					} | ||||
| 					postStringIndexmapkey := iNdEx + intStringLenmapkey | ||||
| 					if postStringIndexmapkey < 0 { | ||||
| 						return ErrInvalidLengthDescriptor | ||||
| 					} | ||||
| 					if postStringIndexmapkey > l { | ||||
| 						return io.ErrUnexpectedEOF | ||||
| 					} | ||||
| 					mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) | ||||
| 					iNdEx = postStringIndexmapkey | ||||
| 				} else if fieldNum == 2 { | ||||
| 					var stringLenmapvalue uint64 | ||||
| 					for shift := uint(0); ; shift += 7 { | ||||
| 						if shift >= 64 { | ||||
| 							return ErrIntOverflowDescriptor | ||||
| 						} | ||||
| 						if iNdEx >= l { | ||||
| 							return io.ErrUnexpectedEOF | ||||
| 						} | ||||
| 						b := dAtA[iNdEx] | ||||
| 						iNdEx++ | ||||
| 						stringLenmapvalue |= uint64(b&0x7F) << shift | ||||
| 						if b < 0x80 { | ||||
| 							break | ||||
| 						} | ||||
| 					} | ||||
| 					intStringLenmapvalue := int(stringLenmapvalue) | ||||
| 					if intStringLenmapvalue < 0 { | ||||
| 						return ErrInvalidLengthDescriptor | ||||
| 					} | ||||
| 					postStringIndexmapvalue := iNdEx + intStringLenmapvalue | ||||
| 					if postStringIndexmapvalue < 0 { | ||||
| 						return ErrInvalidLengthDescriptor | ||||
| 					} | ||||
| 					if postStringIndexmapvalue > l { | ||||
| 						return io.ErrUnexpectedEOF | ||||
| 					} | ||||
| 					mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) | ||||
| 					iNdEx = postStringIndexmapvalue | ||||
| 				} else { | ||||
| 					iNdEx = entryPreIndex | ||||
| 					skippy, err := skipDescriptor(dAtA[iNdEx:]) | ||||
| 					if err != nil { | ||||
| 						return err | ||||
| 					} | ||||
| 					if (skippy < 0) || (iNdEx+skippy) < 0 { | ||||
| 						return ErrInvalidLengthDescriptor | ||||
| 					} | ||||
| 					if (iNdEx + skippy) > postIndex { | ||||
| 						return io.ErrUnexpectedEOF | ||||
| 					} | ||||
| 					iNdEx += skippy | ||||
| 				} | ||||
| 			} | ||||
| 			m.Annotations[mapkey] = mapvalue | ||||
| 			iNdEx = postIndex | ||||
| 		default: | ||||
| 			iNdEx = preIndex | ||||
| 			skippy, err := skipDescriptor(dAtA[iNdEx:]) | ||||
| 			if err != nil { | ||||
| 				return err | ||||
| 			} | ||||
| 			if (skippy < 0) || (iNdEx+skippy) < 0 { | ||||
| 				return ErrInvalidLengthDescriptor | ||||
| 			} | ||||
| 			if (iNdEx + skippy) > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) | ||||
| 			iNdEx += skippy | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	if iNdEx > l { | ||||
| 		return io.ErrUnexpectedEOF | ||||
| 	} | ||||
| 	return nil | ||||
| } | ||||
| func skipDescriptor(dAtA []byte) (n int, err error) { | ||||
| 	l := len(dAtA) | ||||
| 	iNdEx := 0 | ||||
| 	depth := 0 | ||||
| 	for iNdEx < l { | ||||
| 		var wire uint64 | ||||
| 		for shift := uint(0); ; shift += 7 { | ||||
| 			if shift >= 64 { | ||||
| 				return 0, ErrIntOverflowDescriptor | ||||
| 			} | ||||
| 			if iNdEx >= l { | ||||
| 				return 0, io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			b := dAtA[iNdEx] | ||||
| 			iNdEx++ | ||||
| 			wire |= (uint64(b) & 0x7F) << shift | ||||
| 			if b < 0x80 { | ||||
| 				break | ||||
| 			} | ||||
| 		} | ||||
| 		wireType := int(wire & 0x7) | ||||
| 		switch wireType { | ||||
| 		case 0: | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return 0, ErrIntOverflowDescriptor | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return 0, io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				iNdEx++ | ||||
| 				if dAtA[iNdEx-1] < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 		case 1: | ||||
| 			iNdEx += 8 | ||||
| 		case 2: | ||||
| 			var length int | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return 0, ErrIntOverflowDescriptor | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return 0, io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				length |= (int(b) & 0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			if length < 0 { | ||||
| 				return 0, ErrInvalidLengthDescriptor | ||||
| 			} | ||||
| 			iNdEx += length | ||||
| 		case 3: | ||||
| 			depth++ | ||||
| 		case 4: | ||||
| 			if depth == 0 { | ||||
| 				return 0, ErrUnexpectedEndOfGroupDescriptor | ||||
| 			} | ||||
| 			depth-- | ||||
| 		case 5: | ||||
| 			iNdEx += 4 | ||||
| 		default: | ||||
| 			return 0, fmt.Errorf("proto: illegal wireType %d", wireType) | ||||
| 		} | ||||
| 		if iNdEx < 0 { | ||||
| 			return 0, ErrInvalidLengthDescriptor | ||||
| 		} | ||||
| 		if depth == 0 { | ||||
| 			return iNdEx, nil | ||||
| 		} | ||||
| 	} | ||||
| 	return 0, io.ErrUnexpectedEOF | ||||
| } | ||||
|  | ||||
| var ( | ||||
| 	ErrInvalidLengthDescriptor        = fmt.Errorf("proto: negative length found during unmarshaling") | ||||
| 	ErrIntOverflowDescriptor          = fmt.Errorf("proto: integer overflow") | ||||
| 	ErrUnexpectedEndOfGroupDescriptor = fmt.Errorf("proto: unexpected end of group") | ||||
| ) | ||||
							
								
								
									
										35
									
								
								vendor/github.com/containerd/containerd/api/types/descriptor.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										35
									
								
								vendor/github.com/containerd/containerd/api/types/descriptor.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,35 +0,0 @@ | ||||
| /* | ||||
| 	Copyright The containerd Authors. | ||||
|  | ||||
| 	Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| 	you may not use this file except in compliance with the License. | ||||
| 	You may obtain a copy of the License at | ||||
|  | ||||
| 		http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
| 	Unless required by applicable law or agreed to in writing, software | ||||
| 	distributed under the License is distributed on an "AS IS" BASIS, | ||||
| 	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| 	See the License for the specific language governing permissions and | ||||
| 	limitations under the License. | ||||
| */ | ||||
|  | ||||
| syntax = "proto3"; | ||||
|  | ||||
| package containerd.types; | ||||
|  | ||||
| import weak "gogoproto/gogo.proto"; | ||||
|  | ||||
| option go_package = "github.com/containerd/containerd/api/types;types"; | ||||
|  | ||||
| // Descriptor describes a blob in a content store. | ||||
| // | ||||
| // This descriptor can be used to reference content from an | ||||
| // oci descriptor found in a manifest. | ||||
| // See https://godoc.org/github.com/opencontainers/image-spec/specs-go/v1#Descriptor | ||||
| message Descriptor { | ||||
| 	string media_type = 1; | ||||
| 	string digest = 2 [(gogoproto.customtype) = "github.com/opencontainers/go-digest.Digest", (gogoproto.nullable) = false]; | ||||
| 	int64 size = 3; | ||||
| 	map<string, string> annotations = 5; | ||||
| } | ||||
							
								
								
									
										17
									
								
								vendor/github.com/containerd/containerd/api/types/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								vendor/github.com/containerd/containerd/api/types/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,17 +0,0 @@ | ||||
| /* | ||||
|    Copyright The containerd Authors. | ||||
|  | ||||
|    Licensed under the Apache License, Version 2.0 (the "License"); | ||||
|    you may not use this file except in compliance with the License. | ||||
|    You may obtain a copy of the License at | ||||
|  | ||||
|        http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
|    Unless required by applicable law or agreed to in writing, software | ||||
|    distributed under the License is distributed on an "AS IS" BASIS, | ||||
|    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
|    See the License for the specific language governing permissions and | ||||
|    limitations under the License. | ||||
| */ | ||||
|  | ||||
| package types | ||||
							
								
								
									
										450
									
								
								vendor/github.com/containerd/containerd/api/types/metrics.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										450
									
								
								vendor/github.com/containerd/containerd/api/types/metrics.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,450 +0,0 @@ | ||||
| // Code generated by protoc-gen-gogo. DO NOT EDIT. | ||||
| // source: github.com/containerd/containerd/api/types/metrics.proto | ||||
|  | ||||
| package types | ||||
|  | ||||
| import ( | ||||
| 	fmt "fmt" | ||||
| 	proto "github.com/gogo/protobuf/proto" | ||||
| 	github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" | ||||
| 	types "github.com/gogo/protobuf/types" | ||||
| 	io "io" | ||||
| 	math "math" | ||||
| 	math_bits "math/bits" | ||||
| 	reflect "reflect" | ||||
| 	strings "strings" | ||||
| 	time "time" | ||||
| ) | ||||
|  | ||||
| // Reference imports to suppress errors if they are not otherwise used. | ||||
| var _ = proto.Marshal | ||||
| var _ = fmt.Errorf | ||||
| var _ = math.Inf | ||||
| var _ = time.Kitchen | ||||
|  | ||||
| // This is a compile-time assertion to ensure that this generated file | ||||
| // is compatible with the proto package it is being compiled against. | ||||
| // A compilation error at this line likely means your copy of the | ||||
| // proto package needs to be updated. | ||||
| const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package | ||||
|  | ||||
| type Metric struct { | ||||
| 	Timestamp            time.Time  `protobuf:"bytes,1,opt,name=timestamp,proto3,stdtime" json:"timestamp"` | ||||
| 	ID                   string     `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` | ||||
| 	Data                 *types.Any `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` | ||||
| 	XXX_NoUnkeyedLiteral struct{}   `json:"-"` | ||||
| 	XXX_unrecognized     []byte     `json:"-"` | ||||
| 	XXX_sizecache        int32      `json:"-"` | ||||
| } | ||||
|  | ||||
| func (m *Metric) Reset()      { *m = Metric{} } | ||||
| func (*Metric) ProtoMessage() {} | ||||
| func (*Metric) Descriptor() ([]byte, []int) { | ||||
| 	return fileDescriptor_8d594d87edf6e6bc, []int{0} | ||||
| } | ||||
| func (m *Metric) XXX_Unmarshal(b []byte) error { | ||||
| 	return m.Unmarshal(b) | ||||
| } | ||||
| func (m *Metric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { | ||||
| 	if deterministic { | ||||
| 		return xxx_messageInfo_Metric.Marshal(b, m, deterministic) | ||||
| 	} else { | ||||
| 		b = b[:cap(b)] | ||||
| 		n, err := m.MarshalToSizedBuffer(b) | ||||
| 		if err != nil { | ||||
| 			return nil, err | ||||
| 		} | ||||
| 		return b[:n], nil | ||||
| 	} | ||||
| } | ||||
| func (m *Metric) XXX_Merge(src proto.Message) { | ||||
| 	xxx_messageInfo_Metric.Merge(m, src) | ||||
| } | ||||
| func (m *Metric) XXX_Size() int { | ||||
| 	return m.Size() | ||||
| } | ||||
| func (m *Metric) XXX_DiscardUnknown() { | ||||
| 	xxx_messageInfo_Metric.DiscardUnknown(m) | ||||
| } | ||||
|  | ||||
| var xxx_messageInfo_Metric proto.InternalMessageInfo | ||||
|  | ||||
| func init() { | ||||
| 	proto.RegisterType((*Metric)(nil), "containerd.types.Metric") | ||||
| } | ||||
|  | ||||
| func init() { | ||||
| 	proto.RegisterFile("github.com/containerd/containerd/api/types/metrics.proto", fileDescriptor_8d594d87edf6e6bc) | ||||
| } | ||||
|  | ||||
| var fileDescriptor_8d594d87edf6e6bc = []byte{ | ||||
| 	// 258 bytes of a gzipped FileDescriptorProto | ||||
| 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xb2, 0x48, 0xcf, 0x2c, 0xc9, | ||||
| 	0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xce, 0xcf, 0x2b, 0x49, 0xcc, 0xcc, 0x4b, 0x2d, | ||||
| 	0x4a, 0x41, 0x66, 0x26, 0x16, 0x64, 0xea, 0x97, 0x54, 0x16, 0xa4, 0x16, 0xeb, 0xe7, 0xa6, 0x96, | ||||
| 	0x14, 0x65, 0x26, 0x17, 0xeb, 0x15, 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0x09, 0x20, 0xd4, 0xe8, 0x81, | ||||
| 	0xe5, 0xa5, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0x92, 0xfa, 0x20, 0x16, 0x44, 0x9d, 0x94, 0x64, | ||||
| 	0x7a, 0x7e, 0x7e, 0x7a, 0x4e, 0xaa, 0x3e, 0x98, 0x97, 0x54, 0x9a, 0xa6, 0x9f, 0x98, 0x57, 0x09, | ||||
| 	0x95, 0x92, 0x47, 0x97, 0x2a, 0xc9, 0xcc, 0x4d, 0x2d, 0x2e, 0x49, 0xcc, 0x2d, 0x80, 0x28, 0x50, | ||||
| 	0xea, 0x63, 0xe4, 0x62, 0xf3, 0x05, 0xdb, 0x2a, 0xe4, 0xc4, 0xc5, 0x09, 0x97, 0x95, 0x60, 0x54, | ||||
| 	0x60, 0xd4, 0xe0, 0x36, 0x92, 0xd2, 0x83, 0xe8, 0xd7, 0x83, 0xe9, 0xd7, 0x0b, 0x81, 0xa9, 0x70, | ||||
| 	0xe2, 0x38, 0x71, 0x4f, 0x9e, 0x61, 0xc2, 0x7d, 0x79, 0xc6, 0x20, 0x84, 0x36, 0x21, 0x31, 0x2e, | ||||
| 	0xa6, 0xcc, 0x14, 0x09, 0x26, 0x05, 0x46, 0x0d, 0x4e, 0x27, 0xb6, 0x47, 0xf7, 0xe4, 0x99, 0x3c, | ||||
| 	0x5d, 0x82, 0x98, 0x32, 0x53, 0x84, 0x34, 0xb8, 0x58, 0x52, 0x12, 0x4b, 0x12, 0x25, 0x98, 0xc1, | ||||
| 	0xc6, 0x8a, 0x60, 0x18, 0xeb, 0x98, 0x57, 0x19, 0x04, 0x56, 0xe1, 0xe4, 0x75, 0xe2, 0xa1, 0x1c, | ||||
| 	0xc3, 0x8d, 0x87, 0x72, 0x0c, 0x0d, 0x8f, 0xe4, 0x18, 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, | ||||
| 	0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x28, 0x03, 0xe2, 0x03, 0xd2, 0x1a, 0x4c, 0x46, 0x30, 0x24, | ||||
| 	0xb1, 0x81, 0x6d, 0x30, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0xde, 0x0d, 0x02, 0xfe, 0x85, 0x01, | ||||
| 	0x00, 0x00, | ||||
| } | ||||
|  | ||||
| func (m *Metric) Marshal() (dAtA []byte, err error) { | ||||
| 	size := m.Size() | ||||
| 	dAtA = make([]byte, size) | ||||
| 	n, err := m.MarshalToSizedBuffer(dAtA[:size]) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return dAtA[:n], nil | ||||
| } | ||||
|  | ||||
| func (m *Metric) MarshalTo(dAtA []byte) (int, error) { | ||||
| 	size := m.Size() | ||||
| 	return m.MarshalToSizedBuffer(dAtA[:size]) | ||||
| } | ||||
|  | ||||
| func (m *Metric) MarshalToSizedBuffer(dAtA []byte) (int, error) { | ||||
| 	i := len(dAtA) | ||||
| 	_ = i | ||||
| 	var l int | ||||
| 	_ = l | ||||
| 	if m.XXX_unrecognized != nil { | ||||
| 		i -= len(m.XXX_unrecognized) | ||||
| 		copy(dAtA[i:], m.XXX_unrecognized) | ||||
| 	} | ||||
| 	if m.Data != nil { | ||||
| 		{ | ||||
| 			size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) | ||||
| 			if err != nil { | ||||
| 				return 0, err | ||||
| 			} | ||||
| 			i -= size | ||||
| 			i = encodeVarintMetrics(dAtA, i, uint64(size)) | ||||
| 		} | ||||
| 		i-- | ||||
| 		dAtA[i] = 0x1a | ||||
| 	} | ||||
| 	if len(m.ID) > 0 { | ||||
| 		i -= len(m.ID) | ||||
| 		copy(dAtA[i:], m.ID) | ||||
| 		i = encodeVarintMetrics(dAtA, i, uint64(len(m.ID))) | ||||
| 		i-- | ||||
| 		dAtA[i] = 0x12 | ||||
| 	} | ||||
| 	n2, err2 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Timestamp):]) | ||||
| 	if err2 != nil { | ||||
| 		return 0, err2 | ||||
| 	} | ||||
| 	i -= n2 | ||||
| 	i = encodeVarintMetrics(dAtA, i, uint64(n2)) | ||||
| 	i-- | ||||
| 	dAtA[i] = 0xa | ||||
| 	return len(dAtA) - i, nil | ||||
| } | ||||
|  | ||||
| func encodeVarintMetrics(dAtA []byte, offset int, v uint64) int { | ||||
| 	offset -= sovMetrics(v) | ||||
| 	base := offset | ||||
| 	for v >= 1<<7 { | ||||
| 		dAtA[offset] = uint8(v&0x7f | 0x80) | ||||
| 		v >>= 7 | ||||
| 		offset++ | ||||
| 	} | ||||
| 	dAtA[offset] = uint8(v) | ||||
| 	return base | ||||
| } | ||||
| func (m *Metric) Size() (n int) { | ||||
| 	if m == nil { | ||||
| 		return 0 | ||||
| 	} | ||||
| 	var l int | ||||
| 	_ = l | ||||
| 	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Timestamp) | ||||
| 	n += 1 + l + sovMetrics(uint64(l)) | ||||
| 	l = len(m.ID) | ||||
| 	if l > 0 { | ||||
| 		n += 1 + l + sovMetrics(uint64(l)) | ||||
| 	} | ||||
| 	if m.Data != nil { | ||||
| 		l = m.Data.Size() | ||||
| 		n += 1 + l + sovMetrics(uint64(l)) | ||||
| 	} | ||||
| 	if m.XXX_unrecognized != nil { | ||||
| 		n += len(m.XXX_unrecognized) | ||||
| 	} | ||||
| 	return n | ||||
| } | ||||
|  | ||||
| func sovMetrics(x uint64) (n int) { | ||||
| 	return (math_bits.Len64(x|1) + 6) / 7 | ||||
| } | ||||
| func sozMetrics(x uint64) (n int) { | ||||
| 	return sovMetrics(uint64((x << 1) ^ uint64((int64(x) >> 63)))) | ||||
| } | ||||
| func (this *Metric) String() string { | ||||
| 	if this == nil { | ||||
| 		return "nil" | ||||
| 	} | ||||
| 	s := strings.Join([]string{`&Metric{`, | ||||
| 		`Timestamp:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Timestamp), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`, | ||||
| 		`ID:` + fmt.Sprintf("%v", this.ID) + `,`, | ||||
| 		`Data:` + strings.Replace(fmt.Sprintf("%v", this.Data), "Any", "types.Any", 1) + `,`, | ||||
| 		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, | ||||
| 		`}`, | ||||
| 	}, "") | ||||
| 	return s | ||||
| } | ||||
| func valueToStringMetrics(v interface{}) string { | ||||
| 	rv := reflect.ValueOf(v) | ||||
| 	if rv.IsNil() { | ||||
| 		return "nil" | ||||
| 	} | ||||
| 	pv := reflect.Indirect(rv).Interface() | ||||
| 	return fmt.Sprintf("*%v", pv) | ||||
| } | ||||
| func (m *Metric) Unmarshal(dAtA []byte) error { | ||||
| 	l := len(dAtA) | ||||
| 	iNdEx := 0 | ||||
| 	for iNdEx < l { | ||||
| 		preIndex := iNdEx | ||||
| 		var wire uint64 | ||||
| 		for shift := uint(0); ; shift += 7 { | ||||
| 			if shift >= 64 { | ||||
| 				return ErrIntOverflowMetrics | ||||
| 			} | ||||
| 			if iNdEx >= l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			b := dAtA[iNdEx] | ||||
| 			iNdEx++ | ||||
| 			wire |= uint64(b&0x7F) << shift | ||||
| 			if b < 0x80 { | ||||
| 				break | ||||
| 			} | ||||
| 		} | ||||
| 		fieldNum := int32(wire >> 3) | ||||
| 		wireType := int(wire & 0x7) | ||||
| 		if wireType == 4 { | ||||
| 			return fmt.Errorf("proto: Metric: wiretype end group for non-group") | ||||
| 		} | ||||
| 		if fieldNum <= 0 { | ||||
| 			return fmt.Errorf("proto: Metric: illegal tag %d (wire type %d)", fieldNum, wire) | ||||
| 		} | ||||
| 		switch fieldNum { | ||||
| 		case 1: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) | ||||
| 			} | ||||
| 			var msglen int | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowMetrics | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				msglen |= int(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			if msglen < 0 { | ||||
| 				return ErrInvalidLengthMetrics | ||||
| 			} | ||||
| 			postIndex := iNdEx + msglen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthMetrics | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { | ||||
| 				return err | ||||
| 			} | ||||
| 			iNdEx = postIndex | ||||
| 		case 2: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) | ||||
| 			} | ||||
| 			var stringLen uint64 | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowMetrics | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				stringLen |= uint64(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			intStringLen := int(stringLen) | ||||
| 			if intStringLen < 0 { | ||||
| 				return ErrInvalidLengthMetrics | ||||
| 			} | ||||
| 			postIndex := iNdEx + intStringLen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthMetrics | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.ID = string(dAtA[iNdEx:postIndex]) | ||||
| 			iNdEx = postIndex | ||||
| 		case 3: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) | ||||
| 			} | ||||
| 			var msglen int | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowMetrics | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				msglen |= int(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			if msglen < 0 { | ||||
| 				return ErrInvalidLengthMetrics | ||||
| 			} | ||||
| 			postIndex := iNdEx + msglen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthMetrics | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			if m.Data == nil { | ||||
| 				m.Data = &types.Any{} | ||||
| 			} | ||||
| 			if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { | ||||
| 				return err | ||||
| 			} | ||||
| 			iNdEx = postIndex | ||||
| 		default: | ||||
| 			iNdEx = preIndex | ||||
| 			skippy, err := skipMetrics(dAtA[iNdEx:]) | ||||
| 			if err != nil { | ||||
| 				return err | ||||
| 			} | ||||
| 			if (skippy < 0) || (iNdEx+skippy) < 0 { | ||||
| 				return ErrInvalidLengthMetrics | ||||
| 			} | ||||
| 			if (iNdEx + skippy) > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) | ||||
| 			iNdEx += skippy | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	if iNdEx > l { | ||||
| 		return io.ErrUnexpectedEOF | ||||
| 	} | ||||
| 	return nil | ||||
| } | ||||
| func skipMetrics(dAtA []byte) (n int, err error) { | ||||
| 	l := len(dAtA) | ||||
| 	iNdEx := 0 | ||||
| 	depth := 0 | ||||
| 	for iNdEx < l { | ||||
| 		var wire uint64 | ||||
| 		for shift := uint(0); ; shift += 7 { | ||||
| 			if shift >= 64 { | ||||
| 				return 0, ErrIntOverflowMetrics | ||||
| 			} | ||||
| 			if iNdEx >= l { | ||||
| 				return 0, io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			b := dAtA[iNdEx] | ||||
| 			iNdEx++ | ||||
| 			wire |= (uint64(b) & 0x7F) << shift | ||||
| 			if b < 0x80 { | ||||
| 				break | ||||
| 			} | ||||
| 		} | ||||
| 		wireType := int(wire & 0x7) | ||||
| 		switch wireType { | ||||
| 		case 0: | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return 0, ErrIntOverflowMetrics | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return 0, io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				iNdEx++ | ||||
| 				if dAtA[iNdEx-1] < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 		case 1: | ||||
| 			iNdEx += 8 | ||||
| 		case 2: | ||||
| 			var length int | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return 0, ErrIntOverflowMetrics | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return 0, io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				length |= (int(b) & 0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			if length < 0 { | ||||
| 				return 0, ErrInvalidLengthMetrics | ||||
| 			} | ||||
| 			iNdEx += length | ||||
| 		case 3: | ||||
| 			depth++ | ||||
| 		case 4: | ||||
| 			if depth == 0 { | ||||
| 				return 0, ErrUnexpectedEndOfGroupMetrics | ||||
| 			} | ||||
| 			depth-- | ||||
| 		case 5: | ||||
| 			iNdEx += 4 | ||||
| 		default: | ||||
| 			return 0, fmt.Errorf("proto: illegal wireType %d", wireType) | ||||
| 		} | ||||
| 		if iNdEx < 0 { | ||||
| 			return 0, ErrInvalidLengthMetrics | ||||
| 		} | ||||
| 		if depth == 0 { | ||||
| 			return iNdEx, nil | ||||
| 		} | ||||
| 	} | ||||
| 	return 0, io.ErrUnexpectedEOF | ||||
| } | ||||
|  | ||||
| var ( | ||||
| 	ErrInvalidLengthMetrics        = fmt.Errorf("proto: negative length found during unmarshaling") | ||||
| 	ErrIntOverflowMetrics          = fmt.Errorf("proto: integer overflow") | ||||
| 	ErrUnexpectedEndOfGroupMetrics = fmt.Errorf("proto: unexpected end of group") | ||||
| ) | ||||
							
								
								
									
										31
									
								
								vendor/github.com/containerd/containerd/api/types/metrics.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										31
									
								
								vendor/github.com/containerd/containerd/api/types/metrics.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,31 +0,0 @@ | ||||
| /* | ||||
| 	Copyright The containerd Authors. | ||||
|  | ||||
| 	Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| 	you may not use this file except in compliance with the License. | ||||
| 	You may obtain a copy of the License at | ||||
|  | ||||
| 		http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
| 	Unless required by applicable law or agreed to in writing, software | ||||
| 	distributed under the License is distributed on an "AS IS" BASIS, | ||||
| 	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| 	See the License for the specific language governing permissions and | ||||
| 	limitations under the License. | ||||
| */ | ||||
|  | ||||
| syntax = "proto3"; | ||||
|  | ||||
| package containerd.types; | ||||
|  | ||||
| import weak "gogoproto/gogo.proto"; | ||||
| import "google/protobuf/any.proto"; | ||||
| import "google/protobuf/timestamp.proto"; | ||||
|  | ||||
| option go_package = "github.com/containerd/containerd/api/types;types"; | ||||
|  | ||||
| message Metric { | ||||
| 	google.protobuf.Timestamp timestamp = 1 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false]; | ||||
| 	string id = 2; | ||||
| 	google.protobuf.Any data = 3; | ||||
| } | ||||
							
								
								
									
										494
									
								
								vendor/github.com/containerd/containerd/api/types/mount.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										494
									
								
								vendor/github.com/containerd/containerd/api/types/mount.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,494 +0,0 @@ | ||||
| // Code generated by protoc-gen-gogo. DO NOT EDIT. | ||||
| // source: github.com/containerd/containerd/api/types/mount.proto | ||||
|  | ||||
| package types | ||||
|  | ||||
| import ( | ||||
| 	fmt "fmt" | ||||
| 	proto "github.com/gogo/protobuf/proto" | ||||
| 	io "io" | ||||
| 	math "math" | ||||
| 	math_bits "math/bits" | ||||
| 	reflect "reflect" | ||||
| 	strings "strings" | ||||
| ) | ||||
|  | ||||
| // Reference imports to suppress errors if they are not otherwise used. | ||||
| var _ = proto.Marshal | ||||
| var _ = fmt.Errorf | ||||
| var _ = math.Inf | ||||
|  | ||||
| // This is a compile-time assertion to ensure that this generated file | ||||
| // is compatible with the proto package it is being compiled against. | ||||
| // A compilation error at this line likely means your copy of the | ||||
| // proto package needs to be updated. | ||||
| const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package | ||||
|  | ||||
| // Mount describes mounts for a container. | ||||
| // | ||||
| // This type is the lingua franca of ContainerD. All services provide mounts | ||||
| // to be used with the container at creation time. | ||||
| // | ||||
| // The Mount type follows the structure of the mount syscall, including a type, | ||||
| // source, target and options. | ||||
| type Mount struct { | ||||
| 	// Type defines the nature of the mount. | ||||
| 	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` | ||||
| 	// Source specifies the name of the mount. Depending on mount type, this | ||||
| 	// may be a volume name or a host path, or even ignored. | ||||
| 	Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` | ||||
| 	// Target path in container | ||||
| 	Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` | ||||
| 	// Options specifies zero or more fstab style mount options. | ||||
| 	Options              []string `protobuf:"bytes,4,rep,name=options,proto3" json:"options,omitempty"` | ||||
| 	XXX_NoUnkeyedLiteral struct{} `json:"-"` | ||||
| 	XXX_unrecognized     []byte   `json:"-"` | ||||
| 	XXX_sizecache        int32    `json:"-"` | ||||
| } | ||||
|  | ||||
| func (m *Mount) Reset()      { *m = Mount{} } | ||||
| func (*Mount) ProtoMessage() {} | ||||
| func (*Mount) Descriptor() ([]byte, []int) { | ||||
| 	return fileDescriptor_920196890d4a7b9f, []int{0} | ||||
| } | ||||
| func (m *Mount) XXX_Unmarshal(b []byte) error { | ||||
| 	return m.Unmarshal(b) | ||||
| } | ||||
| func (m *Mount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { | ||||
| 	if deterministic { | ||||
| 		return xxx_messageInfo_Mount.Marshal(b, m, deterministic) | ||||
| 	} else { | ||||
| 		b = b[:cap(b)] | ||||
| 		n, err := m.MarshalToSizedBuffer(b) | ||||
| 		if err != nil { | ||||
| 			return nil, err | ||||
| 		} | ||||
| 		return b[:n], nil | ||||
| 	} | ||||
| } | ||||
| func (m *Mount) XXX_Merge(src proto.Message) { | ||||
| 	xxx_messageInfo_Mount.Merge(m, src) | ||||
| } | ||||
| func (m *Mount) XXX_Size() int { | ||||
| 	return m.Size() | ||||
| } | ||||
| func (m *Mount) XXX_DiscardUnknown() { | ||||
| 	xxx_messageInfo_Mount.DiscardUnknown(m) | ||||
| } | ||||
|  | ||||
| var xxx_messageInfo_Mount proto.InternalMessageInfo | ||||
|  | ||||
| func init() { | ||||
| 	proto.RegisterType((*Mount)(nil), "containerd.types.Mount") | ||||
| } | ||||
|  | ||||
| func init() { | ||||
| 	proto.RegisterFile("github.com/containerd/containerd/api/types/mount.proto", fileDescriptor_920196890d4a7b9f) | ||||
| } | ||||
|  | ||||
| var fileDescriptor_920196890d4a7b9f = []byte{ | ||||
| 	// 202 bytes of a gzipped FileDescriptorProto | ||||
| 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x32, 0x4b, 0xcf, 0x2c, 0xc9, | ||||
| 	0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xce, 0xcf, 0x2b, 0x49, 0xcc, 0xcc, 0x4b, 0x2d, | ||||
| 	0x4a, 0x41, 0x66, 0x26, 0x16, 0x64, 0xea, 0x97, 0x54, 0x16, 0xa4, 0x16, 0xeb, 0xe7, 0xe6, 0x97, | ||||
| 	0xe6, 0x95, 0xe8, 0x15, 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0x09, 0x20, 0x54, 0xe8, 0x81, 0x65, 0xa5, | ||||
| 	0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0x92, 0xfa, 0x20, 0x16, 0x44, 0x9d, 0x52, 0x2a, 0x17, 0xab, | ||||
| 	0x2f, 0x48, 0x9b, 0x90, 0x10, 0x17, 0x0b, 0x48, 0x9d, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0x67, 0x10, | ||||
| 	0x98, 0x2d, 0x24, 0xc6, 0xc5, 0x56, 0x9c, 0x5f, 0x5a, 0x94, 0x9c, 0x2a, 0xc1, 0x04, 0x16, 0x85, | ||||
| 	0xf2, 0x40, 0xe2, 0x25, 0x89, 0x45, 0xe9, 0xa9, 0x25, 0x12, 0xcc, 0x10, 0x71, 0x08, 0x4f, 0x48, | ||||
| 	0x82, 0x8b, 0x3d, 0xbf, 0xa0, 0x24, 0x33, 0x3f, 0xaf, 0x58, 0x82, 0x45, 0x81, 0x59, 0x83, 0x33, | ||||
| 	0x08, 0xc6, 0x75, 0xf2, 0x3a, 0xf1, 0x50, 0x8e, 0xe1, 0xc6, 0x43, 0x39, 0x86, 0x86, 0x47, 0x72, | ||||
| 	0x8c, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0x63, 0x94, 0x01, | ||||
| 	0xf1, 0x1e, 0xb4, 0x06, 0x93, 0x11, 0x0c, 0x49, 0x6c, 0x60, 0xb7, 0x1b, 0x03, 0x02, 0x00, 0x00, | ||||
| 	0xff, 0xff, 0x82, 0x1c, 0x02, 0x18, 0x1d, 0x01, 0x00, 0x00, | ||||
| } | ||||
|  | ||||
| func (m *Mount) Marshal() (dAtA []byte, err error) { | ||||
| 	size := m.Size() | ||||
| 	dAtA = make([]byte, size) | ||||
| 	n, err := m.MarshalToSizedBuffer(dAtA[:size]) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return dAtA[:n], nil | ||||
| } | ||||
|  | ||||
| func (m *Mount) MarshalTo(dAtA []byte) (int, error) { | ||||
| 	size := m.Size() | ||||
| 	return m.MarshalToSizedBuffer(dAtA[:size]) | ||||
| } | ||||
|  | ||||
| func (m *Mount) MarshalToSizedBuffer(dAtA []byte) (int, error) { | ||||
| 	i := len(dAtA) | ||||
| 	_ = i | ||||
| 	var l int | ||||
| 	_ = l | ||||
| 	if m.XXX_unrecognized != nil { | ||||
| 		i -= len(m.XXX_unrecognized) | ||||
| 		copy(dAtA[i:], m.XXX_unrecognized) | ||||
| 	} | ||||
| 	if len(m.Options) > 0 { | ||||
| 		for iNdEx := len(m.Options) - 1; iNdEx >= 0; iNdEx-- { | ||||
| 			i -= len(m.Options[iNdEx]) | ||||
| 			copy(dAtA[i:], m.Options[iNdEx]) | ||||
| 			i = encodeVarintMount(dAtA, i, uint64(len(m.Options[iNdEx]))) | ||||
| 			i-- | ||||
| 			dAtA[i] = 0x22 | ||||
| 		} | ||||
| 	} | ||||
| 	if len(m.Target) > 0 { | ||||
| 		i -= len(m.Target) | ||||
| 		copy(dAtA[i:], m.Target) | ||||
| 		i = encodeVarintMount(dAtA, i, uint64(len(m.Target))) | ||||
| 		i-- | ||||
| 		dAtA[i] = 0x1a | ||||
| 	} | ||||
| 	if len(m.Source) > 0 { | ||||
| 		i -= len(m.Source) | ||||
| 		copy(dAtA[i:], m.Source) | ||||
| 		i = encodeVarintMount(dAtA, i, uint64(len(m.Source))) | ||||
| 		i-- | ||||
| 		dAtA[i] = 0x12 | ||||
| 	} | ||||
| 	if len(m.Type) > 0 { | ||||
| 		i -= len(m.Type) | ||||
| 		copy(dAtA[i:], m.Type) | ||||
| 		i = encodeVarintMount(dAtA, i, uint64(len(m.Type))) | ||||
| 		i-- | ||||
| 		dAtA[i] = 0xa | ||||
| 	} | ||||
| 	return len(dAtA) - i, nil | ||||
| } | ||||
|  | ||||
| func encodeVarintMount(dAtA []byte, offset int, v uint64) int { | ||||
| 	offset -= sovMount(v) | ||||
| 	base := offset | ||||
| 	for v >= 1<<7 { | ||||
| 		dAtA[offset] = uint8(v&0x7f | 0x80) | ||||
| 		v >>= 7 | ||||
| 		offset++ | ||||
| 	} | ||||
| 	dAtA[offset] = uint8(v) | ||||
| 	return base | ||||
| } | ||||
| func (m *Mount) Size() (n int) { | ||||
| 	if m == nil { | ||||
| 		return 0 | ||||
| 	} | ||||
| 	var l int | ||||
| 	_ = l | ||||
| 	l = len(m.Type) | ||||
| 	if l > 0 { | ||||
| 		n += 1 + l + sovMount(uint64(l)) | ||||
| 	} | ||||
| 	l = len(m.Source) | ||||
| 	if l > 0 { | ||||
| 		n += 1 + l + sovMount(uint64(l)) | ||||
| 	} | ||||
| 	l = len(m.Target) | ||||
| 	if l > 0 { | ||||
| 		n += 1 + l + sovMount(uint64(l)) | ||||
| 	} | ||||
| 	if len(m.Options) > 0 { | ||||
| 		for _, s := range m.Options { | ||||
| 			l = len(s) | ||||
| 			n += 1 + l + sovMount(uint64(l)) | ||||
| 		} | ||||
| 	} | ||||
| 	if m.XXX_unrecognized != nil { | ||||
| 		n += len(m.XXX_unrecognized) | ||||
| 	} | ||||
| 	return n | ||||
| } | ||||
|  | ||||
| func sovMount(x uint64) (n int) { | ||||
| 	return (math_bits.Len64(x|1) + 6) / 7 | ||||
| } | ||||
| func sozMount(x uint64) (n int) { | ||||
| 	return sovMount(uint64((x << 1) ^ uint64((int64(x) >> 63)))) | ||||
| } | ||||
| func (this *Mount) String() string { | ||||
| 	if this == nil { | ||||
| 		return "nil" | ||||
| 	} | ||||
| 	s := strings.Join([]string{`&Mount{`, | ||||
| 		`Type:` + fmt.Sprintf("%v", this.Type) + `,`, | ||||
| 		`Source:` + fmt.Sprintf("%v", this.Source) + `,`, | ||||
| 		`Target:` + fmt.Sprintf("%v", this.Target) + `,`, | ||||
| 		`Options:` + fmt.Sprintf("%v", this.Options) + `,`, | ||||
| 		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, | ||||
| 		`}`, | ||||
| 	}, "") | ||||
| 	return s | ||||
| } | ||||
| func valueToStringMount(v interface{}) string { | ||||
| 	rv := reflect.ValueOf(v) | ||||
| 	if rv.IsNil() { | ||||
| 		return "nil" | ||||
| 	} | ||||
| 	pv := reflect.Indirect(rv).Interface() | ||||
| 	return fmt.Sprintf("*%v", pv) | ||||
| } | ||||
| func (m *Mount) Unmarshal(dAtA []byte) error { | ||||
| 	l := len(dAtA) | ||||
| 	iNdEx := 0 | ||||
| 	for iNdEx < l { | ||||
| 		preIndex := iNdEx | ||||
| 		var wire uint64 | ||||
| 		for shift := uint(0); ; shift += 7 { | ||||
| 			if shift >= 64 { | ||||
| 				return ErrIntOverflowMount | ||||
| 			} | ||||
| 			if iNdEx >= l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			b := dAtA[iNdEx] | ||||
| 			iNdEx++ | ||||
| 			wire |= uint64(b&0x7F) << shift | ||||
| 			if b < 0x80 { | ||||
| 				break | ||||
| 			} | ||||
| 		} | ||||
| 		fieldNum := int32(wire >> 3) | ||||
| 		wireType := int(wire & 0x7) | ||||
| 		if wireType == 4 { | ||||
| 			return fmt.Errorf("proto: Mount: wiretype end group for non-group") | ||||
| 		} | ||||
| 		if fieldNum <= 0 { | ||||
| 			return fmt.Errorf("proto: Mount: illegal tag %d (wire type %d)", fieldNum, wire) | ||||
| 		} | ||||
| 		switch fieldNum { | ||||
| 		case 1: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) | ||||
| 			} | ||||
| 			var stringLen uint64 | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowMount | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				stringLen |= uint64(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			intStringLen := int(stringLen) | ||||
| 			if intStringLen < 0 { | ||||
| 				return ErrInvalidLengthMount | ||||
| 			} | ||||
| 			postIndex := iNdEx + intStringLen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthMount | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.Type = string(dAtA[iNdEx:postIndex]) | ||||
| 			iNdEx = postIndex | ||||
| 		case 2: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) | ||||
| 			} | ||||
| 			var stringLen uint64 | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowMount | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				stringLen |= uint64(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			intStringLen := int(stringLen) | ||||
| 			if intStringLen < 0 { | ||||
| 				return ErrInvalidLengthMount | ||||
| 			} | ||||
| 			postIndex := iNdEx + intStringLen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthMount | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.Source = string(dAtA[iNdEx:postIndex]) | ||||
| 			iNdEx = postIndex | ||||
| 		case 3: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) | ||||
| 			} | ||||
| 			var stringLen uint64 | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowMount | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				stringLen |= uint64(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			intStringLen := int(stringLen) | ||||
| 			if intStringLen < 0 { | ||||
| 				return ErrInvalidLengthMount | ||||
| 			} | ||||
| 			postIndex := iNdEx + intStringLen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthMount | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.Target = string(dAtA[iNdEx:postIndex]) | ||||
| 			iNdEx = postIndex | ||||
| 		case 4: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) | ||||
| 			} | ||||
| 			var stringLen uint64 | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowMount | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				stringLen |= uint64(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			intStringLen := int(stringLen) | ||||
| 			if intStringLen < 0 { | ||||
| 				return ErrInvalidLengthMount | ||||
| 			} | ||||
| 			postIndex := iNdEx + intStringLen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthMount | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.Options = append(m.Options, string(dAtA[iNdEx:postIndex])) | ||||
| 			iNdEx = postIndex | ||||
| 		default: | ||||
| 			iNdEx = preIndex | ||||
| 			skippy, err := skipMount(dAtA[iNdEx:]) | ||||
| 			if err != nil { | ||||
| 				return err | ||||
| 			} | ||||
| 			if (skippy < 0) || (iNdEx+skippy) < 0 { | ||||
| 				return ErrInvalidLengthMount | ||||
| 			} | ||||
| 			if (iNdEx + skippy) > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) | ||||
| 			iNdEx += skippy | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	if iNdEx > l { | ||||
| 		return io.ErrUnexpectedEOF | ||||
| 	} | ||||
| 	return nil | ||||
| } | ||||
| func skipMount(dAtA []byte) (n int, err error) { | ||||
| 	l := len(dAtA) | ||||
| 	iNdEx := 0 | ||||
| 	depth := 0 | ||||
| 	for iNdEx < l { | ||||
| 		var wire uint64 | ||||
| 		for shift := uint(0); ; shift += 7 { | ||||
| 			if shift >= 64 { | ||||
| 				return 0, ErrIntOverflowMount | ||||
| 			} | ||||
| 			if iNdEx >= l { | ||||
| 				return 0, io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			b := dAtA[iNdEx] | ||||
| 			iNdEx++ | ||||
| 			wire |= (uint64(b) & 0x7F) << shift | ||||
| 			if b < 0x80 { | ||||
| 				break | ||||
| 			} | ||||
| 		} | ||||
| 		wireType := int(wire & 0x7) | ||||
| 		switch wireType { | ||||
| 		case 0: | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return 0, ErrIntOverflowMount | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return 0, io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				iNdEx++ | ||||
| 				if dAtA[iNdEx-1] < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 		case 1: | ||||
| 			iNdEx += 8 | ||||
| 		case 2: | ||||
| 			var length int | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return 0, ErrIntOverflowMount | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return 0, io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				length |= (int(b) & 0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			if length < 0 { | ||||
| 				return 0, ErrInvalidLengthMount | ||||
| 			} | ||||
| 			iNdEx += length | ||||
| 		case 3: | ||||
| 			depth++ | ||||
| 		case 4: | ||||
| 			if depth == 0 { | ||||
| 				return 0, ErrUnexpectedEndOfGroupMount | ||||
| 			} | ||||
| 			depth-- | ||||
| 		case 5: | ||||
| 			iNdEx += 4 | ||||
| 		default: | ||||
| 			return 0, fmt.Errorf("proto: illegal wireType %d", wireType) | ||||
| 		} | ||||
| 		if iNdEx < 0 { | ||||
| 			return 0, ErrInvalidLengthMount | ||||
| 		} | ||||
| 		if depth == 0 { | ||||
| 			return iNdEx, nil | ||||
| 		} | ||||
| 	} | ||||
| 	return 0, io.ErrUnexpectedEOF | ||||
| } | ||||
|  | ||||
| var ( | ||||
| 	ErrInvalidLengthMount        = fmt.Errorf("proto: negative length found during unmarshaling") | ||||
| 	ErrIntOverflowMount          = fmt.Errorf("proto: integer overflow") | ||||
| 	ErrUnexpectedEndOfGroupMount = fmt.Errorf("proto: unexpected end of group") | ||||
| ) | ||||
							
								
								
									
										45
									
								
								vendor/github.com/containerd/containerd/api/types/mount.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										45
									
								
								vendor/github.com/containerd/containerd/api/types/mount.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,45 +0,0 @@ | ||||
| /* | ||||
| 	Copyright The containerd Authors. | ||||
|  | ||||
| 	Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| 	you may not use this file except in compliance with the License. | ||||
| 	You may obtain a copy of the License at | ||||
|  | ||||
| 		http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
| 	Unless required by applicable law or agreed to in writing, software | ||||
| 	distributed under the License is distributed on an "AS IS" BASIS, | ||||
| 	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| 	See the License for the specific language governing permissions and | ||||
| 	limitations under the License. | ||||
| */ | ||||
|  | ||||
| syntax = "proto3"; | ||||
|  | ||||
| package containerd.types; | ||||
|  | ||||
| import weak "gogoproto/gogo.proto"; | ||||
|  | ||||
| option go_package = "github.com/containerd/containerd/api/types;types"; | ||||
|  | ||||
| // Mount describes mounts for a container. | ||||
| // | ||||
| // This type is the lingua franca of ContainerD. All services provide mounts | ||||
| // to be used with the container at creation time. | ||||
| // | ||||
| // The Mount type follows the structure of the mount syscall, including a type, | ||||
| // source, target and options. | ||||
| message Mount { | ||||
| 	// Type defines the nature of the mount. | ||||
| 	string type = 1; | ||||
|  | ||||
| 	// Source specifies the name of the mount. Depending on mount type, this | ||||
| 	// may be a volume name or a host path, or even ignored. | ||||
| 	string source = 2; | ||||
|  | ||||
| 	// Target path in container | ||||
| 	string target = 3; | ||||
|  | ||||
| 	// Options specifies zero or more fstab style mount options. | ||||
| 	repeated string options = 4; | ||||
| } | ||||
							
								
								
									
										435
									
								
								vendor/github.com/containerd/containerd/api/types/platform.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										435
									
								
								vendor/github.com/containerd/containerd/api/types/platform.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,435 +0,0 @@ | ||||
| // Code generated by protoc-gen-gogo. DO NOT EDIT. | ||||
| // source: github.com/containerd/containerd/api/types/platform.proto | ||||
|  | ||||
| package types | ||||
|  | ||||
| import ( | ||||
| 	fmt "fmt" | ||||
| 	proto "github.com/gogo/protobuf/proto" | ||||
| 	io "io" | ||||
| 	math "math" | ||||
| 	math_bits "math/bits" | ||||
| 	reflect "reflect" | ||||
| 	strings "strings" | ||||
| ) | ||||
|  | ||||
| // Reference imports to suppress errors if they are not otherwise used. | ||||
| var _ = proto.Marshal | ||||
| var _ = fmt.Errorf | ||||
| var _ = math.Inf | ||||
|  | ||||
| // This is a compile-time assertion to ensure that this generated file | ||||
| // is compatible with the proto package it is being compiled against. | ||||
| // A compilation error at this line likely means your copy of the | ||||
| // proto package needs to be updated. | ||||
| const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package | ||||
|  | ||||
| // Platform follows the structure of the OCI platform specification, from | ||||
| // descriptors. | ||||
| type Platform struct { | ||||
| 	OS                   string   `protobuf:"bytes,1,opt,name=os,proto3" json:"os,omitempty"` | ||||
| 	Architecture         string   `protobuf:"bytes,2,opt,name=architecture,proto3" json:"architecture,omitempty"` | ||||
| 	Variant              string   `protobuf:"bytes,3,opt,name=variant,proto3" json:"variant,omitempty"` | ||||
| 	XXX_NoUnkeyedLiteral struct{} `json:"-"` | ||||
| 	XXX_unrecognized     []byte   `json:"-"` | ||||
| 	XXX_sizecache        int32    `json:"-"` | ||||
| } | ||||
|  | ||||
| func (m *Platform) Reset()      { *m = Platform{} } | ||||
| func (*Platform) ProtoMessage() {} | ||||
| func (*Platform) Descriptor() ([]byte, []int) { | ||||
| 	return fileDescriptor_24ba7a4b83e2367e, []int{0} | ||||
| } | ||||
| func (m *Platform) XXX_Unmarshal(b []byte) error { | ||||
| 	return m.Unmarshal(b) | ||||
| } | ||||
| func (m *Platform) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { | ||||
| 	if deterministic { | ||||
| 		return xxx_messageInfo_Platform.Marshal(b, m, deterministic) | ||||
| 	} else { | ||||
| 		b = b[:cap(b)] | ||||
| 		n, err := m.MarshalToSizedBuffer(b) | ||||
| 		if err != nil { | ||||
| 			return nil, err | ||||
| 		} | ||||
| 		return b[:n], nil | ||||
| 	} | ||||
| } | ||||
| func (m *Platform) XXX_Merge(src proto.Message) { | ||||
| 	xxx_messageInfo_Platform.Merge(m, src) | ||||
| } | ||||
| func (m *Platform) XXX_Size() int { | ||||
| 	return m.Size() | ||||
| } | ||||
| func (m *Platform) XXX_DiscardUnknown() { | ||||
| 	xxx_messageInfo_Platform.DiscardUnknown(m) | ||||
| } | ||||
|  | ||||
| var xxx_messageInfo_Platform proto.InternalMessageInfo | ||||
|  | ||||
| func init() { | ||||
| 	proto.RegisterType((*Platform)(nil), "containerd.types.Platform") | ||||
| } | ||||
|  | ||||
| func init() { | ||||
| 	proto.RegisterFile("github.com/containerd/containerd/api/types/platform.proto", fileDescriptor_24ba7a4b83e2367e) | ||||
| } | ||||
|  | ||||
| var fileDescriptor_24ba7a4b83e2367e = []byte{ | ||||
| 	// 205 bytes of a gzipped FileDescriptorProto | ||||
| 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xb2, 0x4c, 0xcf, 0x2c, 0xc9, | ||||
| 	0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xce, 0xcf, 0x2b, 0x49, 0xcc, 0xcc, 0x4b, 0x2d, | ||||
| 	0x4a, 0x41, 0x66, 0x26, 0x16, 0x64, 0xea, 0x97, 0x54, 0x16, 0xa4, 0x16, 0xeb, 0x17, 0xe4, 0x24, | ||||
| 	0x96, 0xa4, 0xe5, 0x17, 0xe5, 0xea, 0x15, 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0x09, 0x20, 0x14, 0xe9, | ||||
| 	0x81, 0x15, 0x48, 0x89, 0xa4, 0xe7, 0xa7, 0xe7, 0x83, 0x25, 0xf5, 0x41, 0x2c, 0x88, 0x3a, 0xa5, | ||||
| 	0x04, 0x2e, 0x8e, 0x00, 0xa8, 0x4e, 0x21, 0x31, 0x2e, 0xa6, 0xfc, 0x62, 0x09, 0x46, 0x05, 0x46, | ||||
| 	0x0d, 0x4e, 0x27, 0xb6, 0x47, 0xf7, 0xe4, 0x99, 0xfc, 0x83, 0x83, 0x98, 0xf2, 0x8b, 0x85, 0x94, | ||||
| 	0xb8, 0x78, 0x12, 0x8b, 0x92, 0x33, 0x32, 0x4b, 0x52, 0x93, 0x4b, 0x4a, 0x8b, 0x52, 0x25, 0x98, | ||||
| 	0x40, 0x2a, 0x82, 0x50, 0xc4, 0x84, 0x24, 0xb8, 0xd8, 0xcb, 0x12, 0x8b, 0x32, 0x13, 0xf3, 0x4a, | ||||
| 	0x24, 0x98, 0xc1, 0xd2, 0x30, 0xae, 0x93, 0xd7, 0x89, 0x87, 0x72, 0x0c, 0x37, 0x1e, 0xca, 0x31, | ||||
| 	0x34, 0x3c, 0x92, 0x63, 0x3c, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, | ||||
| 	0x18, 0xa3, 0x0c, 0x88, 0xf7, 0x9e, 0x35, 0x98, 0x8c, 0x60, 0x48, 0x62, 0x03, 0x3b, 0xdb, 0x18, | ||||
| 	0x10, 0x00, 0x00, 0xff, 0xff, 0x05, 0xaa, 0xda, 0xa1, 0x1b, 0x01, 0x00, 0x00, | ||||
| } | ||||
|  | ||||
| func (m *Platform) Marshal() (dAtA []byte, err error) { | ||||
| 	size := m.Size() | ||||
| 	dAtA = make([]byte, size) | ||||
| 	n, err := m.MarshalToSizedBuffer(dAtA[:size]) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return dAtA[:n], nil | ||||
| } | ||||
|  | ||||
| func (m *Platform) MarshalTo(dAtA []byte) (int, error) { | ||||
| 	size := m.Size() | ||||
| 	return m.MarshalToSizedBuffer(dAtA[:size]) | ||||
| } | ||||
|  | ||||
| func (m *Platform) MarshalToSizedBuffer(dAtA []byte) (int, error) { | ||||
| 	i := len(dAtA) | ||||
| 	_ = i | ||||
| 	var l int | ||||
| 	_ = l | ||||
| 	if m.XXX_unrecognized != nil { | ||||
| 		i -= len(m.XXX_unrecognized) | ||||
| 		copy(dAtA[i:], m.XXX_unrecognized) | ||||
| 	} | ||||
| 	if len(m.Variant) > 0 { | ||||
| 		i -= len(m.Variant) | ||||
| 		copy(dAtA[i:], m.Variant) | ||||
| 		i = encodeVarintPlatform(dAtA, i, uint64(len(m.Variant))) | ||||
| 		i-- | ||||
| 		dAtA[i] = 0x1a | ||||
| 	} | ||||
| 	if len(m.Architecture) > 0 { | ||||
| 		i -= len(m.Architecture) | ||||
| 		copy(dAtA[i:], m.Architecture) | ||||
| 		i = encodeVarintPlatform(dAtA, i, uint64(len(m.Architecture))) | ||||
| 		i-- | ||||
| 		dAtA[i] = 0x12 | ||||
| 	} | ||||
| 	if len(m.OS) > 0 { | ||||
| 		i -= len(m.OS) | ||||
| 		copy(dAtA[i:], m.OS) | ||||
| 		i = encodeVarintPlatform(dAtA, i, uint64(len(m.OS))) | ||||
| 		i-- | ||||
| 		dAtA[i] = 0xa | ||||
| 	} | ||||
| 	return len(dAtA) - i, nil | ||||
| } | ||||
|  | ||||
| func encodeVarintPlatform(dAtA []byte, offset int, v uint64) int { | ||||
| 	offset -= sovPlatform(v) | ||||
| 	base := offset | ||||
| 	for v >= 1<<7 { | ||||
| 		dAtA[offset] = uint8(v&0x7f | 0x80) | ||||
| 		v >>= 7 | ||||
| 		offset++ | ||||
| 	} | ||||
| 	dAtA[offset] = uint8(v) | ||||
| 	return base | ||||
| } | ||||
| func (m *Platform) Size() (n int) { | ||||
| 	if m == nil { | ||||
| 		return 0 | ||||
| 	} | ||||
| 	var l int | ||||
| 	_ = l | ||||
| 	l = len(m.OS) | ||||
| 	if l > 0 { | ||||
| 		n += 1 + l + sovPlatform(uint64(l)) | ||||
| 	} | ||||
| 	l = len(m.Architecture) | ||||
| 	if l > 0 { | ||||
| 		n += 1 + l + sovPlatform(uint64(l)) | ||||
| 	} | ||||
| 	l = len(m.Variant) | ||||
| 	if l > 0 { | ||||
| 		n += 1 + l + sovPlatform(uint64(l)) | ||||
| 	} | ||||
| 	if m.XXX_unrecognized != nil { | ||||
| 		n += len(m.XXX_unrecognized) | ||||
| 	} | ||||
| 	return n | ||||
| } | ||||
|  | ||||
| func sovPlatform(x uint64) (n int) { | ||||
| 	return (math_bits.Len64(x|1) + 6) / 7 | ||||
| } | ||||
| func sozPlatform(x uint64) (n int) { | ||||
| 	return sovPlatform(uint64((x << 1) ^ uint64((int64(x) >> 63)))) | ||||
| } | ||||
| func (this *Platform) String() string { | ||||
| 	if this == nil { | ||||
| 		return "nil" | ||||
| 	} | ||||
| 	s := strings.Join([]string{`&Platform{`, | ||||
| 		`OS:` + fmt.Sprintf("%v", this.OS) + `,`, | ||||
| 		`Architecture:` + fmt.Sprintf("%v", this.Architecture) + `,`, | ||||
| 		`Variant:` + fmt.Sprintf("%v", this.Variant) + `,`, | ||||
| 		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, | ||||
| 		`}`, | ||||
| 	}, "") | ||||
| 	return s | ||||
| } | ||||
| func valueToStringPlatform(v interface{}) string { | ||||
| 	rv := reflect.ValueOf(v) | ||||
| 	if rv.IsNil() { | ||||
| 		return "nil" | ||||
| 	} | ||||
| 	pv := reflect.Indirect(rv).Interface() | ||||
| 	return fmt.Sprintf("*%v", pv) | ||||
| } | ||||
| func (m *Platform) Unmarshal(dAtA []byte) error { | ||||
| 	l := len(dAtA) | ||||
| 	iNdEx := 0 | ||||
| 	for iNdEx < l { | ||||
| 		preIndex := iNdEx | ||||
| 		var wire uint64 | ||||
| 		for shift := uint(0); ; shift += 7 { | ||||
| 			if shift >= 64 { | ||||
| 				return ErrIntOverflowPlatform | ||||
| 			} | ||||
| 			if iNdEx >= l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			b := dAtA[iNdEx] | ||||
| 			iNdEx++ | ||||
| 			wire |= uint64(b&0x7F) << shift | ||||
| 			if b < 0x80 { | ||||
| 				break | ||||
| 			} | ||||
| 		} | ||||
| 		fieldNum := int32(wire >> 3) | ||||
| 		wireType := int(wire & 0x7) | ||||
| 		if wireType == 4 { | ||||
| 			return fmt.Errorf("proto: Platform: wiretype end group for non-group") | ||||
| 		} | ||||
| 		if fieldNum <= 0 { | ||||
| 			return fmt.Errorf("proto: Platform: illegal tag %d (wire type %d)", fieldNum, wire) | ||||
| 		} | ||||
| 		switch fieldNum { | ||||
| 		case 1: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field OS", wireType) | ||||
| 			} | ||||
| 			var stringLen uint64 | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowPlatform | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				stringLen |= uint64(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			intStringLen := int(stringLen) | ||||
| 			if intStringLen < 0 { | ||||
| 				return ErrInvalidLengthPlatform | ||||
| 			} | ||||
| 			postIndex := iNdEx + intStringLen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthPlatform | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.OS = string(dAtA[iNdEx:postIndex]) | ||||
| 			iNdEx = postIndex | ||||
| 		case 2: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Architecture", wireType) | ||||
| 			} | ||||
| 			var stringLen uint64 | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowPlatform | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				stringLen |= uint64(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			intStringLen := int(stringLen) | ||||
| 			if intStringLen < 0 { | ||||
| 				return ErrInvalidLengthPlatform | ||||
| 			} | ||||
| 			postIndex := iNdEx + intStringLen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthPlatform | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.Architecture = string(dAtA[iNdEx:postIndex]) | ||||
| 			iNdEx = postIndex | ||||
| 		case 3: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Variant", wireType) | ||||
| 			} | ||||
| 			var stringLen uint64 | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowPlatform | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				stringLen |= uint64(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			intStringLen := int(stringLen) | ||||
| 			if intStringLen < 0 { | ||||
| 				return ErrInvalidLengthPlatform | ||||
| 			} | ||||
| 			postIndex := iNdEx + intStringLen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthPlatform | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.Variant = string(dAtA[iNdEx:postIndex]) | ||||
| 			iNdEx = postIndex | ||||
| 		default: | ||||
| 			iNdEx = preIndex | ||||
| 			skippy, err := skipPlatform(dAtA[iNdEx:]) | ||||
| 			if err != nil { | ||||
| 				return err | ||||
| 			} | ||||
| 			if (skippy < 0) || (iNdEx+skippy) < 0 { | ||||
| 				return ErrInvalidLengthPlatform | ||||
| 			} | ||||
| 			if (iNdEx + skippy) > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) | ||||
| 			iNdEx += skippy | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	if iNdEx > l { | ||||
| 		return io.ErrUnexpectedEOF | ||||
| 	} | ||||
| 	return nil | ||||
| } | ||||
| func skipPlatform(dAtA []byte) (n int, err error) { | ||||
| 	l := len(dAtA) | ||||
| 	iNdEx := 0 | ||||
| 	depth := 0 | ||||
| 	for iNdEx < l { | ||||
| 		var wire uint64 | ||||
| 		for shift := uint(0); ; shift += 7 { | ||||
| 			if shift >= 64 { | ||||
| 				return 0, ErrIntOverflowPlatform | ||||
| 			} | ||||
| 			if iNdEx >= l { | ||||
| 				return 0, io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			b := dAtA[iNdEx] | ||||
| 			iNdEx++ | ||||
| 			wire |= (uint64(b) & 0x7F) << shift | ||||
| 			if b < 0x80 { | ||||
| 				break | ||||
| 			} | ||||
| 		} | ||||
| 		wireType := int(wire & 0x7) | ||||
| 		switch wireType { | ||||
| 		case 0: | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return 0, ErrIntOverflowPlatform | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return 0, io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				iNdEx++ | ||||
| 				if dAtA[iNdEx-1] < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 		case 1: | ||||
| 			iNdEx += 8 | ||||
| 		case 2: | ||||
| 			var length int | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return 0, ErrIntOverflowPlatform | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return 0, io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				length |= (int(b) & 0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			if length < 0 { | ||||
| 				return 0, ErrInvalidLengthPlatform | ||||
| 			} | ||||
| 			iNdEx += length | ||||
| 		case 3: | ||||
| 			depth++ | ||||
| 		case 4: | ||||
| 			if depth == 0 { | ||||
| 				return 0, ErrUnexpectedEndOfGroupPlatform | ||||
| 			} | ||||
| 			depth-- | ||||
| 		case 5: | ||||
| 			iNdEx += 4 | ||||
| 		default: | ||||
| 			return 0, fmt.Errorf("proto: illegal wireType %d", wireType) | ||||
| 		} | ||||
| 		if iNdEx < 0 { | ||||
| 			return 0, ErrInvalidLengthPlatform | ||||
| 		} | ||||
| 		if depth == 0 { | ||||
| 			return iNdEx, nil | ||||
| 		} | ||||
| 	} | ||||
| 	return 0, io.ErrUnexpectedEOF | ||||
| } | ||||
|  | ||||
| var ( | ||||
| 	ErrInvalidLengthPlatform        = fmt.Errorf("proto: negative length found during unmarshaling") | ||||
| 	ErrIntOverflowPlatform          = fmt.Errorf("proto: integer overflow") | ||||
| 	ErrUnexpectedEndOfGroupPlatform = fmt.Errorf("proto: unexpected end of group") | ||||
| ) | ||||
							
								
								
									
										31
									
								
								vendor/github.com/containerd/containerd/api/types/platform.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										31
									
								
								vendor/github.com/containerd/containerd/api/types/platform.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,31 +0,0 @@ | ||||
| /* | ||||
| 	Copyright The containerd Authors. | ||||
|  | ||||
| 	Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| 	you may not use this file except in compliance with the License. | ||||
| 	You may obtain a copy of the License at | ||||
|  | ||||
| 		http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
| 	Unless required by applicable law or agreed to in writing, software | ||||
| 	distributed under the License is distributed on an "AS IS" BASIS, | ||||
| 	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| 	See the License for the specific language governing permissions and | ||||
| 	limitations under the License. | ||||
| */ | ||||
|  | ||||
| syntax = "proto3"; | ||||
|  | ||||
| package containerd.types; | ||||
|  | ||||
| import weak "gogoproto/gogo.proto"; | ||||
|  | ||||
| option go_package = "github.com/containerd/containerd/api/types;types"; | ||||
|  | ||||
| // Platform follows the structure of the OCI platform specification, from | ||||
| // descriptors. | ||||
| message Platform { | ||||
| 	string os = 1 [(gogoproto.customname) = "OS"]; | ||||
| 	string architecture = 2; | ||||
| 	string variant = 3; | ||||
| } | ||||
							
								
								
									
										18
									
								
								vendor/github.com/containerd/containerd/api/types/task/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										18
									
								
								vendor/github.com/containerd/containerd/api/types/task/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,18 +0,0 @@ | ||||
| /* | ||||
|    Copyright The containerd Authors. | ||||
|  | ||||
|    Licensed under the Apache License, Version 2.0 (the "License"); | ||||
|    you may not use this file except in compliance with the License. | ||||
|    You may obtain a copy of the License at | ||||
|  | ||||
|        http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
|    Unless required by applicable law or agreed to in writing, software | ||||
|    distributed under the License is distributed on an "AS IS" BASIS, | ||||
|    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
|    See the License for the specific language governing permissions and | ||||
|    limitations under the License. | ||||
| */ | ||||
|  | ||||
| // Package task defines the task service. | ||||
| package task | ||||
							
								
								
									
										980
									
								
								vendor/github.com/containerd/containerd/api/types/task/task.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										980
									
								
								vendor/github.com/containerd/containerd/api/types/task/task.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,980 +0,0 @@ | ||||
| // Code generated by protoc-gen-gogo. DO NOT EDIT. | ||||
| // source: github.com/containerd/containerd/api/types/task/task.proto | ||||
|  | ||||
| package task | ||||
|  | ||||
| import ( | ||||
| 	fmt "fmt" | ||||
| 	proto "github.com/gogo/protobuf/proto" | ||||
| 	github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" | ||||
| 	types "github.com/gogo/protobuf/types" | ||||
| 	io "io" | ||||
| 	math "math" | ||||
| 	math_bits "math/bits" | ||||
| 	reflect "reflect" | ||||
| 	strings "strings" | ||||
| 	time "time" | ||||
| ) | ||||
|  | ||||
| // Reference imports to suppress errors if they are not otherwise used. | ||||
| var _ = proto.Marshal | ||||
| var _ = fmt.Errorf | ||||
| var _ = math.Inf | ||||
| var _ = time.Kitchen | ||||
|  | ||||
| // This is a compile-time assertion to ensure that this generated file | ||||
| // is compatible with the proto package it is being compiled against. | ||||
| // A compilation error at this line likely means your copy of the | ||||
| // proto package needs to be updated. | ||||
| const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package | ||||
|  | ||||
| type Status int32 | ||||
|  | ||||
| const ( | ||||
| 	StatusUnknown Status = 0 | ||||
| 	StatusCreated Status = 1 | ||||
| 	StatusRunning Status = 2 | ||||
| 	StatusStopped Status = 3 | ||||
| 	StatusPaused  Status = 4 | ||||
| 	StatusPausing Status = 5 | ||||
| ) | ||||
|  | ||||
| var Status_name = map[int32]string{ | ||||
| 	0: "UNKNOWN", | ||||
| 	1: "CREATED", | ||||
| 	2: "RUNNING", | ||||
| 	3: "STOPPED", | ||||
| 	4: "PAUSED", | ||||
| 	5: "PAUSING", | ||||
| } | ||||
|  | ||||
| var Status_value = map[string]int32{ | ||||
| 	"UNKNOWN": 0, | ||||
| 	"CREATED": 1, | ||||
| 	"RUNNING": 2, | ||||
| 	"STOPPED": 3, | ||||
| 	"PAUSED":  4, | ||||
| 	"PAUSING": 5, | ||||
| } | ||||
|  | ||||
| func (x Status) String() string { | ||||
| 	return proto.EnumName(Status_name, int32(x)) | ||||
| } | ||||
|  | ||||
| func (Status) EnumDescriptor() ([]byte, []int) { | ||||
| 	return fileDescriptor_391ef18c8ab0dc16, []int{0} | ||||
| } | ||||
|  | ||||
| type Process struct { | ||||
| 	ContainerID          string    `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` | ||||
| 	ID                   string    `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` | ||||
| 	Pid                  uint32    `protobuf:"varint,3,opt,name=pid,proto3" json:"pid,omitempty"` | ||||
| 	Status               Status    `protobuf:"varint,4,opt,name=status,proto3,enum=containerd.v1.types.Status" json:"status,omitempty"` | ||||
| 	Stdin                string    `protobuf:"bytes,5,opt,name=stdin,proto3" json:"stdin,omitempty"` | ||||
| 	Stdout               string    `protobuf:"bytes,6,opt,name=stdout,proto3" json:"stdout,omitempty"` | ||||
| 	Stderr               string    `protobuf:"bytes,7,opt,name=stderr,proto3" json:"stderr,omitempty"` | ||||
| 	Terminal             bool      `protobuf:"varint,8,opt,name=terminal,proto3" json:"terminal,omitempty"` | ||||
| 	ExitStatus           uint32    `protobuf:"varint,9,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"` | ||||
| 	ExitedAt             time.Time `protobuf:"bytes,10,opt,name=exited_at,json=exitedAt,proto3,stdtime" json:"exited_at"` | ||||
| 	XXX_NoUnkeyedLiteral struct{}  `json:"-"` | ||||
| 	XXX_unrecognized     []byte    `json:"-"` | ||||
| 	XXX_sizecache        int32     `json:"-"` | ||||
| } | ||||
|  | ||||
| func (m *Process) Reset()      { *m = Process{} } | ||||
| func (*Process) ProtoMessage() {} | ||||
| func (*Process) Descriptor() ([]byte, []int) { | ||||
| 	return fileDescriptor_391ef18c8ab0dc16, []int{0} | ||||
| } | ||||
| func (m *Process) XXX_Unmarshal(b []byte) error { | ||||
| 	return m.Unmarshal(b) | ||||
| } | ||||
| func (m *Process) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { | ||||
| 	if deterministic { | ||||
| 		return xxx_messageInfo_Process.Marshal(b, m, deterministic) | ||||
| 	} else { | ||||
| 		b = b[:cap(b)] | ||||
| 		n, err := m.MarshalToSizedBuffer(b) | ||||
| 		if err != nil { | ||||
| 			return nil, err | ||||
| 		} | ||||
| 		return b[:n], nil | ||||
| 	} | ||||
| } | ||||
| func (m *Process) XXX_Merge(src proto.Message) { | ||||
| 	xxx_messageInfo_Process.Merge(m, src) | ||||
| } | ||||
| func (m *Process) XXX_Size() int { | ||||
| 	return m.Size() | ||||
| } | ||||
| func (m *Process) XXX_DiscardUnknown() { | ||||
| 	xxx_messageInfo_Process.DiscardUnknown(m) | ||||
| } | ||||
|  | ||||
| var xxx_messageInfo_Process proto.InternalMessageInfo | ||||
|  | ||||
| type ProcessInfo struct { | ||||
| 	// PID is the process ID. | ||||
| 	Pid uint32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` | ||||
| 	// Info contains additional process information. | ||||
| 	// | ||||
| 	// Info varies by platform. | ||||
| 	Info                 *types.Any `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` | ||||
| 	XXX_NoUnkeyedLiteral struct{}   `json:"-"` | ||||
| 	XXX_unrecognized     []byte     `json:"-"` | ||||
| 	XXX_sizecache        int32      `json:"-"` | ||||
| } | ||||
|  | ||||
| func (m *ProcessInfo) Reset()      { *m = ProcessInfo{} } | ||||
| func (*ProcessInfo) ProtoMessage() {} | ||||
| func (*ProcessInfo) Descriptor() ([]byte, []int) { | ||||
| 	return fileDescriptor_391ef18c8ab0dc16, []int{1} | ||||
| } | ||||
| func (m *ProcessInfo) XXX_Unmarshal(b []byte) error { | ||||
| 	return m.Unmarshal(b) | ||||
| } | ||||
| func (m *ProcessInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { | ||||
| 	if deterministic { | ||||
| 		return xxx_messageInfo_ProcessInfo.Marshal(b, m, deterministic) | ||||
| 	} else { | ||||
| 		b = b[:cap(b)] | ||||
| 		n, err := m.MarshalToSizedBuffer(b) | ||||
| 		if err != nil { | ||||
| 			return nil, err | ||||
| 		} | ||||
| 		return b[:n], nil | ||||
| 	} | ||||
| } | ||||
| func (m *ProcessInfo) XXX_Merge(src proto.Message) { | ||||
| 	xxx_messageInfo_ProcessInfo.Merge(m, src) | ||||
| } | ||||
| func (m *ProcessInfo) XXX_Size() int { | ||||
| 	return m.Size() | ||||
| } | ||||
| func (m *ProcessInfo) XXX_DiscardUnknown() { | ||||
| 	xxx_messageInfo_ProcessInfo.DiscardUnknown(m) | ||||
| } | ||||
|  | ||||
| var xxx_messageInfo_ProcessInfo proto.InternalMessageInfo | ||||
|  | ||||
| func init() { | ||||
| 	proto.RegisterEnum("containerd.v1.types.Status", Status_name, Status_value) | ||||
| 	proto.RegisterType((*Process)(nil), "containerd.v1.types.Process") | ||||
| 	proto.RegisterType((*ProcessInfo)(nil), "containerd.v1.types.ProcessInfo") | ||||
| } | ||||
|  | ||||
| func init() { | ||||
| 	proto.RegisterFile("github.com/containerd/containerd/api/types/task/task.proto", fileDescriptor_391ef18c8ab0dc16) | ||||
| } | ||||
|  | ||||
| var fileDescriptor_391ef18c8ab0dc16 = []byte{ | ||||
| 	// 545 bytes of a gzipped FileDescriptorProto | ||||
| 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0x3f, 0x6f, 0xd3, 0x40, | ||||
| 	0x18, 0xc6, 0x7d, 0x6e, 0xeb, 0xa6, 0xe7, 0xb6, 0x18, 0x13, 0x55, 0xc6, 0x20, 0xdb, 0xea, 0x64, | ||||
| 	0x31, 0xd8, 0x22, 0xdd, 0xd8, 0xf2, 0x4f, 0xc8, 0x42, 0x72, 0x23, 0x27, 0x11, 0x6c, 0x91, 0x13, | ||||
| 	0x5f, 0xcc, 0xa9, 0xcd, 0x9d, 0x65, 0x9f, 0x81, 0x6c, 0x8c, 0xa8, 0x13, 0x5f, 0xa0, 0x13, 0x7c, | ||||
| 	0x0a, 0x3e, 0x41, 0x46, 0x26, 0xc4, 0x14, 0xa8, 0x3f, 0x09, 0x3a, 0xdb, 0x49, 0x23, 0x60, 0x39, | ||||
| 	0xbd, 0xef, 0xf3, 0x7b, 0xee, 0xbd, 0xf7, 0x1e, 0xf8, 0x22, 0xc6, 0xec, 0x6d, 0x3e, 0x75, 0x66, | ||||
| 	0x74, 0xe1, 0xce, 0x28, 0x61, 0x21, 0x26, 0x28, 0x8d, 0x76, 0xcb, 0x30, 0xc1, 0x2e, 0x5b, 0x26, | ||||
| 	0x28, 0x73, 0x59, 0x98, 0x5d, 0x95, 0x87, 0x93, 0xa4, 0x94, 0x51, 0xf5, 0xd1, 0xbd, 0xcb, 0x79, | ||||
| 	0xf7, 0xdc, 0x29, 0x4d, 0x7a, 0x33, 0xa6, 0x31, 0x2d, 0xb9, 0xcb, 0xab, 0xca, 0xaa, 0x9b, 0x31, | ||||
| 	0xa5, 0xf1, 0x35, 0x72, 0xcb, 0x6e, 0x9a, 0xcf, 0x5d, 0x86, 0x17, 0x28, 0x63, 0xe1, 0x22, 0xa9, | ||||
| 	0x0d, 0x8f, 0xff, 0x36, 0x84, 0x64, 0x59, 0xa1, 0xf3, 0x42, 0x84, 0x87, 0x83, 0x94, 0xce, 0x50, | ||||
| 	0x96, 0xa9, 0x2d, 0x78, 0xbc, 0x7d, 0x74, 0x82, 0x23, 0x0d, 0x58, 0xc0, 0x3e, 0xea, 0x3c, 0x28, | ||||
| 	0xd6, 0xa6, 0xdc, 0xdd, 0xe8, 0x5e, 0x2f, 0x90, 0xb7, 0x26, 0x2f, 0x52, 0xcf, 0xa0, 0x88, 0x23, | ||||
| 	0x4d, 0x2c, 0x9d, 0x52, 0xb1, 0x36, 0x45, 0xaf, 0x17, 0x88, 0x38, 0x52, 0x15, 0xb8, 0x97, 0xe0, | ||||
| 	0x48, 0xdb, 0xb3, 0x80, 0x7d, 0x12, 0xf0, 0x52, 0xbd, 0x80, 0x52, 0xc6, 0x42, 0x96, 0x67, 0xda, | ||||
| 	0xbe, 0x05, 0xec, 0xd3, 0xd6, 0x13, 0xe7, 0x3f, 0x3f, 0x74, 0x86, 0xa5, 0x25, 0xa8, 0xad, 0x6a, | ||||
| 	0x13, 0x1e, 0x64, 0x2c, 0xc2, 0x44, 0x3b, 0xe0, 0x2f, 0x04, 0x55, 0xa3, 0x9e, 0xf1, 0x51, 0x11, | ||||
| 	0xcd, 0x99, 0x26, 0x95, 0x72, 0xdd, 0xd5, 0x3a, 0x4a, 0x53, 0xed, 0x70, 0xab, 0xa3, 0x34, 0x55, | ||||
| 	0x75, 0xd8, 0x60, 0x28, 0x5d, 0x60, 0x12, 0x5e, 0x6b, 0x0d, 0x0b, 0xd8, 0x8d, 0x60, 0xdb, 0xab, | ||||
| 	0x26, 0x94, 0xd1, 0x07, 0xcc, 0x26, 0xf5, 0x6e, 0x47, 0xe5, 0xc2, 0x90, 0x4b, 0xd5, 0x2a, 0x6a, | ||||
| 	0x1b, 0x1e, 0xf1, 0x0e, 0x45, 0x93, 0x90, 0x69, 0xd0, 0x02, 0xb6, 0xdc, 0xd2, 0x9d, 0x2a, 0x50, | ||||
| 	0x67, 0x13, 0xa8, 0x33, 0xda, 0x24, 0xde, 0x69, 0xac, 0xd6, 0xa6, 0xf0, 0xf9, 0x97, 0x09, 0x82, | ||||
| 	0x46, 0x75, 0xad, 0xcd, 0xce, 0x3d, 0x28, 0xd7, 0x19, 0x7b, 0x64, 0x4e, 0x37, 0xd9, 0x80, 0xfb, | ||||
| 	0x6c, 0x6c, 0xb8, 0x8f, 0xc9, 0x9c, 0x96, 0x39, 0xca, 0xad, 0xe6, 0x3f, 0xe3, 0xdb, 0x64, 0x19, | ||||
| 	0x94, 0x8e, 0x67, 0x3f, 0x00, 0x94, 0xea, 0xc5, 0x0c, 0x78, 0x38, 0xf6, 0x5f, 0xf9, 0x97, 0xaf, | ||||
| 	0x7d, 0x45, 0xd0, 0x1f, 0xde, 0xdc, 0x5a, 0x27, 0x15, 0x18, 0x93, 0x2b, 0x42, 0xdf, 0x13, 0xce, | ||||
| 	0xbb, 0x41, 0xbf, 0x3d, 0xea, 0xf7, 0x14, 0xb0, 0xcb, 0xbb, 0x29, 0x0a, 0x19, 0x8a, 0x38, 0x0f, | ||||
| 	0xc6, 0xbe, 0xef, 0xf9, 0x2f, 0x15, 0x71, 0x97, 0x07, 0x39, 0x21, 0x98, 0xc4, 0x9c, 0x0f, 0x47, | ||||
| 	0x97, 0x83, 0x41, 0xbf, 0xa7, 0xec, 0xed, 0xf2, 0x21, 0xa3, 0x49, 0x82, 0x22, 0xf5, 0x29, 0x94, | ||||
| 	0x06, 0xed, 0xf1, 0xb0, 0xdf, 0x53, 0xf6, 0x75, 0xe5, 0xe6, 0xd6, 0x3a, 0xae, 0xf0, 0x20, 0xcc, | ||||
| 	0xb3, 0x6a, 0x3a, 0xa7, 0x7c, 0xfa, 0xc1, 0xee, 0x6d, 0x8e, 0x31, 0x89, 0xf5, 0xd3, 0x4f, 0x5f, | ||||
| 	0x0c, 0xe1, 0xdb, 0x57, 0xa3, 0xfe, 0x4d, 0x47, 0x5b, 0xdd, 0x19, 0xc2, 0xcf, 0x3b, 0x43, 0xf8, | ||||
| 	0x58, 0x18, 0x60, 0x55, 0x18, 0xe0, 0x7b, 0x61, 0x80, 0xdf, 0x85, 0x01, 0xde, 0x08, 0x53, 0xa9, | ||||
| 	0x0c, 0xe2, 0xe2, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc3, 0x32, 0xd2, 0x86, 0x50, 0x03, 0x00, | ||||
| 	0x00, | ||||
| } | ||||
|  | ||||
| func (m *Process) Marshal() (dAtA []byte, err error) { | ||||
| 	size := m.Size() | ||||
| 	dAtA = make([]byte, size) | ||||
| 	n, err := m.MarshalToSizedBuffer(dAtA[:size]) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return dAtA[:n], nil | ||||
| } | ||||
|  | ||||
| func (m *Process) MarshalTo(dAtA []byte) (int, error) { | ||||
| 	size := m.Size() | ||||
| 	return m.MarshalToSizedBuffer(dAtA[:size]) | ||||
| } | ||||
|  | ||||
| func (m *Process) MarshalToSizedBuffer(dAtA []byte) (int, error) { | ||||
| 	i := len(dAtA) | ||||
| 	_ = i | ||||
| 	var l int | ||||
| 	_ = l | ||||
| 	if m.XXX_unrecognized != nil { | ||||
| 		i -= len(m.XXX_unrecognized) | ||||
| 		copy(dAtA[i:], m.XXX_unrecognized) | ||||
| 	} | ||||
| 	n1, err1 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.ExitedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.ExitedAt):]) | ||||
| 	if err1 != nil { | ||||
| 		return 0, err1 | ||||
| 	} | ||||
| 	i -= n1 | ||||
| 	i = encodeVarintTask(dAtA, i, uint64(n1)) | ||||
| 	i-- | ||||
| 	dAtA[i] = 0x52 | ||||
| 	if m.ExitStatus != 0 { | ||||
| 		i = encodeVarintTask(dAtA, i, uint64(m.ExitStatus)) | ||||
| 		i-- | ||||
| 		dAtA[i] = 0x48 | ||||
| 	} | ||||
| 	if m.Terminal { | ||||
| 		i-- | ||||
| 		if m.Terminal { | ||||
| 			dAtA[i] = 1 | ||||
| 		} else { | ||||
| 			dAtA[i] = 0 | ||||
| 		} | ||||
| 		i-- | ||||
| 		dAtA[i] = 0x40 | ||||
| 	} | ||||
| 	if len(m.Stderr) > 0 { | ||||
| 		i -= len(m.Stderr) | ||||
| 		copy(dAtA[i:], m.Stderr) | ||||
| 		i = encodeVarintTask(dAtA, i, uint64(len(m.Stderr))) | ||||
| 		i-- | ||||
| 		dAtA[i] = 0x3a | ||||
| 	} | ||||
| 	if len(m.Stdout) > 0 { | ||||
| 		i -= len(m.Stdout) | ||||
| 		copy(dAtA[i:], m.Stdout) | ||||
| 		i = encodeVarintTask(dAtA, i, uint64(len(m.Stdout))) | ||||
| 		i-- | ||||
| 		dAtA[i] = 0x32 | ||||
| 	} | ||||
| 	if len(m.Stdin) > 0 { | ||||
| 		i -= len(m.Stdin) | ||||
| 		copy(dAtA[i:], m.Stdin) | ||||
| 		i = encodeVarintTask(dAtA, i, uint64(len(m.Stdin))) | ||||
| 		i-- | ||||
| 		dAtA[i] = 0x2a | ||||
| 	} | ||||
| 	if m.Status != 0 { | ||||
| 		i = encodeVarintTask(dAtA, i, uint64(m.Status)) | ||||
| 		i-- | ||||
| 		dAtA[i] = 0x20 | ||||
| 	} | ||||
| 	if m.Pid != 0 { | ||||
| 		i = encodeVarintTask(dAtA, i, uint64(m.Pid)) | ||||
| 		i-- | ||||
| 		dAtA[i] = 0x18 | ||||
| 	} | ||||
| 	if len(m.ID) > 0 { | ||||
| 		i -= len(m.ID) | ||||
| 		copy(dAtA[i:], m.ID) | ||||
| 		i = encodeVarintTask(dAtA, i, uint64(len(m.ID))) | ||||
| 		i-- | ||||
| 		dAtA[i] = 0x12 | ||||
| 	} | ||||
| 	if len(m.ContainerID) > 0 { | ||||
| 		i -= len(m.ContainerID) | ||||
| 		copy(dAtA[i:], m.ContainerID) | ||||
| 		i = encodeVarintTask(dAtA, i, uint64(len(m.ContainerID))) | ||||
| 		i-- | ||||
| 		dAtA[i] = 0xa | ||||
| 	} | ||||
| 	return len(dAtA) - i, nil | ||||
| } | ||||
|  | ||||
| func (m *ProcessInfo) Marshal() (dAtA []byte, err error) { | ||||
| 	size := m.Size() | ||||
| 	dAtA = make([]byte, size) | ||||
| 	n, err := m.MarshalToSizedBuffer(dAtA[:size]) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return dAtA[:n], nil | ||||
| } | ||||
|  | ||||
| func (m *ProcessInfo) MarshalTo(dAtA []byte) (int, error) { | ||||
| 	size := m.Size() | ||||
| 	return m.MarshalToSizedBuffer(dAtA[:size]) | ||||
| } | ||||
|  | ||||
| func (m *ProcessInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { | ||||
| 	i := len(dAtA) | ||||
| 	_ = i | ||||
| 	var l int | ||||
| 	_ = l | ||||
| 	if m.XXX_unrecognized != nil { | ||||
| 		i -= len(m.XXX_unrecognized) | ||||
| 		copy(dAtA[i:], m.XXX_unrecognized) | ||||
| 	} | ||||
| 	if m.Info != nil { | ||||
| 		{ | ||||
| 			size, err := m.Info.MarshalToSizedBuffer(dAtA[:i]) | ||||
| 			if err != nil { | ||||
| 				return 0, err | ||||
| 			} | ||||
| 			i -= size | ||||
| 			i = encodeVarintTask(dAtA, i, uint64(size)) | ||||
| 		} | ||||
| 		i-- | ||||
| 		dAtA[i] = 0x12 | ||||
| 	} | ||||
| 	if m.Pid != 0 { | ||||
| 		i = encodeVarintTask(dAtA, i, uint64(m.Pid)) | ||||
| 		i-- | ||||
| 		dAtA[i] = 0x8 | ||||
| 	} | ||||
| 	return len(dAtA) - i, nil | ||||
| } | ||||
|  | ||||
| func encodeVarintTask(dAtA []byte, offset int, v uint64) int { | ||||
| 	offset -= sovTask(v) | ||||
| 	base := offset | ||||
| 	for v >= 1<<7 { | ||||
| 		dAtA[offset] = uint8(v&0x7f | 0x80) | ||||
| 		v >>= 7 | ||||
| 		offset++ | ||||
| 	} | ||||
| 	dAtA[offset] = uint8(v) | ||||
| 	return base | ||||
| } | ||||
| func (m *Process) Size() (n int) { | ||||
| 	if m == nil { | ||||
| 		return 0 | ||||
| 	} | ||||
| 	var l int | ||||
| 	_ = l | ||||
| 	l = len(m.ContainerID) | ||||
| 	if l > 0 { | ||||
| 		n += 1 + l + sovTask(uint64(l)) | ||||
| 	} | ||||
| 	l = len(m.ID) | ||||
| 	if l > 0 { | ||||
| 		n += 1 + l + sovTask(uint64(l)) | ||||
| 	} | ||||
| 	if m.Pid != 0 { | ||||
| 		n += 1 + sovTask(uint64(m.Pid)) | ||||
| 	} | ||||
| 	if m.Status != 0 { | ||||
| 		n += 1 + sovTask(uint64(m.Status)) | ||||
| 	} | ||||
| 	l = len(m.Stdin) | ||||
| 	if l > 0 { | ||||
| 		n += 1 + l + sovTask(uint64(l)) | ||||
| 	} | ||||
| 	l = len(m.Stdout) | ||||
| 	if l > 0 { | ||||
| 		n += 1 + l + sovTask(uint64(l)) | ||||
| 	} | ||||
| 	l = len(m.Stderr) | ||||
| 	if l > 0 { | ||||
| 		n += 1 + l + sovTask(uint64(l)) | ||||
| 	} | ||||
| 	if m.Terminal { | ||||
| 		n += 2 | ||||
| 	} | ||||
| 	if m.ExitStatus != 0 { | ||||
| 		n += 1 + sovTask(uint64(m.ExitStatus)) | ||||
| 	} | ||||
| 	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.ExitedAt) | ||||
| 	n += 1 + l + sovTask(uint64(l)) | ||||
| 	if m.XXX_unrecognized != nil { | ||||
| 		n += len(m.XXX_unrecognized) | ||||
| 	} | ||||
| 	return n | ||||
| } | ||||
|  | ||||
| func (m *ProcessInfo) Size() (n int) { | ||||
| 	if m == nil { | ||||
| 		return 0 | ||||
| 	} | ||||
| 	var l int | ||||
| 	_ = l | ||||
| 	if m.Pid != 0 { | ||||
| 		n += 1 + sovTask(uint64(m.Pid)) | ||||
| 	} | ||||
| 	if m.Info != nil { | ||||
| 		l = m.Info.Size() | ||||
| 		n += 1 + l + sovTask(uint64(l)) | ||||
| 	} | ||||
| 	if m.XXX_unrecognized != nil { | ||||
| 		n += len(m.XXX_unrecognized) | ||||
| 	} | ||||
| 	return n | ||||
| } | ||||
|  | ||||
| func sovTask(x uint64) (n int) { | ||||
| 	return (math_bits.Len64(x|1) + 6) / 7 | ||||
| } | ||||
| func sozTask(x uint64) (n int) { | ||||
| 	return sovTask(uint64((x << 1) ^ uint64((int64(x) >> 63)))) | ||||
| } | ||||
| func (this *Process) String() string { | ||||
| 	if this == nil { | ||||
| 		return "nil" | ||||
| 	} | ||||
| 	s := strings.Join([]string{`&Process{`, | ||||
| 		`ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, | ||||
| 		`ID:` + fmt.Sprintf("%v", this.ID) + `,`, | ||||
| 		`Pid:` + fmt.Sprintf("%v", this.Pid) + `,`, | ||||
| 		`Status:` + fmt.Sprintf("%v", this.Status) + `,`, | ||||
| 		`Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`, | ||||
| 		`Stdout:` + fmt.Sprintf("%v", this.Stdout) + `,`, | ||||
| 		`Stderr:` + fmt.Sprintf("%v", this.Stderr) + `,`, | ||||
| 		`Terminal:` + fmt.Sprintf("%v", this.Terminal) + `,`, | ||||
| 		`ExitStatus:` + fmt.Sprintf("%v", this.ExitStatus) + `,`, | ||||
| 		`ExitedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ExitedAt), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`, | ||||
| 		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, | ||||
| 		`}`, | ||||
| 	}, "") | ||||
| 	return s | ||||
| } | ||||
| func (this *ProcessInfo) String() string { | ||||
| 	if this == nil { | ||||
| 		return "nil" | ||||
| 	} | ||||
| 	s := strings.Join([]string{`&ProcessInfo{`, | ||||
| 		`Pid:` + fmt.Sprintf("%v", this.Pid) + `,`, | ||||
| 		`Info:` + strings.Replace(fmt.Sprintf("%v", this.Info), "Any", "types.Any", 1) + `,`, | ||||
| 		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, | ||||
| 		`}`, | ||||
| 	}, "") | ||||
| 	return s | ||||
| } | ||||
| func valueToStringTask(v interface{}) string { | ||||
| 	rv := reflect.ValueOf(v) | ||||
| 	if rv.IsNil() { | ||||
| 		return "nil" | ||||
| 	} | ||||
| 	pv := reflect.Indirect(rv).Interface() | ||||
| 	return fmt.Sprintf("*%v", pv) | ||||
| } | ||||
| func (m *Process) Unmarshal(dAtA []byte) error { | ||||
| 	l := len(dAtA) | ||||
| 	iNdEx := 0 | ||||
| 	for iNdEx < l { | ||||
| 		preIndex := iNdEx | ||||
| 		var wire uint64 | ||||
| 		for shift := uint(0); ; shift += 7 { | ||||
| 			if shift >= 64 { | ||||
| 				return ErrIntOverflowTask | ||||
| 			} | ||||
| 			if iNdEx >= l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			b := dAtA[iNdEx] | ||||
| 			iNdEx++ | ||||
| 			wire |= uint64(b&0x7F) << shift | ||||
| 			if b < 0x80 { | ||||
| 				break | ||||
| 			} | ||||
| 		} | ||||
| 		fieldNum := int32(wire >> 3) | ||||
| 		wireType := int(wire & 0x7) | ||||
| 		if wireType == 4 { | ||||
| 			return fmt.Errorf("proto: Process: wiretype end group for non-group") | ||||
| 		} | ||||
| 		if fieldNum <= 0 { | ||||
| 			return fmt.Errorf("proto: Process: illegal tag %d (wire type %d)", fieldNum, wire) | ||||
| 		} | ||||
| 		switch fieldNum { | ||||
| 		case 1: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) | ||||
| 			} | ||||
| 			var stringLen uint64 | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowTask | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				stringLen |= uint64(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			intStringLen := int(stringLen) | ||||
| 			if intStringLen < 0 { | ||||
| 				return ErrInvalidLengthTask | ||||
| 			} | ||||
| 			postIndex := iNdEx + intStringLen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthTask | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.ContainerID = string(dAtA[iNdEx:postIndex]) | ||||
| 			iNdEx = postIndex | ||||
| 		case 2: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) | ||||
| 			} | ||||
| 			var stringLen uint64 | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowTask | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				stringLen |= uint64(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			intStringLen := int(stringLen) | ||||
| 			if intStringLen < 0 { | ||||
| 				return ErrInvalidLengthTask | ||||
| 			} | ||||
| 			postIndex := iNdEx + intStringLen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthTask | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.ID = string(dAtA[iNdEx:postIndex]) | ||||
| 			iNdEx = postIndex | ||||
| 		case 3: | ||||
| 			if wireType != 0 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) | ||||
| 			} | ||||
| 			m.Pid = 0 | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowTask | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				m.Pid |= uint32(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 		case 4: | ||||
| 			if wireType != 0 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) | ||||
| 			} | ||||
| 			m.Status = 0 | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowTask | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				m.Status |= Status(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 		case 5: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType) | ||||
| 			} | ||||
| 			var stringLen uint64 | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowTask | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				stringLen |= uint64(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			intStringLen := int(stringLen) | ||||
| 			if intStringLen < 0 { | ||||
| 				return ErrInvalidLengthTask | ||||
| 			} | ||||
| 			postIndex := iNdEx + intStringLen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthTask | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.Stdin = string(dAtA[iNdEx:postIndex]) | ||||
| 			iNdEx = postIndex | ||||
| 		case 6: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Stdout", wireType) | ||||
| 			} | ||||
| 			var stringLen uint64 | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowTask | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				stringLen |= uint64(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			intStringLen := int(stringLen) | ||||
| 			if intStringLen < 0 { | ||||
| 				return ErrInvalidLengthTask | ||||
| 			} | ||||
| 			postIndex := iNdEx + intStringLen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthTask | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.Stdout = string(dAtA[iNdEx:postIndex]) | ||||
| 			iNdEx = postIndex | ||||
| 		case 7: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Stderr", wireType) | ||||
| 			} | ||||
| 			var stringLen uint64 | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowTask | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				stringLen |= uint64(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			intStringLen := int(stringLen) | ||||
| 			if intStringLen < 0 { | ||||
| 				return ErrInvalidLengthTask | ||||
| 			} | ||||
| 			postIndex := iNdEx + intStringLen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthTask | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.Stderr = string(dAtA[iNdEx:postIndex]) | ||||
| 			iNdEx = postIndex | ||||
| 		case 8: | ||||
| 			if wireType != 0 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Terminal", wireType) | ||||
| 			} | ||||
| 			var v int | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowTask | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				v |= int(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			m.Terminal = bool(v != 0) | ||||
| 		case 9: | ||||
| 			if wireType != 0 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field ExitStatus", wireType) | ||||
| 			} | ||||
| 			m.ExitStatus = 0 | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowTask | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				m.ExitStatus |= uint32(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 		case 10: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field ExitedAt", wireType) | ||||
| 			} | ||||
| 			var msglen int | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowTask | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				msglen |= int(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			if msglen < 0 { | ||||
| 				return ErrInvalidLengthTask | ||||
| 			} | ||||
| 			postIndex := iNdEx + msglen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthTask | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.ExitedAt, dAtA[iNdEx:postIndex]); err != nil { | ||||
| 				return err | ||||
| 			} | ||||
| 			iNdEx = postIndex | ||||
| 		default: | ||||
| 			iNdEx = preIndex | ||||
| 			skippy, err := skipTask(dAtA[iNdEx:]) | ||||
| 			if err != nil { | ||||
| 				return err | ||||
| 			} | ||||
| 			if (skippy < 0) || (iNdEx+skippy) < 0 { | ||||
| 				return ErrInvalidLengthTask | ||||
| 			} | ||||
| 			if (iNdEx + skippy) > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) | ||||
| 			iNdEx += skippy | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	if iNdEx > l { | ||||
| 		return io.ErrUnexpectedEOF | ||||
| 	} | ||||
| 	return nil | ||||
| } | ||||
| func (m *ProcessInfo) Unmarshal(dAtA []byte) error { | ||||
| 	l := len(dAtA) | ||||
| 	iNdEx := 0 | ||||
| 	for iNdEx < l { | ||||
| 		preIndex := iNdEx | ||||
| 		var wire uint64 | ||||
| 		for shift := uint(0); ; shift += 7 { | ||||
| 			if shift >= 64 { | ||||
| 				return ErrIntOverflowTask | ||||
| 			} | ||||
| 			if iNdEx >= l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			b := dAtA[iNdEx] | ||||
| 			iNdEx++ | ||||
| 			wire |= uint64(b&0x7F) << shift | ||||
| 			if b < 0x80 { | ||||
| 				break | ||||
| 			} | ||||
| 		} | ||||
| 		fieldNum := int32(wire >> 3) | ||||
| 		wireType := int(wire & 0x7) | ||||
| 		if wireType == 4 { | ||||
| 			return fmt.Errorf("proto: ProcessInfo: wiretype end group for non-group") | ||||
| 		} | ||||
| 		if fieldNum <= 0 { | ||||
| 			return fmt.Errorf("proto: ProcessInfo: illegal tag %d (wire type %d)", fieldNum, wire) | ||||
| 		} | ||||
| 		switch fieldNum { | ||||
| 		case 1: | ||||
| 			if wireType != 0 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) | ||||
| 			} | ||||
| 			m.Pid = 0 | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowTask | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				m.Pid |= uint32(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 		case 2: | ||||
| 			if wireType != 2 { | ||||
| 				return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) | ||||
| 			} | ||||
| 			var msglen int | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return ErrIntOverflowTask | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				msglen |= int(b&0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			if msglen < 0 { | ||||
| 				return ErrInvalidLengthTask | ||||
| 			} | ||||
| 			postIndex := iNdEx + msglen | ||||
| 			if postIndex < 0 { | ||||
| 				return ErrInvalidLengthTask | ||||
| 			} | ||||
| 			if postIndex > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			if m.Info == nil { | ||||
| 				m.Info = &types.Any{} | ||||
| 			} | ||||
| 			if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { | ||||
| 				return err | ||||
| 			} | ||||
| 			iNdEx = postIndex | ||||
| 		default: | ||||
| 			iNdEx = preIndex | ||||
| 			skippy, err := skipTask(dAtA[iNdEx:]) | ||||
| 			if err != nil { | ||||
| 				return err | ||||
| 			} | ||||
| 			if (skippy < 0) || (iNdEx+skippy) < 0 { | ||||
| 				return ErrInvalidLengthTask | ||||
| 			} | ||||
| 			if (iNdEx + skippy) > l { | ||||
| 				return io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) | ||||
| 			iNdEx += skippy | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	if iNdEx > l { | ||||
| 		return io.ErrUnexpectedEOF | ||||
| 	} | ||||
| 	return nil | ||||
| } | ||||
| func skipTask(dAtA []byte) (n int, err error) { | ||||
| 	l := len(dAtA) | ||||
| 	iNdEx := 0 | ||||
| 	depth := 0 | ||||
| 	for iNdEx < l { | ||||
| 		var wire uint64 | ||||
| 		for shift := uint(0); ; shift += 7 { | ||||
| 			if shift >= 64 { | ||||
| 				return 0, ErrIntOverflowTask | ||||
| 			} | ||||
| 			if iNdEx >= l { | ||||
| 				return 0, io.ErrUnexpectedEOF | ||||
| 			} | ||||
| 			b := dAtA[iNdEx] | ||||
| 			iNdEx++ | ||||
| 			wire |= (uint64(b) & 0x7F) << shift | ||||
| 			if b < 0x80 { | ||||
| 				break | ||||
| 			} | ||||
| 		} | ||||
| 		wireType := int(wire & 0x7) | ||||
| 		switch wireType { | ||||
| 		case 0: | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return 0, ErrIntOverflowTask | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return 0, io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				iNdEx++ | ||||
| 				if dAtA[iNdEx-1] < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 		case 1: | ||||
| 			iNdEx += 8 | ||||
| 		case 2: | ||||
| 			var length int | ||||
| 			for shift := uint(0); ; shift += 7 { | ||||
| 				if shift >= 64 { | ||||
| 					return 0, ErrIntOverflowTask | ||||
| 				} | ||||
| 				if iNdEx >= l { | ||||
| 					return 0, io.ErrUnexpectedEOF | ||||
| 				} | ||||
| 				b := dAtA[iNdEx] | ||||
| 				iNdEx++ | ||||
| 				length |= (int(b) & 0x7F) << shift | ||||
| 				if b < 0x80 { | ||||
| 					break | ||||
| 				} | ||||
| 			} | ||||
| 			if length < 0 { | ||||
| 				return 0, ErrInvalidLengthTask | ||||
| 			} | ||||
| 			iNdEx += length | ||||
| 		case 3: | ||||
| 			depth++ | ||||
| 		case 4: | ||||
| 			if depth == 0 { | ||||
| 				return 0, ErrUnexpectedEndOfGroupTask | ||||
| 			} | ||||
| 			depth-- | ||||
| 		case 5: | ||||
| 			iNdEx += 4 | ||||
| 		default: | ||||
| 			return 0, fmt.Errorf("proto: illegal wireType %d", wireType) | ||||
| 		} | ||||
| 		if iNdEx < 0 { | ||||
| 			return 0, ErrInvalidLengthTask | ||||
| 		} | ||||
| 		if depth == 0 { | ||||
| 			return iNdEx, nil | ||||
| 		} | ||||
| 	} | ||||
| 	return 0, io.ErrUnexpectedEOF | ||||
| } | ||||
|  | ||||
| var ( | ||||
| 	ErrInvalidLengthTask        = fmt.Errorf("proto: negative length found during unmarshaling") | ||||
| 	ErrIntOverflowTask          = fmt.Errorf("proto: integer overflow") | ||||
| 	ErrUnexpectedEndOfGroupTask = fmt.Errorf("proto: unexpected end of group") | ||||
| ) | ||||
							
								
								
									
										57
									
								
								vendor/github.com/containerd/containerd/api/types/task/task.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										57
									
								
								vendor/github.com/containerd/containerd/api/types/task/task.proto
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,57 +0,0 @@ | ||||
| /* | ||||
| 	Copyright The containerd Authors. | ||||
|  | ||||
| 	Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| 	you may not use this file except in compliance with the License. | ||||
| 	You may obtain a copy of the License at | ||||
|  | ||||
| 		http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
| 	Unless required by applicable law or agreed to in writing, software | ||||
| 	distributed under the License is distributed on an "AS IS" BASIS, | ||||
| 	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| 	See the License for the specific language governing permissions and | ||||
| 	limitations under the License. | ||||
| */ | ||||
|  | ||||
| syntax = "proto3"; | ||||
|  | ||||
| package containerd.v1.types; | ||||
|  | ||||
| import weak "gogoproto/gogo.proto"; | ||||
| import "google/protobuf/timestamp.proto"; | ||||
| import "google/protobuf/any.proto"; | ||||
|  | ||||
| enum Status { | ||||
| 	option (gogoproto.goproto_enum_prefix) = false; | ||||
| 	option (gogoproto.enum_customname) = "Status"; | ||||
|  | ||||
| 	UNKNOWN = 0 [(gogoproto.enumvalue_customname) = "StatusUnknown"]; | ||||
| 	CREATED = 1 [(gogoproto.enumvalue_customname) = "StatusCreated"]; | ||||
| 	RUNNING = 2 [(gogoproto.enumvalue_customname) = "StatusRunning"]; | ||||
| 	STOPPED = 3 [(gogoproto.enumvalue_customname) = "StatusStopped"]; | ||||
| 	PAUSED = 4 [(gogoproto.enumvalue_customname) = "StatusPaused"]; | ||||
| 	PAUSING = 5 [(gogoproto.enumvalue_customname) = "StatusPausing"]; | ||||
| } | ||||
|  | ||||
| message Process { | ||||
| 	string container_id = 1; | ||||
| 	string id = 2; | ||||
| 	uint32 pid = 3; | ||||
| 	Status status = 4; | ||||
| 	string stdin = 5; | ||||
| 	string stdout = 6; | ||||
| 	string stderr = 7; | ||||
| 	bool terminal = 8; | ||||
| 	uint32 exit_status = 9; | ||||
| 	google.protobuf.Timestamp exited_at = 10 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false]; | ||||
| } | ||||
|  | ||||
| message ProcessInfo { | ||||
| 	// PID is the process ID. | ||||
| 	uint32 pid = 1; | ||||
| 	// Info contains additional process information. | ||||
| 	// | ||||
| 	// Info varies by platform. | ||||
| 	google.protobuf.Any info = 2; | ||||
| } | ||||
							
								
								
									
										18
									
								
								vendor/modules.txt
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										18
									
								
								vendor/modules.txt
									
									
									
									
										vendored
									
									
								
							| @@ -78,23 +78,6 @@ github.com/containerd/cgroups/v2/stats | ||||
| # github.com/containerd/console v1.0.3 | ||||
| ## explicit | ||||
| github.com/containerd/console | ||||
| # github.com/containerd/containerd/api v1.6.0-beta.3 => ./api | ||||
| ## explicit | ||||
| github.com/containerd/containerd/api/events | ||||
| github.com/containerd/containerd/api/services/containers/v1 | ||||
| github.com/containerd/containerd/api/services/content/v1 | ||||
| github.com/containerd/containerd/api/services/diff/v1 | ||||
| github.com/containerd/containerd/api/services/events/v1 | ||||
| github.com/containerd/containerd/api/services/images/v1 | ||||
| github.com/containerd/containerd/api/services/introspection/v1 | ||||
| github.com/containerd/containerd/api/services/leases/v1 | ||||
| github.com/containerd/containerd/api/services/namespaces/v1 | ||||
| github.com/containerd/containerd/api/services/snapshots/v1 | ||||
| github.com/containerd/containerd/api/services/tasks/v1 | ||||
| github.com/containerd/containerd/api/services/ttrpc/events/v1 | ||||
| github.com/containerd/containerd/api/services/version/v1 | ||||
| github.com/containerd/containerd/api/types | ||||
| github.com/containerd/containerd/api/types/task | ||||
| # github.com/containerd/continuity v0.2.2 | ||||
| ## explicit | ||||
| github.com/containerd/continuity | ||||
| @@ -720,7 +703,6 @@ sigs.k8s.io/structured-merge-diff/v4/value | ||||
| # sigs.k8s.io/yaml v1.2.0 | ||||
| sigs.k8s.io/yaml | ||||
| # github.com/containerd/containerd => ./.empty-mod/ | ||||
| # github.com/containerd/containerd/api => ./api | ||||
| # github.com/gogo/googleapis => github.com/gogo/googleapis v1.3.2 | ||||
| # github.com/urfave/cli => github.com/urfave/cli v1.22.1 | ||||
| # google.golang.org/genproto => google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Derek McGowan
					Derek McGowan