Documentation
¶
Overview ¶
Package projectstatus defines the optional integration that resolves project status results from a completed validation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
type Resolver interface {
Resolve(ctx context.Context, request entity.Request, terminalBuildID string) ([]Result, error)
}
Resolver resolves named project status results from one terminal validation. terminalBuildID identifies the build that established the request's terminal state, or is empty when no build established it. Implementations may use any repository-specific analysis they need to obtain those results. Returning no results is valid.
type ResolverConfig ¶
type ResolverConfig struct {
// QueueName identifies the queue served by the resolver.
QueueName string
}
ResolverConfig carries the queue identity handed to a ResolverFactory.
type ResolverFactory ¶
type ResolverFactory interface {
For(cfg ResolverConfig) (Resolver, error)
}
ResolverFactory constructs a Resolver for one queue.
type Result ¶
type Result struct {
// Project identifies the project to which this result applies.
Project string
// Degree describes how broken the project is, on the closed interval [0, 1].
Degree float64
}
Result is one project status result. The record stage supplies the request identity and recording timestamp when it persists this result.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
|
Package noop provides a projectstatus.ResolverFactory that returns no project status results.
|
Package noop provides a projectstatus.ResolverFactory that returns no project status results. |