Documentation ¶
Index ¶
- func InitRpcCall(ctCmd *ClusterTopoCmd) error
- func NewClusterTopoCmd() *cobra.Command
- func ReadClusterMap(ctCmd *ClusterTopoCmd) error
- type ClusterTopoCmd
- func (ctCmd *ClusterTopoCmd) AddFlags()
- func (ctCmd *ClusterTopoCmd) CheckPhysicalPool(poolName string) *cmderror.CmdError
- func (ctCmd *ClusterTopoCmd) CreatePhysicalPools() *cmderror.CmdError
- func (ctCmd *ClusterTopoCmd) CreateZones() *cmderror.CmdError
- func (ctCmd *ClusterTopoCmd) Init(cmd *cobra.Command, args []string) error
- func (ctCmd *ClusterTopoCmd) Print(cmd *cobra.Command, args []string) error
- func (ctCmd *ClusterTopoCmd) RegistServers() *cmderror.CmdError
- func (ctCmd *ClusterTopoCmd) ResultPlainOutput() error
- func (ctCmd *ClusterTopoCmd) RunCommand(cmd *cobra.Command, args []string) error
- type CreatePhyPoolRpc
- type CreateZoneRpc
- type DelPhyPoolRpc
- type DelServerRpc
- type DelZoneRpc
- type ListPhyPoolsRpc
- type ListServersRpc
- type ListZonesRpc
- type LogicalPool
- type PhysicalPool
- type RegServerRpc
- type Server
- type Topology
- type Zone
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitRpcCall ¶
func InitRpcCall(ctCmd *ClusterTopoCmd) error
func NewClusterTopoCmd ¶
Types ¶
type ClusterTopoCmd ¶
type ClusterTopoCmd struct { basecmd.FinalCurveCmd // contains filtered or unexported fields }
func (*ClusterTopoCmd) AddFlags ¶
func (ctCmd *ClusterTopoCmd) AddFlags()
func (*ClusterTopoCmd) CheckPhysicalPool ¶
func (ctCmd *ClusterTopoCmd) CheckPhysicalPool(poolName string) *cmderror.CmdError
Check if the physicalPool that a server belongs to exists in the cluster. if not exist return error
func (*ClusterTopoCmd) CreatePhysicalPools ¶
func (ctCmd *ClusterTopoCmd) CreatePhysicalPools() *cmderror.CmdError
func (*ClusterTopoCmd) CreateZones ¶
func (ctCmd *ClusterTopoCmd) CreateZones() *cmderror.CmdError
func (*ClusterTopoCmd) Init ¶
func (ctCmd *ClusterTopoCmd) Init(cmd *cobra.Command, args []string) error
func (*ClusterTopoCmd) Print ¶
func (ctCmd *ClusterTopoCmd) Print(cmd *cobra.Command, args []string) error
func (*ClusterTopoCmd) RegistServers ¶
func (ctCmd *ClusterTopoCmd) RegistServers() *cmderror.CmdError
func (*ClusterTopoCmd) ResultPlainOutput ¶
func (ctCmd *ClusterTopoCmd) ResultPlainOutput() error
func (*ClusterTopoCmd) RunCommand ¶
func (ctCmd *ClusterTopoCmd) RunCommand(cmd *cobra.Command, args []string) error
type CreatePhyPoolRpc ¶
type CreatePhyPoolRpc struct { Info *basecmd.Rpc Request *topology.PhysicalPoolRequest TopologyClient topology.TopologyServiceClient }
func (*CreatePhyPoolRpc) NewRpcClient ¶
func (cpRpc *CreatePhyPoolRpc) NewRpcClient(cc grpc.ClientConnInterface)
type CreateZoneRpc ¶
type CreateZoneRpc struct { Info *basecmd.Rpc Request *topology.ZoneRequest TopologyClient topology.TopologyServiceClient }
func (*CreateZoneRpc) NewRpcClient ¶
func (czRpc *CreateZoneRpc) NewRpcClient(cc grpc.ClientConnInterface)
type DelPhyPoolRpc ¶
type DelPhyPoolRpc struct { Info *basecmd.Rpc Request *topology.PhysicalPoolRequest TopologyClient topology.TopologyServiceClient }
func (*DelPhyPoolRpc) NewRpcClient ¶
func (dpoolRpc *DelPhyPoolRpc) NewRpcClient(cc grpc.ClientConnInterface)
type DelServerRpc ¶
type DelServerRpc struct { Info *basecmd.Rpc Request *topology.DeleteServerRequest TopologyClient topology.TopologyServiceClient }
func (*DelServerRpc) NewRpcClient ¶
func (dsRpc *DelServerRpc) NewRpcClient(cc grpc.ClientConnInterface)
type DelZoneRpc ¶
type DelZoneRpc struct { Info *basecmd.Rpc Request *topology.ZoneRequest TopologyClient topology.TopologyServiceClient }
func (*DelZoneRpc) NewRpcClient ¶
func (dzRpc *DelZoneRpc) NewRpcClient(cc grpc.ClientConnInterface)
type ListPhyPoolsRpc ¶
type ListPhyPoolsRpc struct { Info *basecmd.Rpc Request *topology.ListPhysicalPoolRequest TopologyClient topology.TopologyServiceClient }
func (*ListPhyPoolsRpc) NewRpcClient ¶
func (lPRpc *ListPhyPoolsRpc) NewRpcClient(cc grpc.ClientConnInterface)
type ListServersRpc ¶
type ListServersRpc struct { Info *basecmd.Rpc Request *topology.ListZoneServerRequest TopologyClient topology.TopologyServiceClient }
func (*ListServersRpc) NewRpcClient ¶
func (lSRpc *ListServersRpc) NewRpcClient(cc grpc.ClientConnInterface)
type ListZonesRpc ¶
type ListZonesRpc struct { Info *basecmd.Rpc Request *topology.ListPoolZoneRequest TopologyClient topology.TopologyServiceClient }
func (*ListZonesRpc) NewRpcClient ¶
func (lZRpc *ListZonesRpc) NewRpcClient(cc grpc.ClientConnInterface)
type LogicalPool ¶
type PhysicalPool ¶
type RegServerRpc ¶
type RegServerRpc struct { Info *basecmd.Rpc Request *topology.ServerRegistRequest TopologyClient topology.TopologyServiceClient }
func (*RegServerRpc) NewRpcClient ¶
func (rsRpc *RegServerRpc) NewRpcClient(cc grpc.ClientConnInterface)
type Topology ¶
type Topology struct { Servers []Server `json:"servers"` Zones []Zone `json:"-"` PhysicalPools []PhysicalPool `json:"-"` LogicalPools []LogicalPool `json:"logicalpools"` }
Click to show internal directories.
Click to hide internal directories.