Skip to content

Commit

Permalink
Merge pull request containerd#1769 from stevvooe/split-events-types
Browse files Browse the repository at this point in the history
api/events: split event types from events service
  • Loading branch information
dmcgowan authored Nov 17, 2017
2 parents fc149f0 + 09b5ca1 commit 5c6e789
Show file tree
Hide file tree
Showing 31 changed files with 1,459 additions and 1,441 deletions.
5 changes: 5 additions & 0 deletions Protobuild.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ plugins = ["grpc", "fieldpath"]
"google/protobuf/duration.proto" = "github.com/gogo/protobuf/types"
"google/rpc/status.proto" = "github.com/containerd/containerd/protobuf/google/rpc"

[[overrides]]

prefixes = ["github.com/containerd/containerd/api/events"]
plugins = ["fieldpath"]

# Aggregrate the API descriptors to lock down API changes.
[[descriptors]]
prefix = "github.com/containerd/containerd/api"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
syntax = "proto3";

package containerd.services.events.v1;
package containerd.events;

import "gogoproto/gogo.proto";
import "google/protobuf/any.proto";
import "github.com/containerd/containerd/protobuf/plugin/fieldpath.proto";

option go_package = "github.com/containerd/containerd/api/services/events/v1;events";
option go_package = "github.com/containerd/containerd/api/events;events";
option (containerd.plugin.fieldpath_all) = true;

message ContainerCreate {
Expand Down
36 changes: 17 additions & 19 deletions api/services/events/v1/content.pb.go → api/events/content.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
syntax = "proto3";

package containerd.services.events.v1;
package containerd.events;

import "gogoproto/gogo.proto";
import "github.com/containerd/containerd/protobuf/plugin/fieldpath.proto";

option go_package = "github.com/containerd/containerd/api/services/events/v1;events";
option go_package = "github.com/containerd/containerd/api/events;events";
option (containerd.plugin.fieldpath_all) = true;

message ContentDelete {
Expand Down
3 changes: 3 additions & 0 deletions api/events/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Package events has protobuf types for various events that are used in
// containerd.
package events
42 changes: 21 additions & 21 deletions api/services/events/v1/image.pb.go → api/events/image.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package containerd.services.images.v1;

import "github.com/containerd/containerd/protobuf/plugin/fieldpath.proto";

option go_package = "github.com/containerd/containerd/api/services/events/v1;events";
option go_package = "github.com/containerd/containerd/api/events;events";
option (containerd.plugin.fieldpath_all) = true;

message ImageCreate {
Expand Down
Loading

0 comments on commit 5c6e789

Please sign in to comment.