Documentation
¶
Overview ¶
Package projectissues defines project attribution for individual build issues.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributer ¶
type Attributer interface {
Attribute(ctx context.Context, request entity.Request) ([]Attribution, error)
}
Attributer attributes confirmed build issues within the request's validation scope. Return an error for incomplete attribution, including any task-wide failure. Returning no results is valid. Calls must be concurrency-safe and leave inputs unchanged. Results returned with an error must not be used.
type AttributerConfig ¶
type AttributerConfig struct {
// QueueName identifies the validation queue.
QueueName string
}
AttributerConfig identifies the queue whose attributer is requested.
type AttributerFactory ¶
type AttributerFactory interface {
For(cfg AttributerConfig) (Attributer, error)
}
AttributerFactory provides an attributer for one queue.
type Attribution ¶
type Attribution struct {
// TaskID identifies the issue's validation task and must be nonempty.
TaskID string
// UnitID identifies the failed unit within the task and must be nonempty.
UnitID string
// Projects contains distinct, nonempty project names, using the same identity as project status.
// An empty list means the issue affects no projects within this validation's scope.
Projects []string
}
Attribution identifies the projects affected by one issue within a validation's scope.