Merge pull request #2639 from andrew-leung/manifesteventlayers
Add configurable layers in manifest events
This commit is contained in:
commit
b12bd4004a
9 changed files with 66 additions and 18 deletions
|
@ -551,6 +551,8 @@ func (auth Auth) MarshalYAML() (interface{}, error) {
|
|||
|
||||
// Notifications configures multiple http endpoints.
|
||||
type Notifications struct {
|
||||
// EventConfig is the configuration for the event format that is sent to each Endpoint.
|
||||
EventConfig Events `yaml:"events,omitempty"`
|
||||
// Endpoints is a list of http configurations for endpoints that
|
||||
// respond to webhook notifications. In the future, we may allow other
|
||||
// kinds of endpoints, such as external queues.
|
||||
|
@ -571,6 +573,11 @@ type Endpoint struct {
|
|||
Ignore Ignore `yaml:"ignore"` // ignore event types
|
||||
}
|
||||
|
||||
// Events configures notification events.
|
||||
type Events struct {
|
||||
IncludeReferences bool `yaml:"includereferences"` // include reference data in manifest events
|
||||
}
|
||||
|
||||
//Ignore configures mediaTypes and actions of the event, that it won't be propagated
|
||||
type Ignore struct {
|
||||
MediaTypes []string `yaml:"mediatypes"` // target media types to ignore
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue