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.
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" )
Click to show internal directories.
Click to hide internal directories.