Documentation ¶
Index ¶
- Constants
- Variables
- type EventPayload
- func (x *EventPayload) ClearPayload()
- func (x *EventPayload) ClearRepositoryPush()
- func (x *EventPayload) GetRepositoryPush() *RepositoryPushEvent
- func (x *EventPayload) HasPayload() bool
- func (x *EventPayload) HasRepositoryPush() bool
- func (*EventPayload) ProtoMessage()
- func (x *EventPayload) ProtoReflect() protoreflect.Message
- func (x *EventPayload) Reset()
- func (x *EventPayload) SetRepositoryPush(v *RepositoryPushEvent)
- func (x *EventPayload) String() string
- func (x *EventPayload) WhichPayload() case_EventPayload_Payload
- type EventPayload_builder
- type EventRequest
- func (x *EventRequest) ClearPayload()
- func (x *EventRequest) GetEvent() v1alpha1.WebhookEvent
- func (x *EventRequest) GetPayload() *EventPayload
- func (x *EventRequest) HasPayload() bool
- func (*EventRequest) ProtoMessage()
- func (x *EventRequest) ProtoReflect() protoreflect.Message
- func (x *EventRequest) Reset()
- func (x *EventRequest) SetEvent(v v1alpha1.WebhookEvent)
- func (x *EventRequest) SetPayload(v *EventPayload)
- func (x *EventRequest) String() string
- type EventRequest_builder
- type EventResponse
- type EventResponse_builder
- type RepositoryPushEvent
- func (x *RepositoryPushEvent) ClearEventTime()
- func (x *RepositoryPushEvent) ClearRepository()
- func (x *RepositoryPushEvent) ClearRepositoryCommit()
- func (x *RepositoryPushEvent) GetEventTime() *timestamppb.Timestamp
- func (x *RepositoryPushEvent) GetRepository() *v1alpha1.Repository
- func (x *RepositoryPushEvent) GetRepositoryCommit() *v1alpha1.RepositoryCommit
- func (x *RepositoryPushEvent) HasEventTime() bool
- func (x *RepositoryPushEvent) HasRepository() bool
- func (x *RepositoryPushEvent) HasRepositoryCommit() bool
- func (*RepositoryPushEvent) ProtoMessage()
- func (x *RepositoryPushEvent) ProtoReflect() protoreflect.Message
- func (x *RepositoryPushEvent) Reset()
- func (x *RepositoryPushEvent) SetEventTime(v *timestamppb.Timestamp)
- func (x *RepositoryPushEvent) SetRepository(v *v1alpha1.Repository)
- func (x *RepositoryPushEvent) SetRepositoryCommit(v *v1alpha1.RepositoryCommit)
- func (x *RepositoryPushEvent) String() string
- type RepositoryPushEvent_builder
Constants ¶
View Source
const EventPayload_Payload_not_set_case case_EventPayload_Payload = 0
View Source
const EventPayload_RepositoryPush_case case_EventPayload_Payload = 1
Variables ¶
View Source
var File_buf_alpha_webhook_v1alpha1_event_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type EventPayload ¶
type EventPayload struct {
// contains filtered or unexported fields
}
EventPayload contains the actual event payload for all possible webhook event types.
func (*EventPayload) ClearPayload ¶ added in v1.49.0
func (x *EventPayload) ClearPayload()
func (*EventPayload) ClearRepositoryPush ¶ added in v1.49.0
func (x *EventPayload) ClearRepositoryPush()
func (*EventPayload) GetRepositoryPush ¶
func (x *EventPayload) GetRepositoryPush() *RepositoryPushEvent
func (*EventPayload) HasPayload ¶ added in v1.49.0
func (x *EventPayload) HasPayload() bool
func (*EventPayload) HasRepositoryPush ¶ added in v1.49.0
func (x *EventPayload) HasRepositoryPush() bool
func (*EventPayload) ProtoMessage ¶
func (*EventPayload) ProtoMessage()
func (*EventPayload) ProtoReflect ¶
func (x *EventPayload) ProtoReflect() protoreflect.Message
func (*EventPayload) Reset ¶
func (x *EventPayload) Reset()
func (*EventPayload) SetRepositoryPush ¶ added in v1.49.0
func (x *EventPayload) SetRepositoryPush(v *RepositoryPushEvent)
func (*EventPayload) String ¶
func (x *EventPayload) String() string
func (*EventPayload) WhichPayload ¶ added in v1.49.0
func (x *EventPayload) WhichPayload() case_EventPayload_Payload
type EventPayload_builder ¶ added in v1.49.0
type EventPayload_builder struct { // Fields of oneof xxx_hidden_Payload: RepositoryPush *RepositoryPushEvent // contains filtered or unexported fields }
func (EventPayload_builder) Build ¶ added in v1.49.0
func (b0 EventPayload_builder) Build() *EventPayload
type EventRequest ¶
type EventRequest struct {
// contains filtered or unexported fields
}
EventRequest is the request payload that will be sent to the customer that is subscribed to webhook events in the BSR.
func (*EventRequest) ClearPayload ¶ added in v1.49.0
func (x *EventRequest) ClearPayload()
func (*EventRequest) GetEvent ¶
func (x *EventRequest) GetEvent() v1alpha1.WebhookEvent
func (*EventRequest) GetPayload ¶
func (x *EventRequest) GetPayload() *EventPayload
func (*EventRequest) HasPayload ¶ added in v1.49.0
func (x *EventRequest) HasPayload() bool
func (*EventRequest) ProtoMessage ¶
func (*EventRequest) ProtoMessage()
func (*EventRequest) ProtoReflect ¶
func (x *EventRequest) ProtoReflect() protoreflect.Message
func (*EventRequest) Reset ¶
func (x *EventRequest) Reset()
func (*EventRequest) SetEvent ¶ added in v1.49.0
func (x *EventRequest) SetEvent(v v1alpha1.WebhookEvent)
func (*EventRequest) SetPayload ¶ added in v1.49.0
func (x *EventRequest) SetPayload(v *EventPayload)
func (*EventRequest) String ¶
func (x *EventRequest) String() string
type EventRequest_builder ¶ added in v1.49.0
type EventRequest_builder struct { // The webhook event that was triggered. This event is the same one that is // registered when creating a webhook in the BSR. Event v1alpha1.WebhookEvent // The event payload of the event was triggered. Payload *EventPayload // contains filtered or unexported fields }
func (EventRequest_builder) Build ¶ added in v1.49.0
func (b0 EventRequest_builder) Build() *EventRequest
type EventResponse ¶
type EventResponse struct {
// contains filtered or unexported fields
}
EventResponse is the empty response payload from the customer to Buf.
func (*EventResponse) ProtoMessage ¶
func (*EventResponse) ProtoMessage()
func (*EventResponse) ProtoReflect ¶
func (x *EventResponse) ProtoReflect() protoreflect.Message
func (*EventResponse) Reset ¶
func (x *EventResponse) Reset()
func (*EventResponse) String ¶
func (x *EventResponse) String() string
type EventResponse_builder ¶ added in v1.49.0
type EventResponse_builder struct {
// contains filtered or unexported fields
}
func (EventResponse_builder) Build ¶ added in v1.49.0
func (b0 EventResponse_builder) Build() *EventResponse
type RepositoryPushEvent ¶
type RepositoryPushEvent struct {
// contains filtered or unexported fields
}
Payload for the event WEBHOOK_EVENT_REPOSITORY_PUSH.
func (*RepositoryPushEvent) ClearEventTime ¶ added in v1.49.0
func (x *RepositoryPushEvent) ClearEventTime()
func (*RepositoryPushEvent) ClearRepository ¶ added in v1.49.0
func (x *RepositoryPushEvent) ClearRepository()
func (*RepositoryPushEvent) ClearRepositoryCommit ¶ added in v1.49.0
func (x *RepositoryPushEvent) ClearRepositoryCommit()
func (*RepositoryPushEvent) GetEventTime ¶
func (x *RepositoryPushEvent) GetEventTime() *timestamppb.Timestamp
func (*RepositoryPushEvent) GetRepository ¶
func (x *RepositoryPushEvent) GetRepository() *v1alpha1.Repository
func (*RepositoryPushEvent) GetRepositoryCommit ¶
func (x *RepositoryPushEvent) GetRepositoryCommit() *v1alpha1.RepositoryCommit
func (*RepositoryPushEvent) HasEventTime ¶ added in v1.49.0
func (x *RepositoryPushEvent) HasEventTime() bool
func (*RepositoryPushEvent) HasRepository ¶ added in v1.49.0
func (x *RepositoryPushEvent) HasRepository() bool
func (*RepositoryPushEvent) HasRepositoryCommit ¶ added in v1.49.0
func (x *RepositoryPushEvent) HasRepositoryCommit() bool
func (*RepositoryPushEvent) ProtoMessage ¶
func (*RepositoryPushEvent) ProtoMessage()
func (*RepositoryPushEvent) ProtoReflect ¶
func (x *RepositoryPushEvent) ProtoReflect() protoreflect.Message
func (*RepositoryPushEvent) Reset ¶
func (x *RepositoryPushEvent) Reset()
func (*RepositoryPushEvent) SetEventTime ¶ added in v1.49.0
func (x *RepositoryPushEvent) SetEventTime(v *timestamppb.Timestamp)
func (*RepositoryPushEvent) SetRepository ¶ added in v1.49.0
func (x *RepositoryPushEvent) SetRepository(v *v1alpha1.Repository)
func (*RepositoryPushEvent) SetRepositoryCommit ¶ added in v1.49.0
func (x *RepositoryPushEvent) SetRepositoryCommit(v *v1alpha1.RepositoryCommit)
func (*RepositoryPushEvent) String ¶
func (x *RepositoryPushEvent) String() string
type RepositoryPushEvent_builder ¶ added in v1.49.0
type RepositoryPushEvent_builder struct { // The timestamp of the commit push. EventTime *timestamppb.Timestamp // The repository commit that was pushed. RepositoryCommit *v1alpha1.RepositoryCommit // The repository that was pushed. Repository *v1alpha1.Repository // contains filtered or unexported fields }
func (RepositoryPushEvent_builder) Build ¶ added in v1.49.0
func (b0 RepositoryPushEvent_builder) Build() *RepositoryPushEvent
Click to show internal directories.
Click to hide internal directories.