...
1version = "unstable"
2generator = "gogoctrd"
3plugins = ["grpc"]
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 = ["."]
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 # vendored = ["github.com/gogo/protobuf"]
16 packages = ["github.com/gogo/protobuf"]
17
18 # Paths that will be added untouched to the end of the includes. We use
19 # `/usr/local/include` to pickup the common install location of protobuf.
20 # This is the default.
21 after = ["/usr/local/include", "/usr/include"]
22
23# This section maps protobuf imports to Go packages. These will become
24# `-M` directives in the call to the go protobuf generator.
25[packages]
26 "gogoproto/gogo.proto" = "github.com/gogo/protobuf/gogoproto"
27 "google/protobuf/any.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
32# Aggregrate the API descriptors to lock down API changes.
33[[descriptors]]
34prefix = "github.com/containerd/cgroups/stats/v1"
35target = "stats/v1/metrics.pb.txt"
36ignore_files = [
37 "google/protobuf/descriptor.proto",
38 "gogoproto/gogo.proto"
39]
40[[descriptors]]
41prefix = "github.com/containerd/cgroups/v2/stats"
42target = "v2/stats/metrics.pb.txt"
43ignore_files = [
44 "google/protobuf/descriptor.proto",
45 "gogoproto/gogo.proto"
46]
View as plain text