Documentation ¶
Index ¶
- type Service
- func (s *Service) AddCluster(c context.Context, req *model.AddClusterReq) (resp *model.EmpResp, err error)
- func (s *Service) Close()
- func (s *Service) Cluster(c context.Context, req *model.ClusterReq) (resp []*model.Cluster, err error)
- func (s *Service) ClusterDtl(c context.Context, req *model.ClusterDtlReq) (resp *model.ClusterDtlResp, err error)
- func (s *Service) Clusters(c context.Context, req *model.ClusterReq) (resp *model.ClusterResp, err error)
- func (s *Service) DelCluster(c context.Context, req *model.DelClusterReq) (resp *model.EmpResp, err error)
- func (s *Service) DelOverlordCluster(c context.Context, arg *model.OverlordReq) (resp *model.EmpResp, err error)
- func (s *Service) DelOverlordNode(c context.Context, arg *model.OverlordReq) (resp *model.EmpResp, err error)
- func (s *Service) ExistOverlordNodes(c context.Context, arg *model.OverlordReq) (resp *model.OverlordResp, err error)
- func (s *Service) ImportOpsCluster(c context.Context, arg *model.OverlordReq) (resp *model.EmpResp, err error)
- func (s *Service) ImportOpsNode(c context.Context, arg *model.OverlordReq) (resp *model.EmpResp, err error)
- func (s *Service) ModifyCluster(c context.Context, req *model.ModifyClusterReq) (resp *model.EmpResp, err error)
- func (s *Service) NotExistOverlordAddrs(c context.Context, arg *model.OverlordReq) (resp *model.OverlordResp, err error)
- func (s *Service) OpsClusterNames(c context.Context, arg *model.OverlordReq) (resp *model.OverlordResp, err error)
- func (s *Service) OpsClusterNodes(c context.Context, arg *model.OverlordReq) (resp *model.OverlordResp, err error)
- func (s *Service) OverlordAppAppIDs(c context.Context, arg *model.OverlordReq) (resp *model.OverlordResp, err error)
- func (s *Service) OverlordAppCanBindClusters(c context.Context, arg *model.OverlordReq) (resp *model.OverlordResp, err error)
- func (s *Service) OverlordAppClusterBind(c context.Context, arg *model.OverlordReq) (resp *model.EmpResp, err error)
- func (s *Service) OverlordAppClusterDel(c context.Context, arg *model.OverlordReq) (resp *model.EmpResp, err error)
- func (s *Service) OverlordAppClusters(c context.Context, arg *model.OverlordReq) (resp *model.OverlordResp, err error)
- func (s *Service) OverlordClusters(c context.Context, arg *model.OverlordReq) (resp *model.OverlordResp, err error)
- func (s *Service) OverlordToml(c context.Context, arg *model.OverlordReq) (resp []byte, err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) ReplaceOpsNode(c context.Context, arg *model.OverlordReq) (resp *model.EmpResp, err error)
- func (s *Service) Toml(c context.Context, req *model.ClusterReq) (resp []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service struct
func (*Service) AddCluster ¶
func (s *Service) AddCluster(c context.Context, req *model.AddClusterReq) (resp *model.EmpResp, err error)
AddCluster add new cluster.
func (*Service) Cluster ¶
func (s *Service) Cluster(c context.Context, req *model.ClusterReq) (resp []*model.Cluster, err error)
Cluster search cluster by appid or cluster name.
func (*Service) ClusterDtl ¶
func (s *Service) ClusterDtl(c context.Context, req *model.ClusterDtlReq) (resp *model.ClusterDtlResp, err error)
ClusterDtl get cluster detail about nodes info.
func (*Service) Clusters ¶
func (s *Service) Clusters(c context.Context, req *model.ClusterReq) (resp *model.ClusterResp, err error)
Clusters get clusters.
func (*Service) DelCluster ¶
func (s *Service) DelCluster(c context.Context, req *model.DelClusterReq) (resp *model.EmpResp, err error)
DelCluster del cluster of req id.
func (*Service) DelOverlordCluster ¶
func (s *Service) DelOverlordCluster(c context.Context, arg *model.OverlordReq) (resp *model.EmpResp, err error)
DelOverlordCluster .
func (*Service) DelOverlordNode ¶
func (s *Service) DelOverlordNode(c context.Context, arg *model.OverlordReq) (resp *model.EmpResp, err error)
DelOverlordNode .
func (*Service) ExistOverlordNodes ¶
func (s *Service) ExistOverlordNodes(c context.Context, arg *model.OverlordReq) (resp *model.OverlordResp, err error)
ExistOverlordNodes .
func (*Service) ImportOpsCluster ¶
func (s *Service) ImportOpsCluster(c context.Context, arg *model.OverlordReq) (resp *model.EmpResp, err error)
ImportOpsCluster .
func (*Service) ImportOpsNode ¶
func (s *Service) ImportOpsNode(c context.Context, arg *model.OverlordReq) (resp *model.EmpResp, err error)
ImportOpsNode .
func (*Service) ModifyCluster ¶
func (s *Service) ModifyCluster(c context.Context, req *model.ModifyClusterReq) (resp *model.EmpResp, err error)
ModifyCluster add or del cluster nodes.
func (*Service) NotExistOverlordAddrs ¶
func (s *Service) NotExistOverlordAddrs(c context.Context, arg *model.OverlordReq) (resp *model.OverlordResp, err error)
NotExistOverlordAddrs .
func (*Service) OpsClusterNames ¶
func (s *Service) OpsClusterNames(c context.Context, arg *model.OverlordReq) (resp *model.OverlordResp, err error)
OpsClusterNames .
func (*Service) OpsClusterNodes ¶
func (s *Service) OpsClusterNodes(c context.Context, arg *model.OverlordReq) (resp *model.OverlordResp, err error)
OpsClusterNodes .
func (*Service) OverlordAppAppIDs ¶
func (s *Service) OverlordAppAppIDs(c context.Context, arg *model.OverlordReq) (resp *model.OverlordResp, err error)
OverlordAppAppIDs .
func (*Service) OverlordAppCanBindClusters ¶
func (s *Service) OverlordAppCanBindClusters(c context.Context, arg *model.OverlordReq) (resp *model.OverlordResp, err error)
OverlordAppCanBindClusters .
func (*Service) OverlordAppClusterBind ¶
func (s *Service) OverlordAppClusterBind(c context.Context, arg *model.OverlordReq) (resp *model.EmpResp, err error)
OverlordAppClusterBind .
func (*Service) OverlordAppClusterDel ¶
func (s *Service) OverlordAppClusterDel(c context.Context, arg *model.OverlordReq) (resp *model.EmpResp, err error)
OverlordAppClusterDel .
func (*Service) OverlordAppClusters ¶
func (s *Service) OverlordAppClusters(c context.Context, arg *model.OverlordReq) (resp *model.OverlordResp, err error)
OverlordAppClusters .
func (*Service) OverlordClusters ¶
func (s *Service) OverlordClusters(c context.Context, arg *model.OverlordReq) (resp *model.OverlordResp, err error)
OverlordClusters .
func (*Service) OverlordToml ¶
OverlordToml return a toml file of cluster infos.
func (*Service) ReplaceOpsNode ¶
func (s *Service) ReplaceOpsNode(c context.Context, arg *model.OverlordReq) (resp *model.EmpResp, err error)
ReplaceOpsNode .
Click to show internal directories.
Click to hide internal directories.