Skip to content

Commit

Permalink
Update links to cloudevents spec
Browse files Browse the repository at this point in the history
Fixes broken links to cloudevents spec.

Signed-off-by: Daniel Mangum <georgedanielmangum@gmail.com>
  • Loading branch information
hasheddan committed Sep 19, 2023
1 parent 238c545 commit 1bcaa28
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion binding/format/protobuf/v2/pb/cloudevent.pb.go

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

2 changes: 1 addition & 1 deletion binding/format/protobuf/v2/pb/cloudevent.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import "google/protobuf/any.proto";
import "google/protobuf/timestamp.proto";

// CloudEvent is copied from
// https://github.com/cloudevents/spec/blob/master/protobuf-format.md.
// https://github.com/cloudevents/spec/blob/main/cloudevents/formats/protobuf-format.md.
message CloudEvent {
// Unique event identifier.
string id = 1;
Expand Down
8 changes: 4 additions & 4 deletions docs/concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ support the following:

## Personas

- [Producer](https://github.com/cloudevents/spec/blob/master/spec.md#producer),
- [Producer](https://github.com/cloudevents/spec/blob/main/cloudevents/spec.md#producer),
the "producer" is a specific instance, process or device that creates the data
structure describing the CloudEvent.
- [Consumer](https://github.com/cloudevents/spec/blob/master/spec.md#consumer),
- [Consumer](https://github.com/cloudevents/spec/blob/main/cloudevents/spec.md#consumer),
a "consumer" receives the event and acts upon it. It uses the context and data
to execute some logic, which might lead to the occurrence of new events.
- [Intermediary](https://github.com/cloudevents/spec/blob/master/spec.md#intermediary),
- [Intermediary](https://github.com/cloudevents/spec/blob/main/cloudevents/spec.md#intermediary),
An "intermediary" receives a message containing an event for the purpose of
forwarding it to the next receiver, which might be another intermediary or a
Consumer. A typical task for an intermediary is to route the event to
Expand Down Expand Up @@ -96,4 +96,4 @@ continued the message to one or more Consumers.
Mutator, when a Producer or Intermediary blocks on a response from a Consumer,
replacing the original Event.

![mutator](./images/mutator.svg "Mutator")
![mutator](./images/mutator.svg "Mutator")
4 changes: 2 additions & 2 deletions v2/binding/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import "errors"
type Encoding int

const (
// Binary encoding as specified in https://github.com/cloudevents/spec/blob/master/spec.md#message
// Binary encoding as specified in https://github.com/cloudevents/spec/blob/main/cloudevents/spec.md#message
EncodingBinary Encoding = iota
// Structured encoding as specified in https://github.com/cloudevents/spec/blob/master/spec.md#message
// Structured encoding as specified in https://github.com/cloudevents/spec/blob/main/cloudevents/spec.md#message
EncodingStructured
// Message is an instance of EventMessage or it contains EventMessage nested (through MessageWrapper)
EncodingEvent
Expand Down
3 changes: 2 additions & 1 deletion v2/event/eventcontext_v03.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ func (ec EventContextV03) AsV1() *EventContextV1 {
}

// Validate returns errors based on requirements from the CloudEvents spec.
// For more details, see https://github.com/cloudevents/spec/blob/master/spec.md
// For more details, see
// https://github.com/cloudevents/spec/blob/main/cloudevents/spec.md
// As of Feb 26, 2019, commit 17c32ea26baf7714ad027d9917d03d2fff79fc7e
// + https://github.com/cloudevents/spec/pull/387 -> datacontentencoding
// + https://github.com/cloudevents/spec/pull/406 -> subject
Expand Down

0 comments on commit 1bcaa28

Please sign in to comment.