Documentation ¶
Index ¶
- func CheckVmBasedProvider(ctx context.Context, runtime *runtimeclient.Runtime, ...) error
- func RegisterClusterNode(clusterNode *models.ClusterNode) error
- func RegisterClusterWrapper(clusterWrapper *models.ClusterWrapper) error
- func Serve(cfg *config.Config)
- type Frontgate
- func (f *Frontgate) ActivateFrontgate(frontgateId string) error
- func (f *Frontgate) CreateCluster(clusterWrapper *models.ClusterWrapper) (string, error)
- func (f *Frontgate) GetActiveFrontgate(clusterWrapper *models.ClusterWrapper) (*models.Cluster, error)
- func (f *Frontgate) GetFrontgate(frontgateId string) (*models.Cluster, error)
- func (f *Frontgate) RecoverCluster(frontgate *models.Cluster) error
- func (f *Frontgate) StartCluster(frontgate *models.Cluster) error
- type Server
- func (p *Server) AddClusterNodes(ctx context.Context, req *pb.AddClusterNodesRequest) (*pb.AddClusterNodesResponse, error)
- func (p *Server) AddTableClusterNodes(ctx context.Context, req *pb.AddTableClusterNodesRequest) (*pb_empty.Empty, error)
- func (p *Server) CeaseClusters(ctx context.Context, req *pb.CeaseClustersRequest) (*pb.CeaseClustersResponse, error)
- func (p *Server) Checker(ctx context.Context, req interface{}) error
- func (p *Server) CreateCluster(ctx context.Context, req *pb.CreateClusterRequest) (*pb.CreateClusterResponse, error)
- func (p *Server) DeleteClusterNodes(ctx context.Context, req *pb.DeleteClusterNodesRequest) (*pb.DeleteClusterNodesResponse, error)
- func (p *Server) DeleteClusters(ctx context.Context, req *pb.DeleteClustersRequest) (*pb.DeleteClustersResponse, error)
- func (p *Server) DeleteTableClusterNodes(ctx context.Context, req *pb.DeleteTableClusterNodesRequest) (*pb_empty.Empty, error)
- func (p *Server) DescribeClusterNodes(ctx context.Context, req *pb.DescribeClusterNodesRequest) (*pb.DescribeClusterNodesResponse, error)
- func (p *Server) DescribeClusters(ctx context.Context, req *pb.DescribeClustersRequest) (*pb.DescribeClustersResponse, error)
- func (p *Server) DescribeSubnets(ctx context.Context, req *pb.DescribeSubnetsRequest) (*pb.DescribeSubnetsResponse, error)
- func (p *Server) ModifyCluster(ctx context.Context, req *pb.ModifyClusterRequest) (*pb.ModifyClusterResponse, error)
- func (p *Server) ModifyClusterNode(ctx context.Context, req *pb.ModifyClusterNodeRequest) (*pb.ModifyClusterNodeResponse, error)
- func (p *Server) RecoverClusters(ctx context.Context, req *pb.RecoverClustersRequest) (*pb.RecoverClustersResponse, error)
- func (p *Server) ResizeCluster(ctx context.Context, req *pb.ResizeClusterRequest) (*pb.ResizeClusterResponse, error)
- func (p *Server) RollbackCluster(ctx context.Context, req *pb.RollbackClusterRequest) (*pb.RollbackClusterResponse, error)
- func (p *Server) StartClusters(ctx context.Context, req *pb.StartClustersRequest) (*pb.StartClustersResponse, error)
- func (p *Server) StopClusters(ctx context.Context, req *pb.StopClustersRequest) (*pb.StopClustersResponse, error)
- func (p *Server) UpdateClusterEnv(ctx context.Context, req *pb.UpdateClusterEnvRequest) (*pb.UpdateClusterEnvResponse, error)
- func (p *Server) UpgradeCluster(ctx context.Context, req *pb.UpgradeClusterRequest) (*pb.UpgradeClusterResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckVmBasedProvider ¶ added in v0.1.2
func CheckVmBasedProvider(ctx context.Context, runtime *runtimeclient.Runtime, providerInterface plugins.ProviderInterface, clusterWrapper *models.ClusterWrapper) error
func RegisterClusterNode ¶ added in v0.1.2
func RegisterClusterNode(clusterNode *models.ClusterNode) error
func RegisterClusterWrapper ¶ added in v0.1.2
func RegisterClusterWrapper(clusterWrapper *models.ClusterWrapper) error
Types ¶
type Frontgate ¶
type Frontgate struct {
Runtime *runtimeclient.Runtime
}
func (*Frontgate) ActivateFrontgate ¶
func (*Frontgate) CreateCluster ¶
func (f *Frontgate) CreateCluster(clusterWrapper *models.ClusterWrapper) (string, error)
func (*Frontgate) GetActiveFrontgate ¶
func (*Frontgate) GetFrontgate ¶
func (*Frontgate) RecoverCluster ¶
type Server ¶
type Server struct { }
func (*Server) AddClusterNodes ¶
func (p *Server) AddClusterNodes(ctx context.Context, req *pb.AddClusterNodesRequest) (*pb.AddClusterNodesResponse, error)
func (*Server) AddTableClusterNodes ¶
func (*Server) CeaseClusters ¶
func (p *Server) CeaseClusters(ctx context.Context, req *pb.CeaseClustersRequest) (*pb.CeaseClustersResponse, error)
func (*Server) CreateCluster ¶
func (p *Server) CreateCluster(ctx context.Context, req *pb.CreateClusterRequest) (*pb.CreateClusterResponse, error)
func (*Server) DeleteClusterNodes ¶
func (p *Server) DeleteClusterNodes(ctx context.Context, req *pb.DeleteClusterNodesRequest) (*pb.DeleteClusterNodesResponse, error)
func (*Server) DeleteClusters ¶
func (p *Server) DeleteClusters(ctx context.Context, req *pb.DeleteClustersRequest) (*pb.DeleteClustersResponse, error)
func (*Server) DeleteTableClusterNodes ¶
func (*Server) DescribeClusterNodes ¶
func (p *Server) DescribeClusterNodes(ctx context.Context, req *pb.DescribeClusterNodesRequest) (*pb.DescribeClusterNodesResponse, error)
func (*Server) DescribeClusters ¶
func (p *Server) DescribeClusters(ctx context.Context, req *pb.DescribeClustersRequest) (*pb.DescribeClustersResponse, error)
func (*Server) DescribeSubnets ¶
func (p *Server) DescribeSubnets(ctx context.Context, req *pb.DescribeSubnetsRequest) (*pb.DescribeSubnetsResponse, error)
func (*Server) ModifyCluster ¶
func (p *Server) ModifyCluster(ctx context.Context, req *pb.ModifyClusterRequest) (*pb.ModifyClusterResponse, error)
func (*Server) ModifyClusterNode ¶
func (p *Server) ModifyClusterNode(ctx context.Context, req *pb.ModifyClusterNodeRequest) (*pb.ModifyClusterNodeResponse, error)
func (*Server) RecoverClusters ¶
func (p *Server) RecoverClusters(ctx context.Context, req *pb.RecoverClustersRequest) (*pb.RecoverClustersResponse, error)
func (*Server) ResizeCluster ¶
func (p *Server) ResizeCluster(ctx context.Context, req *pb.ResizeClusterRequest) (*pb.ResizeClusterResponse, error)
func (*Server) RollbackCluster ¶
func (p *Server) RollbackCluster(ctx context.Context, req *pb.RollbackClusterRequest) (*pb.RollbackClusterResponse, error)
func (*Server) StartClusters ¶
func (p *Server) StartClusters(ctx context.Context, req *pb.StartClustersRequest) (*pb.StartClustersResponse, error)
func (*Server) StopClusters ¶
func (p *Server) StopClusters(ctx context.Context, req *pb.StopClustersRequest) (*pb.StopClustersResponse, error)
func (*Server) UpdateClusterEnv ¶
func (p *Server) UpdateClusterEnv(ctx context.Context, req *pb.UpdateClusterEnvRequest) (*pb.UpdateClusterEnvResponse, error)
func (*Server) UpgradeCluster ¶
func (p *Server) UpgradeCluster(ctx context.Context, req *pb.UpgradeClusterRequest) (*pb.UpgradeClusterResponse, error)
Click to show internal directories.
Click to hide internal directories.