aboutsummaryrefslogtreecommitdiff
path: root/internal/service/mirror.go
diff options
context:
space:
mode:
authorSlack Coder <slackcoder@server.ky>2025-04-21 16:45:39 -0500
committerSlack Coder <slackcoder@server.ky>2025-04-22 15:27:36 -0500
commitd75e17a48934e4896963fb0fee78dbd53f4e780b (patch)
tree27a4fd16640846df846d36d2fc5b898189b68620 /internal/service/mirror.go
parente7dd47e8b683a51851883bf2918086963676d7cd (diff)
downloadmirror-d75e17a48934e4896963fb0fee78dbd53f4e780b.tar.xz
Implement staging and verificationv0.0.3
Ensure data integrity by supporting data staging and verification.
Diffstat (limited to 'internal/service/mirror.go')
-rw-r--r--internal/service/mirror.go11
1 files changed, 7 insertions, 4 deletions
diff --git a/internal/service/mirror.go b/internal/service/mirror.go
index 12aaa79..43dd059 100644
--- a/internal/service/mirror.go
+++ b/internal/service/mirror.go
@@ -8,10 +8,13 @@ import (
)
type Mirror struct {
- Method string `toml:"method,omitempty"`
- From *internal.URL `toml:"from,omitempty"`
- To *internal.URL `toml:"to,omitempty"`
- Description string `toml:"description,omitempty"`
+ Method string `toml:"method,omitempty"`
+ From *internal.URL `toml:"from,omitempty"`
+ To *internal.URL `toml:"to,omitempty"`
+ Description string `toml:"description,omitempty"`
+ StagingMethod string `toml:"staging-method,omitempty"`
+ StagingPath string `toml:"staging-path,omitempty"`
+ Verify string `toml:"verify,omitempty"`
}
func (m *Mirror) Equal(arg *Mirror) bool {