Documentation ¶
Index ¶
- Constants
- type CpuCoreLogic
- type CreateInstanceServiceLogic
- type DeleteJobLogic
- type DeleteTaskAiLogic
- type FileContentLogic
- type GetACClusterIdLogic
- type GetACTokenLogic
- type GetComputingPowerLogic
- type GetFileListLogic
- type GetFileLogic
- type GetGeneralInfoLogic
- type GetImageAiByIdLogic
- type GetImageListAiLogic
- type GetImageListLogic
- type GetInferUrlLogic
- type GetInstanceListAiLogic
- type GetInstanceLogLogic
- type GetInstanceServiceDetailLogic
- type GetInstanceServiceListLogic
- type GetJobDetailLogic
- type GetMemberJobsLogic
- type GetNodeResourcesLogic
- type GetPytorchTaskLogic
- type GetResourceSpecLogic
- type GetTensorflowTaskLogic
- type GetUserInfoLogic
- type HistoryJobDetailLogic
- type IsExistFileLogic
- type JobsLogic
- type ListHistoryJobLogic
- type ListJobLogic
- type ListJobManagerLogic
- type ParaStorQuotaLogic
- type QueryQueueDetailsLogic
- type QueryUserQuotasLimitLogic
- type QueueJobsLogic
- type SelectQueueByUserLogic
- type StartInstanceServiceLogic
- type StopInstanceServiceLogic
- type SubmitJobLogic
- type SubmitPytorchTaskLogic
- type SubmitTensorflowTaskLogic
- type UploadFileLogic
- type WallTimeLogic
Constants ¶
View Source
const ( ContentType = "Content-Type" ApplicationFromUrlencoded = "application/x-www-from-urlencoded" )
View Source
const ( EQUAL = "=" DCU = "dcu" PYTORCH = "Pytorch" TENSORFLOW = "Tensorflow" )
View Source
const (
PYTORCH_TASK = "pytorch"
)
View Source
const (
TENSORFLOW_TASK = "tensorflow"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CpuCoreLogic ¶
func NewCpuCoreLogic ¶
func NewCpuCoreLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CpuCoreLogic
func (*CpuCoreLogic) CpuCore ¶
func (l *CpuCoreLogic) CpuCore(in *hpcAC.CpuCoreReq) (*hpcAC.CpuCoreResp, error)
type CreateInstanceServiceLogic ¶
func NewCreateInstanceServiceLogic ¶
func NewCreateInstanceServiceLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateInstanceServiceLogic
func (*CreateInstanceServiceLogic) CreateInstanceService ¶
func (l *CreateInstanceServiceLogic) CreateInstanceService(in *hpcAC.CreateInstanceServiceReq) (*hpcAC.CreateInstanceServiceResp, error)
type DeleteJobLogic ¶
func NewDeleteJobLogic ¶
func NewDeleteJobLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteJobLogic
func (*DeleteJobLogic) DeleteJob ¶
func (l *DeleteJobLogic) DeleteJob(in *hpcAC.DeleteJobReq) (*hpcAC.DeleteJobResp, error)
DeleteJob delete job
type DeleteTaskAiLogic ¶
func NewDeleteTaskAiLogic ¶
func NewDeleteTaskAiLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteTaskAiLogic
func (*DeleteTaskAiLogic) DeleteTaskAi ¶
func (l *DeleteTaskAiLogic) DeleteTaskAi(in *hpcAC.DeleteTaskAiReq) (*hpcAC.DeleteTaskAiResp, error)
type FileContentLogic ¶
func NewFileContentLogic ¶
func NewFileContentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FileContentLogic
func (*FileContentLogic) FileContent ¶
func (l *FileContentLogic) FileContent(in *hpcAC.FileDataReq) (*hpcAC.FileContentResp, error)
FileContent 查看文件内容
type GetACClusterIdLogic ¶
func NewGetACClusterIdLogic ¶
func NewGetACClusterIdLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetACClusterIdLogic
func (*GetACClusterIdLogic) GetACClusterId ¶
func (l *GetACClusterIdLogic) GetACClusterId(in *hpcAC.ACClusterReq) (*hpcAC.ClusterResp, error)
GetACClusterId 曙光ac获取clusterid
type GetACTokenLogic ¶
func NewGetACTokenLogic ¶
func NewGetACTokenLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetACTokenLogic
func (*GetACTokenLogic) GetACToken ¶
func (l *GetACTokenLogic) GetACToken(in *hpcAC.ACTokenReq) (*hpcAC.TokenResp, error)
GetACToken 曙光ac获取token
type GetComputingPowerLogic ¶
func NewGetComputingPowerLogic ¶
func NewGetComputingPowerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetComputingPowerLogic
func (*GetComputingPowerLogic) GetComputingPower ¶
func (l *GetComputingPowerLogic) GetComputingPower(in *hpcAC.ResourceReq) (*hpcAC.CpResp, error)
获取曙光账号算力
type GetFileListLogic ¶
func NewGetFileListLogic ¶
func NewGetFileListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetFileListLogic
func (*GetFileListLogic) GetFileList ¶
func (l *GetFileListLogic) GetFileList(in *hpcAC.GetFileListReq) (*hpcAC.GetFileListResp, error)
曙光文件接口
type GetFileLogic ¶
func NewGetFileLogic ¶
func NewGetFileLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetFileLogic
func (*GetFileLogic) GetFile ¶
func (l *GetFileLogic) GetFile(in *hpcAC.GetFileReq) (*hpcAC.GetFileResp, error)
type GetGeneralInfoLogic ¶
func NewGetGeneralInfoLogic ¶
func NewGetGeneralInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetGeneralInfoLogic
func (*GetGeneralInfoLogic) GetGeneralInfo ¶
func (l *GetGeneralInfoLogic) GetGeneralInfo(in *hpcAC.ResourceReq) (*hpcAC.GiResp, error)
获取曙光账号cpu,内存,存储信息
type GetImageAiByIdLogic ¶
func NewGetImageAiByIdLogic ¶
func NewGetImageAiByIdLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetImageAiByIdLogic
func (*GetImageAiByIdLogic) GetImageAiById ¶
func (l *GetImageAiByIdLogic) GetImageAiById(in *hpcAC.GetImageAiByIdReq) (*hpcAC.GetImageAiByIdResp, error)
type GetImageListAiLogic ¶
func NewGetImageListAiLogic ¶
func NewGetImageListAiLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetImageListAiLogic
func (*GetImageListAiLogic) GetImageListAi ¶
func (l *GetImageListAiLogic) GetImageListAi(in *hpcAC.GetImageListAiReq) (*hpcAC.GetImageListAiResp, error)
type GetImageListLogic ¶
func NewGetImageListLogic ¶
func NewGetImageListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetImageListLogic
func (*GetImageListLogic) GetImageList ¶
func (l *GetImageListLogic) GetImageList(in *hpcAC.GetImageListReq) (*hpcAC.GetImageListResp, error)
type GetInferUrlLogic ¶
func NewGetInferUrlLogic ¶
func NewGetInferUrlLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetInferUrlLogic
func (*GetInferUrlLogic) GetInferUrl ¶
func (l *GetInferUrlLogic) GetInferUrl(in *hpcAC.GetInferUrlReq) (*hpcAC.GetInferUrlResp, error)
type GetInstanceListAiLogic ¶
func NewGetInstanceListAiLogic ¶
func NewGetInstanceListAiLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetInstanceListAiLogic
func (*GetInstanceListAiLogic) GetInstanceListAi ¶
func (l *GetInstanceListAiLogic) GetInstanceListAi(in *hpcAC.GetInstanceListReq) (*hpcAC.GetInstanceListResp, error)
type GetInstanceLogLogic ¶
func NewGetInstanceLogLogic ¶
func NewGetInstanceLogLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetInstanceLogLogic
func (*GetInstanceLogLogic) GetInstanceLog ¶
func (l *GetInstanceLogLogic) GetInstanceLog(in *hpcAC.GetInstanceLogReq) (*hpcAC.GetInstanceLogResp, error)
type GetInstanceServiceDetailLogic ¶
func NewGetInstanceServiceDetailLogic ¶
func NewGetInstanceServiceDetailLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetInstanceServiceDetailLogic
func (*GetInstanceServiceDetailLogic) GetInstanceServiceDetail ¶
func (l *GetInstanceServiceDetailLogic) GetInstanceServiceDetail(in *hpcAC.GetInstanceServiceDetailReq) (*hpcAC.GetInstanceServiceDetailResp, error)
type GetInstanceServiceListLogic ¶
func NewGetInstanceServiceListLogic ¶
func NewGetInstanceServiceListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetInstanceServiceListLogic
func (*GetInstanceServiceListLogic) GetInstanceServiceList ¶
func (l *GetInstanceServiceListLogic) GetInstanceServiceList(in *hpcAC.GetInstanceServiceListReq) (*hpcAC.GetInstanceServiceListResp, error)
type GetJobDetailLogic ¶
func NewGetJobDetailLogic ¶
func NewGetJobDetailLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetJobDetailLogic
func (*GetJobDetailLogic) GetJobDetail ¶
func (l *GetJobDetailLogic) GetJobDetail(in *hpcAC.JobDetailReq) (*hpcAC.GetJobDetailResp, error)
GetJobDetail get job detail
type GetMemberJobsLogic ¶
func NewGetMemberJobsLogic ¶
func NewGetMemberJobsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetMemberJobsLogic
func (*GetMemberJobsLogic) GetMemberJobs ¶
func (l *GetMemberJobsLogic) GetMemberJobs(in *hpcAC.GetMemberJobsReq) (*hpcAC.GetMemberJobsResp, error)
type GetNodeResourcesLogic ¶
func NewGetNodeResourcesLogic ¶
func NewGetNodeResourcesLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetNodeResourcesLogic
func (*GetNodeResourcesLogic) GetNodeResources ¶
func (l *GetNodeResourcesLogic) GetNodeResources(in *hpcAC.GetNodeResourcesReq) (*hpcAC.GetNodeResourcesResp, error)
获取节点资源限额
type GetPytorchTaskLogic ¶
func NewGetPytorchTaskLogic ¶
func NewGetPytorchTaskLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetPytorchTaskLogic
func (*GetPytorchTaskLogic) GetPytorchTask ¶
func (l *GetPytorchTaskLogic) GetPytorchTask(in *hpcAC.GetPytorchTaskReq) (*hpcAC.GetPytorchTaskResp, error)
type GetResourceSpecLogic ¶
func NewGetResourceSpecLogic ¶
func NewGetResourceSpecLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetResourceSpecLogic
func (*GetResourceSpecLogic) GetResourceSpec ¶
func (l *GetResourceSpecLogic) GetResourceSpec(in *hpcAC.GetResourceSpecReq) (*hpcAC.GetResourceSpecResp, error)
type GetTensorflowTaskLogic ¶
func NewGetTensorflowTaskLogic ¶
func NewGetTensorflowTaskLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetTensorflowTaskLogic
func (*GetTensorflowTaskLogic) GetTensorflowTask ¶
func (l *GetTensorflowTaskLogic) GetTensorflowTask(in *hpcAC.GetTensorflowTaskReq) (*hpcAC.GetTensorflowTaskResp, error)
type GetUserInfoLogic ¶
func NewGetUserInfoLogic ¶
func NewGetUserInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetUserInfoLogic
func (*GetUserInfoLogic) GetUserInfo ¶
func (l *GetUserInfoLogic) GetUserInfo(in *hpcAC.GetUserInfoReq) (*hpcAC.GetUserInfoResp, error)
用户资源
type HistoryJobDetailLogic ¶
func NewHistoryJobDetailLogic ¶
func NewHistoryJobDetailLogic(ctx context.Context, svcCtx *svc.ServiceContext) *HistoryJobDetailLogic
func (*HistoryJobDetailLogic) HistoryJobDetail ¶
func (l *HistoryJobDetailLogic) HistoryJobDetail(in *hpcAC.HistoryJobDetailReq) (*hpcAC.HistoryJobDetailResp, error)
type IsExistFileLogic ¶
func NewIsExistFileLogic ¶
func NewIsExistFileLogic(ctx context.Context, svcCtx *svc.ServiceContext) *IsExistFileLogic
func (*IsExistFileLogic) IsExistFile ¶
func (l *IsExistFileLogic) IsExistFile(in *hpcAC.IsExistFileReq) (*hpcAC.IsExistFileResp, error)
type JobsLogic ¶
func NewJobsLogic ¶
func NewJobsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *JobsLogic
type ListHistoryJobLogic ¶
func NewListHistoryJobLogic ¶
func NewListHistoryJobLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListHistoryJobLogic
func (*ListHistoryJobLogic) ListHistoryJob ¶
func (l *ListHistoryJobLogic) ListHistoryJob(in *hpcAC.ListHistoryJobReq) (*hpcAC.ListHistoryJobResp, error)
ListHistoryJob list all history jobs
type ListJobLogic ¶
func NewListJobLogic ¶
func NewListJobLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListJobLogic
func (*ListJobLogic) ListJob ¶
func (l *ListJobLogic) ListJob(in *hpcAC.ListJobReq) (*hpcAC.ListJobResp, error)
ListJob list all jobs
type ListJobManagerLogic ¶
func NewListJobManagerLogic ¶
func NewListJobManagerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListJobManagerLogic
func (*ListJobManagerLogic) ListJobManager ¶
func (l *ListJobManagerLogic) ListJobManager(in *hpcAC.JobManagerReq) (*hpcAC.ListJobManagerResp, error)
ListJobManager list all job managers
type ParaStorQuotaLogic ¶
func NewParaStorQuotaLogic ¶
func NewParaStorQuotaLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ParaStorQuotaLogic
func (*ParaStorQuotaLogic) ParaStorQuota ¶
func (l *ParaStorQuotaLogic) ParaStorQuota(in *hpcAC.ParaStorQuotaReq) (*hpcAC.ParaStorQuotaResp, error)
ParaStor Quota
type QueryQueueDetailsLogic ¶
func NewQueryQueueDetailsLogic ¶
func NewQueryQueueDetailsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *QueryQueueDetailsLogic
func (*QueryQueueDetailsLogic) QueryQueueDetails ¶
func (l *QueryQueueDetailsLogic) QueryQueueDetails(in *hpcAC.QueueReq) (*hpcAC.QueueDetailsResp, error)
QueryQueueDetails 查询队列资源详细信息
type QueryUserQuotasLimitLogic ¶
func NewQueryUserQuotasLimitLogic ¶
func NewQueryUserQuotasLimitLogic(ctx context.Context, svcCtx *svc.ServiceContext) *QueryUserQuotasLimitLogic
func (*QueryUserQuotasLimitLogic) QueryUserQuotasLimit ¶
func (l *QueryUserQuotasLimitLogic) QueryUserQuotasLimit(in *hpcAC.QueueReq) (*hpcAC.UserQuotasLimitResp, error)
QueryUserQuotasLimit 查询用户资源限制信息
type QueueJobsLogic ¶
func NewQueueJobsLogic ¶
func NewQueueJobsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *QueueJobsLogic
func (*QueueJobsLogic) QueueJobs ¶
func (l *QueueJobsLogic) QueueJobs(in *hpcAC.QueueJobsReq) (*hpcAC.QueueJobsResp, error)
QueueJobs
type SelectQueueByUserLogic ¶
func NewSelectQueueByUserLogic ¶
func NewSelectQueueByUserLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SelectQueueByUserLogic
func (*SelectQueueByUserLogic) SelectQueueByUser ¶
SelectQueueByUser 查询用户可访问队列列表
type StartInstanceServiceLogic ¶
func NewStartInstanceServiceLogic ¶
func NewStartInstanceServiceLogic(ctx context.Context, svcCtx *svc.ServiceContext) *StartInstanceServiceLogic
func (*StartInstanceServiceLogic) StartInstanceService ¶
func (l *StartInstanceServiceLogic) StartInstanceService(in *hpcAC.StartInstanceServiceReq) (*hpcAC.StartInstanceServiceResp, error)
type StopInstanceServiceLogic ¶
func NewStopInstanceServiceLogic ¶
func NewStopInstanceServiceLogic(ctx context.Context, svcCtx *svc.ServiceContext) *StopInstanceServiceLogic
func (*StopInstanceServiceLogic) StopInstanceService ¶
func (l *StopInstanceServiceLogic) StopInstanceService(in *hpcAC.StopInstanceServiceReq) (*hpcAC.StopInstanceServiceResp, error)
type SubmitJobLogic ¶
func NewSubmitJobLogic ¶
func NewSubmitJobLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SubmitJobLogic
func (*SubmitJobLogic) SubmitJob ¶
func (l *SubmitJobLogic) SubmitJob(in *hpcAC.SubmitJobReq) (*hpcAC.SubmitJobResp, error)
type SubmitPytorchTaskLogic ¶
func NewSubmitPytorchTaskLogic ¶
func NewSubmitPytorchTaskLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SubmitPytorchTaskLogic
func (*SubmitPytorchTaskLogic) SubmitPytorchTask ¶
func (l *SubmitPytorchTaskLogic) SubmitPytorchTask(in *hpcAC.SubmitPytorchTaskReq) (*hpcAC.SubmitTaskAiResp, error)
曙光智算接口
type SubmitTensorflowTaskLogic ¶
func NewSubmitTensorflowTaskLogic ¶
func NewSubmitTensorflowTaskLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SubmitTensorflowTaskLogic
func (*SubmitTensorflowTaskLogic) SubmitTensorflowTask ¶
func (l *SubmitTensorflowTaskLogic) SubmitTensorflowTask(in *hpcAC.SubmitTensorflowTaskReq) (*hpcAC.SubmitTaskAiResp, error)
type UploadFileLogic ¶
func NewUploadFileLogic ¶
func NewUploadFileLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UploadFileLogic
func (*UploadFileLogic) UploadFile ¶
func (l *UploadFileLogic) UploadFile(in *hpcAC.UploadFileReq) (*hpcAC.UploadFileResp, error)
type WallTimeLogic ¶
func NewWallTimeLogic ¶
func NewWallTimeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *WallTimeLogic
func (*WallTimeLogic) WallTime ¶
func (l *WallTimeLogic) WallTime(in *hpcAC.WallTimeReq) (*hpcAC.WallTimeResp, error)
Source Files ¶
- cpucorelogic.go
- createinstanceservicelogic.go
- deletejoblogic.go
- deletetaskailogic.go
- filecontentlogic.go
- getInferUrlLogic.go
- getInstanceListAiLogic.go
- getacclusteridlogic.go
- getactokenlogic.go
- getcomputingpowerlogic.go
- getfilelistlogic.go
- getfilelogic.go
- getgeneralinfologic.go
- getimageaibyidlogic.go
- getimagelistailogic.go
- getimagelistlogic.go
- getinstanceloglogic.go
- getinstanceservicedetaillogic.go
- getinstanceservicelistlogic.go
- getjobdetaillogic.go
- getmemberjobslogic.go
- getnoderesourceslogic.go
- getpytorchtasklogic.go
- getresourcespeclogic.go
- gettensorflowtasklogic.go
- getuserinfologic.go
- historyjobdetaillogic.go
- isexistfilelogic.go
- jobslogic.go
- listhistoryjoblogic.go
- listjoblogic.go
- listjobmanagerlogic.go
- parastorquotalogic.go
- queryqueuedetailslogic.go
- queryuserquotaslimitlogic.go
- queuejobslogic.go
- selectqueuebyuserlogic.go
- startinstanceservicelogic.go
- stopinstanceservicelogic.go
- submitjoblogic.go
- submitpytorchtasklogic.go
- submittensorflowtasklogic.go
- uploadfilelogic.go
- walltimelogic.go
Click to show internal directories.
Click to hide internal directories.