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 ¶
Overlay returns base with every non-zero field of override applied. The field policy maps are merged, override winning.
func OverlaySelector ¶
func OverlaySelector(base reconcile.InstanceSelector, override *reconcile.InstanceSelector) reconcile.InstanceSelector
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.
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.
Click to show internal directories.
Click to hide internal directories.