Revert "proto: move all protos under a single root"

This reverts commit 352c6b590c.
This commit is contained in:
Kenfe-Mickael Laventure 2016-12-01 14:25:03 -08:00
parent 352c6b590c
commit ef03000b27
7 changed files with 531 additions and 536 deletions

View file

@ -22,8 +22,6 @@ BINARIES=$(addprefix bin/,$(COMMANDS))
# time. # time.
GO_LDFLAGS=-ldflags "-X `go list`.Version=$(VERSION)" GO_LDFLAGS=-ldflags "-X `go list`.Version=$(VERSION)"
PROTOS=$(shell cd api ; find -name '*.proto')
.PHONY: clean all AUTHORS fmt vet lint build binaries test integration setup generate checkprotos coverage ci check help install uninstall .PHONY: clean all AUTHORS fmt vet lint build binaries test integration setup generate checkprotos coverage ci check help install uninstall
.DEFAULT: default .DEFAULT: default
@ -48,10 +46,7 @@ setup: ## install dependencies
generate: bin/protoc-gen-gogoctrd ## generate protobuf generate: bin/protoc-gen-gogoctrd ## generate protobuf
@echo "🐳 $@" @echo "🐳 $@"
@for p in $(PROTOS) ; do \ @PATH=${ROOTDIR}/bin:${PATH} go generate -x ${PACKAGES}
PATH=${ROOTDIR}/bin:${PATH} protoc -I.:../../../github.com/gogo/protobuf --gogoctrd_out=plugins=grpc,import_path=github.com/docker/containerd/api,Mgogoproto/gogo.proto=github.com/gogo/protobuf/gogoproto,Mgoogle/protobuf/descriptor.proto=github.com/gogo/protobuf/protoc-gen-gogo/descriptor:. api/$$p ; \
done
checkprotos: generate ## check if protobufs needs to be generated again checkprotos: generate ## check if protobufs needs to be generated again
@echo "🐳 $@" @echo "🐳 $@"
@ -138,3 +133,4 @@ coverage-integration: ## generate coverprofiles from the integration tests
help: ## this help help: ## this help
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | sort @awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | sort

File diff suppressed because it is too large Load diff

3
api/execution/gen.go Normal file
View file

@ -0,0 +1,3 @@
package execution
//go:generate protoc -I.:../../../../../github.com/gogo/protobuf --gogoctrd_out=plugins=grpc,import_path=github.com/docker/containerd/api/execution,Mgogoproto/gogo.proto=github.com/gogo/protobuf/gogoproto,Mgoogle/protobuf/descriptor.proto=github.com/gogo/protobuf/protoc-gen-gogo/descriptor:. execution.proto

3
api/registry/gen.go Normal file
View file

@ -0,0 +1,3 @@
package registry
//go:generate protoc -I.:../../../../../github.com/gogo/protobuf --gogoctrd_out=plugins=grpc,import_path=github.com/docker/containerd/api/registry,Mgogoproto/gogo.proto=github.com/gogo/protobuf/gogoproto,Mgoogle/protobuf/descriptor.proto=github.com/gogo/protobuf/protoc-gen-gogo/descriptor:. registry.proto

View file

