service

package
v0.0.0-...-2c90c11 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2022 License: MIT Imports: 14 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 {
	pb.UnimplementedProjectOpsServer
	// contains filtered or unexported fields
}

Service controll service.

func NewInClusterService

func NewInClusterService() (*Service, error)

New in-cluster 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.

Jump to

Keyboard shortcuts

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