service

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

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 New

func New(c *conf.Config) (s *Service)

New init

func (*Service) AddCluster

func (s *Service) AddCluster(c context.Context, req *model.AddClusterReq) (resp *model.EmpResp, err error)

AddCluster add new cluster.

func (*Service) Close

func (s *Service) Close()

Close Service

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

func (s *Service) OverlordToml(c context.Context, arg *model.OverlordReq) (resp []byte, err error)

OverlordToml return a toml file of cluster infos.

func (*Service) Ping

func (s *Service) Ping(c context.Context) (err error)

Ping Service

func (*Service) ReplaceOpsNode

func (s *Service) ReplaceOpsNode(c context.Context, arg *model.OverlordReq) (resp *model.EmpResp, err error)

ReplaceOpsNode .

func (*Service) Toml

func (s *Service) Toml(c context.Context, req *model.ClusterReq) (resp []byte, err error)

Toml return a toml file of cluster infos.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL