reconcileapi

package
v0.158.4 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package reconcileapi is the wire contract of the agent's POST /datatug/reconcile endpoint, shared by the server and the CLI.

Index

Constants

View Source
const Path = "/reconcile"

Path is the endpoint path below the agent's /datatug prefix.

Variables

This section is empty.

Functions

func Overlay

func Overlay(base reconcile.Rules, override *reconcile.Rules) reconcile.Rules

Overlay returns base with every non-zero field of override applied. The field policy maps are merged, override winning.

func OverlaySelector

OverlaySelector returns base narrowed or replaced by the non-zero fields of override.

Types

type Request

type Request struct {
	SecurityContextID string                      `json:"securityContextId"`
	StoreID           string                      `json:"storeId,omitempty"`
	Project           string                      `json:"project"`
	QueryID           string                      `json:"queryId,omitempty"`
	ProfileID         string                      `json:"profileId,omitempty"`
	Instances         *reconcile.InstanceSelector `json:"instances,omitempty"`
	// Rules overrides the profile's rule field by field: a zero field keeps
	// the profile's (or the confirmed classification's) value.
	Rules *reconcile.Rules `json:"rules,omitempty"`
}

Request runs one dataset reconciliation. A profile supplies the query, the instances and the rules; explicit fields override it.

func (Request) Validate

func (r Request) Validate() error

Validate checks the request's shape before anything is read.

type Response

type Response struct {
	Result   reconcile.Result                          `json:"result"`
	Receipts map[string]apicontract.CompareSideReceipt `json:"receipts"`
}

Response is the engine result plus one execution receipt per instance that was executed. Instances refused or failed before a receipt have none.

Jump to

Keyboard shortcuts

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