OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // These structs are used for parsing gatekeeper.json files. |
| 6 |
| 7 package messages |
| 8 |
| 9 // MasterConfig represents filtering configurtaion for alerts |
| 10 // generated about a buildbot master. |
| 11 type MasterConfig struct { |
| 12 Categories []string `json:"categories"` |
| 13 TreeNotify []string `json:"tree_notify"` |
| 14 SheriffClasses []string `json:"sheriff_classes"` |
| 15 Builders map[string]BuilderConfig `json:"builders"` |
| 16 ExcludedBuilders []string `json:"excluded_builders"` |
| 17 ExcludedSteps []string `json:"excluded_steps"` |
| 18 } |
| 19 |
| 20 // BuilderConfig represents filtering configuration for alerts |
| 21 // generated about a buildbot builder. |
| 22 type BuilderConfig struct { |
| 23 ExcludedSteps []string `json:"excluded_steps"` |
| 24 ForgivingSteps []string `json:"forgiving_steps"` |
| 25 ForgivingOptional []string `json:"forgiving_optional"` |
| 26 SheriffClasses []string `json:"sheriff_classes"` |
| 27 ClosingSteps []string `json:"closing_steps"` |
| 28 ClosingOptional []string `json:"closing_optional"` |
| 29 } |
OLD | NEW |