webhookv1alpha1

package
v1.49.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL