Skip to content

Commit

Permalink
Add type godoc for Broker and Trigger (#1284)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmorie authored and knative-prow-robot committed May 28, 2019
1 parent 9e7f52c commit f7f5746
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/apis/eventing/v1alpha1/broker_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ import (
// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

// Broker collects a pool of events that are consumable using Triggers. Brokers
// provide a well-known endpoint for event delivery that senders can use with
// minimal knowledge of the event routing strategy. Receivers use Triggers to
// request delivery of events from a Broker's pool to a specific URL or
// Addressable endpoint.
type Broker struct {
metav1.TypeMeta `json:",inline"`
// +optional
Expand Down
2 changes: 2 additions & 0 deletions pkg/apis/eventing/v1alpha1/trigger_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ import (
// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

// Trigger represents a request to have events delivered to a consumer from a
// Broker's event pool.
type Trigger struct {
metav1.TypeMeta `json:",inline"`
// +optional
Expand Down

0 comments on commit f7f5746

Please sign in to comment.