add concurrency limit to yaml

pull/1/head
Brad Rydzewski 5 years ago
parent 6ddcd9ed91
commit e176a54b03

@ -0,0 +1,10 @@
// Copyright 2019 Drone.IO Inc. All rights reserved.
// Use of this source code is governed by the Polyform License
// that can be found in the LICENSE file.
package manifest
// Concurrency limits pipeline concurrency.
type Concurrency struct {
Limit int `json:"limit,omitempty"`
}

@ -0,0 +1,5 @@
// Copyright 2019 Drone.IO Inc. All rights reserved.
// Use of this source code is governed by the Polyform License
// that can be found in the LICENSE file.
package manifest

@ -28,6 +28,12 @@ type (
GetName() string
}
// ConcurrentResource is a resource with concurrency limits.
ConcurrentResource interface {
Resource
GetConcurrency() Concurrency
}
// DependantResource is a resoure with runtime dependencies.
DependantResource interface {
Resource

Loading…
Cancel
Save