Versions in this module Expand all Collapse all v0 v0.162.0 Dec 4, 2026 Changes in this version + const BuiltinDataset + const BuiltinDatasetSource + const BuiltinQuery + const CodeDraft + const DefaultPreviewLimit + const DefaultQueryRows + const DirectionInputs + const DirectionOutputs + const LayoutSpec + const MaxActiveRuns + const MaxActiveTests + const MaxLogEntries + const MaxPreviewItemBytes + const MaxPreviewLimit + const MaxQueryRows + const MaxRuns + const MaxTestItems + const PipeSourceBuiltin + const PipeSourceProject + const PipeSourceStd + const QueryKindSQL + const QueryKindSaved + const QueryKindTugQL + const SeverityError + const SeverityWarning + const StateCancelled + const StateCompleted + const StateFailed + const StatePending + const StateRunning + var ErrHashMismatch = errors.New("the pipeline was changed by someone else") + var ErrNoPipelinesStore = errors.New("this project's store does not keep OpenFlange pipelines") + func Drafts(dir string) []string + func IsNotFound(err error) bool + func ProjectPipeRef(id string) string + type Access struct + Context string + Operator bool + Principal string + type AdapterCapability struct + Adapter string + Available bool + Detail string + Language string + Location string + Type string + type AllowedPipes struct + Entry string + Scope string + Source string + type BatchContract struct + Delivery string + MaxItems int + MaxWaitMs int + type Conversion struct + Conversion string + From string + MediaType string + To string + type Dataset struct + Freshness pipedatasets.Freshness + Readable bool + Table string + Unreadable string + type DatasetPreview struct + Columns []PreviewColumn + Freshness pipedatasets.Freshness + Items []json.RawMessage + Limit int + Name string + Rows int64 + Truncated bool + type ImportRequest struct + As string + Reference string + Replace bool + type ImportResult struct + Lockfile string + Pipe PipeContract + Warnings []string + type ImportedPipe struct + Integrity string + Modified bool + Reference string + Resolved string + Revision string + Version string + type Layout struct + Extensions map[string]any + Nodes map[string]map[string]any + func (l Layout) Validate() error + func (l Layout) YAML() []byte + type Library struct + Adapters []AdapterCapability + AllowPipes []AllowedPipes + AllowPipesEnforced bool + Builtin []PipeContract + Features map[string]bool + Project []PipeContract + References map[string]bool + Registry string + Std []PipeContract + type LogEntry struct + Level string + Message string + Node string + Seq int64 + Time time.Time + type Logs struct + Dropped bool + Entries []LogEntry + Next int64 + Node string + RunID string + type Manager struct + RunTimeout time.Duration + func NewManager() *Manager + func (m *Manager) Get(id string) (*Run, error) + func (m *Manager) List(pipelineID string) []RunStatus + func (m *Manager) ListProject(project, pipelineID string, a Access) []RunStatus + func (m *Manager) Refresh(ctx context.Context, w *Workspace, name string, req RunRequest) (*Run, error) + func (m *Manager) Shutdown(ctx context.Context) error + func (m *Manager) Start(ctx context.Context, w *Workspace, pipelineID string, req RunRequest, ...) (*Run, error) + func (m *Manager) Track(ctx context.Context) (context.Context, func(), error) + type NodeDocument struct + Grants json.RawMessage + ID string + Inputs map[string][]string + Outputs map[string]OutputControl + Parameters map[string]any + Pipe string + Secrets map[string]SecretRef + type NodeStatus struct + Adapter string + BytesIn int64 + BytesOut int64 + DurationMs int64 + Error *Problem + ID string + Inputs map[string]PortStatus + Location string + Logs int + Outputs map[string]PortStatus + Pipe string + RecordsIn int64 + RecordsOut int64 + State string + Usage map[string]any + type Options struct + Access Access + AllowLocalGit bool + AllowPipes *pipeallow.List + CacheDir string + Datasets *pipedatasets.Store + DatasetsUnavailable string + Env func(name string) (string, bool) + FetchOnlyToImport bool + Offline bool + Queries QueryRunner + QueriesUnavailable string + Registry string + Secrets func(ref string) (string, bool) + type OutputControl struct + Discard bool + Enabled *bool + type ParameterContract struct + Default any + Description string + Enum []any + HasDefault bool + MaxLength *int + Maximum *float64 + MinLength *int + Minimum *float64 + Name string + Pattern string + Required bool + Type string + type PipeContract struct + AllowWith string + Batch *BatchContract + Cardinality string + Description string + Deterministic bool + Documentation string + Files []string + ID string + Implementation string + Imported *ImportedPipe + Inputs []PortContract + Keywords []string + Kind string + Language string + License string + Location string + Maturity string + NotRunnable string + Outputs []PortContract + Parameters []ParameterContract + Permissions any + Problems []Problem + Ref string + Runnable bool + Runtime string + Source string + Supported bool + Title string + Unsupported string + Version string + type Pipeline struct + Document *PipelineDocument + Draft bool + Hash string + ID string + Layout *Layout + Manifest string + Validation *Validation + YAML string + type PipelineDocument struct + Nodes []NodeDocument + Outputs map[string]string + Parameters map[string]any + func (d PipelineDocument) YAML() []byte + type PipelineSummary struct + Description string + Draft bool + HasLayout bool + HasManifest bool + Hash string + ID string + Nodes int + Title string + type PortContract struct + Description string + Kind string + MediaTypes []string + Name string + Required bool + Schema any + Variadic bool + type PortStatus struct + Bytes int64 + Preview bool + Records int64 + State string + type Preview struct + Columns []PreviewColumn + Complete bool + Direction string + From string + Items []json.RawMessage + Kind string + Limit int + MediaType string + Node string + Port string + Producers []string + Records int64 + Redacted int + RunID string + Truncated bool + type PreviewColumn struct + Name string + Type string + type Problem struct + Code string + Column int + Details map[string]any + File string + Hint string + Line int + Message string + Node string + Path string + Port string + Severity string + func Problems(err error) []Problem + type Project struct + Dir string + ID string + Store any + type QueryRequest struct + Database string + Environment string + Limit int + Node string + QueryID string + SQL string + TugQL string + Variables map[string]any + func (r QueryRequest) Kind() string + type QueryResult struct + Connection string + Environment string + Limitations []string + QueryID string + Truncated bool + type QueryRunner interface + RunQuery func(ctx context.Context, req QueryRequest, ...) (QueryResult, error) + type QueryRunnerFunc func(ctx context.Context, req QueryRequest, ...) (QueryResult, error) + func (f QueryRunnerFunc) RunQuery(ctx context.Context, req QueryRequest, ...) (QueryResult, error) + type RegistryPipe struct + Deprecated bool + Description string + Distribution string + ID string + Keywords []string + Languages []string + Latest string + License string + Runtimes []string + Score int + Title string + type RegistrySearch struct + Pipes []RegistryPipe + Registry string + Warnings []string + type Run struct + func (r *Run) Cancel() + func (r *Run) Done() <-chan struct{} + func (r *Run) ID() string + func (r *Run) Logs(node string, since int64) Logs + func (r *Run) MayRead(a Access) bool + func (r *Run) Observe(at runner.TapPoint, b stream.Batch) bool + func (r *Run) PipelineID() string + func (r *Run) Preview(node, direction, port string) (*Preview, error) + func (r *Run) Project() string + func (r *Run) Revision() int64 + func (r *Run) Status() RunStatus + func (r *Run) Wait(ctx context.Context, since int64) RunStatus + type RunRequest struct + CoerceParameters bool + Grants []string + Inputs map[string][]json.RawMessage + Parameters map[string]any + PreviewLimit int + type RunStatus struct + Conversions []Conversion + Datasets []string + DurationMs int64 + Error *Problem + FinishedAt *time.Time + Inputs map[string]PortStatus + Logs int + Nodes []NodeStatus + Outputs map[string]PortStatus + PartialOutput bool + PipelineHash string + PipelineID string + PreviewLimit int + Revision int64 + RunID string + StartedAt time.Time + State string + func (s RunStatus) Terminal() bool + type SavePipelineRequest struct + Document *PipelineDocument + Draft bool + IfHash *string + Layout *Layout + Manifest *string + YAML *string + type SearchQuery struct + IncludeDeprecated bool + Language string + License string + Limit int + Runtime string + Text string + type SecretRef struct + Secret string + type StartOptions struct + DefaultOutput stream.Writer + Inputs map[string]stream.Reader + Outputs map[string]stream.Writer + type TestCase struct + DurationMs int64 + Error string + Failures []TestFailure + File string + Line int + Name string + Passed bool + Status string + type TestFailure struct + Diff string + Message string + Port string + type TestResult struct + Failed int + Files int + Passed int + Results []TestCase + type ValidateRequest struct + CoerceParameters bool + Document *PipelineDocument + Grants []string + Manifest *string + Parameters map[string]any + YAML *string + type Validation struct + Draft bool + Errors []Problem + OK bool + Plan json.RawMessage + Warnings []Problem + func ValidationOf(err error) (*Validation, bool) + type Workspace struct + Engine *openflange.Engine + Project Project + func Open(project Project, o Options) (*Workspace, error) + func (w *Workspace) Access() Access + func (w *Workspace) Dataset(ctx context.Context, name string) (*Dataset, error) + func (w *Workspace) DatasetPreview(ctx context.Context, name string, limit int) (*DatasetPreview, error) + func (w *Workspace) Datasets(ctx context.Context) ([]Dataset, error) + func (w *Workspace) DeleteDataset(name string) error + func (w *Workspace) DeletePipeline(ctx context.Context, id string) error + func (w *Workspace) GetPipeline(ctx context.Context, id string) (*Pipeline, error) + func (w *Workspace) Import(ctx context.Context, req ImportRequest) (*ImportResult, error) + func (w *Workspace) IsDraft(ctx context.Context, id string) bool + func (w *Workspace) Library(ctx context.Context) (*Library, error) + func (w *Workspace) ListPipelines(ctx context.Context) ([]PipelineSummary, error) + func (w *Workspace) LockPath() string + func (w *Workspace) Pipe(ctx context.Context, ref string) (*PipeContract, error) + func (w *Workspace) PipelineHash(ctx context.Context, id string) string + func (w *Workspace) RegistryLocation() string + func (w *Workspace) SaveLayout(ctx context.Context, id string, layout Layout) error + func (w *Workspace) SavePipeline(ctx context.Context, id string, req SavePipelineRequest) (*Pipeline, error) + func (w *Workspace) Search(ctx context.Context, q SearchQuery) (*RegistrySearch, error) + func (w *Workspace) TestPipes(ctx context.Context, id string, grants []string, onResult func(TestCase)) (*TestResult, error) + func (w *Workspace) Validate(ctx context.Context, id string, req ValidateRequest) *Validation + func (w *Workspace) ValidatePipe(ctx context.Context, id string) (*Validation, error)