Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Layer ¶
type Layer struct {
Workloads []Workload `json:"workloads" jsonschema:"title=Workloads,description=The workloads that should be processed for this layer,required"`
}
type Process ¶
type Process struct {
Layers []Layer `` /* 137-byte string literal not displayed */
Forks []Fork `json:"forks" jsonschema:"title=Forks,description=Alternative, complimentary, or competing paths to the main process"`
}
func NewProcess ¶
func NewProcess() *Process
type ValidationIssue ¶
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator handles process validation
func NewValidator ¶
func NewValidator() *Validator
func (*Validator) ValidateProcess ¶
func (v *Validator) ValidateProcess(p Process) []ValidationIssue
type WorkloadRule ¶
type WorkloadRule struct {
Type WorkloadType
Category string // For grouping related workloads
MinInLayer int // Minimum number of workloads of this type per layer
MaxInLayer int // Maximum number of workloads of this type per layer
ValidWith []string // Other workloads this can be combined with
Description string // Helps provide meaningful feedback
}
WorkloadRule defines characteristics and valid combinations
type WorkloadType ¶
type WorkloadType string
const ( TypeSimulation WorkloadType = "simulation" TypeProcess WorkloadType = "process" )
Click to show internal directories.
Click to hide internal directories.