Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildRequest ¶
type BuildRequest struct { RepoOwner string `json:"owner"` RepoName string `json:"name"` Ref string `json:"ref"` SHA string `json:"sha"` Tree string `json:"tree"` BuildCheckRunID int64 `json:"buildCheckRunID"` DefaultBranch string `json:"defaultBranch"` FromHermit bool `json:"fromHermit"` }
BuildRequest are parameters to perform a build. What is sent on the build queue.
func (BuildRequest) OnDefaultBranch ¶
func (r BuildRequest) OnDefaultBranch() bool
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
Listener consumes build requests from a Redis queue and performs builds.
func NewListener ¶
func (*Listener) BuildListener ¶
func (*Listener) BuildRequested ¶
func (l *Listener) BuildRequested(ctx context.Context, req *BuildRequest) error
type Rebuilder ¶
type Rebuilder struct {
// contains filtered or unexported fields
}
Rebuilder is a period rebuilder of project that opens pull requests when snapshots change
func NewRebuilder ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server listens to GitHub webhooks and dispatches work requests to the redis queue.
type SnapshotPushRequest ¶
type SnapshotPusher ¶
type SnapshotPusher struct {
// contains filtered or unexported fields
}
func NewSnapshotPusher ¶
func NewSnapshotPusher(log logr.Logger, gh *github.Client) *SnapshotPusher
func (*SnapshotPusher) Push ¶
func (p *SnapshotPusher) Push(ctx context.Context, req *SnapshotPushRequest, snap *proxy.Snapshot) (pushed bool, err error)
Click to show internal directories.
Click to hide internal directories.