layering

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fork

type Fork struct {
	Description string  `json:"description" jsonschema:"title=Description,description=A description of the fork,required"`
	Layers      []Layer `` /* 126-byte string literal not displayed */
}

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 ValidationIssue struct {
	Level      string // "error" or "suggestion"
	Message    string
	Context    string
	Suggestion string
}

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 Workload

type Workload struct {
	Name string `` /* 387-byte string literal not displayed */
}

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"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL