continuous

package
v0.0.0-...-4fb5945 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: BSD-3-Clause Imports: 11 Imported by: 1

Documentation

Overview

Package continuous periodically queries the android build api and looks for new buildids against a given list of branches and then updates poprepo with those new buildids.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildSlice

type BuildSlice []buildapi.Build

func (BuildSlice) Len

func (p BuildSlice) Len() int

func (BuildSlice) Less

func (p BuildSlice) Less(i, j int) bool

func (BuildSlice) Swap

func (p BuildSlice) Swap(i, j int)

type Process

type Process struct {
	Repo *poprepo.PopRepo
	// contains filtered or unexported fields
}

Process periodically queries the android build api and looks for new buildids against a given list of branches and then updates poprepo with those new buildids.

func New

func New(checkout *git.Checkout, lookupCache *lookup.Cache, client *http.Client, local bool, subdomain string) (*Process, error)

New returns a new *Process.

The lookupCache has entries added as they are found in Start().

If running in production then 'local' should be false.

func (*Process) Last

func (c *Process) Last(ctx context.Context) (int64, int64, string, error)

Last returns the last buildid, its timestamp, and git hash, or a non-nil error if and error occurred.

func (*Process) Start

func (c *Process) Start(ctx context.Context)

Start a Go routine that does the work.

Jump to

Keyboard shortcuts

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