fullend

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DetectedSSOT

type DetectedSSOT struct {
	Kind SSOTKind
	Path string // absolute path to the relevant directory or file
}

DetectedSSOT represents a detected SSOT file or directory.

func DetectSSOTs

func DetectSSOTs(root string) ([]DetectedSSOT, error)

DetectSSOTs scans root for known SSOT directories and returns what exists.

type Fullstack

type Fullstack struct {
	Manifest            *manifest.ProjectConfig
	OpenAPIDoc          *openapi3.T
	DDLResults          []*pg_query.ParseResult
	Policies            []*ast.Module
	ServiceFuncs        []ssac.ServiceFunc
	STMLPages           []stml.PageSpec
	StateDiagrams       []*statemachine.StateDiagram
	HurlEntries         []hurl.HurlEntry
	ProjectFuncSpecs    []funcspec.FuncSpec
	FullendPkgSpecs     []funcspec.FuncSpec
	HurlFiles           []string
	DDLTables           []ddl.Table
	ParsedPolicies      []rego.Policy
	RequestConstraints  map[string]map[string]oapiparser.FieldConstraint
	ResponseConstraints map[string]map[string]oapiparser.FieldConstraint
	TanglFiles          []*tanglparser.File
	ModelDir            string
	ModelInterfaces     []iface.Interface
	SqlcQueries         []sqlc.Query
	StatesDiags         []diagnostic.Diagnostic
}

Fullstack holds all SSOT parsing results. ParseAll() populates this; crosscheck and gen consume it.

func ParseAll

func ParseAll(root string, detected []DetectedSSOT, skip map[SSOTKind]bool) *Fullstack

ParseAll parses all detected SSOTs once and returns the results. Skipped kinds are not parsed. Parse errors result in nil/zero fields.

type SSOTKind

type SSOTKind string

SSOTKind identifies one of the SSOT types in a fullend project.

const (
	KindOpenAPI  SSOTKind = "OpenAPI"
	KindDDL      SSOTKind = "DDL"
	KindSSaC     SSOTKind = "SSaC"
	KindModel    SSOTKind = "Model"
	KindSTML     SSOTKind = "STML"
	KindStates   SSOTKind = "States"
	KindPolicy   SSOTKind = "Policy"
	KindScenario SSOTKind = "Scenario"
	KindFunc     SSOTKind = "Func"
	KindConfig   SSOTKind = "Config"
	KindToulmin  SSOTKind = "Toulmin"
)

Jump to

Keyboard shortcuts

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