Documentation ¶
Index ¶
- func GetMetaserverAddrs(caller *cobra.Command) ([]string, []string, *cmderror.CmdError)
- func GetTopology(caller *cobra.Command) (*topology.ListTopologyResponse, *cmderror.CmdError)
- func NewTopologyCommand() *cobra.Command
- type ListTopologyRpc
- type TopologyCommand
- func (tCmd *TopologyCommand) AddFlags()
- func (tCmd *TopologyCommand) Init(cmd *cobra.Command, args []string) error
- func (tCmd *TopologyCommand) Print(cmd *cobra.Command, args []string) error
- func (tCmd *TopologyCommand) ResultPlainOutput() error
- func (tCmd *TopologyCommand) RunCommand(cmd *cobra.Command, args []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMetaserverAddrs ¶
func GetTopology ¶
func NewTopologyCommand ¶
Types ¶
type ListTopologyRpc ¶
type ListTopologyRpc struct { Info *basecmd.Rpc Request *topology.ListTopologyRequest Response *topology.ListTopologyResponse // contains filtered or unexported fields }
func (*ListTopologyRpc) NewRpcClient ¶
func (lRpc *ListTopologyRpc) NewRpcClient(cc grpc.ClientConnInterface)
type TopologyCommand ¶
type TopologyCommand struct { basecmd.FinalCurveCmd Rpc ListTopologyRpc // contains filtered or unexported fields }
func NewListTopologyCommand ¶
func NewListTopologyCommand() *TopologyCommand
func (*TopologyCommand) AddFlags ¶
func (tCmd *TopologyCommand) AddFlags()
func (*TopologyCommand) Init ¶
func (tCmd *TopologyCommand) Init(cmd *cobra.Command, args []string) error
func (*TopologyCommand) Print ¶
func (tCmd *TopologyCommand) Print(cmd *cobra.Command, args []string) error
func (*TopologyCommand) ResultPlainOutput ¶
func (tCmd *TopologyCommand) ResultPlainOutput() error
func (*TopologyCommand) RunCommand ¶
func (tCmd *TopologyCommand) RunCommand(cmd *cobra.Command, args []string) error
Click to show internal directories.
Click to hide internal directories.