github.com/google/cadvisor@v0.49.1/third_party/containerd/api/services/ttrpc/events/v1/events.proto (about)

     1  /*
     2  	Copyright The containerd Authors.
     3  
     4  	Licensed under the Apache License, Version 2.0 (the "License");
     5  	you may not use this file except in compliance with the License.
     6  	You may obtain a copy of the License at
     7  
     8  		http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  	Unless required by applicable law or agreed to in writing, software
    11  	distributed under the License is distributed on an "AS IS" BASIS,
    12  	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  	See the License for the specific language governing permissions and
    14  	limitations under the License.
    15  */
    16  
    17  syntax = "proto3";
    18  
    19  package containerd.services.events.ttrpc.v1;
    20  
    21  import weak "github.com/containerd/containerd/protobuf/plugin/fieldpath.proto";
    22  import weak "gogoproto/gogo.proto";
    23  import "google/protobuf/any.proto";
    24  import "google/protobuf/empty.proto";
    25  import "google/protobuf/timestamp.proto";
    26  
    27  option go_package = "github.com/containerd/containerd/api/services/ttrpc/events/v1;events";
    28  
    29  service Events {
    30  	// Forward sends an event that has already been packaged into an envelope
    31  	// with a timestamp and namespace.
    32  	//
    33  	// This is useful if earlier timestamping is required or when forwarding on
    34  	// behalf of another component, namespace or publisher.
    35  	rpc Forward(ForwardRequest) returns (google.protobuf.Empty);
    36  }
    37  
    38  message ForwardRequest {
    39  	Envelope envelope = 1;
    40  }
    41  
    42  message Envelope {
    43  	option (containerd.plugin.fieldpath) = true;
    44  	google.protobuf.Timestamp timestamp = 1 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
    45  	string namespace = 2;
    46  	string topic = 3;
    47  	google.protobuf.Any event = 4;
    48  }