Documentation ¶
Index ¶
- type BlockerIssue
- type Event
- type EventHandler
- type Events
- type EventsQuery
- type Job
- type JobInformer
- type Jobs
- type JobsQuery
- type KeeperSyncer
- type MergeHistoryQuery
- type MergePool
- type MergeRecord
- type MergeStatusQuery
- type PullRequest
- type Store
- func (s *Store) AddEvent(e Event) error
- func (s *Store) AddJob(j Job) error
- func (s *Store) Close() error
- func (s *Store) CollectGarbage() error
- func (s *Store) DeleteJob(name string) error
- func (s *Store) QueryEvents(q EventsQuery) (*Events, error)
- func (s *Store) QueryJobs(q JobsQuery) (*Jobs, error)
- func (s *Store) QueryMergeHistory(q MergeHistoryQuery) []MergeRecord
- func (s *Store) QueryMergeStatus(q MergeStatusQuery) []MergePool
- func (s *Store) SetMergeHistory(records []MergeRecord)
- func (s *Store) SetMergeStatus(pools []MergePool)
- type StoreConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockerIssue ¶
type Event ¶
type Event struct { GUID string Owner string Repository string Branch string Kind string Action string Details string URL string Sender string Time time.Time }
func (Event) PullRequestNumber ¶
type EventHandler ¶
func (*EventHandler) HandleWebhook ¶
func (h *EventHandler) HandleWebhook(webhook scm.Webhook) error
type EventsQuery ¶
func (EventsQuery) ToBleveQuery ¶
func (q EventsQuery) ToBleveQuery() query.Query
type Job ¶
type Job struct { Name string Type string EventGUID string Owner string Repository string Branch string Build string Context string Author string State string Description string ReportURL string TraceID string Start time.Time End time.Time Duration time.Duration }
func JobFromLighthouseJob ¶
func JobFromLighthouseJob(lhjob *lhv1alpha1.LighthouseJob) Job
func (Job) PullRequestNumber ¶
type JobInformer ¶
type JobInformer struct { LHClient *lhclientset.Clientset Namespace string ResyncInterval time.Duration Store *Store Logger *logrus.Logger }
func (*JobInformer) OnAdd ¶
func (i *JobInformer) OnAdd(obj interface{}, _ bool)
func (*JobInformer) OnDelete ¶
func (i *JobInformer) OnDelete(obj interface{})
func (*JobInformer) OnUpdate ¶
func (i *JobInformer) OnUpdate(oldObj, newObj interface{})
func (*JobInformer) Start ¶
func (i *JobInformer) Start(ctx context.Context)
type JobsQuery ¶
type JobsQuery struct { EventGUID string Owner string Repository string Branch string Query string }
func (JobsQuery) ToBleveQuery ¶
type KeeperSyncer ¶
type KeeperSyncer struct { KeeperEndpoint string SyncInterval time.Duration Store *Store Logger *logrus.Logger // contains filtered or unexported fields }
func (*KeeperSyncer) Start ¶
func (s *KeeperSyncer) Start(ctx context.Context)
func (*KeeperSyncer) Sync ¶
func (s *KeeperSyncer) Sync() error
type MergeHistoryQuery ¶
type MergePool ¶
type MergePool struct { Owner string Repository string Branch string // PRs with passing tests, pending tests, and missing or failed tests. // Note that these results are rolled up. If all tests for a PR are passing // except for one pending, it will be in PendingPRs. SuccessPRs []PullRequest PendingPRs []PullRequest MissingPRs []PullRequest // Empty if there is no pending batch. BatchPending []PullRequest // this is the most recent UpdatedAt field from the different PRs UpdatedAt time.Time Action string Target []PullRequest Blockers []BlockerIssue Error string // this is the original keeper object KeeperPool interface{} }
from lighthouse/pkg/keeper.Pool
func MergePoolFromLighthousePool ¶
func MergePoolFromLighthousePool(lhPool *gabs.Container) MergePool
func MergePoolsFromLighthousePools ¶
func MergePoolsFromLighthousePools(lhPools *gabs.Container) []MergePool
type MergeRecord ¶
type MergeRecord struct { Owner string Repository string Branch string Time time.Time Action string BaseSHA string PRs []PullRequest // this is the original keeper object KeeperRecord interface{} }
from lighthouse/pkg/keeper/history.Record
func MergeRecordFromLighthouseRecord ¶
func MergeRecordFromLighthouseRecord(lhRecord *gabs.Container) MergeRecord
func MergeRecordsFromLighthouseRecords ¶
func MergeRecordsFromLighthouseRecords(lhRecords *gabs.Container) []MergeRecord
type MergeStatusQuery ¶
type PullRequest ¶
type PullRequest struct { Number int Author string Mergeable string Title string UpdatedAt time.Time }
func PullRequestFromLighthousePullRequest ¶
func PullRequestFromLighthousePullRequest(lhPR *gabs.Container) PullRequest
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) CollectGarbage ¶ added in v0.1.0
func (*Store) QueryEvents ¶
func (s *Store) QueryEvents(q EventsQuery) (*Events, error)
func (*Store) QueryMergeHistory ¶
func (s *Store) QueryMergeHistory(q MergeHistoryQuery) []MergeRecord
func (*Store) QueryMergeStatus ¶
func (s *Store) QueryMergeStatus(q MergeStatusQuery) []MergePool
func (*Store) SetMergeHistory ¶
func (s *Store) SetMergeHistory(records []MergeRecord)
func (*Store) SetMergeStatus ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.