Help us shape the future of Go! Take the 2026 Go Developer Survey

odi

package
v0.11.796 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlFlowWarning

type ControlFlowWarning struct {
	Kind           string
	Scenario       string
	ScenarioFile   string
	StepNumber     int
	StepName       string
	StepType       string
	Resolved       bool
	TargetScenario string
	TargetVersion  string
	Message        string
}

type GeneratedAsset

type GeneratedAsset struct {
	Asset       *pipeline.Asset
	SourceOnly  bool
	ControlOnly bool
}

func GenerateAssets

func GenerateAssets(project *Project, assetsPath, connection string) []GeneratedAsset

type ImportOptions

type ImportOptions struct {
	SourcePath   string
	PipelinePath string
	Connection   string
	Overwrite    bool
}

type ImportResult

type ImportResult struct {
	XMLFiles                 int
	Scenarios                int
	SQLAssets                int
	SourceAssets             int
	ControlAssets            int
	SkippedAssets            int
	VariableMacros           int
	ScenarioCallsResolved    int
	VariableMacrosPath       string
	VariableMacrosWritten    bool
	VariableMacrosUpdated    bool
	VariableMacrosSkipped    bool
	ControlFlowWarnings      []ControlFlowWarning
	ControlFlowReportPath    string
	ControlFlowReportWritten bool
	ControlFlowReportSkipped bool
	PipelineCreated          bool
	ImportedAssetPaths       []string
	LogicalSchemaMapping     map[string]string
}

func Import

func Import(ctx context.Context, fs afero.Fs, opts ImportOptions) (*ImportResult, error)

type Project

type Project struct {
	Scenarios            []Scenario
	LogicalSchemaMapping map[string]string
	Variables            pipeline.Variables
	VariableMacros       map[string]VariableMacro
	ControlFlowWarnings  []ControlFlowWarning
	XMLFiles             int
}

func ParseProject

func ParseProject(fs afero.Fs, sourcePath string) (*Project, error)

type Scenario

type Scenario struct {
	Name       string
	Version    string
	Number     string
	SourcePath string
	Steps      []Step
	Tasks      []Task
	Variables  []Variable
}

type Step

type Step struct {
	Number       int
	Name         string
	Type         string
	TableName    string
	Lschema      string
	VariableName string
	OkNextStep   string
	KoNextStep   string
	VarOp        string
}

type Task

type Task struct {
	StepNumber    int
	TaskNumber    int
	Order         int
	ParentTask    int
	Name1         string
	Name2         string
	Name3         string
	Type          string
	DefText       string
	ColText       string
	DefLschema    string
	ColLschema    string
	DefTechnology string
	ColTechnology string
}

type Variable

type Variable struct {
	Name     string
	DataType string
	Default  any
	HasValue bool
}

type VariableMacro

type VariableMacro struct {
	ODIName   string
	BruinName string
	MacroName string
	Body      string
}

Jump to

Keyboard shortcuts

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