@ -1,12 +1,12 @@
// Code generated by protoc-gen-gogo. // Code generated by protoc-gen-gogo.
// source: api/registry.proto // source: registry.proto
// DO NOT EDIT! // DO NOT EDIT!
/* /*
Package api is a generated protocol buffer package. Package registry is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
api/registry.proto registry.proto
It has these top-level messages: It has these top-level messages:
PullRequest PullRequest
@ -22,7 +22,7 @@
Layer Layer
Authentication Authentication
*/ */
package api package registry
import proto "github.com/gogo/protobuf/proto" import proto "github.com/gogo/protobuf/proto"
import fmt "fmt" import fmt "fmt"
@ -165,7 +165,7 @@ func (this *PullRequest) GoString() string {
return "nil" return "nil"
} }
s := make([]string, 0, 6) s := make([]string, 0, 6)
s = append(s, "&api.PullRequest{") s = append(s, "&registry.PullRequest{")
s = append(s, "Uri: "+fmt.Sprintf("%#v", this.Uri)+",\n") s = append(s, "Uri: "+fmt.Sprintf("%#v", this.Uri)+",\n")
if this.Auth != nil { if this.Auth != nil {
s = append(s, "Auth: "+fmt.Sprintf("%#v", this.Auth)+",\n") s = append(s, "Auth: "+fmt.Sprintf("%#v", this.Auth)+",\n")
@ -178,7 +178,7 @@ func (this *PullResponse) GoString() string {
return "nil" return "nil"
} }
s := make([]string, 0, 6) s := make([]string, 0, 6)
s = append(s, "&api.PullResponse{") s = append(s, "&registry.PullResponse{")
s = append(s, "ID: "+fmt.Sprintf("%#v", this.ID)+",\n") s = append(s, "ID: "+fmt.Sprintf("%#v", this.ID)+",\n")
if this.Layers != nil { if this.Layers != nil {
s = append(s, "Layers: "+fmt.Sprintf("%#v", this.Layers)+",\n") s = append(s, "Layers: "+fmt.Sprintf("%#v", this.Layers)+",\n")
@ -191,7 +191,7 @@ func (this *PushRequest) GoString() string {
return "nil" return "nil"
} }
s := make([]string, 0, 4) s := make([]string, 0, 4)
s = append(s, "&api.PushRequest{") s = append(s, "&registry.PushRequest{")
s = append(s, "}") s = append(s, "}")
return strings.Join(s, "") return strings.Join(s, "")
} }
@ -200,7 +200,7 @@ func (this *PushResponse) GoString() string {
return "nil" return "nil"
} }
s := make([]string, 0, 4) s := make([]string, 0, 4)
s = append(s, "&api.PushResponse{") s = append(s, "&registry.PushResponse{")
s = append(s, "}") s = append(s, "}")
return strings.Join(s, "") return strings.Join(s, "")
} }
@ -209,7 +209,7 @@ func (this *StatusRequest) GoString() string {
return "nil" return "nil"
} }
s := make([]string, 0, 4) s := make([]string, 0, 4)
s = append(s, "&api.StatusRequest{") s = append(s, "&registry.StatusRequest{")
s = append(s, "}") s = append(s, "}")
return strings.Join(s, "") return strings.Join(s, "")
} }
@ -218,7 +218,7 @@ func (this *StatusResponse) GoString() string {
return "nil" return "nil"
} }
s := make([]string, 0, 4) s := make([]string, 0, 4)
s = append(s, "&api.StatusResponse{") s = append(s, "&registry.StatusResponse{")
s = append(s, "}") s = append(s, "}")
return strings.Join(s, "") return strings.Join(s, "")
} }
@ -227,7 +227,7 @@ func (this *DeleteRequest) GoString() string {
return "nil" return "nil"
} }
s := make([]string, 0, 4) s := make([]string, 0, 4)
s = append(s, "&api.DeleteRequest{") s = append(s, "&registry.DeleteRequest{")
s = append(s, "}") s = append(s, "}")
return strings.Join(s, "") return strings.Join(s, "")
} }
@ -236,7 +236,7 @@ func (this *DeleteResponse) GoString() string {
return "nil" return "nil"
} }
s := make([]string, 0, 4) s := make([]string, 0, 4)
s = append(s, "&api.DeleteResponse{") s = append(s, "&registry.DeleteResponse{")
s = append(s, "}") s = append(s, "}")
return strings.Join(s, "") return strings.Join(s, "")
} }
@ -245,7 +245,7 @@ func (this *CancelRequest) GoString() string {
return "nil" return "nil"
} }
s := make([]string, 0, 4) s := make([]string, 0, 4)
s = append(s, "&api.CancelRequest{") s = append(s, "&registry.CancelRequest{")
s = append(s, "}") s = append(s, "}")
return strings.Join(s, "") return strings.Join(s, "")
} }
@ -254,7 +254,7 @@ func (this *CancelResponse) GoString() string {
return "nil" return "nil"
} }
s := make([]string, 0, 4) s := make([]string, 0, 4)
s = append(s, "&api.CancelResponse{") s = append(s, "&registry.CancelResponse{")
s = append(s, "}") s = append(s, "}")
return strings.Join(s, "") return strings.Join(s, "")
} }
@ -263,7 +263,7 @@ func (this *Layer) GoString() string {
return "nil" return "nil"
} }
s := make([]string, 0, 6) s := make([]string, 0, 6)
s = append(s, "&api.Layer{") s = append(s, "&registry.Layer{")
s = append(s, "ID: "+fmt.Sprintf("%#v", this.ID)+",\n") s = append(s, "ID: "+fmt.Sprintf("%#v", this.ID)+",\n")
s = append(s, "Size_: "+fmt.Sprintf("%#v", this.Size_)+",\n") s = append(s, "Size_: "+fmt.Sprintf("%#v", this.Size_)+",\n")
s = append(s, "}") s = append(s, "}")
@ -274,7 +274,7 @@ func (this *Authentication) GoString() string {
return "nil" return "nil"
} }
s := make([]string, 0, 6) s := make([]string, 0, 6)
s = append(s, "&api.Authentication{") s = append(s, "&registry.Authentication{")
s = append(s, "Username: "+fmt.Sprintf("%#v", this.Username)+",\n") s = append(s, "Username: "+fmt.Sprintf("%#v", this.Username)+",\n")
s = append(s, "Password: "+fmt.Sprintf("%#v", this.Password)+",\n") s = append(s, "Password: "+fmt.Sprintf("%#v", this.Password)+",\n")
s = append(s, "}") s = append(s, "}")
@ -546,7 +546,7 @@ var _Registry_serviceDesc = grpc.ServiceDesc{
ServerStreams: true, ServerStreams: true,
}, },
}, },
Metadata: "api/registry.proto", Metadata: "registry.proto",
} }
func (m *PullRequest) Marshal() (dAtA []byte, err error) { func (m *PullRequest) Marshal() (dAtA []byte, err error) {
@ -2024,35 +2024,35 @@ var (
ErrIntOverflowRegistry = fmt.Errorf("proto: integer overflow") ErrIntOverflowRegistry = fmt.Errorf("proto: integer overflow")
) )
func init() { proto.RegisterFile("api/registry.proto", fileDescriptorRegistry) } func init() { proto.RegisterFile("registry.proto", fileDescriptorRegistry) }
var fileDescriptorRegistry = []byte{ var fileDescriptorRegistry = []byte{
// 427 bytes of a gzipped FileDescriptorProto // 424 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x74, 0x93, 0x4f, 0x8e, 0xd3, 0x30, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x74, 0x93, 0x4f, 0x8e, 0xd3, 0x30,
0x14, 0xc6, 0xc7, 0x99, 0x10, 0xcd, 0xbc, 0xd2, 0x32, 0xb2, 0x46, 0xa8, 0x0a, 0x33, 0xa1, 0xca, 0x14, 0xc6, 0xc7, 0x99, 0x10, 0xcd, 0xbc, 0xd2, 0x30, 0xb2, 0x46, 0xa8, 0x0a, 0x33, 0xa1, 0xca,
0xaa, 0x0b, 0x94, 0x61, 0x3a, 0x07, 0x40, 0x94, 0x22, 0x40, 0x62, 0x81, 0x0c, 0x17, 0x30, 0x8d, 0xaa, 0x0b, 0x14, 0x98, 0xf6, 0x00, 0x88, 0x52, 0x04, 0x48, 0x2c, 0x90, 0xe1, 0x02, 0xa6, 0xb1,
0xd5, 0x58, 0x0a, 0x71, 0xb0, 0x1d, 0x50, 0x59, 0x71, 0xbc, 0x2e, 0x59, 0xb2, 0x42, 0x34, 0x5c, 0x1a, 0x4b, 0x21, 0x2e, 0xb6, 0x03, 0x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