Skip to content

Commit

Permalink
Move Message proto to types
Browse files Browse the repository at this point in the history
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
  • Loading branch information
mxpv committed Feb 2, 2024
1 parent db1e16d commit 7f2d2c4
Show file tree
Hide file tree
Showing 15 changed files with 408 additions and 469 deletions.
2 changes: 1 addition & 1 deletion api/Protobuild.toml
Expand Up @@ -24,7 +24,7 @@ generators = ["go", "go-ttrpc", "go-fieldpath"]

[[overrides]]
prefixes = ["github.com/containerd/containerd/api/services/ttrpc/events/v1"]
generators = ["go", "go-ttrpc", "go-fieldpath"]
generators = ["go", "go-ttrpc"]

[[overrides]]
# enable ttrpc and disable fieldpath and grpc for the shim
Expand Down
132 changes: 52 additions & 80 deletions api/next.pb.txt
Expand Up @@ -3962,13 +3962,59 @@ file {
}
syntax: "proto3"
}
file {
name: "github.com/containerd/containerd/api/types/event.proto"
package: "containerd.types"
dependency: "github.com/containerd/containerd/api/types/fieldpath.proto"
dependency: "google/protobuf/any.proto"
dependency: "google/protobuf/timestamp.proto"
message_type {
name: "Envelope"
field {
name: "timestamp"
number: 1
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".google.protobuf.Timestamp"
json_name: "timestamp"
}
field {
name: "namespace"
number: 2
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "namespace"
}
field {
name: "topic"
number: 3
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "topic"
}
field {
name: "event"
number: 4
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".google.protobuf.Any"
json_name: "event"
}
options {
64400: 1
}
}
options {
go_package: "github.com/containerd/containerd/v2/api/types;types"
}
syntax: "proto3"
}
file {
name: "github.com/containerd/containerd/api/services/events/v1/events.proto"
package: "containerd.services.events.v1"
dependency: "github.com/containerd/containerd/api/types/fieldpath.proto"
dependency: "github.com/containerd/containerd/api/types/event.proto"
dependency: "google/protobuf/any.proto"
dependency: "google/protobuf/empty.proto"
dependency: "google/protobuf/timestamp.proto"
message_type {
name: "PublishRequest"
field {
Expand All @@ -3994,7 +4040,7 @@ file {
number: 1
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".containerd.services.events.v1.Envelope"
type_name: ".containerd.types.Envelope"
json_name: "envelope"
}
}
Expand All @@ -4008,42 +4054,6 @@ file {
json_name: "filters"
}
}
message_type {
name: "Envelope"
field {
name: "timestamp"
number: 1
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".google.protobuf.Timestamp"
json_name: "timestamp"
}
field {
name: "namespace"
number: 2
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "namespace"
}
field {
name: "topic"
number: 3
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "topic"
}
field {
name: "event"
number: 4
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".google.protobuf.Any"
json_name: "event"
}
options {
64400: 1
}
}
service {
name: "Events"
method {
Expand All @@ -4059,7 +4069,7 @@ file {
method {
name: "Subscribe"
input_type: ".containerd.services.events.v1.SubscribeRequest"
output_type: ".containerd.services.events.v1.Envelope"
output_type: ".containerd.types.Envelope"
server_streaming: true
}
}
Expand Down Expand Up @@ -7070,57 +7080,19 @@ file {
file {
name: "github.com/containerd/containerd/api/services/ttrpc/events/v1/events.proto"
package: "containerd.services.events.ttrpc.v1"
dependency: "github.com/containerd/containerd/api/types/fieldpath.proto"
dependency: "google/protobuf/any.proto"
dependency: "github.com/containerd/containerd/api/types/event.proto"
dependency: "google/protobuf/empty.proto"
dependency: "google/protobuf/timestamp.proto"
message_type {
name: "ForwardRequest"
field {
name: "envelope"
number: 1
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".containerd.services.events.ttrpc.v1.Envelope"
type_name: ".containerd.types.Envelope"
json_name: "envelope"
}
}
message_type {
name: "Envelope"
field {
name: "timestamp"
number: 1
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".google.protobuf.Timestamp"
json_name: "timestamp"
}
field {
name: "namespace"
number: 2
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "namespace"
}
field {
name: "topic"
number: 3
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "topic"
}
field {
name: "event"
number: 4
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".google.protobuf.Any"
json_name: "event"
}
options {
64400: 1
}
}
service {
name: "Events"
method {
Expand Down

0 comments on commit 7f2d2c4

Please sign in to comment.