|
|
@ -34,19 +34,26 @@ type (
|
|
|
|
GetConcurrency() Concurrency
|
|
|
|
GetConcurrency() Concurrency
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// DependantResource is a resoure with runtime dependencies.
|
|
|
|
// DependantResource is a resource with runtime dependencies.
|
|
|
|
DependantResource interface {
|
|
|
|
DependantResource interface {
|
|
|
|
Resource
|
|
|
|
Resource
|
|
|
|
GetDependsOn() []string
|
|
|
|
GetDependsOn() []string
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// PlatformResource is a resoure with platform requirements.
|
|
|
|
// PlatformResource is a resource with platform requirements.
|
|
|
|
PlatformResource interface {
|
|
|
|
PlatformResource interface {
|
|
|
|
Resource
|
|
|
|
Resource
|
|
|
|
GetPlatform() Platform
|
|
|
|
GetPlatform() Platform
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// TriggeredResource is a resoure with trigger rules.
|
|
|
|
// RoutedResource is a resource that can be routed to
|
|
|
|
|
|
|
|
// specific build nodes.
|
|
|
|
|
|
|
|
RoutedResource interface {
|
|
|
|
|
|
|
|
Resource
|
|
|
|
|
|
|
|
GetNodes() map[string]string
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// TriggeredResource is a resource with trigger rules.
|
|
|
|
TriggeredResource interface {
|
|
|
|
TriggeredResource interface {
|
|
|
|
Resource
|
|
|
|
Resource
|
|
|
|
GetTrigger() Conditions
|
|
|
|
GetTrigger() Conditions
|
|
|
@ -55,12 +62,14 @@ type (
|
|
|
|
// RawResource is a raw encoded resource with the common
|
|
|
|
// RawResource is a raw encoded resource with the common
|
|
|
|
// metadata extracted.
|
|
|
|
// metadata extracted.
|
|
|
|
RawResource struct {
|
|
|
|
RawResource struct {
|
|
|
|
Version string
|
|
|
|
Version string
|
|
|
|
Kind string
|
|
|
|
Kind string
|
|
|
|
Type string
|
|
|
|
Type string
|
|
|
|
Name string
|
|
|
|
Name string
|
|
|
|
Deps []string `yaml:"depends_on"`
|
|
|
|
Deps []string `yaml:"depends_on"`
|
|
|
|
Platform Platform
|
|
|
|
Node map[string]string
|
|
|
|
Data []byte `yaml:"-"`
|
|
|
|
Concurrency Concurrency
|
|
|
|
|
|
|
|
Platform Platform
|
|
|
|
|
|
|
|
Data []byte `yaml:"-"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
|