Documentation ¶
Index ¶
- type KubernetesServer
- func (s *KubernetesServer) ApplyYaml(ctx context.Context, in *kubernetes.ApplyReq) (*kubernetes.ApplyResp, error)
- func (s *KubernetesServer) DelApp(ctx context.Context, in *kubernetes.DeploymentDetailReq) (*kubernetes.Resp, error)
- func (s *KubernetesServer) DeleteDeployment(ctx context.Context, in *kubernetes.DeploymentDetailReq) (*kubernetes.Resp, error)
- func (s *KubernetesServer) DeleteYaml(ctx context.Context, in *kubernetes.ApplyReq) (*kubernetes.Resp, error)
- func (s *KubernetesServer) DeploymentDetail(ctx context.Context, in *kubernetes.DeploymentDetailReq) (*kubernetes.DeploymentDetailResp, error)
- func (s *KubernetesServer) Get(ctx context.Context, in *kubernetes.GetReq) (*kubernetes.Resp, error)
- func (s *KubernetesServer) GetAppByAppName(ctx context.Context, in *kubernetes.DeploymentDetailReq) (*kubernetes.AppJsonResp, error)
- func (s *KubernetesServer) GetAppDetail(ctx context.Context, in *kubernetes.AppDetailReq) (*kubernetes.AppDetailResp, error)
- func (s *KubernetesServer) GetAppPodsByAppName(ctx context.Context, in *kubernetes.AppDetailReq) (*kubernetes.PodDetailResp, error)
- func (s *KubernetesServer) JobDetail(ctx context.Context, in *kubernetes.JobDetailReq) (*kubernetes.JobDetailResp, error)
- func (s *KubernetesServer) List(ctx context.Context, in *kubernetes.ListReq) (*kubernetes.Resp, error)
- func (s *KubernetesServer) ListDeployment(ctx context.Context, in *kubernetes.DeploymentListReq) (*kubernetes.DeploymentListResp, error)
- func (s *KubernetesServer) ListNamespace(ctx context.Context, in *kubernetes.NamespaceListReq) (*kubernetes.TenantListResp, error)
- func (s *KubernetesServer) PauseDeployment(ctx context.Context, in *kubernetes.DeploymentDetailReq) (*kubernetes.Resp, error)
- func (s *KubernetesServer) PodList(ctx context.Context, in *kubernetes.PodListReq) (*kubernetes.ListPodResp, error)
- func (s *KubernetesServer) RestartDeployment(ctx context.Context, in *kubernetes.DeploymentDetailReq) (*kubernetes.Resp, error)
- func (s *KubernetesServer) RestartStatefulSet(ctx context.Context, in *kubernetes.DeploymentDetailReq) (*kubernetes.Resp, error)
- func (s *KubernetesServer) StartDeployment(ctx context.Context, in *kubernetes.DeploymentDetailReq) (*kubernetes.Resp, error)
- func (s *KubernetesServer) UpdateDeploymentReplica(ctx context.Context, in *kubernetes.UpdateDeploymentReplicaReq) (*kubernetes.DeploymentResp, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubernetesServer ¶
type KubernetesServer struct { kubernetes.UnimplementedKubernetesServer // contains filtered or unexported fields }
func NewKubernetesServer ¶
func NewKubernetesServer(svcCtx *svc.ServiceContext) *KubernetesServer
func (*KubernetesServer) ApplyYaml ¶
func (s *KubernetesServer) ApplyYaml(ctx context.Context, in *kubernetes.ApplyReq) (*kubernetes.ApplyResp, error)
func (*KubernetesServer) DelApp ¶
func (s *KubernetesServer) DelApp(ctx context.Context, in *kubernetes.DeploymentDetailReq) (*kubernetes.Resp, error)
删除App (sealos)
func (*KubernetesServer) DeleteDeployment ¶
func (s *KubernetesServer) DeleteDeployment(ctx context.Context, in *kubernetes.DeploymentDetailReq) (*kubernetes.Resp, error)
删除deployment
func (*KubernetesServer) DeleteYaml ¶
func (s *KubernetesServer) DeleteYaml(ctx context.Context, in *kubernetes.ApplyReq) (*kubernetes.Resp, error)
func (*KubernetesServer) DeploymentDetail ¶
func (s *KubernetesServer) DeploymentDetail(ctx context.Context, in *kubernetes.DeploymentDetailReq) (*kubernetes.DeploymentDetailResp, error)
func (*KubernetesServer) Get ¶
func (s *KubernetesServer) Get(ctx context.Context, in *kubernetes.GetReq) (*kubernetes.Resp, error)
func (*KubernetesServer) GetAppByAppName ¶
func (s *KubernetesServer) GetAppByAppName(ctx context.Context, in *kubernetes.DeploymentDetailReq) (*kubernetes.AppJsonResp, error)
获取应用
func (*KubernetesServer) GetAppDetail ¶
func (s *KubernetesServer) GetAppDetail(ctx context.Context, in *kubernetes.AppDetailReq) (*kubernetes.AppDetailResp, error)
查询app详情
func (*KubernetesServer) GetAppPodsByAppName ¶
func (s *KubernetesServer) GetAppPodsByAppName(ctx context.Context, in *kubernetes.AppDetailReq) (*kubernetes.PodDetailResp, error)
获取应用的Pod
func (*KubernetesServer) JobDetail ¶
func (s *KubernetesServer) JobDetail(ctx context.Context, in *kubernetes.JobDetailReq) (*kubernetes.JobDetailResp, error)
func (*KubernetesServer) List ¶
func (s *KubernetesServer) List(ctx context.Context, in *kubernetes.ListReq) (*kubernetes.Resp, error)
func (*KubernetesServer) ListDeployment ¶
func (s *KubernetesServer) ListDeployment(ctx context.Context, in *kubernetes.DeploymentListReq) (*kubernetes.DeploymentListResp, error)
列表deployment
func (*KubernetesServer) ListNamespace ¶
func (s *KubernetesServer) ListNamespace(ctx context.Context, in *kubernetes.NamespaceListReq) (*kubernetes.TenantListResp, error)
查询所有namespace输出转换为tenant (sealos)
func (*KubernetesServer) PauseDeployment ¶
func (s *KubernetesServer) PauseDeployment(ctx context.Context, in *kubernetes.DeploymentDetailReq) (*kubernetes.Resp, error)
暂停POD
func (*KubernetesServer) PodList ¶
func (s *KubernetesServer) PodList(ctx context.Context, in *kubernetes.PodListReq) (*kubernetes.ListPodResp, error)
func (*KubernetesServer) RestartDeployment ¶
func (s *KubernetesServer) RestartDeployment(ctx context.Context, in *kubernetes.DeploymentDetailReq) (*kubernetes.Resp, error)
重启deployment
func (*KubernetesServer) RestartStatefulSet ¶
func (s *KubernetesServer) RestartStatefulSet(ctx context.Context, in *kubernetes.DeploymentDetailReq) (*kubernetes.Resp, error)
重启sts
func (*KubernetesServer) StartDeployment ¶
func (s *KubernetesServer) StartDeployment(ctx context.Context, in *kubernetes.DeploymentDetailReq) (*kubernetes.Resp, error)
启动deployment
func (*KubernetesServer) UpdateDeploymentReplica ¶
func (s *KubernetesServer) UpdateDeploymentReplica(ctx context.Context, in *kubernetes.UpdateDeploymentReplicaReq) (*kubernetes.DeploymentResp, error)
更新应用实例数
Click to show internal directories.
Click to hide internal directories.