aboutsummaryrefslogtreecommitdiff
path: root/cmd/sigsum/namespace
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus@mullvad.net>2022-04-13 16:54:25 +0200
committerRasmus Dahlberg <rasmus@mullvad.net>2022-04-13 16:54:25 +0200
commit123c444ffd7a2ad2af58b62caad3ec7ae451256e (patch)
treeb01d0a849de9045defc9a9505bfb7b0110a34a8d /cmd/sigsum/namespace
parentb1bcc5d12fc57f0d39f3dadc0d159f4c71ae37d7 (diff)
clean-up sigsum tool structure
Diffstat (limited to 'cmd/sigsum/namespace')
-rw-r--r--cmd/sigsum/namespace/namespace.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/cmd/sigsum/namespace/namespace.go b/cmd/sigsum/namespace/namespace.go
new file mode 100644
index 0000000..3fbaf14
--- /dev/null
+++ b/cmd/sigsum/namespace/namespace.go
@@ -0,0 +1,16 @@
+package namespace
+
+import (
+ "fmt"
+
+ "git.sigsum.org/sigsum-tools-go/pkg/policy"
+)
+
+func Main(args []string, policy policy.Policy) error {
+ if len(args) != 0 {
+ return fmt.Errorf("namespace: trailing arguments")
+ }
+
+ fmt.Printf("tree_leaf:v0:%d@sigsum.org", policy.ShardHint())
+ return nil
+}