Documentation

Overview

    Package updater fetches latest CL data from Gerrit.

    Package updater fetches latest CL data from Gerrit.

    Index

    Constants

    View Source
    const TaskClassID = "refresh-gerrit-cl"

    Variables

    View Source
    var File_go_chromium_org_luci_cv_internal_gerrit_updater_tasks_proto protoreflect.FileDescriptor

    Functions

    func Schedule

    func Schedule(ctx context.Context, p *RefreshGerritCL) error

      Schedule enqueues a TQ task to refresh a Gerrit CL.

      It should be used instead of direct tq.AddTask for consistent deduplication and ease of debugging.

      Types

      type RefreshGerritCL

      type RefreshGerritCL struct {
      	LuciProject string `protobuf:"bytes,1,opt,name=luci_project,json=luciProject,proto3" json:"luci_project,omitempty"`
      	Host        string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
      	Change      int64  `protobuf:"varint,3,opt,name=change,proto3" json:"change,omitempty"`
      	// Optional fields.
      	UpdatedHint *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updated_hint,json=updatedHint,proto3" json:"updated_hint,omitempty"`
      	ClidHint    int64                  `protobuf:"varint,5,opt,name=clid_hint,json=clidHint,proto3" json:"clid_hint,omitempty"`
      	// force_notify_pm forces notifying of the Project Manager even if there are
      	// no updates to the CL.
      	ForceNotifyPm bool `protobuf:"varint,6,opt,name=force_notify_pm,json=forceNotifyPm,proto3" json:"force_notify_pm,omitempty"`
      	// contains filtered or unexported fields
      }

        RefreshGerritCL fetches latest Gerrit data and saves it to a CL snapshot.

        Queue: "refresh-gerrit-cl".

        func (*RefreshGerritCL) Descriptor

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

          Deprecated: Use RefreshGerritCL.ProtoReflect.Descriptor instead.

          func (*RefreshGerritCL) GetChange

          func (x *RefreshGerritCL) GetChange() int64

          func (*RefreshGerritCL) GetClidHint

          func (x *RefreshGerritCL) GetClidHint() int64

          func (*RefreshGerritCL) GetForceNotifyPm

          func (x *RefreshGerritCL) GetForceNotifyPm() bool

          func (*RefreshGerritCL) GetHost

          func (x *RefreshGerritCL) GetHost() string

          func (*RefreshGerritCL) GetLuciProject

          func (x *RefreshGerritCL) GetLuciProject() string

          func (*RefreshGerritCL) GetUpdatedHint

          func (x *RefreshGerritCL) GetUpdatedHint() *timestamppb.Timestamp

          func (*RefreshGerritCL) ProtoMessage

          func (*RefreshGerritCL) ProtoMessage()

          func (*RefreshGerritCL) ProtoReflect

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

          func (*RefreshGerritCL) Reset

          func (x *RefreshGerritCL) Reset()

          func (*RefreshGerritCL) String

          func (x *RefreshGerritCL) String() string

          Directories

          Path Synopsis
          Package updatertest provides test helpers for Gerrit CL Updater.
          Package updatertest provides test helpers for Gerrit CL Updater.