core

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcComputingPower

type AcComputingPower struct {
}

func (AcComputingPower) GetComputing

func (cp AcComputingPower) GetComputing(l *GetComputingPowerLogic) float32

曙光账号算力

type DeploymentParam

type DeploymentParam struct {
	ClusterName []string         `json:"clusterName"`
	TemplateId  string           `json:"templateId"`
	Deployment  appv1.Deployment `json:"deployment"`
}

type GetComputingPowerLogic

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

func NewGetComputingPowerLogic

func NewGetComputingPowerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetComputingPowerLogic

func (*GetComputingPowerLogic) GetComputingPower

func (l *GetComputingPowerLogic) GetComputingPower() (resp *types.CpResp, err error)

type GetGeneralInfoLogic

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

func NewGetGeneralInfoLogic

func NewGetGeneralInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetGeneralInfoLogic

func (*GetGeneralInfoLogic) GetGeneralInfo

func (l *GetGeneralInfoLogic) GetGeneralInfo() (resp *types.GiResp, err error)

type GetRegionLogic

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

func NewGetRegionLogic

func NewGetRegionLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetRegionLogic

func (*GetRegionLogic) GetRegion

func (l *GetRegionLogic) GetRegion() (resp *types.GetRegionResp, err error)

type GetResourcePanelConfigLogic

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

func NewGetResourcePanelConfigLogic

func NewGetResourcePanelConfigLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetResourcePanelConfigLogic

func (*GetResourcePanelConfigLogic) GetResourcePanelConfig

func (l *GetResourcePanelConfigLogic) GetResourcePanelConfig() (resp *types.ResourcePanelConfigResp, err error)

type Job

type Job struct {
	TotalSize int     `json:"totalSize"`
	OtJobs    []OtJob `json:"otJobs"`
}

type JobTotalLogic

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

func NewJobTotalLogic

func NewJobTotalLogic(ctx context.Context, svcCtx *svc.ServiceContext) *JobTotalLogic

func (*JobTotalLogic) JobTotal

func (l *JobTotalLogic) JobTotal() (resp *types.JobTotalResp, err error)

type ListCenterLogic

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

func NewListCenterLogic

func NewListCenterLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListCenterLogic

func (*ListCenterLogic) ListCenter

func (l *ListCenterLogic) ListCenter() (*types.ListCenterResp, error)

type ListClusterLogic

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

func NewListClusterLogic

func NewListClusterLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListClusterLogic

func (*ListClusterLogic) ListCluster

type ListDomainResourceLogic

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

func NewListDomainResourceLogic

func NewListDomainResourceLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListDomainResourceLogic

func (*ListDomainResourceLogic) ListDomainResource

func (l *ListDomainResourceLogic) ListDomainResource() (resp *types.DomainResourceResp, err error)

type ListRegionLogic

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

func NewListRegionLogic

func NewListRegionLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListRegionLogic

func (*ListRegionLogic) ListRegion

func (l *ListRegionLogic) ListRegion() (resp *types.ListRegionResp, err error)

type OctopusComputingPower

type OctopusComputingPower struct {
}

func (OctopusComputingPower) GetComputing

启智章鱼资源算力

type OtJob

type OtJob struct {
	Name   string `json:"name"`
	Status string `json:"status"`
	Tasks  []Task `json:"tasks"`
}

type PutResourcePanelConfigLogic

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

func NewPutResourcePanelConfigLogic

func NewPutResourcePanelConfigLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PutResourcePanelConfigLogic

func (*PutResourcePanelConfigLogic) PutResourcePanelConfig

func (l *PutResourcePanelConfigLogic) PutResourcePanelConfig(req *types.ResourcePanelConfigReq) error

type ScheduleTaskByYamlLogic

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

func NewScheduleTaskByYamlLogic

func NewScheduleTaskByYamlLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ScheduleTaskByYamlLogic

func (*ScheduleTaskByYamlLogic) ScheduleTaskByYaml

func (l *ScheduleTaskByYamlLogic) ScheduleTaskByYaml(req *types.ScheduleTaskByYamlReq) error

type ScheduleTaskLogic

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

func NewScheduleTaskLogic

func NewScheduleTaskLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ScheduleTaskLogic

func (*ScheduleTaskLogic) ScheduleTask

func (l *ScheduleTaskLogic) ScheduleTask(req *types.ScheduleTaskReq) (err error)

type SubmitJobLogic

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

func NewSubmitJobLogic

func NewSubmitJobLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SubmitJobLogic

func (*SubmitJobLogic) SubmitJob

func (l *SubmitJobLogic) SubmitJob(req *types.SubmitJobReq) (resp *types.SubmitJobResp, err error)

type Task

type Task struct {
	CenterName []string `json:"centerName"`
}

type TaskListLogic

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

func NewTaskListLogic

func NewTaskListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *TaskListLogic

func (*TaskListLogic) TaskList

func (l *TaskListLogic) TaskList() (resp *types.TaskListResp, err error)

Jump to

Keyboard shortcuts

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