github.com/demonoid81/containerd@v1.3.4/Protobuild.toml (about) 1 version = "unstable" 2 generator = "gogoctrd" 3 plugins = ["grpc", "fieldpath"] 4 5 # Control protoc include paths. Below are usually some good defaults, but feel 6 # free to try it without them if it works for your project. 7 [includes] 8 # Include paths that will be added before all others. Typically, you want to 9 # treat the root of the project as an include, but this may not be necessary. 10 before = ["./protobuf"] 11 12 # Paths that should be treated as include roots in relation to the vendor 13 # directory. These will be calculated with the vendor directory nearest the 14 # target package. 15 packages = ["github.com/gogo/protobuf", "github.com/gogo/googleapis"] 16 17 # Paths that will be added untouched to the end of the includes. We use 18 # `/usr/local/include` to pickup the common install location of protobuf. 19 # This is the default. 20 after = ["/usr/local/include"] 21 22 # This section maps protobuf imports to Go packages. These will become 23 # `-M` directives in the call to the go protobuf generator. 24 [packages] 25 "gogoproto/gogo.proto" = "github.com/gogo/protobuf/gogoproto" 26 "google/protobuf/any.proto" = "github.com/gogo/protobuf/types" 27 "google/protobuf/empty.proto" = "github.com/gogo/protobuf/types" 28 "google/protobuf/descriptor.proto" = "github.com/gogo/protobuf/protoc-gen-gogo/descriptor" 29 "google/protobuf/field_mask.proto" = "github.com/gogo/protobuf/types" 30 "google/protobuf/timestamp.proto" = "github.com/gogo/protobuf/types" 31 "google/protobuf/duration.proto" = "github.com/gogo/protobuf/types" 32 "google/rpc/status.proto" = "github.com/gogo/googleapis/google/rpc" 33 34 [[overrides]] 35 prefixes = ["github.com/containerd/containerd/api/events"] 36 plugins = ["fieldpath"] # disable grpc for this package 37 38 [[overrides]] 39 prefixes = ["github.com/containerd/containerd/api/services/ttrpc/events/v1"] 40 plugins = ["ttrpc", "fieldpath"] 41 42 [[overrides]] 43 # enable ttrpc and disable fieldpath and grpc for the shim 44 prefixes = ["github.com/containerd/containerd/runtime/v1/shim/v1", "github.com/containerd/containerd/runtime/v2/task"] 45 plugins = ["ttrpc"] 46 47 # Aggregrate the API descriptors to lock down API changes. 48 [[descriptors]] 49 prefix = "github.com/containerd/containerd/api" 50 target = "api/next.pb.txt" 51 ignore_files = [ 52 "google/protobuf/descriptor.proto", 53 "gogoproto/gogo.proto" 54 ] 55 56 # Lock down runc config 57 [[descriptors]] 58 prefix = "github.com/containerd/containerd/runtime/linux/runctypes" 59 target = "runtime/linux/runctypes/next.pb.txt" 60 ignore_files = [ 61 "google/protobuf/descriptor.proto", 62 "gogoproto/gogo.proto" 63 ] 64 65 [[descriptors]] 66 prefix = "github.com/containerd/containerd/runtime/v2/runc/options" 67 target = "runtime/v2/runc/options/next.pb.txt" 68 ignore_files = [ 69 "google/protobuf/descriptor.proto", 70 "gogoproto/gogo.proto" 71 ]