Skip to content

Commit 4039850

Browse files
authored
Merge pull request #485 from oasisprotocol/kostko/feature/rofl-replica-metadata
feat(cmd/rofl): Show per-replica metadata
2 parents d98c74f + 5edbd14 commit 4039850

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

cmd/rofl/mgmt.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,12 @@ var (
492492
fmt.Printf("- RAK: %s\n", ai.RAK)
493493
fmt.Printf(" Node ID: %s\n", ai.NodeID)
494494
fmt.Printf(" Expiration: %d\n", ai.Expiration)
495+
if len(ai.Metadata) > 0 {
496+
fmt.Printf(" Metadata:\n")
497+
for key, value := range ai.Metadata {
498+
fmt.Printf(" %s: %s\n", key, value)
499+
}
500+
}
495501
}
496502
} else {
497503
fmt.Println("No registered replicas.")

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ require (
2525
github.com/oasisprotocol/deoxysii v0.0.0-20220228165953-2091330c22b7
2626
github.com/oasisprotocol/metadata-registry-tools v0.0.0-20220406100644-7e9a2b991920
2727
github.com/oasisprotocol/oasis-core/go v0.2503.0
28-
github.com/oasisprotocol/oasis-sdk/client-sdk/go v0.15.0
28+
github.com/oasisprotocol/oasis-sdk/client-sdk/go v0.15.2
2929
github.com/olekukonko/tablewriter v0.0.5
3030
github.com/opencontainers/image-spec v1.1.1
3131
github.com/spf13/cobra v1.9.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,8 +447,8 @@ github.com/oasisprotocol/metadata-registry-tools v0.0.0-20220406100644-7e9a2b991
447447
github.com/oasisprotocol/metadata-registry-tools v0.0.0-20220406100644-7e9a2b991920/go.mod h1:MKr/giwakLyCCjSWh0W9Pbaf7rDD1K96Wr57OhNoUK0=
448448
github.com/oasisprotocol/oasis-core/go v0.2503.0 h1:3Vs45JnvZCYbr5a7xSB9mBV7kna0uzrblJiiQWB5lnI=
449449
github.com/oasisprotocol/oasis-core/go v0.2503.0/go.mod h1:0wO1wYzDCNToNemyt/wF+1BjcrSBRyw6MJrWr7LvrJs=
450-
github.com/oasisprotocol/oasis-sdk/client-sdk/go v0.15.0 h1:c+m1aKhT0/hyt3uwh6jl15Rc0TAWRmW0z+BJb0kqQK8=
451-
github.com/oasisprotocol/oasis-sdk/client-sdk/go v0.15.0/go.mod h1:cLtdOgAtSsVGQAZ1KWCXCgnj9CzNeOOEWUMZB0PIBeA=
450+
github.com/oasisprotocol/oasis-sdk/client-sdk/go v0.15.2 h1:tOSkcUaJGCOtw7psBdfRn5lielHdHmR48mEcjun/1Wk=
451+
github.com/oasisprotocol/oasis-sdk/client-sdk/go v0.15.2/go.mod h1:cLtdOgAtSsVGQAZ1KWCXCgnj9CzNeOOEWUMZB0PIBeA=
452452
github.com/oklog/run v1.0.0 h1:Ru7dDtJNOyC66gQ5dQmaCa0qIsAUFY3sFpK1Xk8igrw=
453453
github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA=
454454
github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec=

0 commit comments

Comments
 (0)