github.com/containerd/Containerd@v1.4.13/api/services/ttrpc/events/v1/events.proto (about)

     1  syntax = "proto3";
     2  
     3  package containerd.services.events.ttrpc.v1;
     4  
     5  import weak "github.com/containerd/containerd/protobuf/plugin/fieldpath.proto";
     6  import weak "gogoproto/gogo.proto";
     7  import "google/protobuf/any.proto";
     8  import "google/protobuf/empty.proto";
     9  import "google/protobuf/timestamp.proto";
    10  
    11  option go_package = "github.com/containerd/containerd/api/services/ttrpc/events/v1;events";
    12  
    13  service Events {
    14  	// Forward sends an event that has already been packaged into an envelope
    15  	// with a timestamp and namespace.
    16  	//
    17  	// This is useful if earlier timestamping is required or when forwarding on
    18  	// behalf of another component, namespace or publisher.
    19  	rpc Forward(ForwardRequest) returns (google.protobuf.Empty);
    20  }
    21  
    22  message ForwardRequest {
    23  	Envelope envelope = 1;
    24  }
    25  
    26  message Envelope {
    27  	option (containerd.plugin.fieldpath) = true;
    28  	google.protobuf.Timestamp timestamp = 1 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
    29  	string namespace = 2;
    30  	string topic = 3;
    31  	google.protobuf.Any event = 4;
    32  }