apiserver

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKubeConfig

func GetKubeConfig(clusterName string, manager manager.Manager) ([]byte, error)

func GetMachineName

func GetMachineName(clusterName string, hostIp string, manager manager.Manager) (string, error)

func PrepareNodes

func PrepareNodes(in *pb.CreateClusterMsg) ([]byte, []byte, error)

func TranslateClusterStatus

func TranslateClusterStatus(crStatus common.ClusterStatusPhase) cmassh.ClusterStatus

Types

type Server

type Server struct {
	Manager manager.Manager
}

func (*Server) AdjustClusterNodes

func (s *Server) AdjustClusterNodes(ctx context.Context, in *pb.AdjustClusterMsg) (*pb.AdjustClusterReply, error)

func (*Server) CreateCluster

func (s *Server) CreateCluster(ctx context.Context, in *pb.CreateClusterMsg) (*pb.CreateClusterReply, error)

func (*Server) DeleteCluster

func (s *Server) DeleteCluster(ctx context.Context, in *pb.DeleteClusterMsg) (*pb.DeleteClusterReply, error)

func (*Server) GetCluster

func (s *Server) GetCluster(ctx context.Context, in *pb.GetClusterMsg) (*pb.GetClusterReply, error)

func (*Server) GetClusterList

func (s *Server) GetClusterList(ctx context.Context, in *pb.GetClusterListMsg) (reply *pb.GetClusterListReply, err error)

func (*Server) GetVersionInformation

func (s *Server) GetVersionInformation(ctx context.Context, in *pb.GetVersionMsg) (*pb.GetVersionReply, error)

func (*Server) UpgradeCluster

func (s *Server) UpgradeCluster(ctx context.Context, in *pb.UpgradeClusterMsg) (*pb.UpgradeClusterReply, error)

Jump to

Keyboard shortcuts

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