Documentation
¶
Index ¶
- type Service
- func (s *Service) CreateProject(ctx context.Context, req *pb.CreateProjectReq) (*model.CommonResp, error)
- func (s *Service) DeleteProject(ctx context.Context, req *pb.DeleteProjectReq) (*model.CommonResp, error)
- func (s *Service) DeleteService(ctx context.Context, req *pb.DeleteServiceReq) (*model.CommonResp, error)
- func (s *Service) GetService(ctx context.Context, req *pb.GetServiceReq) (*pb.GetServiceResp, error)
- func (s *Service) ListPods(ctx context.Context, req *pb.ListPodsReq) (*pb.ListPodsResp, error)
- func (s *Service) ListService(ctx context.Context, req *pb.ListServiceReq) (*pb.ListServiceResp, error)
- func (s *Service) SetService(ctx context.Context, req *pb.SetServiceReq) (*model.CommonResp, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { pb.UnimplementedProjectOpsServer // contains filtered or unexported fields }
Service controll service.
func (*Service) CreateProject ¶
func (s *Service) CreateProject(ctx context.Context, req *pb.CreateProjectReq) (*model.CommonResp, error)
CreateProject via k8s client-go (exactly, create a namespace).
func (*Service) DeleteProject ¶
func (s *Service) DeleteProject(ctx context.Context, req *pb.DeleteProjectReq) (*model.CommonResp, error)
DeleteProject via k8s client-go (exactly, delete a namespace). ATTENTION: Can delete only when no service under project.
func (*Service) DeleteService ¶
func (s *Service) DeleteService(ctx context.Context, req *pb.DeleteServiceReq) (*model.CommonResp, error)
func (*Service) GetService ¶
func (s *Service) GetService(ctx context.Context, req *pb.GetServiceReq) (*pb.GetServiceResp, error)
func (*Service) ListPods ¶
func (s *Service) ListPods(ctx context.Context, req *pb.ListPodsReq) (*pb.ListPodsResp, error)
func (*Service) ListService ¶
func (s *Service) ListService(ctx context.Context, req *pb.ListServiceReq) (*pb.ListServiceResp, error)
func (*Service) SetService ¶
func (s *Service) SetService(ctx context.Context, req *pb.SetServiceReq) (*model.CommonResp, error)
CreateService under a project. will create a svc & deployment under the given namespace.
Click to show internal directories.
Click to hide internal directories.