diff options
author | Rasmus Dahlberg <rasmus@mullvad.net> | 2022-04-13 16:54:25 +0200 |
---|---|---|
committer | Rasmus Dahlberg <rasmus@mullvad.net> | 2022-04-13 16:54:25 +0200 |
commit | 123c444ffd7a2ad2af58b62caad3ec7ae451256e (patch) | |
tree | b01d0a849de9045defc9a9505bfb7b0110a34a8d /cmd/sigsum/namespace | |
parent | b1bcc5d12fc57f0d39f3dadc0d159f4c71ae37d7 (diff) |
clean-up sigsum tool structure
Diffstat (limited to 'cmd/sigsum/namespace')
-rw-r--r-- | cmd/sigsum/namespace/namespace.go | 16 |
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 +} |