Skip to content

Commit

Permalink
events.proto: ruby_package
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodruff <[email protected]>
  • Loading branch information
woodruffw committed Mar 20, 2024
1 parent 1f20375 commit 570c838
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 24 deletions.
6 changes: 4 additions & 2 deletions gen/pb-go/events/v1/events.pb.go

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

14 changes: 5 additions & 9 deletions gen/pb-ruby/lib/events_pb.rb

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

Binary file not shown.
26 changes: 13 additions & 13 deletions protos/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,41 +23,42 @@
syntax = "proto3";

package dev.sigstore.events.v1;

import "google/protobuf/any.proto";
import "google/protobuf/timestamp.proto";

option go_package = "github.com/sigstore/protobuf-specs/gen/pb-go/events/v1";
option java_package = "dev.sigstore.proto.events.v1";
option java_multiple_files = true;

option ruby_package = "Sigstore::Events";

message CloudEvent {

// -- CloudEvent Context Attributes

// Required Attributes
string id = 1;
string source = 2; // URI-reference
string spec_version = 3;
string type = 4;

// Optional & Extension Attributes
map<string, CloudEventAttributeValue> attributes = 5;

// -- CloudEvent Data (Bytes, Text, or Proto)
oneof data {
bytes binary_data = 6;
string text_data = 7;
google.protobuf.Any proto_data = 8;
}

/**
* The CloudEvent specification defines
* seven attribute value types...
*/

message CloudEventAttributeValue {

oneof attr {
bool ce_boolean = 1;
int32 ce_integer = 2;
Expand All @@ -69,13 +70,12 @@
}
}
}

/**
* CloudEvent Protobuf Batch Format
*
*/

message CloudEventBatch {
repeated CloudEvent events = 1;
}

0 comments on commit 570c838

Please sign in to comment.