From 8bafbed9888666a3b422f44837a25aa488c982bd Mon Sep 17 00:00:00 2001 From: Aprx Date: Wed, 15 Jul 2026 15:15:59 +0200 Subject: [PATCH] carry urn info in report --- backup.go | 2 ++ protocol.go | 8 +++++++- report.go | 2 ++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/backup.go b/backup.go index 1c93f39..9007b9b 100644 --- a/backup.go +++ b/backup.go @@ -104,6 +104,8 @@ func backup(ctx *kcontext.KContext, input *ExecPayload) (*Report, error) { BytesRead: repo.RBytes(), BytesWritten: repo.WBytes(), }, + URN: input.Source.URN, + URNID: input.Source.URNID.String(), } br.Errors = int(src.Summary.Directory.Errors + src.Summary.Below.Errors) diff --git a/protocol.go b/protocol.go index d2993d0..8cc8133 100644 --- a/protocol.go +++ b/protocol.go @@ -1,6 +1,10 @@ package plaklet -import "encoding/json" +import ( + "encoding/json" + + "github.com/google/uuid" +) // This file defines the stdin/stdout wire protocol plaklet speaks with whatever // drives it (the plakman executor, or plakar-edge). The shapes are duplicated @@ -50,6 +54,8 @@ type Configuration struct { Fields []ConfigurationField `json:"fields"` Environment string `json:"environment,omitempty"` DataClasses []string `json:"data_classes,omitempty"` + URN string `json:"urn"` + URNID uuid.UUID `json:"urnid"` } type Integration struct { diff --git a/report.go b/report.go index ddc61db..89ff204 100644 --- a/report.go +++ b/report.go @@ -39,6 +39,8 @@ type BackupReport struct { Content BackupContent `json:"content"` Errors int `json:"errors"` Store StoreIO `json:"store"` + URN string `json:"urn"` + URNID string `json:"urnid"` } type CheckReport struct {