etcdctl/ctlv3: replace "dbStatus" with "snapshot.Status"

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
Gyuho Lee
2018-01-22 15:15:40 -08:00
parent 8b317df97a
commit c3ba417737
6 changed files with 20 additions and 20 deletions

View File

@ -18,6 +18,8 @@ import (
"encoding/json"
"fmt"
"os"
"github.com/coreos/etcd/snapshot"
)
type jsonPrinter struct{ printer }
@ -30,7 +32,7 @@ func newJSONPrinter() printer {
func (p *jsonPrinter) EndpointStatus(r []epStatus) { printJSON(r) }
func (p *jsonPrinter) EndpointHashKV(r []epHashKV) { printJSON(r) }
func (p *jsonPrinter) DBStatus(r dbstatus) { printJSON(r) }
func (p *jsonPrinter) DBStatus(r snapshot.Status) { printJSON(r) }
func printJSON(v interface{}) {
b, err := json.Marshal(v)