notifications

package
v0.0.0-...-01cd1ea Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package notifications contains protos for RBE Reservations notifications.

Protos are copied from http://shortn/_brt6pXcfS0.

Changes:

1. Change `go_package` to match the new location. 2. Some comments stripped.

Index

Constants

This section is empty.

Variables

View Source
var File_go_chromium_org_luci_swarming_internal_notifications_notifications_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type SchedulerNotification

type SchedulerNotification struct {

	// Exactly one of these IDs will be populated, depending on whether the
	// notification is for a completed action or reservation.
	ActionId      string `protobuf:"bytes,1,opt,name=action_id,json=actionId,proto3" json:"action_id,omitempty"`
	ReservationId string `protobuf:"bytes,2,opt,name=reservation_id,json=reservationId,proto3" json:"reservation_id,omitempty"`
	// Status code for the received event.
	StatusCode int32 `protobuf:"varint,3,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
	// contains filtered or unexported fields
}

Wire proto defining the payload of a Cloud PubSub notification, which is sent by RBE when the `scheduler_notification_config` is populated for an instance and the corresponding RBE event occurs.

func (*SchedulerNotification) Descriptor deprecated

func (*SchedulerNotification) Descriptor() ([]byte, []int)

Deprecated: Use SchedulerNotification.ProtoReflect.Descriptor instead.

func (*SchedulerNotification) GetActionId

func (x *SchedulerNotification) GetActionId() string

func (*SchedulerNotification) GetReservationId

func (x *SchedulerNotification) GetReservationId() string

func (*SchedulerNotification) GetStatusCode

func (x *SchedulerNotification) GetStatusCode() int32

func (*SchedulerNotification) ProtoMessage

func (*SchedulerNotification) ProtoMessage()

func (*SchedulerNotification) ProtoReflect

func (x *SchedulerNotification) ProtoReflect() protoreflect.Message

func (*SchedulerNotification) Reset

func (x *SchedulerNotification) Reset()

func (*SchedulerNotification) String

func (x *SchedulerNotification) String() string

Jump to

Keyboard shortcuts

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