Versions in this module Expand all Collapse all v0 v0.1.0 May 3, 2023 Changes in this version + type Action struct + Parameters []Parameter + type AuthConfig struct + Basic *BasicAuthConfig + BearerToken *BearerTokenAuthConfig + CSRFProtect bool + type BasicAuthConfig struct + GetToken func() []byte + User string + type BearerTokenAuthConfig struct + GetToken func() []byte + type Build struct + Actions []Action + Number int + Result *string + Task struct{ ... } + func (jb *Build) BuildID() string + func (jb *Build) IsAborted() bool + func (jb *Build) IsEnqueued() bool + func (jb *Build) IsFailure() bool + func (jb *Build) IsRunning() bool + func (jb *Build) IsSuccess() bool + func (jb *Build) ProwJobID() string + type BuildQueryParams struct + JobName string + ProwJobID string + type Client struct + func NewClient(url string, dryRun bool, tlsConfig *tls.Config, authConfig *AuthConfig, ...) (*Client, error) + func (c *Client) Abort(job string, build *Build) error + func (c *Client) Build(pj *prowapi.ProwJob, buildID string) error + func (c *Client) BuildFromSpec(spec *prowapi.ProwJobSpec, buildID, prowJobID string) error + func (c *Client) CrumbRequest() error + func (c *Client) EnsureBuildableJob(spec *prowapi.ProwJobSpec) error + func (c *Client) Get(path string) ([]byte, error) + func (c *Client) GetBuilds(job string) (map[string]Build, error) + func (c *Client) GetEnqueuedBuilds(jobs []BuildQueryParams) (map[string]Build, error) + func (c *Client) GetJobInfo(spec *prowapi.ProwJobSpec) (*JobInfo, error) + func (c *Client) GetSkipMetrics(path string) ([]byte, error) + func (c *Client) JobParameterized(jobInfo *JobInfo) bool + func (c *Client) LaunchBuild(spec *prowapi.ProwJobSpec, params url.Values) error + func (c *Client) ListBuilds(jobs []BuildQueryParams) (map[string]Build, error) + type ClientMetrics struct + RequestLatency *prometheus.HistogramVec + RequestRetries prometheus.Counter + Requests *prometheus.CounterVec + type Controller struct + func NewController(prowJobClient prowv1.ProwJobInterface, jc *Client, ghc github.Client, ...) (*Controller, error) + func (c *Controller) Sync() error + func (c *Controller) SyncMetrics() + type JobInfo struct + Builds []Build + LastBuild *Build + Property []JobProperty + type JobProperty struct + Class string + ParameterDefinitions []ParameterDefinition + type Metrics struct + ClientMetrics *ClientMetrics + ResyncPeriod prometheus.Histogram + func NewMetrics() *Metrics + type NotFoundError struct + func NewNotFoundError(e error) NotFoundError + func (e NotFoundError) Error() string + type Parameter struct + Name string + Value interface{} + type ParameterDefinition struct + DefaultParameterValue Parameter + Description string + Name string + Type string