Documentation
¶
Index ¶
- func StringToInt32(str string) int32
- type ApplyYamlLogic
- type DelAppLogic
- type DeleteDeploymentLogic
- type DeleteYamlLogic
- type DeploymentDetailLogic
- type DetailDeploymentLogic
- type GetAppByAppNameLogic
- type GetAppDetailLogic
- type GetAppPodsByAppNameLogic
- type GetLogic
- type JobDetailLogic
- type ListDeploymentLogic
- type ListLogic
- type ListNamespaceLogic
- type PauseDeploymentLogic
- type PodListLogic
- type RestartDeploymentLogic
- type RestartStatefulSetLogic
- type StartDeploymentLogic
- type UpdateDeploymentReplicaLogic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StringToInt32 ¶
Types ¶
type ApplyYamlLogic ¶
func NewApplyYamlLogic ¶
func NewApplyYamlLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ApplyYamlLogic
func (*ApplyYamlLogic) ApplyYaml ¶
func (l *ApplyYamlLogic) ApplyYaml(in *kubernetes.ApplyReq) (*kubernetes.ApplyResp, error)
type DelAppLogic ¶
func NewDelAppLogic ¶
func NewDelAppLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DelAppLogic
func (*DelAppLogic) DelApp ¶
func (l *DelAppLogic) DelApp(in *kubernetes.DeploymentDetailReq) (*kubernetes.Resp, error)
删除App (sealos)
type DeleteDeploymentLogic ¶
func NewDeleteDeploymentLogic ¶
func NewDeleteDeploymentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteDeploymentLogic
func (*DeleteDeploymentLogic) DeleteDeployment ¶
func (l *DeleteDeploymentLogic) DeleteDeployment(in *kubernetes.DeploymentDetailReq) (*kubernetes.Resp, error)
删除deployment
type DeleteYamlLogic ¶
func NewDeleteYamlLogic ¶
func NewDeleteYamlLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteYamlLogic
func (*DeleteYamlLogic) DeleteYaml ¶
func (l *DeleteYamlLogic) DeleteYaml(in *kubernetes.ApplyReq) (*kubernetes.Resp, error)
type DeploymentDetailLogic ¶
func NewDeploymentDetailLogic ¶
func NewDeploymentDetailLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeploymentDetailLogic
func (*DeploymentDetailLogic) DeploymentDetail ¶
func (l *DeploymentDetailLogic) DeploymentDetail(in *kubernetes.DeploymentDetailReq) (*kubernetes.DeploymentDetailResp, error)
type DetailDeploymentLogic ¶
func NewDetailDeploymentLogic ¶
func NewDetailDeploymentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DetailDeploymentLogic
func (*DetailDeploymentLogic) DetailDeployment ¶
func (l *DetailDeploymentLogic) DetailDeployment(in *kubernetes.DeploymentDetailReq) (*kubernetes.Resp, error)
详情deployment
type GetAppByAppNameLogic ¶
func NewGetAppByAppNameLogic ¶
func NewGetAppByAppNameLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetAppByAppNameLogic
func (*GetAppByAppNameLogic) GetAppByAppName ¶
func (l *GetAppByAppNameLogic) GetAppByAppName(in *kubernetes.DeploymentDetailReq) (*kubernetes.AppJsonResp, error)
获取应用
type GetAppDetailLogic ¶
func NewGetAppDetailLogic ¶
func NewGetAppDetailLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetAppDetailLogic
func (*GetAppDetailLogic) GetAppDetail ¶
func (l *GetAppDetailLogic) GetAppDetail(in *kubernetes.AppDetailReq) (*kubernetes.AppDetailResp, error)
查询app详情
type GetAppPodsByAppNameLogic ¶
func NewGetAppPodsByAppNameLogic ¶
func NewGetAppPodsByAppNameLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetAppPodsByAppNameLogic
func (*GetAppPodsByAppNameLogic) GetAppPodsByAppName ¶
func (l *GetAppPodsByAppNameLogic) GetAppPodsByAppName(in *kubernetes.AppDetailReq) (*kubernetes.PodDetailResp, error)
获取应用的Pod列表
type GetLogic ¶
func NewGetLogic ¶
func NewGetLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetLogic
func (*GetLogic) Get ¶
func (l *GetLogic) Get(in *kubernetes.GetReq) (*kubernetes.Resp, error)
type JobDetailLogic ¶
func NewJobDetailLogic ¶
func NewJobDetailLogic(ctx context.Context, svcCtx *svc.ServiceContext) *JobDetailLogic
func (*JobDetailLogic) JobDetail ¶
func (l *JobDetailLogic) JobDetail(in *kubernetes.JobDetailReq) (*kubernetes.JobDetailResp, error)
type ListDeploymentLogic ¶
func NewListDeploymentLogic ¶
func NewListDeploymentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListDeploymentLogic
func (*ListDeploymentLogic) ListDeployment ¶
func (l *ListDeploymentLogic) ListDeployment(in *kubernetes.DeploymentListReq) (*kubernetes.DeploymentListResp, error)
列表deployment
type ListLogic ¶
func NewListLogic ¶
func NewListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListLogic
func (*ListLogic) List ¶
func (l *ListLogic) List(in *kubernetes.ListReq) (*kubernetes.Resp, error)
type ListNamespaceLogic ¶
func NewListNamespaceLogic ¶
func NewListNamespaceLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListNamespaceLogic
func (*ListNamespaceLogic) ListNamespace ¶
func (l *ListNamespaceLogic) ListNamespace(in *kubernetes.NamespaceListReq) (*kubernetes.TenantListResp, error)
查询所有namespace输出转换为tenant (sealos)
type PauseDeploymentLogic ¶
func NewPauseDeploymentLogic ¶
func NewPauseDeploymentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PauseDeploymentLogic
func (*PauseDeploymentLogic) PauseDeployment ¶
func (l *PauseDeploymentLogic) PauseDeployment(in *kubernetes.DeploymentDetailReq) (*kubernetes.Resp, error)
暂停POD
type PodListLogic ¶
func NewPodListLogic ¶
func NewPodListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PodListLogic
func (*PodListLogic) PodList ¶
func (l *PodListLogic) PodList(in *kubernetes.PodListReq) (*kubernetes.ListPodResp, error)
type RestartDeploymentLogic ¶
func NewRestartDeploymentLogic ¶
func NewRestartDeploymentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RestartDeploymentLogic
func (*RestartDeploymentLogic) RestartDeployment ¶
func (l *RestartDeploymentLogic) RestartDeployment(in *kubernetes.DeploymentDetailReq) (*kubernetes.Resp, error)
重启deployment
type RestartStatefulSetLogic ¶
func NewRestartStatefulSetLogic ¶
func NewRestartStatefulSetLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RestartStatefulSetLogic
func (*RestartStatefulSetLogic) RestartStatefulSet ¶
func (l *RestartStatefulSetLogic) RestartStatefulSet(in *kubernetes.DeploymentDetailReq) (*kubernetes.Resp, error)
RestartStatefulSet 重启sts
type StartDeploymentLogic ¶
func NewStartDeploymentLogic ¶
func NewStartDeploymentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *StartDeploymentLogic
func (*StartDeploymentLogic) StartDeployment ¶
func (l *StartDeploymentLogic) StartDeployment(in *kubernetes.DeploymentDetailReq) (*kubernetes.Resp, error)
启动deployment
type UpdateDeploymentReplicaLogic ¶
func NewUpdateDeploymentReplicaLogic ¶
func NewUpdateDeploymentReplicaLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateDeploymentReplicaLogic
func (*UpdateDeploymentReplicaLogic) UpdateDeploymentReplica ¶
func (l *UpdateDeploymentReplicaLogic) UpdateDeploymentReplica(in *kubernetes.UpdateDeploymentReplicaReq) (*kubernetes.DeploymentResp, error)
更新应用实例数
Source Files
¶
- applyyamllogic.go
- delapplogic.go
- deletedeploymentlogic.go
- deleteyamllogic.go
- deploymentdetaillogic.go
- detaildeploymentlogic.go
- getappbyappnamelogic.go
- getappdetaillogic.go
- getapppodsbyappnamelogic.go
- getlogic.go
- jobdetaillogic.go
- listdeploymentlogic.go
- listlogic.go
- listnamespacelogic.go
- pausedeploymentlogic.go
- podlistlogic.go
- restartdeploymentlogic.go
- restartstatefulsetlogic.go
- startdeploymentlogic.go
- updatedeploymentreplicalogic.go
Click to show internal directories.
Click to hide internal directories.