logic

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitCron

func InitCron(svc *svc.ServiceContext)

func JobCtoGo

func JobCtoGo(cStruct *C.struct_job_info) hpcTH.Job

func SlurmdbJobConvertCToGo

func SlurmdbJobConvertCToGo(cStructJob *C.slurmdb_job_rec_t) hpcTH.HistoryJob

Types

type ListHistoryJobLogic

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

func NewListHistoryJobLogic

func NewListHistoryJobLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListHistoryJobLogic

func (*ListHistoryJobLogic) ListHistoryJob

ListHistoryJob list all jobs from slurmdb

type ListJobLogic

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

func NewListJobLogic

func NewListJobLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListJobLogic

func (*ListJobLogic) ListJob

func (l *ListJobLogic) ListJob(in *hpcTH.ListJobReq) (*hpcTH.ListJobResp, error)

ListJob list all jobs

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(in *hpcTH.SubmitJobReq) (*hpcTH.SubmitJobResp, error)

Submit job

Jump to

Keyboard shortcuts

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