forked from JointCloud/pcm-hpc
61 lines
1.3 KiB
Go
61 lines
1.3 KiB
Go
package config
|
|
|
|
import (
|
|
"github.com/zeromicro/go-zero/core/logx"
|
|
"github.com/zeromicro/go-zero/zrpc"
|
|
)
|
|
|
|
type Config struct {
|
|
zrpc.RpcServerConf
|
|
LogConf logx.LogConf
|
|
PcmCoreRpcConf zrpc.RpcClientConf
|
|
SlurmConf
|
|
}
|
|
|
|
type SSH struct {
|
|
Url string
|
|
Username string
|
|
Password string
|
|
}
|
|
|
|
type Path struct {
|
|
Job string
|
|
JobSubmit string
|
|
Jobs string
|
|
JobDb string
|
|
JobsDb string
|
|
User string
|
|
Users string
|
|
Partition string
|
|
Partitions string
|
|
Node string
|
|
Nodes string
|
|
Reservation string
|
|
Reservations string
|
|
Config string
|
|
Qos string
|
|
Tres string
|
|
Account string
|
|
Accounts string
|
|
Cluster string
|
|
Clusters string
|
|
Wckey string
|
|
Wckeys string
|
|
Diagnostics string
|
|
DiagnosticsDb string
|
|
Ping string
|
|
Association string
|
|
Associations string
|
|
}
|
|
|
|
// SlurmConf slurm 相关URL配置
|
|
type SlurmConf struct {
|
|
RestUrl string `json:"RestUrl"`
|
|
SvcType string `json:"SvcType"`
|
|
SSH SSH `json:"SSH"`
|
|
Path Path `json:"Path"`
|
|
SlurmRestUser string `json:"SlurmRestUser"`
|
|
SlurmToken string `json:"SlurmToken"`
|
|
SlurmStatus map[string]string `json:"SlurmStatus"`
|
|
}
|