planner

package
v0.0.0-...-8d0dba2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package planner selects verification work from declarations without executing it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	Name              string   `json:"name"`
	Kind              string   `json:"kind"`
	Reasons           []Reason `json:"reasons"`
	Closure           []string `json:"closure"`
	Command           []string `json:"command"`
	ValidationCommand []string `json:"validationCommand,omitempty"`
}

type FileImpact

type FileImpact struct {
	File          string   `json:"file"`
	State         string   `json:"state"`
	DirectTasks   []string `json:"directTasks"`
	AffectedTasks []string `json:"affectedTasks"`
	Checks        []string `json:"checks"`
}

type Issue

type Issue struct {
	Code    string `json:"code"`
	File    string `json:"file,omitempty"`
	Task    string `json:"task,omitempty"`
	Message string `json:"message"`
}

type Prerequisites

type Prerequisites struct {
	CLIs         []string `json:"clis"`
	Env          []string `json:"env"`
	Availability string   `json:"availability"`
}

type Reason

type Reason struct {
	File string `json:"file"`
	Task string `json:"task,omitempty"`
	Kind string `json:"kind"`
}

type Request

type Request struct {
	Files  []string
	Intent string
}

type ResourceConflict

type ResourceConflict struct {
	Resource string   `json:"resource"`
	Tasks    []string `json:"tasks"`
	Reason   string   `json:"reason"`
}

type Result

type Result struct {
	Project              string               `json:"project"`
	Intent               string               `json:"intent"`
	Advisory             bool                 `json:"advisory"`
	Resolved             bool                 `json:"resolved"`
	Files                []string             `json:"files"`
	GraphDigest          string               `json:"graphDigest"`
	ScopeDigest          string               `json:"scopeDigest"`
	ConfigurationChanged bool                 `json:"configurationChanged"`
	FileImpacts          []FileImpact         `json:"fileImpacts"`
	Checks               []Check              `json:"checks"`
	Closure              []string             `json:"closure"`
	Tasks                []graph.TaskMetadata `json:"tasks"`
	SharedDependencies   []SharedDependency   `json:"sharedDependencies"`
	Prerequisites        Prerequisites        `json:"prerequisites"`
	Conflicts            []ResourceConflict   `json:"conflicts"`
	Issues               []Issue              `json:"issues"`
}

func Build

func Build(p project.Project, req Request) (*Result, error)

type SharedDependency

type SharedDependency struct {
	Task   string   `json:"task"`
	Checks []string `json:"checks"`
}

Jump to

Keyboard shortcuts

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