logic

package
v0.0.0-...-0c209f4 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StringToInt32

func StringToInt32(str string) int32

Types

type ApplyYamlLogic

type ApplyYamlLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewApplyYamlLogic

func NewApplyYamlLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ApplyYamlLogic

func (*ApplyYamlLogic) ApplyYaml

type DelAppLogic

type DelAppLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDelAppLogic

func NewDelAppLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DelAppLogic

func (*DelAppLogic) DelApp

删除App (sealos)

type DeleteDeploymentLogic

type DeleteDeploymentLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteDeploymentLogic

func NewDeleteDeploymentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteDeploymentLogic

func (*DeleteDeploymentLogic) DeleteDeployment

删除deployment

type DeleteYamlLogic

type DeleteYamlLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

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

type DeploymentDetailLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeploymentDetailLogic

func NewDeploymentDetailLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeploymentDetailLogic

func (*DeploymentDetailLogic) DeploymentDetail

type DetailDeploymentLogic

type DetailDeploymentLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDetailDeploymentLogic

func NewDetailDeploymentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DetailDeploymentLogic

func (*DetailDeploymentLogic) DetailDeployment

详情deployment

type GetAppByAppNameLogic

type GetAppByAppNameLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetAppByAppNameLogic

func NewGetAppByAppNameLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetAppByAppNameLogic

func (*GetAppByAppNameLogic) GetAppByAppName

获取应用

type GetAppDetailLogic

type GetAppDetailLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetAppDetailLogic

func NewGetAppDetailLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetAppDetailLogic

func (*GetAppDetailLogic) GetAppDetail

查询app详情

type GetAppPodsByAppNameLogic

type GetAppPodsByAppNameLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetAppPodsByAppNameLogic

func NewGetAppPodsByAppNameLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetAppPodsByAppNameLogic

func (*GetAppPodsByAppNameLogic) GetAppPodsByAppName

获取应用的Pod列表

type GetLogic

type GetLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

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

type JobDetailLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewJobDetailLogic

func NewJobDetailLogic(ctx context.Context, svcCtx *svc.ServiceContext) *JobDetailLogic

func (*JobDetailLogic) JobDetail

type ListDeploymentLogic

type ListDeploymentLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewListDeploymentLogic

func NewListDeploymentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListDeploymentLogic

func (*ListDeploymentLogic) ListDeployment

列表deployment

type ListLogic

type ListLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

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

type ListNamespaceLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewListNamespaceLogic

func NewListNamespaceLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListNamespaceLogic

func (*ListNamespaceLogic) ListNamespace

查询所有namespace输出转换为tenant (sealos)

type PauseDeploymentLogic

type PauseDeploymentLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewPauseDeploymentLogic

func NewPauseDeploymentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PauseDeploymentLogic

func (*PauseDeploymentLogic) PauseDeployment

暂停POD

type PodListLogic

type PodListLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewPodListLogic

func NewPodListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PodListLogic

func (*PodListLogic) PodList

type RestartDeploymentLogic

type RestartDeploymentLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewRestartDeploymentLogic

func NewRestartDeploymentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RestartDeploymentLogic

func (*RestartDeploymentLogic) RestartDeployment

重启deployment

type RestartStatefulSetLogic

type RestartStatefulSetLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewRestartStatefulSetLogic

func NewRestartStatefulSetLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RestartStatefulSetLogic

func (*RestartStatefulSetLogic) RestartStatefulSet

RestartStatefulSet 重启sts

type StartDeploymentLogic

type StartDeploymentLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewStartDeploymentLogic

func NewStartDeploymentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *StartDeploymentLogic

func (*StartDeploymentLogic) StartDeployment

启动deployment

type UpdateDeploymentReplicaLogic

type UpdateDeploymentReplicaLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUpdateDeploymentReplicaLogic

func NewUpdateDeploymentReplicaLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateDeploymentReplicaLogic

func (*UpdateDeploymentReplicaLogic) UpdateDeploymentReplica

更新应用实例数

Jump to

Keyboard shortcuts

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