add/delete user

This commit is contained in:
zhouqunjie 2022-11-12 01:29:51 -08:00
parent 2500395ddf
commit 69ea34a890
31 changed files with 124 additions and 7769 deletions

View File

@ -1,323 +0,0 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc (unknown)
// source: idl/node.proto
package slurmpb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type ListNodesReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
SlurmVersion SlurmVersion `protobuf:"varint,1,opt,name=slurm_version,json=slurmVersion,proto3,enum=slurm.SlurmVersion" json:"slurm_version,omitempty"`
}
func (x *ListNodesReq) Reset() {
*x = ListNodesReq{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_node_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListNodesReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListNodesReq) ProtoMessage() {}
func (x *ListNodesReq) ProtoReflect() protoreflect.Message {
mi := &file_idl_node_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListNodesReq.ProtoReflect.Descriptor instead.
func (*ListNodesReq) Descriptor() ([]byte, []int) {
return file_idl_node_proto_rawDescGZIP(), []int{0}
}
func (x *ListNodesReq) GetSlurmVersion() SlurmVersion {
if x != nil {
return x.SlurmVersion
}
return SlurmVersion_tianhe
}
type NodeInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Boards int32 `protobuf:"varint,1,opt,name=boards,proto3" json:"boards,omitempty"`
Cpus int32 `protobuf:"varint,2,opt,name=cpus,proto3" json:"cpus,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
RealMemory int32 `protobuf:"varint,4,opt,name=real_memory,json=realMemory,proto3" json:"real_memory,omitempty"`
Sockets int32 `protobuf:"varint,5,opt,name=sockets,proto3" json:"sockets,omitempty"`
Threads int32 `protobuf:"varint,6,opt,name=threads,proto3" json:"threads,omitempty"`
}
func (x *NodeInfo) Reset() {
*x = NodeInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_node_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NodeInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NodeInfo) ProtoMessage() {}
func (x *NodeInfo) ProtoReflect() protoreflect.Message {
mi := &file_idl_node_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NodeInfo.ProtoReflect.Descriptor instead.
func (*NodeInfo) Descriptor() ([]byte, []int) {
return file_idl_node_proto_rawDescGZIP(), []int{1}
}
func (x *NodeInfo) GetBoards() int32 {
if x != nil {
return x.Boards
}
return 0
}
func (x *NodeInfo) GetCpus() int32 {
if x != nil {
return x.Cpus
}
return 0
}
func (x *NodeInfo) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *NodeInfo) GetRealMemory() int32 {
if x != nil {
return x.RealMemory
}
return 0
}
func (x *NodeInfo) GetSockets() int32 {
if x != nil {
return x.Sockets
}
return 0
}
func (x *NodeInfo) GetThreads() int32 {
if x != nil {
return x.Threads
}
return 0
}
type ListNodesResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
NodeInfos []*NodeInfo `protobuf:"bytes,1,rep,name=node_infos,json=nodeInfos,proto3" json:"node_infos,omitempty"`
}
func (x *ListNodesResp) Reset() {
*x = ListNodesResp{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_node_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListNodesResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListNodesResp) ProtoMessage() {}
func (x *ListNodesResp) ProtoReflect() protoreflect.Message {
mi := &file_idl_node_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListNodesResp.ProtoReflect.Descriptor instead.
func (*ListNodesResp) Descriptor() ([]byte, []int) {
return file_idl_node_proto_rawDescGZIP(), []int{2}
}
func (x *ListNodesResp) GetNodeInfos() []*NodeInfo {
if x != nil {
return x.NodeInfos
}
return nil
}
var File_idl_node_proto protoreflect.FileDescriptor
var file_idl_node_proto_rawDesc = []byte{
0x0a, 0x0e, 0x69, 0x64, 0x6c, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x05, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x1a, 0x10, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x74, 0x61,
0x74, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x48, 0x0a, 0x0c, 0x4c, 0x69, 0x73,
0x74, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x71, 0x12, 0x38, 0x0a, 0x0d, 0x73, 0x6c, 0x75,
0x72, 0x6d, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
0x32, 0x13, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x53, 0x6c, 0x75, 0x72, 0x6d, 0x56, 0x65,
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x56, 0x65, 0x72, 0x73,
0x69, 0x6f, 0x6e, 0x22, 0x9f, 0x01, 0x0a, 0x08, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f,
0x12, 0x16, 0x0a, 0x06, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
0x52, 0x06, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x70, 0x75, 0x73,
0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x70, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04,
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x61, 0x6c, 0x5f, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x18,
0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x72, 0x65, 0x61, 0x6c, 0x4d, 0x65, 0x6d, 0x6f, 0x72,
0x79, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01,
0x28, 0x05, 0x52, 0x07, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x74,
0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x74, 0x68,
0x72, 0x65, 0x61, 0x64, 0x73, 0x22, 0x3f, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x6f, 0x64,
0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2e, 0x0a, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69,
0x6e, 0x66, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x73, 0x6c, 0x75,
0x72, 0x6d, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x6e, 0x6f, 0x64,
0x65, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x42, 0x0a, 0x5a, 0x08, 0x2f, 0x73, 0x6c, 0x75, 0x72, 0x6d,
0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_idl_node_proto_rawDescOnce sync.Once
file_idl_node_proto_rawDescData = file_idl_node_proto_rawDesc
)
func file_idl_node_proto_rawDescGZIP() []byte {
file_idl_node_proto_rawDescOnce.Do(func() {
file_idl_node_proto_rawDescData = protoimpl.X.CompressGZIP(file_idl_node_proto_rawDescData)
})
return file_idl_node_proto_rawDescData
}
var file_idl_node_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_idl_node_proto_goTypes = []interface{}{
(*ListNodesReq)(nil), // 0: slurm.ListNodesReq
(*NodeInfo)(nil), // 1: slurm.NodeInfo
(*ListNodesResp)(nil), // 2: slurm.ListNodesResp
(SlurmVersion)(0), // 3: slurm.SlurmVersion
}
var file_idl_node_proto_depIdxs = []int32{
3, // 0: slurm.ListNodesReq.slurm_version:type_name -> slurm.SlurmVersion
1, // 1: slurm.ListNodesResp.node_infos:type_name -> slurm.NodeInfo
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_idl_node_proto_init() }
func file_idl_node_proto_init() {
if File_idl_node_proto != nil {
return
}
file_idl_static_proto_init()
if !protoimpl.UnsafeEnabled {
file_idl_node_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListNodesReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_idl_node_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*NodeInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_idl_node_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListNodesResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_idl_node_proto_rawDesc,
NumEnums: 0,
NumMessages: 3,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_idl_node_proto_goTypes,
DependencyIndexes: file_idl_node_proto_depIdxs,
MessageInfos: file_idl_node_proto_msgTypes,
}.Build()
File_idl_node_proto = out.File
file_idl_node_proto_rawDesc = nil
file_idl_node_proto_goTypes = nil
file_idl_node_proto_depIdxs = nil
}

View File

@ -1,164 +0,0 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc (unknown)
// source: idl/slurm.proto
package slurmpb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
var File_idl_slurm_proto protoreflect.FileDescriptor
var file_idl_slurm_proto_rawDesc = []byte{
0x0a, 0x0f, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x12, 0x05, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x1a, 0x0e, 0x69, 0x64, 0x6c, 0x2f, 0x6e, 0x6f,
0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x6c,
0x75, 0x72, 0x6d, 0x64, 0x62, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x1a, 0x17, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x64, 0x62, 0x5f, 0x61, 0x73,
0x73, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x69, 0x64, 0x6c, 0x2f, 0x73,
0x6c, 0x75, 0x72, 0x6d, 0x64, 0x62, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x64,
0x62, 0x5f, 0x71, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x69, 0x64, 0x6c,
0x2f, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x64, 0x62, 0x5f, 0x77, 0x63, 0x6b, 0x65, 0x79, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x32, 0xac, 0x05, 0x0a, 0x0c, 0x53, 0x6c, 0x75, 0x72, 0x6d, 0x53, 0x65,
0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65,
0x72, 0x73, 0x12, 0x13, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55,
0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e,
0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x30, 0x0a,
0x07, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x12, 0x11, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d,
0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e, 0x73, 0x6c,
0x75, 0x72, 0x6d, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12,
0x4b, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x4c, 0x69, 0x73, 0x74,
0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x1a,
0x1b, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x73, 0x73, 0x6f,
0x63, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x45, 0x0a, 0x0e,
0x47, 0x65, 0x74, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18,
0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x19, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d,
0x2e, 0x47, 0x65, 0x74, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
0x65, 0x73, 0x70, 0x12, 0x3f, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75,
0x6e, 0x74, 0x73, 0x12, 0x16, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x4c, 0x69, 0x73, 0x74,
0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x73, 0x6c,
0x75, 0x72, 0x6d, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
0x52, 0x65, 0x73, 0x70, 0x12, 0x39, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75,
0x6e, 0x74, 0x12, 0x14, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d,
0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12,
0x39, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x2e,
0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x41, 0x64, 0x64, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x41, 0x64, 0x64, 0x41,
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x42, 0x0a, 0x0d, 0x44, 0x65,
0x6c, 0x65, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x17, 0x2e, 0x73, 0x6c,
0x75, 0x72, 0x6d, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e,
0x74, 0x52, 0x65, 0x71, 0x1a, 0x18, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x44, 0x65, 0x6c,
0x65, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x33,
0x0a, 0x08, 0x4c, 0x69, 0x73, 0x74, 0x51, 0x6f, 0x73, 0x73, 0x12, 0x12, 0x2e, 0x73, 0x6c, 0x75,
0x72, 0x6d, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x51, 0x6f, 0x73, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x13,
0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x51, 0x6f, 0x73, 0x73, 0x52,
0x65, 0x73, 0x70, 0x12, 0x39, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x63, 0x6b, 0x65, 0x79,
0x73, 0x12, 0x14, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x63,
0x6b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e,
0x4c, 0x69, 0x73, 0x74, 0x57, 0x63, 0x6b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x33,
0x0a, 0x08, 0x47, 0x65, 0x74, 0x57, 0x63, 0x6b, 0x65, 0x79, 0x12, 0x12, 0x2e, 0x73, 0x6c, 0x75,
0x72, 0x6d, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x63, 0x6b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x13,
0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x63, 0x6b, 0x65, 0x79, 0x52,
0x65, 0x73, 0x70, 0x42, 0x0a, 0x5a, 0x08, 0x2f, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x70, 0x62, 0x62,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var file_idl_slurm_proto_goTypes = []interface{}{
(*ListUsersReq)(nil), // 0: slurm.ListUsersReq
(*GetUserReq)(nil), // 1: slurm.GetUserReq
(*ListAssociationsReq)(nil), // 2: slurm.ListAssociationsReq
(*GetAssociationReq)(nil), // 3: slurm.GetAssociationReq
(*ListAccountsReq)(nil), // 4: slurm.ListAccountsReq
(*GetAccountReq)(nil), // 5: slurm.GetAccountReq
(*AddAccountReq)(nil), // 6: slurm.AddAccountReq
(*DeleteAccountReq)(nil), // 7: slurm.DeleteAccountReq
(*ListQossReq)(nil), // 8: slurm.ListQossReq
(*ListWckeysReq)(nil), // 9: slurm.ListWckeysReq
(*GetWckeyReq)(nil), // 10: slurm.GetWckeyReq
(*ListUsersResp)(nil), // 11: slurm.ListUsersResp
(*GetUserResp)(nil), // 12: slurm.GetUserResp
(*ListAssociationsResp)(nil), // 13: slurm.ListAssociationsResp
(*GetAssociationResp)(nil), // 14: slurm.GetAssociationResp
(*ListAccountsResp)(nil), // 15: slurm.ListAccountsResp
(*GetAccountResp)(nil), // 16: slurm.GetAccountResp
(*AddAccountResp)(nil), // 17: slurm.AddAccountResp
(*DeleteAccountResp)(nil), // 18: slurm.DeleteAccountResp
(*ListQossResp)(nil), // 19: slurm.ListQossResp
(*ListWckeysResp)(nil), // 20: slurm.ListWckeysResp
(*GetWckeyResp)(nil), // 21: slurm.GetWckeyResp
}
var file_idl_slurm_proto_depIdxs = []int32{
0, // 0: slurm.SlurmService.ListUsers:input_type -> slurm.ListUsersReq
1, // 1: slurm.SlurmService.GetUser:input_type -> slurm.GetUserReq
2, // 2: slurm.SlurmService.ListAssociations:input_type -> slurm.ListAssociationsReq
3, // 3: slurm.SlurmService.GetAssociation:input_type -> slurm.GetAssociationReq
4, // 4: slurm.SlurmService.ListAccounts:input_type -> slurm.ListAccountsReq
5, // 5: slurm.SlurmService.GetAccount:input_type -> slurm.GetAccountReq
6, // 6: slurm.SlurmService.AddAccount:input_type -> slurm.AddAccountReq
7, // 7: slurm.SlurmService.DeleteAccount:input_type -> slurm.DeleteAccountReq
8, // 8: slurm.SlurmService.ListQoss:input_type -> slurm.ListQossReq
9, // 9: slurm.SlurmService.ListWckeys:input_type -> slurm.ListWckeysReq
10, // 10: slurm.SlurmService.GetWckey:input_type -> slurm.GetWckeyReq
11, // 11: slurm.SlurmService.ListUsers:output_type -> slurm.ListUsersResp
12, // 12: slurm.SlurmService.GetUser:output_type -> slurm.GetUserResp
13, // 13: slurm.SlurmService.ListAssociations:output_type -> slurm.ListAssociationsResp
14, // 14: slurm.SlurmService.GetAssociation:output_type -> slurm.GetAssociationResp
15, // 15: slurm.SlurmService.ListAccounts:output_type -> slurm.ListAccountsResp
16, // 16: slurm.SlurmService.GetAccount:output_type -> slurm.GetAccountResp
17, // 17: slurm.SlurmService.AddAccount:output_type -> slurm.AddAccountResp
18, // 18: slurm.SlurmService.DeleteAccount:output_type -> slurm.DeleteAccountResp
19, // 19: slurm.SlurmService.ListQoss:output_type -> slurm.ListQossResp
20, // 20: slurm.SlurmService.ListWckeys:output_type -> slurm.ListWckeysResp
21, // 21: slurm.SlurmService.GetWckey:output_type -> slurm.GetWckeyResp
11, // [11:22] is the sub-list for method output_type
0, // [0:11] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_idl_slurm_proto_init() }
func file_idl_slurm_proto_init() {
if File_idl_slurm_proto != nil {
return
}
file_idl_node_proto_init()
file_idl_slurmdb_user_proto_init()
file_idl_slurmdb_assoc_proto_init()
file_idl_slurmdb_account_proto_init()
file_idl_slurmdb_qos_proto_init()
file_idl_slurmdb_wckey_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_idl_slurm_proto_rawDesc,
NumEnums: 0,
NumMessages: 0,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_idl_slurm_proto_goTypes,
DependencyIndexes: file_idl_slurm_proto_depIdxs,
}.Build()
File_idl_slurm_proto = out.File
file_idl_slurm_proto_rawDesc = nil
file_idl_slurm_proto_goTypes = nil
file_idl_slurm_proto_depIdxs = nil
}

File diff suppressed because it is too large Load Diff

View File

@ -1,487 +0,0 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc (unknown)
// source: idl/slurm.proto
package slurmpb
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
// SlurmServiceClient is the client API for SlurmService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type SlurmServiceClient interface {
// list all users from slurmdb
ListUsers(ctx context.Context, in *ListUsersReq, opts ...grpc.CallOption) (*ListUsersResp, error)
// get specific user info from slurmdb
GetUser(ctx context.Context, in *GetUserReq, opts ...grpc.CallOption) (*GetUserResp, error)
// list all associations from slurmdb
ListAssociations(ctx context.Context, in *ListAssociationsReq, opts ...grpc.CallOption) (*ListAssociationsResp, error)
// get specific association info from slurmdb
GetAssociation(ctx context.Context, in *GetAssociationReq, opts ...grpc.CallOption) (*GetAssociationResp, error)
// list all accounts info from slurmdb
ListAccounts(ctx context.Context, in *ListAccountsReq, opts ...grpc.CallOption) (*ListAccountsResp, error)
// get specific account info from slurmdb
GetAccount(ctx context.Context, in *GetAccountReq, opts ...grpc.CallOption) (*GetAccountResp, error)
// add account
AddAccount(ctx context.Context, in *AddAccountReq, opts ...grpc.CallOption) (*AddAccountResp, error)
// delete account
DeleteAccount(ctx context.Context, in *DeleteAccountReq, opts ...grpc.CallOption) (*DeleteAccountResp, error)
// list all qos info from slurmdb
ListQoss(ctx context.Context, in *ListQossReq, opts ...grpc.CallOption) (*ListQossResp, error)
// list all wckeys info from slurmdb
ListWckeys(ctx context.Context, in *ListWckeysReq, opts ...grpc.CallOption) (*ListWckeysResp, error)
// get specific wckey info from slurmdb
GetWckey(ctx context.Context, in *GetWckeyReq, opts ...grpc.CallOption) (*GetWckeyResp, error)
}
type slurmServiceClient struct {
cc grpc.ClientConnInterface
}
func NewSlurmServiceClient(cc grpc.ClientConnInterface) SlurmServiceClient {
return &slurmServiceClient{cc}
}
func (c *slurmServiceClient) ListUsers(ctx context.Context, in *ListUsersReq, opts ...grpc.CallOption) (*ListUsersResp, error) {
out := new(ListUsersResp)
err := c.cc.Invoke(ctx, "/slurm.SlurmService/ListUsers", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *slurmServiceClient) GetUser(ctx context.Context, in *GetUserReq, opts ...grpc.CallOption) (*GetUserResp, error) {
out := new(GetUserResp)
err := c.cc.Invoke(ctx, "/slurm.SlurmService/GetUser", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *slurmServiceClient) ListAssociations(ctx context.Context, in *ListAssociationsReq, opts ...grpc.CallOption) (*ListAssociationsResp, error) {
out := new(ListAssociationsResp)
err := c.cc.Invoke(ctx, "/slurm.SlurmService/ListAssociations", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *slurmServiceClient) GetAssociation(ctx context.Context, in *GetAssociationReq, opts ...grpc.CallOption) (*GetAssociationResp, error) {
out := new(GetAssociationResp)
err := c.cc.Invoke(ctx, "/slurm.SlurmService/GetAssociation", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *slurmServiceClient) ListAccounts(ctx context.Context, in *ListAccountsReq, opts ...grpc.CallOption) (*ListAccountsResp, error) {
out := new(ListAccountsResp)
err := c.cc.Invoke(ctx, "/slurm.SlurmService/ListAccounts", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *slurmServiceClient) GetAccount(ctx context.Context, in *GetAccountReq, opts ...grpc.CallOption) (*GetAccountResp, error) {
out := new(GetAccountResp)
err := c.cc.Invoke(ctx, "/slurm.SlurmService/GetAccount", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *slurmServiceClient) AddAccount(ctx context.Context, in *AddAccountReq, opts ...grpc.CallOption) (*AddAccountResp, error) {
out := new(AddAccountResp)
err := c.cc.Invoke(ctx, "/slurm.SlurmService/AddAccount", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *slurmServiceClient) DeleteAccount(ctx context.Context, in *DeleteAccountReq, opts ...grpc.CallOption) (*DeleteAccountResp, error) {
out := new(DeleteAccountResp)
err := c.cc.Invoke(ctx, "/slurm.SlurmService/DeleteAccount", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *slurmServiceClient) ListQoss(ctx context.Context, in *ListQossReq, opts ...grpc.CallOption) (*ListQossResp, error) {
out := new(ListQossResp)
err := c.cc.Invoke(ctx, "/slurm.SlurmService/ListQoss", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *slurmServiceClient) ListWckeys(ctx context.Context, in *ListWckeysReq, opts ...grpc.CallOption) (*ListWckeysResp, error) {
out := new(ListWckeysResp)
err := c.cc.Invoke(ctx, "/slurm.SlurmService/ListWckeys", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *slurmServiceClient) GetWckey(ctx context.Context, in *GetWckeyReq, opts ...grpc.CallOption) (*GetWckeyResp, error) {
out := new(GetWckeyResp)
err := c.cc.Invoke(ctx, "/slurm.SlurmService/GetWckey", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// SlurmServiceServer is the server API for SlurmService service.
// All implementations must embed UnimplementedSlurmServiceServer
// for forward compatibility
type SlurmServiceServer interface {
// list all users from slurmdb
ListUsers(context.Context, *ListUsersReq) (*ListUsersResp, error)
// get specific user info from slurmdb
GetUser(context.Context, *GetUserReq) (*GetUserResp, error)
// list all associations from slurmdb
ListAssociations(context.Context, *ListAssociationsReq) (*ListAssociationsResp, error)
// get specific association info from slurmdb
GetAssociation(context.Context, *GetAssociationReq) (*GetAssociationResp, error)
// list all accounts info from slurmdb
ListAccounts(context.Context, *ListAccountsReq) (*ListAccountsResp, error)
// get specific account info from slurmdb
GetAccount(context.Context, *GetAccountReq) (*GetAccountResp, error)
// add account
AddAccount(context.Context, *AddAccountReq) (*AddAccountResp, error)
// delete account
DeleteAccount(context.Context, *DeleteAccountReq) (*DeleteAccountResp, error)
// list all qos info from slurmdb
ListQoss(context.Context, *ListQossReq) (*ListQossResp, error)
// list all wckeys info from slurmdb
ListWckeys(context.Context, *ListWckeysReq) (*ListWckeysResp, error)
// get specific wckey info from slurmdb
GetWckey(context.Context, *GetWckeyReq) (*GetWckeyResp, error)
mustEmbedUnimplementedSlurmServiceServer()
}
// UnimplementedSlurmServiceServer must be embedded to have forward compatible implementations.
type UnimplementedSlurmServiceServer struct {
}
func (UnimplementedSlurmServiceServer) ListUsers(context.Context, *ListUsersReq) (*ListUsersResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListUsers not implemented")
}
func (UnimplementedSlurmServiceServer) GetUser(context.Context, *GetUserReq) (*GetUserResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented")
}
func (UnimplementedSlurmServiceServer) ListAssociations(context.Context, *ListAssociationsReq) (*ListAssociationsResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListAssociations not implemented")
}
func (UnimplementedSlurmServiceServer) GetAssociation(context.Context, *GetAssociationReq) (*GetAssociationResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetAssociation not implemented")
}
func (UnimplementedSlurmServiceServer) ListAccounts(context.Context, *ListAccountsReq) (*ListAccountsResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListAccounts not implemented")
}
func (UnimplementedSlurmServiceServer) GetAccount(context.Context, *GetAccountReq) (*GetAccountResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetAccount not implemented")
}
func (UnimplementedSlurmServiceServer) AddAccount(context.Context, *AddAccountReq) (*AddAccountResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method AddAccount not implemented")
}
func (UnimplementedSlurmServiceServer) DeleteAccount(context.Context, *DeleteAccountReq) (*DeleteAccountResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteAccount not implemented")
}
func (UnimplementedSlurmServiceServer) ListQoss(context.Context, *ListQossReq) (*ListQossResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListQoss not implemented")
}
func (UnimplementedSlurmServiceServer) ListWckeys(context.Context, *ListWckeysReq) (*ListWckeysResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListWckeys not implemented")
}
func (UnimplementedSlurmServiceServer) GetWckey(context.Context, *GetWckeyReq) (*GetWckeyResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetWckey not implemented")
}
func (UnimplementedSlurmServiceServer) mustEmbedUnimplementedSlurmServiceServer() {}
// UnsafeSlurmServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to SlurmServiceServer will
// result in compilation errors.
type UnsafeSlurmServiceServer interface {
mustEmbedUnimplementedSlurmServiceServer()
}
func RegisterSlurmServiceServer(s grpc.ServiceRegistrar, srv SlurmServiceServer) {
s.RegisterService(&SlurmService_ServiceDesc, srv)
}
func _SlurmService_ListUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListUsersReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SlurmServiceServer).ListUsers(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/slurm.SlurmService/ListUsers",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SlurmServiceServer).ListUsers(ctx, req.(*ListUsersReq))
}
return interceptor(ctx, in, info, handler)
}
func _SlurmService_GetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetUserReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SlurmServiceServer).GetUser(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/slurm.SlurmService/GetUser",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SlurmServiceServer).GetUser(ctx, req.(*GetUserReq))
}
return interceptor(ctx, in, info, handler)
}
func _SlurmService_ListAssociations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListAssociationsReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SlurmServiceServer).ListAssociations(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/slurm.SlurmService/ListAssociations",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SlurmServiceServer).ListAssociations(ctx, req.(*ListAssociationsReq))
}
return interceptor(ctx, in, info, handler)
}
func _SlurmService_GetAssociation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetAssociationReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SlurmServiceServer).GetAssociation(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/slurm.SlurmService/GetAssociation",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SlurmServiceServer).GetAssociation(ctx, req.(*GetAssociationReq))
}
return interceptor(ctx, in, info, handler)
}
func _SlurmService_ListAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListAccountsReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SlurmServiceServer).ListAccounts(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/slurm.SlurmService/ListAccounts",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SlurmServiceServer).ListAccounts(ctx, req.(*ListAccountsReq))
}
return interceptor(ctx, in, info, handler)
}
func _SlurmService_GetAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetAccountReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SlurmServiceServer).GetAccount(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/slurm.SlurmService/GetAccount",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SlurmServiceServer).GetAccount(ctx, req.(*GetAccountReq))
}
return interceptor(ctx, in, info, handler)
}
func _SlurmService_AddAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AddAccountReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SlurmServiceServer).AddAccount(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/slurm.SlurmService/AddAccount",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SlurmServiceServer).AddAccount(ctx, req.(*AddAccountReq))
}
return interceptor(ctx, in, info, handler)
}
func _SlurmService_DeleteAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteAccountReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SlurmServiceServer).DeleteAccount(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/slurm.SlurmService/DeleteAccount",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SlurmServiceServer).DeleteAccount(ctx, req.(*DeleteAccountReq))
}
return interceptor(ctx, in, info, handler)
}
func _SlurmService_ListQoss_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListQossReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SlurmServiceServer).ListQoss(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/slurm.SlurmService/ListQoss",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SlurmServiceServer).ListQoss(ctx, req.(*ListQossReq))
}
return interceptor(ctx, in, info, handler)
}
func _SlurmService_ListWckeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListWckeysReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SlurmServiceServer).ListWckeys(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/slurm.SlurmService/ListWckeys",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SlurmServiceServer).ListWckeys(ctx, req.(*ListWckeysReq))
}
return interceptor(ctx, in, info, handler)
}
func _SlurmService_GetWckey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetWckeyReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SlurmServiceServer).GetWckey(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/slurm.SlurmService/GetWckey",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SlurmServiceServer).GetWckey(ctx, req.(*GetWckeyReq))
}
return interceptor(ctx, in, info, handler)
}
// SlurmService_ServiceDesc is the grpc.ServiceDesc for SlurmService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var SlurmService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "slurm.SlurmService",
HandlerType: (*SlurmServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListUsers",
Handler: _SlurmService_ListUsers_Handler,
},
{
MethodName: "GetUser",
Handler: _SlurmService_GetUser_Handler,
},
{
MethodName: "ListAssociations",
Handler: _SlurmService_ListAssociations_Handler,
},
{
MethodName: "GetAssociation",
Handler: _SlurmService_GetAssociation_Handler,
},
{
MethodName: "ListAccounts",
Handler: _SlurmService_ListAccounts_Handler,
},
{
MethodName: "GetAccount",
Handler: _SlurmService_GetAccount_Handler,
},
{
MethodName: "AddAccount",
Handler: _SlurmService_AddAccount_Handler,
},
{
MethodName: "DeleteAccount",
Handler: _SlurmService_DeleteAccount_Handler,
},
{
MethodName: "ListQoss",
Handler: _SlurmService_ListQoss_Handler,
},
{
MethodName: "ListWckeys",
Handler: _SlurmService_ListWckeys_Handler,
},
{
MethodName: "GetWckey",
Handler: _SlurmService_GetWckey_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "idl/slurm.proto",
}

View File

@ -1,948 +0,0 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc (unknown)
// source: idl/slurmdb_account.proto
package slurmpb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
_ "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AccountInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
AssocList []*AssociationInfo `protobuf:"bytes,1,rep,name=assoc_list,json=assocList,proto3" json:"assoc_list,omitempty"`
Coordinators []*CoordInfo `protobuf:"bytes,2,rep,name=coordinators,proto3" json:"coordinators,omitempty"`
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
Organization string `protobuf:"bytes,5,opt,name=organization,proto3" json:"organization,omitempty"`
}
func (x *AccountInfo) Reset() {
*x = AccountInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_slurmdb_account_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AccountInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AccountInfo) ProtoMessage() {}
func (x *AccountInfo) ProtoReflect() protoreflect.Message {
mi := &file_idl_slurmdb_account_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AccountInfo.ProtoReflect.Descriptor instead.
func (*AccountInfo) Descriptor() ([]byte, []int) {
return file_idl_slurmdb_account_proto_rawDescGZIP(), []int{0}
}
func (x *AccountInfo) GetAssocList() []*AssociationInfo {
if x != nil {
return x.AssocList
}
return nil
}
func (x *AccountInfo) GetCoordinators() []*CoordInfo {
if x != nil {
return x.Coordinators
}
return nil
}
func (x *AccountInfo) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *AccountInfo) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *AccountInfo) GetOrganization() string {
if x != nil {
return x.Organization
}
return ""
}
type ListAccountsReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
SlurmVersion SlurmVersion `protobuf:"varint,1,opt,name=slurm_version,json=slurmVersion,proto3,enum=slurm.SlurmVersion" json:"slurm_version,omitempty"`
}
func (x *ListAccountsReq) Reset() {
*x = ListAccountsReq{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_slurmdb_account_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListAccountsReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListAccountsReq) ProtoMessage() {}
func (x *ListAccountsReq) ProtoReflect() protoreflect.Message {
mi := &file_idl_slurmdb_account_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListAccountsReq.ProtoReflect.Descriptor instead.
func (*ListAccountsReq) Descriptor() ([]byte, []int) {
return file_idl_slurmdb_account_proto_rawDescGZIP(), []int{1}
}
func (x *ListAccountsReq) GetSlurmVersion() SlurmVersion {
if x != nil {
return x.SlurmVersion
}
return SlurmVersion_tianhe
}
type ListAccountsResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
AccountInfos []*AccountInfo `protobuf:"bytes,1,rep,name=account_infos,json=accountInfos,proto3" json:"account_infos,omitempty"`
}
func (x *ListAccountsResp) Reset() {
*x = ListAccountsResp{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_slurmdb_account_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListAccountsResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListAccountsResp) ProtoMessage() {}
func (x *ListAccountsResp) ProtoReflect() protoreflect.Message {
mi := &file_idl_slurmdb_account_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListAccountsResp.ProtoReflect.Descriptor instead.
func (*ListAccountsResp) Descriptor() ([]byte, []int) {
return file_idl_slurmdb_account_proto_rawDescGZIP(), []int{2}
}
func (x *ListAccountsResp) GetAccountInfos() []*AccountInfo {
if x != nil {
return x.AccountInfos
}
return nil
}
type GetAccountReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
SlurmVersion SlurmVersion `protobuf:"varint,1,opt,name=slurm_version,json=slurmVersion,proto3,enum=slurm.SlurmVersion" json:"slurm_version,omitempty"`
AccountName string `protobuf:"bytes,2,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"`
}
func (x *GetAccountReq) Reset() {
*x = GetAccountReq{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_slurmdb_account_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetAccountReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetAccountReq) ProtoMessage() {}
func (x *GetAccountReq) ProtoReflect() protoreflect.Message {
mi := &file_idl_slurmdb_account_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetAccountReq.ProtoReflect.Descriptor instead.
func (*GetAccountReq) Descriptor() ([]byte, []int) {
return file_idl_slurmdb_account_proto_rawDescGZIP(), []int{3}
}
func (x *GetAccountReq) GetSlurmVersion() SlurmVersion {
if x != nil {
return x.SlurmVersion
}
return SlurmVersion_tianhe
}
func (x *GetAccountReq) GetAccountName() string {
if x != nil {
return x.AccountName
}
return ""
}
type GetAccountResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
AccountInfos []*AccountInfo `protobuf:"bytes,1,rep,name=account_infos,json=accountInfos,proto3" json:"account_infos,omitempty"`
}
func (x *GetAccountResp) Reset() {
*x = GetAccountResp{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_slurmdb_account_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetAccountResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetAccountResp) ProtoMessage() {}
func (x *GetAccountResp) ProtoReflect() protoreflect.Message {
mi := &file_idl_slurmdb_account_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetAccountResp.ProtoReflect.Descriptor instead.
func (*GetAccountResp) Descriptor() ([]byte, []int) {
return file_idl_slurmdb_account_proto_rawDescGZIP(), []int{4}
}
func (x *GetAccountResp) GetAccountInfos() []*AccountInfo {
if x != nil {
return x.AccountInfos
}
return nil
}
type AddAccountReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
SlurmVersion SlurmVersion `protobuf:"varint,1,opt,name=slurm_version,json=slurmVersion,proto3,enum=slurm.SlurmVersion" json:"slurm_version,omitempty"`
Clusters string `protobuf:"bytes,2,opt,name=clusters,proto3" json:"clusters,omitempty"`
DefaultQos string `protobuf:"bytes,3,opt,name=default_qos,json=defaultQos,proto3" json:"default_qos,omitempty"`
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
FairShare string `protobuf:"bytes,5,opt,name=fair_share,json=fairShare,proto3" json:"fair_share,omitempty"`
GrpCpuMins string `protobuf:"bytes,6,opt,name=grp_cpu_mins,json=grpCpuMins,proto3" json:"grp_cpu_mins,omitempty"`
GrpCpus string `protobuf:"bytes,7,opt,name=grp_cpus,json=grpCpus,proto3" json:"grp_cpus,omitempty"`
GrpJobs string `protobuf:"bytes,8,opt,name=grp_jobs,json=grpJobs,proto3" json:"grp_jobs,omitempty"`
GrpMemory string `protobuf:"bytes,9,opt,name=grp_memory,json=grpMemory,proto3" json:"grp_memory,omitempty"`
GrpNodes string `protobuf:"bytes,10,opt,name=grp_nodes,json=grpNodes,proto3" json:"grp_nodes,omitempty"`
GrpSubmitJobs string `protobuf:"bytes,11,opt,name=grp_submit_jobs,json=grpSubmitJobs,proto3" json:"grp_submit_jobs,omitempty"`
GrpWall string `protobuf:"bytes,12,opt,name=grp_wall,json=grpWall,proto3" json:"grp_wall,omitempty"`
MaxCpuMins string `protobuf:"bytes,13,opt,name=max_cpu_mins,json=maxCpuMins,proto3" json:"max_cpu_mins,omitempty"`
MaxCpus string `protobuf:"bytes,14,opt,name=max_cpus,json=maxCpus,proto3" json:"max_cpus,omitempty"`
MaxJobs string `protobuf:"bytes,15,opt,name=max_jobs,json=maxJobs,proto3" json:"max_jobs,omitempty"`
MaxNodes string `protobuf:"bytes,16,opt,name=max_nodes,json=maxNodes,proto3" json:"max_nodes,omitempty"`
MaxSubmitJobs string `protobuf:"bytes,17,opt,name=max_submit_jobs,json=maxSubmitJobs,proto3" json:"max_submit_jobs,omitempty"`
MaxWall string `protobuf:"bytes,18,opt,name=max_wall,json=maxWall,proto3" json:"max_wall,omitempty"`
Names string `protobuf:"bytes,19,opt,name=names,proto3" json:"names,omitempty"`
Organization string `protobuf:"bytes,20,opt,name=organization,proto3" json:"organization,omitempty"`
Parent string `protobuf:"bytes,21,opt,name=parent,proto3" json:"parent,omitempty"`
QosLevel string `protobuf:"bytes,22,opt,name=qos_level,json=qosLevel,proto3" json:"qos_level,omitempty"`
}
func (x *AddAccountReq) Reset() {
*x = AddAccountReq{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_slurmdb_account_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AddAccountReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AddAccountReq) ProtoMessage() {}
func (x *AddAccountReq) ProtoReflect() protoreflect.Message {
mi := &file_idl_slurmdb_account_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AddAccountReq.ProtoReflect.Descriptor instead.
func (*AddAccountReq) Descriptor() ([]byte, []int) {
return file_idl_slurmdb_account_proto_rawDescGZIP(), []int{5}
}
func (x *AddAccountReq) GetSlurmVersion() SlurmVersion {
if x != nil {
return x.SlurmVersion
}
return SlurmVersion_tianhe
}
func (x *AddAccountReq) GetClusters() string {
if x != nil {
return x.Clusters
}
return ""
}
func (x *AddAccountReq) GetDefaultQos() string {
if x != nil {
return x.DefaultQos
}
return ""
}
func (x *AddAccountReq) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *AddAccountReq) GetFairShare() string {
if x != nil {
return x.FairShare
}
return ""
}
func (x *AddAccountReq) GetGrpCpuMins() string {
if x != nil {
return x.GrpCpuMins
}
return ""
}
func (x *AddAccountReq) GetGrpCpus() string {
if x != nil {
return x.GrpCpus
}
return ""
}
func (x *AddAccountReq) GetGrpJobs() string {
if x != nil {
return x.GrpJobs
}
return ""
}
func (x *AddAccountReq) GetGrpMemory() string {
if x != nil {
return x.GrpMemory
}
return ""
}
func (x *AddAccountReq) GetGrpNodes() string {
if x != nil {
return x.GrpNodes
}
return ""
}
func (x *AddAccountReq) GetGrpSubmitJobs() string {
if x != nil {
return x.GrpSubmitJobs
}
return ""
}
func (x *AddAccountReq) GetGrpWall() string {
if x != nil {
return x.GrpWall
}
return ""
}
func (x *AddAccountReq) GetMaxCpuMins() string {
if x != nil {
return x.MaxCpuMins
}
return ""
}
func (x *AddAccountReq) GetMaxCpus() string {
if x != nil {
return x.MaxCpus
}
return ""
}
func (x *AddAccountReq) GetMaxJobs() string {
if x != nil {
return x.MaxJobs
}
return ""
}
func (x *AddAccountReq) GetMaxNodes() string {
if x != nil {
return x.MaxNodes
}
return ""
}
func (x *AddAccountReq) GetMaxSubmitJobs() string {
if x != nil {
return x.MaxSubmitJobs
}
return ""
}
func (x *AddAccountReq) GetMaxWall() string {
if x != nil {
return x.MaxWall
}
return ""
}
func (x *AddAccountReq) GetNames() string {
if x != nil {
return x.Names
}
return ""
}
func (x *AddAccountReq) GetOrganization() string {
if x != nil {
return x.Organization
}
return ""
}
func (x *AddAccountReq) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *AddAccountReq) GetQosLevel() string {
if x != nil {
return x.QosLevel
}
return ""
}
type AddAccountResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
}
func (x *AddAccountResp) Reset() {
*x = AddAccountResp{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_slurmdb_account_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AddAccountResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AddAccountResp) ProtoMessage() {}
func (x *AddAccountResp) ProtoReflect() protoreflect.Message {
mi := &file_idl_slurmdb_account_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AddAccountResp.ProtoReflect.Descriptor instead.
func (*AddAccountResp) Descriptor() ([]byte, []int) {
return file_idl_slurmdb_account_proto_rawDescGZIP(), []int{6}
}
func (x *AddAccountResp) GetResult() string {
if x != nil {
return x.Result
}
return ""
}
type DeleteAccountReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
SlurmVersion SlurmVersion `protobuf:"varint,1,opt,name=slurm_version,json=slurmVersion,proto3,enum=slurm.SlurmVersion" json:"slurm_version,omitempty"`
Names string `protobuf:"bytes,2,opt,name=names,proto3" json:"names,omitempty"`
}
func (x *DeleteAccountReq) Reset() {
*x = DeleteAccountReq{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_slurmdb_account_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteAccountReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteAccountReq) ProtoMessage() {}
func (x *DeleteAccountReq) ProtoReflect() protoreflect.Message {
mi := &file_idl_slurmdb_account_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteAccountReq.ProtoReflect.Descriptor instead.
func (*DeleteAccountReq) Descriptor() ([]byte, []int) {
return file_idl_slurmdb_account_proto_rawDescGZIP(), []int{7}
}
func (x *DeleteAccountReq) GetSlurmVersion() SlurmVersion {
if x != nil {
return x.SlurmVersion
}
return SlurmVersion_tianhe
}
func (x *DeleteAccountReq) GetNames() string {
if x != nil {
return x.Names
}
return ""
}
type DeleteAccountResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
}
func (x *DeleteAccountResp) Reset() {
*x = DeleteAccountResp{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_slurmdb_account_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteAccountResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteAccountResp) ProtoMessage() {}
func (x *DeleteAccountResp) ProtoReflect() protoreflect.Message {
mi := &file_idl_slurmdb_account_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteAccountResp.ProtoReflect.Descriptor instead.
func (*DeleteAccountResp) Descriptor() ([]byte, []int) {
return file_idl_slurmdb_account_proto_rawDescGZIP(), []int{8}
}
func (x *DeleteAccountResp) GetResult() string {
if x != nil {
return x.Result
}
return ""
}
var File_idl_slurmdb_account_proto protoreflect.FileDescriptor
var file_idl_slurmdb_account_proto_rawDesc = []byte{
0x0a, 0x19, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x64, 0x62, 0x5f, 0x61, 0x63,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x73, 0x6c, 0x75,
0x72, 0x6d, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x10, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x6c, 0x75, 0x72, 0x6d,
0x64, 0x62, 0x5f, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17,
0x69, 0x64, 0x6c, 0x2f, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x64, 0x62, 0x5f, 0x63, 0x6f, 0x6f, 0x72,
0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd4, 0x01, 0x0a, 0x0b, 0x41, 0x63, 0x63, 0x6f,
0x75, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x35, 0x0a, 0x0a, 0x61, 0x73, 0x73, 0x6f, 0x63,
0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x73, 0x6c,
0x75, 0x72, 0x6d, 0x2e, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49,
0x6e, 0x66, 0x6f, 0x52, 0x09, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x34,
0x0a, 0x0c, 0x63, 0x6f, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x02,
0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x43, 0x6f, 0x6f,
0x72, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0c, 0x63, 0x6f, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61,
0x74, 0x6f, 0x72, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72,
0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04,
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x6f, 0x72,
0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
0x52, 0x0c, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4b,
0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65,
0x71, 0x12, 0x38, 0x0a, 0x0d, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69,
0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d,
0x2e, 0x53, 0x6c, 0x75, 0x72, 0x6d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x73,
0x6c, 0x75, 0x72, 0x6d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x4b, 0x0a, 0x10, 0x4c,
0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12,
0x37, 0x0a, 0x0d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x73,
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x41,
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0c, 0x61, 0x63, 0x63, 0x6f,
0x75, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x22, 0x6c, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x41,
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x12, 0x38, 0x0a, 0x0d, 0x73, 0x6c, 0x75,
0x72, 0x6d, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
0x32, 0x13, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x53, 0x6c, 0x75, 0x72, 0x6d, 0x56, 0x65,
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x56, 0x65, 0x72, 0x73,
0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6e,
0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75,
0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x49, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63,
0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x37, 0x0a, 0x0d, 0x61, 0x63, 0x63, 0x6f,
0x75, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
0x12, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49,
0x6e, 0x66, 0x6f, 0x52, 0x0c, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f,
0x73, 0x22, 0xc5, 0x05, 0x0a, 0x0d, 0x41, 0x64, 0x64, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
0x52, 0x65, 0x71, 0x12, 0x38, 0x0a, 0x0d, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x5f, 0x76, 0x65, 0x72,
0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x73, 0x6c, 0x75,
0x72, 0x6d, 0x2e, 0x53, 0x6c, 0x75, 0x72, 0x6d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52,
0x0c, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a,
0x08, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x08, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x65, 0x66,
0x61, 0x75, 0x6c, 0x74, 0x5f, 0x71, 0x6f, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,
0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x51, 0x6f, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65,
0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a,
0x66, 0x61, 0x69, 0x72, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
0x52, 0x09, 0x66, 0x61, 0x69, 0x72, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x20, 0x0a, 0x0c, 0x67,
0x72, 0x70, 0x5f, 0x63, 0x70, 0x75, 0x5f, 0x6d, 0x69, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28,
0x09, 0x52, 0x0a, 0x67, 0x72, 0x70, 0x43, 0x70, 0x75, 0x4d, 0x69, 0x6e, 0x73, 0x12, 0x19, 0x0a,
0x08, 0x67, 0x72, 0x70, 0x5f, 0x63, 0x70, 0x75, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52,
0x07, 0x67, 0x72, 0x70, 0x43, 0x70, 0x75, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x70, 0x5f,
0x6a, 0x6f, 0x62, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, 0x72, 0x70, 0x4a,
0x6f, 0x62, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x72, 0x70, 0x5f, 0x6d, 0x65, 0x6d, 0x6f, 0x72,
0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x72, 0x70, 0x4d, 0x65, 0x6d, 0x6f,
0x72, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x67, 0x72, 0x70, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18,
0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x67, 0x72, 0x70, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12,
0x26, 0x0a, 0x0f, 0x67, 0x72, 0x70, 0x5f, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x5f, 0x6a, 0x6f,
0x62, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x67, 0x72, 0x70, 0x53, 0x75, 0x62,
0x6d, 0x69, 0x74, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x70, 0x5f, 0x77,
0x61, 0x6c, 0x6c, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, 0x72, 0x70, 0x57, 0x61,
0x6c, 0x6c, 0x12, 0x20, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f, 0x63, 0x70, 0x75, 0x5f, 0x6d, 0x69,
0x6e, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x61, 0x78, 0x43, 0x70, 0x75,
0x4d, 0x69, 0x6e, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x61, 0x78, 0x5f, 0x63, 0x70, 0x75, 0x73,
0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x43, 0x70, 0x75, 0x73, 0x12,
0x19, 0x0a, 0x08, 0x6d, 0x61, 0x78, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28,
0x09, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61,
0x78, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d,
0x61, 0x78, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x73,
0x75, 0x62, 0x6d, 0x69, 0x74, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09,
0x52, 0x0d, 0x6d, 0x61, 0x78, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x4a, 0x6f, 0x62, 0x73, 0x12,
0x19, 0x0a, 0x08, 0x6d, 0x61, 0x78, 0x5f, 0x77, 0x61, 0x6c, 0x6c, 0x18, 0x12, 0x20, 0x01, 0x28,
0x09, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x57, 0x61, 0x6c, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61,
0x6d, 0x65, 0x73, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73,
0x12, 0x22, 0x0a, 0x0c, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x18, 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x15,
0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09,
0x71, 0x6f, 0x73, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x16, 0x20, 0x01, 0x28, 0x09, 0x52,
0x08, 0x71, 0x6f, 0x73, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x28, 0x0a, 0x0e, 0x41, 0x64, 0x64,
0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x72,
0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x73,
0x75, 0x6c, 0x74, 0x22, 0x62, 0x0a, 0x10, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x63, 0x63,
0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x12, 0x38, 0x0a, 0x0d, 0x73, 0x6c, 0x75, 0x72, 0x6d,
0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13,
0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x53, 0x6c, 0x75, 0x72, 0x6d, 0x56, 0x65, 0x72, 0x73,
0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f,
0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x52, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x2b, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74,
0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06,
0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65,
0x73, 0x75, 0x6c, 0x74, 0x42, 0x0a, 0x5a, 0x08, 0x2f, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x70, 0x62,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_idl_slurmdb_account_proto_rawDescOnce sync.Once
file_idl_slurmdb_account_proto_rawDescData = file_idl_slurmdb_account_proto_rawDesc
)
func file_idl_slurmdb_account_proto_rawDescGZIP() []byte {
file_idl_slurmdb_account_proto_rawDescOnce.Do(func() {
file_idl_slurmdb_account_proto_rawDescData = protoimpl.X.CompressGZIP(file_idl_slurmdb_account_proto_rawDescData)
})
return file_idl_slurmdb_account_proto_rawDescData
}
var file_idl_slurmdb_account_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
var file_idl_slurmdb_account_proto_goTypes = []interface{}{
(*AccountInfo)(nil), // 0: slurm.AccountInfo
(*ListAccountsReq)(nil), // 1: slurm.ListAccountsReq
(*ListAccountsResp)(nil), // 2: slurm.ListAccountsResp
(*GetAccountReq)(nil), // 3: slurm.GetAccountReq
(*GetAccountResp)(nil), // 4: slurm.GetAccountResp
(*AddAccountReq)(nil), // 5: slurm.AddAccountReq
(*AddAccountResp)(nil), // 6: slurm.AddAccountResp
(*DeleteAccountReq)(nil), // 7: slurm.DeleteAccountReq
(*DeleteAccountResp)(nil), // 8: slurm.DeleteAccountResp
(*AssociationInfo)(nil), // 9: slurm.AssociationInfo
(*CoordInfo)(nil), // 10: slurm.CoordInfo
(SlurmVersion)(0), // 11: slurm.SlurmVersion
}
var file_idl_slurmdb_account_proto_depIdxs = []int32{
9, // 0: slurm.AccountInfo.assoc_list:type_name -> slurm.AssociationInfo
10, // 1: slurm.AccountInfo.coordinators:type_name -> slurm.CoordInfo
11, // 2: slurm.ListAccountsReq.slurm_version:type_name -> slurm.SlurmVersion
0, // 3: slurm.ListAccountsResp.account_infos:type_name -> slurm.AccountInfo
11, // 4: slurm.GetAccountReq.slurm_version:type_name -> slurm.SlurmVersion
0, // 5: slurm.GetAccountResp.account_infos:type_name -> slurm.AccountInfo
11, // 6: slurm.AddAccountReq.slurm_version:type_name -> slurm.SlurmVersion
11, // 7: slurm.DeleteAccountReq.slurm_version:type_name -> slurm.SlurmVersion
8, // [8:8] is the sub-list for method output_type
8, // [8:8] is the sub-list for method input_type
8, // [8:8] is the sub-list for extension type_name
8, // [8:8] is the sub-list for extension extendee
0, // [0:8] is the sub-list for field type_name
}
func init() { file_idl_slurmdb_account_proto_init() }
func file_idl_slurmdb_account_proto_init() {
if File_idl_slurmdb_account_proto != nil {
return
}
file_idl_static_proto_init()
file_idl_slurmdb_assoc_proto_init()
file_idl_slurmdb_coord_proto_init()
if !protoimpl.UnsafeEnabled {
file_idl_slurmdb_account_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AccountInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_idl_slurmdb_account_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListAccountsReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_idl_slurmdb_account_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListAccountsResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_idl_slurmdb_account_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetAccountReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_idl_slurmdb_account_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetAccountResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_idl_slurmdb_account_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AddAccountReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_idl_slurmdb_account_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AddAccountResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_idl_slurmdb_account_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteAccountReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_idl_slurmdb_account_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteAccountResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_idl_slurmdb_account_proto_rawDesc,
NumEnums: 0,
NumMessages: 9,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_idl_slurmdb_account_proto_goTypes,
DependencyIndexes: file_idl_slurmdb_account_proto_depIdxs,
MessageInfos: file_idl_slurmdb_account_proto_msgTypes,
}.Build()
File_idl_slurmdb_account_proto = out.File
file_idl_slurmdb_account_proto_rawDesc = nil
file_idl_slurmdb_account_proto_goTypes = nil
file_idl_slurmdb_account_proto_depIdxs = nil
}

View File

@ -1,171 +0,0 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc (unknown)
// source: idl/slurmdb_accounting.proto
package slurmpb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AccountingInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
AllocSecs int64 `protobuf:"varint,1,opt,name=alloc_secs,json=allocSecs,proto3" json:"alloc_secs,omitempty"`
Id int32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
PeriodStart *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=period_start,json=periodStart,proto3" json:"period_start,omitempty"`
}
func (x *AccountingInfo) Reset() {
*x = AccountingInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_slurmdb_accounting_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AccountingInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AccountingInfo) ProtoMessage() {}
func (x *AccountingInfo) ProtoReflect() protoreflect.Message {
mi := &file_idl_slurmdb_accounting_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AccountingInfo.ProtoReflect.Descriptor instead.
func (*AccountingInfo) Descriptor() ([]byte, []int) {
return file_idl_slurmdb_accounting_proto_rawDescGZIP(), []int{0}
}
func (x *AccountingInfo) GetAllocSecs() int64 {
if x != nil {
return x.AllocSecs
}
return 0
}
func (x *AccountingInfo) GetId() int32 {
if x != nil {
return x.Id
}
return 0
}
func (x *AccountingInfo) GetPeriodStart() *timestamppb.Timestamp {
if x != nil {
return x.PeriodStart
}
return nil
}
var File_idl_slurmdb_accounting_proto protoreflect.FileDescriptor
var file_idl_slurmdb_accounting_proto_rawDesc = []byte{
0x0a, 0x1c, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x64, 0x62, 0x5f, 0x61, 0x63,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05,
0x73, 0x6c, 0x75, 0x72, 0x6d, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x10, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x74, 0x61, 0x74,
0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7e, 0x0a, 0x0e, 0x41, 0x63, 0x63, 0x6f,
0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x6c,
0x6c, 0x6f, 0x63, 0x5f, 0x73, 0x65, 0x63, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x53, 0x65, 0x63, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3d, 0x0a, 0x0c, 0x70, 0x65, 0x72,
0x69, 0x6f, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x70, 0x65, 0x72,
0x69, 0x6f, 0x64, 0x53, 0x74, 0x61, 0x72, 0x74, 0x42, 0x0a, 0x5a, 0x08, 0x2f, 0x73, 0x6c, 0x75,
0x72, 0x6d, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_idl_slurmdb_accounting_proto_rawDescOnce sync.Once
file_idl_slurmdb_accounting_proto_rawDescData = file_idl_slurmdb_accounting_proto_rawDesc
)
func file_idl_slurmdb_accounting_proto_rawDescGZIP() []byte {
file_idl_slurmdb_accounting_proto_rawDescOnce.Do(func() {
file_idl_slurmdb_accounting_proto_rawDescData = protoimpl.X.CompressGZIP(file_idl_slurmdb_accounting_proto_rawDescData)
})
return file_idl_slurmdb_accounting_proto_rawDescData
}
var file_idl_slurmdb_accounting_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_idl_slurmdb_accounting_proto_goTypes = []interface{}{
(*AccountingInfo)(nil), // 0: slurm.AccountingInfo
(*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp
}
var file_idl_slurmdb_accounting_proto_depIdxs = []int32{
1, // 0: slurm.AccountingInfo.period_start:type_name -> google.protobuf.Timestamp
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_idl_slurmdb_accounting_proto_init() }
func file_idl_slurmdb_accounting_proto_init() {
if File_idl_slurmdb_accounting_proto != nil {
return
}
file_idl_static_proto_init()
if !protoimpl.UnsafeEnabled {
file_idl_slurmdb_accounting_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AccountingInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_idl_slurmdb_accounting_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_idl_slurmdb_accounting_proto_goTypes,
DependencyIndexes: file_idl_slurmdb_accounting_proto_depIdxs,
MessageInfos: file_idl_slurmdb_accounting_proto_msgTypes,
}.Build()
File_idl_slurmdb_accounting_proto = out.File
file_idl_slurmdb_accounting_proto_rawDesc = nil
file_idl_slurmdb_accounting_proto_goTypes = nil
file_idl_slurmdb_accounting_proto_depIdxs = nil
}

View File

@ -1,954 +0,0 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc (unknown)
// source: idl/slurmdb_assoc.proto
package slurmpb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
_ "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AssocUsageInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *AssocUsageInfo) Reset() {
*x = AssocUsageInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_slurmdb_assoc_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AssocUsageInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AssocUsageInfo) ProtoMessage() {}
func (x *AssocUsageInfo) ProtoReflect() protoreflect.Message {
mi := &file_idl_slurmdb_assoc_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AssocUsageInfo.ProtoReflect.Descriptor instead.
func (*AssocUsageInfo) Descriptor() ([]byte, []int) {
return file_idl_slurmdb_assoc_proto_rawDescGZIP(), []int{0}
}
type AssociationInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
AccountingList []*AccountingInfo `protobuf:"bytes,1,rep,name=accounting_list,json=accountingList,proto3" json:"accounting_list,omitempty"`
Acct string `protobuf:"bytes,2,opt,name=acct,proto3" json:"acct,omitempty"`
Cluster string `protobuf:"bytes,3,opt,name=cluster,proto3" json:"cluster,omitempty"`
DefQosId int32 `protobuf:"varint,4,opt,name=def_qos_id,json=defQosId,proto3" json:"def_qos_id,omitempty"`
GrpCpuMins int64 `protobuf:"varint,5,opt,name=grp_cpu_mins,json=grpCpuMins,proto3" json:"grp_cpu_mins,omitempty"`
GrpGpuRunMins int64 `protobuf:"varint,6,opt,name=grp_gpu_run_mins,json=grpGpuRunMins,proto3" json:"grp_gpu_run_mins,omitempty"`
GrpCpus int32 `protobuf:"varint,7,opt,name=grp_cpus,json=grpCpus,proto3" json:"grp_cpus,omitempty"`
GrpJobs int32 `protobuf:"varint,8,opt,name=grp_jobs,json=grpJobs,proto3" json:"grp_jobs,omitempty"`
GrpMem int32 `protobuf:"varint,9,opt,name=grp_mem,json=grpMem,proto3" json:"grp_mem,omitempty"`
GrpNodes int32 `protobuf:"varint,10,opt,name=grp_nodes,json=grpNodes,proto3" json:"grp_nodes,omitempty"`
GrpSubmitJobs int32 `protobuf:"varint,11,opt,name=grp_submit_jobs,json=grpSubmitJobs,proto3" json:"grp_submit_jobs,omitempty"`
GrpWall int32 `protobuf:"varint,12,opt,name=grp_wall,json=grpWall,proto3" json:"grp_wall,omitempty"`
Id int32 `protobuf:"varint,13,opt,name=id,proto3" json:"id,omitempty"`
IsDef int32 `protobuf:"varint,14,opt,name=is_def,json=isDef,proto3" json:"is_def,omitempty"`
Lft int32 `protobuf:"varint,15,opt,name=lft,proto3" json:"lft,omitempty"`
MaxCpuMinsPj int64 `protobuf:"varint,16,opt,name=max_cpu_mins_pj,json=maxCpuMinsPj,proto3" json:"max_cpu_mins_pj,omitempty"`
MaxCpuRunMins int64 `protobuf:"varint,17,opt,name=max_cpu_run_mins,json=maxCpuRunMins,proto3" json:"max_cpu_run_mins,omitempty"`
MaxCpusPj int32 `protobuf:"varint,18,opt,name=max_cpus_pj,json=maxCpusPj,proto3" json:"max_cpus_pj,omitempty"`
MaxJobs int32 `protobuf:"varint,19,opt,name=max_jobs,json=maxJobs,proto3" json:"max_jobs,omitempty"`
MaxNodesPj int32 `protobuf:"varint,20,opt,name=max_nodes_pj,json=maxNodesPj,proto3" json:"max_nodes_pj,omitempty"`
MaxSubmitJobs int32 `protobuf:"varint,21,opt,name=max_submit_jobs,json=maxSubmitJobs,proto3" json:"max_submit_jobs,omitempty"`
MaxWallPj int32 `protobuf:"varint,22,opt,name=max_wall_pj,json=maxWallPj,proto3" json:"max_wall_pj,omitempty"`
ParentAcct string `protobuf:"bytes,23,opt,name=parent_acct,json=parentAcct,proto3" json:"parent_acct,omitempty"`
ParentId int32 `protobuf:"varint,24,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
Partition string `protobuf:"bytes,25,opt,name=partition,proto3" json:"partition,omitempty"`
QosList []*QosInfo `protobuf:"bytes,26,rep,name=qos_list,json=qosList,proto3" json:"qos_list,omitempty"`
Rgt int32 `protobuf:"varint,27,opt,name=rgt,proto3" json:"rgt,omitempty"`
SharesRaw int32 `protobuf:"varint,28,opt,name=shares_raw,json=sharesRaw,proto3" json:"shares_raw,omitempty"`
Uid int32 `protobuf:"varint,29,opt,name=uid,proto3" json:"uid,omitempty"`
AssocUsage *AssocUsageInfo `protobuf:"bytes,30,opt,name=assoc_usage,json=assocUsage,proto3" json:"assoc_usage,omitempty"`
User string `protobuf:"bytes,31,opt,name=user,proto3" json:"user,omitempty"`
}
func (x *AssociationInfo) Reset() {
*x = AssociationInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_slurmdb_assoc_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AssociationInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AssociationInfo) ProtoMessage() {}
func (x *AssociationInfo) ProtoReflect() protoreflect.Message {
mi := &file_idl_slurmdb_assoc_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AssociationInfo.ProtoReflect.Descriptor instead.
func (*AssociationInfo) Descriptor() ([]byte, []int) {
return file_idl_slurmdb_assoc_proto_rawDescGZIP(), []int{1}
}
func (x *AssociationInfo) GetAccountingList() []*AccountingInfo {
if x != nil {
return x.AccountingList
}
return nil
}
func (x *AssociationInfo) GetAcct() string {
if x != nil {
return x.Acct
}
return ""
}
func (x *AssociationInfo) GetCluster() string {
if x != nil {
return x.Cluster
}
return ""
}
func (x *AssociationInfo) GetDefQosId() int32 {
if x != nil {
return x.DefQosId
}
return 0
}
func (x *AssociationInfo) GetGrpCpuMins() int64 {
if x != nil {
return x.GrpCpuMins
}
return 0
}
func (x *AssociationInfo) GetGrpGpuRunMins() int64 {
if x != nil {
return x.GrpGpuRunMins
}
return 0
}
func (x *AssociationInfo) GetGrpCpus() int32 {
if x != nil {
return x.GrpCpus
}
return 0
}
func (x *AssociationInfo) GetGrpJobs() int32 {
if x != nil {
return x.GrpJobs
}
return 0
}
func (x *AssociationInfo) GetGrpMem() int32 {
if x != nil {
return x.GrpMem
}
return 0
}
func (x *AssociationInfo) GetGrpNodes() int32 {
if x != nil {
return x.GrpNodes
}
return 0
}
func (x *AssociationInfo) GetGrpSubmitJobs() int32 {
if x != nil {
return x.GrpSubmitJobs
}
return 0
}
func (x *AssociationInfo) GetGrpWall() int32 {
if x != nil {
return x.GrpWall
}
return 0
}
func (x *AssociationInfo) GetId() int32 {
if x != nil {
return x.Id
}
return 0
}
func (x *AssociationInfo) GetIsDef() int32 {
if x != nil {
return x.IsDef
}
return 0
}
func (x *AssociationInfo) GetLft() int32 {
if x != nil {
return x.Lft
}
return 0
}
func (x *AssociationInfo) GetMaxCpuMinsPj() int64 {
if x != nil {
return x.MaxCpuMinsPj
}
return 0
}
func (x *AssociationInfo) GetMaxCpuRunMins() int64 {
if x != nil {
return x.MaxCpuRunMins
}
return 0
}
func (x *AssociationInfo) GetMaxCpusPj() int32 {
if x != nil {
return x.MaxCpusPj
}
return 0
}
func (x *AssociationInfo) GetMaxJobs() int32 {
if x != nil {
return x.MaxJobs
}
return 0
}
func (x *AssociationInfo) GetMaxNodesPj() int32 {
if x != nil {
return x.MaxNodesPj
}
return 0
}
func (x *AssociationInfo) GetMaxSubmitJobs() int32 {
if x != nil {
return x.MaxSubmitJobs
}
return 0
}
func (x *AssociationInfo) GetMaxWallPj() int32 {
if x != nil {
return x.MaxWallPj
}
return 0
}
func (x *AssociationInfo) GetParentAcct() string {
if x != nil {
return x.ParentAcct
}
return ""
}
func (x *AssociationInfo) GetParentId() int32 {
if x != nil {
return x.ParentId
}
return 0
}
func (x *AssociationInfo) GetPartition() string {
if x != nil {
return x.Partition
}
return ""
}
func (x *AssociationInfo) GetQosList() []*QosInfo {
if x != nil {
return x.QosList
}
return nil
}
func (x *AssociationInfo) GetRgt() int32 {
if x != nil {
return x.Rgt
}
return 0
}
func (x *AssociationInfo) GetSharesRaw() int32 {
if x != nil {
return x.SharesRaw
}
return 0
}
func (x *AssociationInfo) GetUid() int32 {
if x != nil {
return x.Uid
}
return 0
}
func (x *AssociationInfo) GetAssocUsage() *AssocUsageInfo {
if x != nil {
return x.AssocUsage
}
return nil
}
func (x *AssociationInfo) GetUser() string {
if x != nil {
return x.User
}
return ""
}
type ListAssociationsReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
SlurmVersion SlurmVersion `protobuf:"varint,1,opt,name=slurm_version,json=slurmVersion,proto3,enum=slurm.SlurmVersion" json:"slurm_version,omitempty"`
}
func (x *ListAssociationsReq) Reset() {
*x = ListAssociationsReq{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_slurmdb_assoc_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListAssociationsReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListAssociationsReq) ProtoMessage() {}
func (x *ListAssociationsReq) ProtoReflect() protoreflect.Message {
mi := &file_idl_slurmdb_assoc_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListAssociationsReq.ProtoReflect.Descriptor instead.
func (*ListAssociationsReq) Descriptor() ([]byte, []int) {
return file_idl_slurmdb_assoc_proto_rawDescGZIP(), []int{2}
}
func (x *ListAssociationsReq) GetSlurmVersion() SlurmVersion {
if x != nil {
return x.SlurmVersion
}
return SlurmVersion_tianhe
}
type ListAssociationsResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
AssocInfos []*AssociationInfo `protobuf:"bytes,1,rep,name=assoc_infos,json=assocInfos,proto3" json:"assoc_infos,omitempty"`
}
func (x *ListAssociationsResp) Reset() {
*x = ListAssociationsResp{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_slurmdb_assoc_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListAssociationsResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListAssociationsResp) ProtoMessage() {}
func (x *ListAssociationsResp) ProtoReflect() protoreflect.Message {
mi := &file_idl_slurmdb_assoc_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListAssociationsResp.ProtoReflect.Descriptor instead.
func (*ListAssociationsResp) Descriptor() ([]byte, []int) {
return file_idl_slurmdb_assoc_proto_rawDescGZIP(), []int{3}
}
func (x *ListAssociationsResp) GetAssocInfos() []*AssociationInfo {
if x != nil {
return x.AssocInfos
}
return nil
}
type GetAssociationReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
SlurmVersion SlurmVersion `protobuf:"varint,1,opt,name=slurm_version,json=slurmVersion,proto3,enum=slurm.SlurmVersion" json:"slurm_version,omitempty"`
Cluster string `protobuf:"bytes,2,opt,name=cluster,proto3" json:"cluster,omitempty"`
Account string `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"`
User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"`
Partition string `protobuf:"bytes,5,opt,name=partition,proto3" json:"partition,omitempty"`
}
func (x *GetAssociationReq) Reset() {
*x = GetAssociationReq{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_slurmdb_assoc_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetAssociationReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetAssociationReq) ProtoMessage() {}
func (x *GetAssociationReq) ProtoReflect() protoreflect.Message {
mi := &file_idl_slurmdb_assoc_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetAssociationReq.ProtoReflect.Descriptor instead.
func (*GetAssociationReq) Descriptor() ([]byte, []int) {
return file_idl_slurmdb_assoc_proto_rawDescGZIP(), []int{4}
}
func (x *GetAssociationReq) GetSlurmVersion() SlurmVersion {
if x != nil {
return x.SlurmVersion
}
return SlurmVersion_tianhe
}
func (x *GetAssociationReq) GetCluster() string {
if x != nil {
return x.Cluster
}
return ""
}
func (x *GetAssociationReq) GetAccount() string {
if x != nil {
return x.Account
}
return ""
}
func (x *GetAssociationReq) GetUser() string {
if x != nil {
return x.User
}
return ""
}
func (x *GetAssociationReq) GetPartition() string {
if x != nil {
return x.Partition
}
return ""
}
type GetAssociationResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
AssocInfos []*AssociationInfo `protobuf:"bytes,1,rep,name=assoc_infos,json=assocInfos,proto3" json:"assoc_infos,omitempty"`
}
func (x *GetAssociationResp) Reset() {
*x = GetAssociationResp{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_slurmdb_assoc_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetAssociationResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetAssociationResp) ProtoMessage() {}
func (x *GetAssociationResp) ProtoReflect() protoreflect.Message {
mi := &file_idl_slurmdb_assoc_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetAssociationResp.ProtoReflect.Descriptor instead.
func (*GetAssociationResp) Descriptor() ([]byte, []int) {
return file_idl_slurmdb_assoc_proto_rawDescGZIP(), []int{5}
}
func (x *GetAssociationResp) GetAssocInfos() []*AssociationInfo {
if x != nil {
return x.AssocInfos
}
return nil
}
type SetAssociationReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
SlurmVersion SlurmVersion `protobuf:"varint,1,opt,name=slurm_version,json=slurmVersion,proto3,enum=slurm.SlurmVersion" json:"slurm_version,omitempty"`
AssocInfo *AssociationInfo `protobuf:"bytes,2,opt,name=assoc_info,json=assocInfo,proto3" json:"assoc_info,omitempty"`
}
func (x *SetAssociationReq) Reset() {
*x = SetAssociationReq{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_slurmdb_assoc_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SetAssociationReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetAssociationReq) ProtoMessage() {}
func (x *SetAssociationReq) ProtoReflect() protoreflect.Message {
mi := &file_idl_slurmdb_assoc_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SetAssociationReq.ProtoReflect.Descriptor instead.
func (*SetAssociationReq) Descriptor() ([]byte, []int) {
return file_idl_slurmdb_assoc_proto_rawDescGZIP(), []int{6}
}
func (x *SetAssociationReq) GetSlurmVersion() SlurmVersion {
if x != nil {
return x.SlurmVersion
}
return SlurmVersion_tianhe
}
func (x *SetAssociationReq) GetAssocInfo() *AssociationInfo {
if x != nil {
return x.AssocInfo
}
return nil
}
type SetAssociationResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
}
func (x *SetAssociationResp) Reset() {
*x = SetAssociationResp{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_slurmdb_assoc_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SetAssociationResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetAssociationResp) ProtoMessage() {}
func (x *SetAssociationResp) ProtoReflect() protoreflect.Message {
mi := &file_idl_slurmdb_assoc_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SetAssociationResp.ProtoReflect.Descriptor instead.
func (*SetAssociationResp) Descriptor() ([]byte, []int) {
return file_idl_slurmdb_assoc_proto_rawDescGZIP(), []int{7}
}
func (x *SetAssociationResp) GetResult() bool {
if x != nil {
return x.Result
}
return false
}
var File_idl_slurmdb_assoc_proto protoreflect.FileDescriptor
var file_idl_slurmdb_assoc_proto_rawDesc = []byte{
0x0a, 0x17, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x64, 0x62, 0x5f, 0x61, 0x73,
0x73, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x73, 0x6c, 0x75, 0x72, 0x6d,
0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x10, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x64, 0x62,
0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x15, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x64, 0x62, 0x5f, 0x71,
0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x10, 0x0a, 0x0e, 0x41, 0x73, 0x73, 0x6f,
0x63, 0x55, 0x73, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0xdb, 0x07, 0x0a, 0x0f, 0x41,
0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3e,
0x0a, 0x0f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x69, 0x73,
0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e,
0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0e,
0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x12,
0x0a, 0x04, 0x61, 0x63, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x63,
0x63, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20,
0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x0a,
0x64, 0x65, 0x66, 0x5f, 0x71, 0x6f, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05,
0x52, 0x08, 0x64, 0x65, 0x66, 0x51, 0x6f, 0x73, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0c, 0x67, 0x72,
0x70, 0x5f, 0x63, 0x70, 0x75, 0x5f, 0x6d, 0x69, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03,
0x52, 0x0a, 0x67, 0x72, 0x70, 0x43, 0x70, 0x75, 0x4d, 0x69, 0x6e, 0x73, 0x12, 0x27, 0x0a, 0x10,
0x67, 0x72, 0x70, 0x5f, 0x67, 0x70, 0x75, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x6d, 0x69, 0x6e, 0x73,
0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x67, 0x72, 0x70, 0x47, 0x70, 0x75, 0x52, 0x75,
0x6e, 0x4d, 0x69, 0x6e, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x70, 0x5f, 0x63, 0x70, 0x75,
0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, 0x70, 0x43, 0x70, 0x75, 0x73,
0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x70, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x08, 0x20, 0x01,
0x28, 0x05, 0x52, 0x07, 0x67, 0x72, 0x70, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x67,
0x72, 0x70, 0x5f, 0x6d, 0x65, 0x6d, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x67, 0x72,
0x70, 0x4d, 0x65, 0x6d, 0x12, 0x1b, 0x0a, 0x09, 0x67, 0x72, 0x70, 0x5f, 0x6e, 0x6f, 0x64, 0x65,
0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x67, 0x72, 0x70, 0x4e, 0x6f, 0x64, 0x65,
0x73, 0x12, 0x26, 0x0a, 0x0f, 0x67, 0x72, 0x70, 0x5f, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x5f,
0x6a, 0x6f, 0x62, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x67, 0x72, 0x70, 0x53,
0x75, 0x62, 0x6d, 0x69, 0x74, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x70,
0x5f, 0x77, 0x61, 0x6c, 0x6c, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, 0x70,
0x57, 0x61, 0x6c, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x05,
0x52, 0x02, 0x69, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x69, 0x73, 0x5f, 0x64, 0x65, 0x66, 0x18, 0x0e,
0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x69, 0x73, 0x44, 0x65, 0x66, 0x12, 0x10, 0x0a, 0x03, 0x6c,
0x66, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6c, 0x66, 0x74, 0x12, 0x25, 0x0a,
0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x63, 0x70, 0x75, 0x5f, 0x6d, 0x69, 0x6e, 0x73, 0x5f, 0x70, 0x6a,
0x18, 0x10, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6d, 0x61, 0x78, 0x43, 0x70, 0x75, 0x4d, 0x69,
0x6e, 0x73, 0x50, 0x6a, 0x12, 0x27, 0x0a, 0x10, 0x6d, 0x61, 0x78, 0x5f, 0x63, 0x70, 0x75, 0x5f,
0x72, 0x75, 0x6e, 0x5f, 0x6d, 0x69, 0x6e, 0x73, 0x18, 0x11, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d,
0x6d, 0x61, 0x78, 0x43, 0x70, 0x75, 0x52, 0x75, 0x6e, 0x4d, 0x69, 0x6e, 0x73, 0x12, 0x1e, 0x0a,
0x0b, 0x6d, 0x61, 0x78, 0x5f, 0x63, 0x70, 0x75, 0x73, 0x5f, 0x70, 0x6a, 0x18, 0x12, 0x20, 0x01,
0x28, 0x05, 0x52, 0x09, 0x6d, 0x61, 0x78, 0x43, 0x70, 0x75, 0x73, 0x50, 0x6a, 0x12, 0x19, 0x0a,
0x08, 0x6d, 0x61, 0x78, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x13, 0x20, 0x01, 0x28, 0x05, 0x52,
0x07, 0x6d, 0x61, 0x78, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x20, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f,
0x6e, 0x6f, 0x64, 0x65, 0x73, 0x5f, 0x70, 0x6a, 0x18, 0x14, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a,
0x6d, 0x61, 0x78, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x50, 0x6a, 0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x61,
0x78, 0x5f, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x15, 0x20,
0x01, 0x28, 0x05, 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x4a, 0x6f,
0x62, 0x73, 0x12, 0x1e, 0x0a, 0x0b, 0x6d, 0x61, 0x78, 0x5f, 0x77, 0x61, 0x6c, 0x6c, 0x5f, 0x70,
0x6a, 0x18, 0x16, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x6d, 0x61, 0x78, 0x57, 0x61, 0x6c, 0x6c,
0x50, 0x6a, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x63, 0x63,
0x74, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x41,
0x63, 0x63, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64,
0x18, 0x18, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x64,
0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x19, 0x20,
0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29,
0x0a, 0x08, 0x71, 0x6f, 0x73, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x1a, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x0e, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x51, 0x6f, 0x73, 0x49, 0x6e, 0x66, 0x6f,
0x52, 0x07, 0x71, 0x6f, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x67, 0x74,
0x18, 0x1b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x72, 0x67, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73,
0x68, 0x61, 0x72, 0x65, 0x73, 0x5f, 0x72, 0x61, 0x77, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x05, 0x52,
0x09, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x61, 0x77, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69,
0x64, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x36, 0x0a, 0x0b,
0x61, 0x73, 0x73, 0x6f, 0x63, 0x5f, 0x75, 0x73, 0x61, 0x67, 0x65, 0x18, 0x1e, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x15, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x55,
0x73, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0a, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x55,
0x73, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x1f, 0x20, 0x01,
0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x4f, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74,
0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x12,
0x38, 0x0a, 0x0d, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x53,
0x6c, 0x75, 0x72, 0x6d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x73, 0x6c, 0x75,
0x72, 0x6d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x4f, 0x0a, 0x14, 0x4c, 0x69, 0x73,
0x74, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73,
0x70, 0x12, 0x37, 0x0a, 0x0b, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x73,
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x41,
0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0a,
0x61, 0x73, 0x73, 0x6f, 0x63, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x22, 0xb3, 0x01, 0x0a, 0x11, 0x47,
0x65, 0x74, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71,
0x12, 0x38, 0x0a, 0x0d, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e,
0x53, 0x6c, 0x75, 0x72, 0x6d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x73, 0x6c,
0x75, 0x72, 0x6d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6c,
0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x75,
0x73, 0x74, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18,
0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12,
0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73,
0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18,
0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e,
0x22, 0x4d, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x37, 0x0a, 0x0b, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x5f,
0x69, 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x73, 0x6c,
0x75, 0x72, 0x6d, 0x2e, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49,
0x6e, 0x66, 0x6f, 0x52, 0x0a, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x22,
0x84, 0x01, 0x0a, 0x11, 0x53, 0x65, 0x74, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x38, 0x0a, 0x0d, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x5f, 0x76,
0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x73,
0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x53, 0x6c, 0x75, 0x72, 0x6d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f,
0x6e, 0x52, 0x0c, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12,
0x35, 0x0a, 0x0a, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x41, 0x73, 0x73, 0x6f,
0x63, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x61, 0x73, 0x73,
0x6f, 0x63, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x2c, 0x0a, 0x12, 0x53, 0x65, 0x74, 0x41, 0x73, 0x73,
0x6f, 0x63, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06,
0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x72, 0x65,
0x73, 0x75, 0x6c, 0x74, 0x42, 0x0a, 0x5a, 0x08, 0x2f, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x70, 0x62,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_idl_slurmdb_assoc_proto_rawDescOnce sync.Once
file_idl_slurmdb_assoc_proto_rawDescData = file_idl_slurmdb_assoc_proto_rawDesc
)
func file_idl_slurmdb_assoc_proto_rawDescGZIP() []byte {
file_idl_slurmdb_assoc_proto_rawDescOnce.Do(func() {
file_idl_slurmdb_assoc_proto_rawDescData = protoimpl.X.CompressGZIP(file_idl_slurmdb_assoc_proto_rawDescData)
})
return file_idl_slurmdb_assoc_proto_rawDescData
}
var file_idl_slurmdb_assoc_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
var file_idl_slurmdb_assoc_proto_goTypes = []interface{}{
(*AssocUsageInfo)(nil), // 0: slurm.AssocUsageInfo
(*AssociationInfo)(nil), // 1: slurm.AssociationInfo
(*ListAssociationsReq)(nil), // 2: slurm.ListAssociationsReq
(*ListAssociationsResp)(nil), // 3: slurm.ListAssociationsResp
(*GetAssociationReq)(nil), // 4: slurm.GetAssociationReq
(*GetAssociationResp)(nil), // 5: slurm.GetAssociationResp
(*SetAssociationReq)(nil), // 6: slurm.SetAssociationReq
(*SetAssociationResp)(nil), // 7: slurm.SetAssociationResp
(*AccountingInfo)(nil), // 8: slurm.AccountingInfo
(*QosInfo)(nil), // 9: slurm.QosInfo
(SlurmVersion)(0), // 10: slurm.SlurmVersion
}
var file_idl_slurmdb_assoc_proto_depIdxs = []int32{
8, // 0: slurm.AssociationInfo.accounting_list:type_name -> slurm.AccountingInfo
9, // 1: slurm.AssociationInfo.qos_list:type_name -> slurm.QosInfo
0, // 2: slurm.AssociationInfo.assoc_usage:type_name -> slurm.AssocUsageInfo
10, // 3: slurm.ListAssociationsReq.slurm_version:type_name -> slurm.SlurmVersion
1, // 4: slurm.ListAssociationsResp.assoc_infos:type_name -> slurm.AssociationInfo
10, // 5: slurm.GetAssociationReq.slurm_version:type_name -> slurm.SlurmVersion
1, // 6: slurm.GetAssociationResp.assoc_infos:type_name -> slurm.AssociationInfo
10, // 7: slurm.SetAssociationReq.slurm_version:type_name -> slurm.SlurmVersion
1, // 8: slurm.SetAssociationReq.assoc_info:type_name -> slurm.AssociationInfo
9, // [9:9] is the sub-list for method output_type
9, // [9:9] is the sub-list for method input_type
9, // [9:9] is the sub-list for extension type_name
9, // [9:9] is the sub-list for extension extendee
0, // [0:9] is the sub-list for field type_name
}
func init() { file_idl_slurmdb_assoc_proto_init() }
func file_idl_slurmdb_assoc_proto_init() {
if File_idl_slurmdb_assoc_proto != nil {
return
}
file_idl_static_proto_init()
file_idl_slurmdb_accounting_proto_init()
file_idl_slurmdb_qos_proto_init()
if !protoimpl.UnsafeEnabled {
file_idl_slurmdb_assoc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AssocUsageInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_idl_slurmdb_assoc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AssociationInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_idl_slurmdb_assoc_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListAssociationsReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_idl_slurmdb_assoc_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListAssociationsResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_idl_slurmdb_assoc_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetAssociationReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_idl_slurmdb_assoc_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetAssociationResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_idl_slurmdb_assoc_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SetAssociationReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_idl_slurmdb_assoc_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SetAssociationResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_idl_slurmdb_assoc_proto_rawDesc,
NumEnums: 0,
NumMessages: 8,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_idl_slurmdb_assoc_proto_goTypes,
DependencyIndexes: file_idl_slurmdb_assoc_proto_depIdxs,
MessageInfos: file_idl_slurmdb_assoc_proto_msgTypes,
}.Build()
File_idl_slurmdb_assoc_proto = out.File
file_idl_slurmdb_assoc_proto_rawDesc = nil
file_idl_slurmdb_assoc_proto_goTypes = nil
file_idl_slurmdb_assoc_proto_depIdxs = nil
}

View File

@ -1,280 +0,0 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc (unknown)
// source: idl/slurmdb_cluster.proto
package slurmpb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
_ "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type ClusterInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
AccountingList []*AccountingInfo `protobuf:"bytes,1,rep,name=accounting_list,json=accountingList,proto3" json:"accounting_list,omitempty"`
Classification int32 `protobuf:"varint,2,opt,name=classification,proto3" json:"classification,omitempty"`
ControlHost string `protobuf:"bytes,3,opt,name=control_host,json=controlHost,proto3" json:"control_host,omitempty"`
ControlPort int32 `protobuf:"varint,4,opt,name=control_port,json=controlPort,proto3" json:"control_port,omitempty"`
CpuCount int32 `protobuf:"varint,5,opt,name=cpu_count,json=cpuCount,proto3" json:"cpu_count,omitempty"`
Dimensions int32 `protobuf:"varint,6,opt,name=dimensions,proto3" json:"dimensions,omitempty"`
DimSize int32 `protobuf:"varint,7,opt,name=dim_size,json=dimSize,proto3" json:"dim_size,omitempty"`
Flags int32 `protobuf:"varint,8,opt,name=flags,proto3" json:"flags,omitempty"`
Name string `protobuf:"bytes,9,opt,name=name,proto3" json:"name,omitempty"`
Nodes string `protobuf:"bytes,10,opt,name=nodes,proto3" json:"nodes,omitempty"`
PluginIdSelect int32 `protobuf:"varint,11,opt,name=plugin_id_select,json=pluginIdSelect,proto3" json:"plugin_id_select,omitempty"`
RootAssoc *AssociationInfo `protobuf:"bytes,12,opt,name=root_assoc,json=rootAssoc,proto3" json:"root_assoc,omitempty"`
RpcVersion int32 `protobuf:"varint,13,opt,name=rpc_version,json=rpcVersion,proto3" json:"rpc_version,omitempty"`
}
func (x *ClusterInfo) Reset() {
*x = ClusterInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_slurmdb_cluster_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ClusterInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClusterInfo) ProtoMessage() {}
func (x *ClusterInfo) ProtoReflect() protoreflect.Message {
mi := &file_idl_slurmdb_cluster_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ClusterInfo.ProtoReflect.Descriptor instead.
func (*ClusterInfo) Descriptor() ([]byte, []int) {
return file_idl_slurmdb_cluster_proto_rawDescGZIP(), []int{0}
}
func (x *ClusterInfo) GetAccountingList() []*AccountingInfo {
if x != nil {
return x.AccountingList
}
return nil
}
func (x *ClusterInfo) GetClassification() int32 {
if x != nil {
return x.Classification
}
return 0
}
func (x *ClusterInfo) GetControlHost() string {
if x != nil {
return x.ControlHost
}
return ""
}
func (x *ClusterInfo) GetControlPort() int32 {
if x != nil {
return x.ControlPort
}
return 0
}
func (x *ClusterInfo) GetCpuCount() int32 {
if x != nil {
return x.CpuCount
}
return 0
}
func (x *ClusterInfo) GetDimensions() int32 {
if x != nil {
return x.Dimensions
}
return 0
}
func (x *ClusterInfo) GetDimSize() int32 {
if x != nil {
return x.DimSize
}
return 0
}
func (x *ClusterInfo) GetFlags() int32 {
if x != nil {
return x.Flags
}
return 0
}
func (x *ClusterInfo) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *ClusterInfo) GetNodes() string {
if x != nil {
return x.Nodes
}
return ""
}
func (x *ClusterInfo) GetPluginIdSelect() int32 {
if x != nil {
return x.PluginIdSelect
}
return 0
}
func (x *ClusterInfo) GetRootAssoc() *AssociationInfo {
if x != nil {
return x.RootAssoc
}
return nil
}
func (x *ClusterInfo) GetRpcVersion() int32 {
if x != nil {
return x.RpcVersion
}
return 0
}
var File_idl_slurmdb_cluster_proto protoreflect.FileDescriptor
var file_idl_slurmdb_cluster_proto_rawDesc = []byte{
0x0a, 0x19, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x64, 0x62, 0x5f, 0x63, 0x6c,
0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x73, 0x6c, 0x75,
0x72, 0x6d, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x10, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x6c, 0x75, 0x72, 0x6d,
0x64, 0x62, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x64, 0x62,
0x5f, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd5, 0x03, 0x0a,
0x0b, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3e, 0x0a, 0x0f,
0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18,
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x41, 0x63,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0e, 0x61, 0x63,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0e,
0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02,
0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x5f,
0x68, 0x6f, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74,
0x72, 0x6f, 0x6c, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x72,
0x6f, 0x6c, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x63,
0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x70,
0x75, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x63,
0x70, 0x75, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x69, 0x6d, 0x65, 0x6e,
0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x64, 0x69, 0x6d,
0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x64, 0x69, 0x6d, 0x5f, 0x73,
0x69, 0x7a, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x64, 0x69, 0x6d, 0x53, 0x69,
0x7a, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28,
0x05, 0x52, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05,
0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x64,
0x65, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x5f,
0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x70, 0x6c,
0x75, 0x67, 0x69, 0x6e, 0x49, 0x64, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x12, 0x35, 0x0a, 0x0a,
0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x16, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x72, 0x6f, 0x6f, 0x74, 0x41, 0x73,
0x73, 0x6f, 0x63, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x70, 0x63, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69,
0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x72, 0x70, 0x63, 0x56, 0x65, 0x72,
0x73, 0x69, 0x6f, 0x6e, 0x42, 0x0a, 0x5a, 0x08, 0x2f, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x70, 0x62,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_idl_slurmdb_cluster_proto_rawDescOnce sync.Once
file_idl_slurmdb_cluster_proto_rawDescData = file_idl_slurmdb_cluster_proto_rawDesc
)
func file_idl_slurmdb_cluster_proto_rawDescGZIP() []byte {
file_idl_slurmdb_cluster_proto_rawDescOnce.Do(func() {
file_idl_slurmdb_cluster_proto_rawDescData = protoimpl.X.CompressGZIP(file_idl_slurmdb_cluster_proto_rawDescData)
})
return file_idl_slurmdb_cluster_proto_rawDescData
}
var file_idl_slurmdb_cluster_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_idl_slurmdb_cluster_proto_goTypes = []interface{}{
(*ClusterInfo)(nil), // 0: slurm.ClusterInfo
(*AccountingInfo)(nil), // 1: slurm.AccountingInfo
(*AssociationInfo)(nil), // 2: slurm.AssociationInfo
}
var file_idl_slurmdb_cluster_proto_depIdxs = []int32{
1, // 0: slurm.ClusterInfo.accounting_list:type_name -> slurm.AccountingInfo
2, // 1: slurm.ClusterInfo.root_assoc:type_name -> slurm.AssociationInfo
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_idl_slurmdb_cluster_proto_init() }
func file_idl_slurmdb_cluster_proto_init() {
if File_idl_slurmdb_cluster_proto != nil {
return
}
file_idl_static_proto_init()
file_idl_slurmdb_accounting_proto_init()
file_idl_slurmdb_assoc_proto_init()
if !protoimpl.UnsafeEnabled {
file_idl_slurmdb_cluster_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ClusterInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_idl_slurmdb_cluster_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_idl_slurmdb_cluster_proto_goTypes,
DependencyIndexes: file_idl_slurmdb_cluster_proto_depIdxs,
MessageInfos: file_idl_slurmdb_cluster_proto_msgTypes,
}.Build()
File_idl_slurmdb_cluster_proto = out.File
file_idl_slurmdb_cluster_proto_rawDesc = nil
file_idl_slurmdb_cluster_proto_goTypes = nil
file_idl_slurmdb_cluster_proto_depIdxs = nil
}

View File

@ -1,156 +0,0 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc (unknown)
// source: idl/slurmdb_coord.proto
package slurmpb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
_ "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type CoordInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Direct int32 `protobuf:"varint,2,opt,name=direct,proto3" json:"direct,omitempty"`
}
func (x *CoordInfo) Reset() {
*x = CoordInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_slurmdb_coord_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CoordInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CoordInfo) ProtoMessage() {}
func (x *CoordInfo) ProtoReflect() protoreflect.Message {
mi := &file_idl_slurmdb_coord_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CoordInfo.ProtoReflect.Descriptor instead.
func (*CoordInfo) Descriptor() ([]byte, []int) {
return file_idl_slurmdb_coord_proto_rawDescGZIP(), []int{0}
}
func (x *CoordInfo) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *CoordInfo) GetDirect() int32 {
if x != nil {
return x.Direct
}
return 0
}
var File_idl_slurmdb_coord_proto protoreflect.FileDescriptor
var file_idl_slurmdb_coord_proto_rawDesc = []byte{
0x0a, 0x17, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x64, 0x62, 0x5f, 0x63, 0x6f,
0x6f, 0x72, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x73, 0x6c, 0x75, 0x72, 0x6d,
0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x10, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x22, 0x37, 0x0a, 0x09, 0x43, 0x6f, 0x6f, 0x72, 0x64, 0x49, 0x6e, 0x66, 0x6f,
0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x18, 0x02,
0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x42, 0x0a, 0x5a, 0x08,
0x2f, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_idl_slurmdb_coord_proto_rawDescOnce sync.Once
file_idl_slurmdb_coord_proto_rawDescData = file_idl_slurmdb_coord_proto_rawDesc
)
func file_idl_slurmdb_coord_proto_rawDescGZIP() []byte {
file_idl_slurmdb_coord_proto_rawDescOnce.Do(func() {
file_idl_slurmdb_coord_proto_rawDescData = protoimpl.X.CompressGZIP(file_idl_slurmdb_coord_proto_rawDescData)
})
return file_idl_slurmdb_coord_proto_rawDescData
}
var file_idl_slurmdb_coord_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_idl_slurmdb_coord_proto_goTypes = []interface{}{
(*CoordInfo)(nil), // 0: slurm.CoordInfo
}
var file_idl_slurmdb_coord_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_idl_slurmdb_coord_proto_init() }
func file_idl_slurmdb_coord_proto_init() {
if File_idl_slurmdb_coord_proto != nil {
return
}
file_idl_static_proto_init()
if !protoimpl.UnsafeEnabled {
file_idl_slurmdb_coord_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CoordInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_idl_slurmdb_coord_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_idl_slurmdb_coord_proto_goTypes,
DependencyIndexes: file_idl_slurmdb_coord_proto_depIdxs,
MessageInfos: file_idl_slurmdb_coord_proto_msgTypes,
}.Build()
File_idl_slurmdb_coord_proto = out.File
file_idl_slurmdb_coord_proto_rawDesc = nil
file_idl_slurmdb_coord_proto_goTypes = nil
file_idl_slurmdb_coord_proto_depIdxs = nil
}

View File

@ -1,603 +0,0 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc (unknown)
// source: idl/slurmdb_qos.proto
package slurmpb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
_ "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type QosUsageInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *QosUsageInfo) Reset() {
*x = QosUsageInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_slurmdb_qos_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QosUsageInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QosUsageInfo) ProtoMessage() {}
func (x *QosUsageInfo) ProtoReflect() protoreflect.Message {
mi := &file_idl_slurmdb_qos_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use QosUsageInfo.ProtoReflect.Descriptor instead.
func (*QosUsageInfo) Descriptor() ([]byte, []int) {
return file_idl_slurmdb_qos_proto_rawDescGZIP(), []int{0}
}
type QosInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
Id int32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
Flags int32 `protobuf:"varint,3,opt,name=flags,proto3" json:"flags,omitempty"`
GraceTime int32 `protobuf:"varint,4,opt,name=grace_time,json=graceTime,proto3" json:"grace_time,omitempty"`
GrpCpuMins int64 `protobuf:"varint,5,opt,name=grp_cpu_mins,json=grpCpuMins,proto3" json:"grp_cpu_mins,omitempty"`
GrpCpuRunMins int64 `protobuf:"varint,6,opt,name=grp_cpu_run_mins,json=grpCpuRunMins,proto3" json:"grp_cpu_run_mins,omitempty"`
GrpCpus int32 `protobuf:"varint,7,opt,name=grp_cpus,json=grpCpus,proto3" json:"grp_cpus,omitempty"`
GrpJobs int32 `protobuf:"varint,8,opt,name=grp_jobs,json=grpJobs,proto3" json:"grp_jobs,omitempty"`
GrpMem int32 `protobuf:"varint,9,opt,name=grp_mem,json=grpMem,proto3" json:"grp_mem,omitempty"`
GrpNodes int32 `protobuf:"varint,10,opt,name=grp_nodes,json=grpNodes,proto3" json:"grp_nodes,omitempty"`
GrpSubmitJobs int32 `protobuf:"varint,11,opt,name=grp_submit_jobs,json=grpSubmitJobs,proto3" json:"grp_submit_jobs,omitempty"`
GrpWall int32 `protobuf:"varint,12,opt,name=grp_wall,json=grpWall,proto3" json:"grp_wall,omitempty"`
MaxCpuMinsPj int64 `protobuf:"varint,13,opt,name=max_cpu_mins_pj,json=maxCpuMinsPj,proto3" json:"max_cpu_mins_pj,omitempty"`
MaxCpuRunMinsPu int64 `protobuf:"varint,14,opt,name=max_cpu_run_mins_pu,json=maxCpuRunMinsPu,proto3" json:"max_cpu_run_mins_pu,omitempty"`
MaxCpusPj int32 `protobuf:"varint,15,opt,name=max_cpus_pj,json=maxCpusPj,proto3" json:"max_cpus_pj,omitempty"`
MaxCpusPu int32 `protobuf:"varint,16,opt,name=max_cpus_pu,json=maxCpusPu,proto3" json:"max_cpus_pu,omitempty"`
MaxJobsPu int32 `protobuf:"varint,17,opt,name=max_jobs_pu,json=maxJobsPu,proto3" json:"max_jobs_pu,omitempty"`
MaxNodesPj int32 `protobuf:"varint,18,opt,name=max_nodes_pj,json=maxNodesPj,proto3" json:"max_nodes_pj,omitempty"`
MaxSubmitJobsPu int32 `protobuf:"varint,19,opt,name=max_submit_jobs_pu,json=maxSubmitJobsPu,proto3" json:"max_submit_jobs_pu,omitempty"`
MaxWallPj int32 `protobuf:"varint,20,opt,name=max_wall_pj,json=maxWallPj,proto3" json:"max_wall_pj,omitempty"`
Name string `protobuf:"bytes,21,opt,name=name,proto3" json:"name,omitempty"`
PreemptBitstr int32 `protobuf:"varint,22,opt,name=preempt_bitstr,json=preemptBitstr,proto3" json:"preempt_bitstr,omitempty"`
PreemptList []string `protobuf:"bytes,23,rep,name=preempt_list,json=preemptList,proto3" json:"preempt_list,omitempty"`
PreemptMode int32 `protobuf:"varint,24,opt,name=preempt_mode,json=preemptMode,proto3" json:"preempt_mode,omitempty"`
Priority int32 `protobuf:"varint,25,opt,name=priority,proto3" json:"priority,omitempty"`
Usage *QosUsageInfo `protobuf:"bytes,26,opt,name=usage,proto3" json:"usage,omitempty"`
UsageFactor float64 `protobuf:"fixed64,27,opt,name=usageFactor,proto3" json:"usageFactor,omitempty"`
UsageThres float64 `protobuf:"fixed64,28,opt,name=usage_thres,json=usageThres,proto3" json:"usage_thres,omitempty"`
}
func (x *QosInfo) Reset() {
*x = QosInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_slurmdb_qos_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QosInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QosInfo) ProtoMessage() {}
func (x *QosInfo) ProtoReflect() protoreflect.Message {
mi := &file_idl_slurmdb_qos_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use QosInfo.ProtoReflect.Descriptor instead.
func (*QosInfo) Descriptor() ([]byte, []int) {
return file_idl_slurmdb_qos_proto_rawDescGZIP(), []int{1}
}
func (x *QosInfo) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *QosInfo) GetId() int32 {
if x != nil {
return x.Id
}
return 0
}
func (x *QosInfo) GetFlags() int32 {
if x != nil {
return x.Flags
}
return 0
}
func (x *QosInfo) GetGraceTime() int32 {
if x != nil {
return x.GraceTime
}
return 0
}
func (x *QosInfo) GetGrpCpuMins() int64 {
if x != nil {
return x.GrpCpuMins
}
return 0
}
func (x *QosInfo) GetGrpCpuRunMins() int64 {
if x != nil {
return x.GrpCpuRunMins
}
return 0
}
func (x *QosInfo) GetGrpCpus() int32 {
if x != nil {
return x.GrpCpus
}
return 0
}
func (x *QosInfo) GetGrpJobs() int32 {
if x != nil {
return x.GrpJobs
}
return 0
}
func (x *QosInfo) GetGrpMem() int32 {
if x != nil {
return x.GrpMem
}
return 0
}
func (x *QosInfo) GetGrpNodes() int32 {
if x != nil {
return x.GrpNodes
}
return 0
}
func (x *QosInfo) GetGrpSubmitJobs() int32 {
if x != nil {
return x.GrpSubmitJobs
}
return 0
}
func (x *QosInfo) GetGrpWall() int32 {
if x != nil {
return x.GrpWall
}
return 0
}
func (x *QosInfo) GetMaxCpuMinsPj() int64 {
if x != nil {
return x.MaxCpuMinsPj
}
return 0
}
func (x *QosInfo) GetMaxCpuRunMinsPu() int64 {
if x != nil {
return x.MaxCpuRunMinsPu
}
return 0
}
func (x *QosInfo) GetMaxCpusPj() int32 {
if x != nil {
return x.MaxCpusPj
}
return 0
}
func (x *QosInfo) GetMaxCpusPu() int32 {
if x != nil {
return x.MaxCpusPu
}
return 0
}
func (x *QosInfo) GetMaxJobsPu() int32 {
if x != nil {
return x.MaxJobsPu
}
return 0
}
func (x *QosInfo) GetMaxNodesPj() int32 {
if x != nil {
return x.MaxNodesPj
}
return 0
}
func (x *QosInfo) GetMaxSubmitJobsPu() int32 {
if x != nil {
return x.MaxSubmitJobsPu
}
return 0
}
func (x *QosInfo) GetMaxWallPj() int32 {
if x != nil {
return x.MaxWallPj
}
return 0
}
func (x *QosInfo) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *QosInfo) GetPreemptBitstr() int32 {
if x != nil {
return x.PreemptBitstr
}
return 0
}
func (x *QosInfo) GetPreemptList() []string {
if x != nil {
return x.PreemptList
}
return nil
}
func (x *QosInfo) GetPreemptMode() int32 {
if x != nil {
return x.PreemptMode
}
return 0
}
func (x *QosInfo) GetPriority() int32 {
if x != nil {
return x.Priority
}
return 0
}
func (x *QosInfo) GetUsage() *QosUsageInfo {
if x != nil {
return x.Usage
}
return nil
}
func (x *QosInfo) GetUsageFactor() float64 {
if x != nil {
return x.UsageFactor
}
return 0
}
func (x *QosInfo) GetUsageThres() float64 {
if x != nil {
return x.UsageThres
}
return 0
}
type ListQossReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
SlurmVersion SlurmVersion `protobuf:"varint,1,opt,name=slurm_version,json=slurmVersion,proto3,enum=slurm.SlurmVersion" json:"slurm_version,omitempty"`
}
func (x *ListQossReq) Reset() {
*x = ListQossReq{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_slurmdb_qos_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListQossReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListQossReq) ProtoMessage() {}
func (x *ListQossReq) ProtoReflect() protoreflect.Message {
mi := &file_idl_slurmdb_qos_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListQossReq.ProtoReflect.Descriptor instead.
func (*ListQossReq) Descriptor() ([]byte, []int) {
return file_idl_slurmdb_qos_proto_rawDescGZIP(), []int{2}
}
func (x *ListQossReq) GetSlurmVersion() SlurmVersion {
if x != nil {
return x.SlurmVersion
}
return SlurmVersion_tianhe
}
type ListQossResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
QosInfos []*QosInfo `protobuf:"bytes,1,rep,name=qos_infos,json=qosInfos,proto3" json:"qos_infos,omitempty"`
}
func (x *ListQossResp) Reset() {
*x = ListQossResp{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_slurmdb_qos_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListQossResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListQossResp) ProtoMessage() {}
func (x *ListQossResp) ProtoReflect() protoreflect.Message {
mi := &file_idl_slurmdb_qos_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListQossResp.ProtoReflect.Descriptor instead.
func (*ListQossResp) Descriptor() ([]byte, []int) {
return file_idl_slurmdb_qos_proto_rawDescGZIP(), []int{3}
}
func (x *ListQossResp) GetQosInfos() []*QosInfo {
if x != nil {
return x.QosInfos
}
return nil
}
var File_idl_slurmdb_qos_proto protoreflect.FileDescriptor
var file_idl_slurmdb_qos_proto_rawDesc = []byte{
0x0a, 0x15, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x64, 0x62, 0x5f, 0x71, 0x6f,
0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x1a, 0x1f,
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,
0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
0x10, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x22, 0x0e, 0x0a, 0x0c, 0x51, 0x6f, 0x73, 0x55, 0x73, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x66,
0x6f, 0x22, 0x99, 0x07, 0x0a, 0x07, 0x51, 0x6f, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x20, 0x0a,
0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12,
0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12,
0x14, 0x0a, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05,
0x66, 0x6c, 0x61, 0x67, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x74,
0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x67, 0x72, 0x61, 0x63, 0x65,
0x54, 0x69, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0c, 0x67, 0x72, 0x70, 0x5f, 0x63, 0x70, 0x75, 0x5f,
0x6d, 0x69, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x67, 0x72, 0x70, 0x43,
0x70, 0x75, 0x4d, 0x69, 0x6e, 0x73, 0x12, 0x27, 0x0a, 0x10, 0x67, 0x72, 0x70, 0x5f, 0x63, 0x70,
0x75, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x6d, 0x69, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03,
0x52, 0x0d, 0x67, 0x72, 0x70, 0x43, 0x70, 0x75, 0x52, 0x75, 0x6e, 0x4d, 0x69, 0x6e, 0x73, 0x12,
0x19, 0x0a, 0x08, 0x67, 0x72, 0x70, 0x5f, 0x63, 0x70, 0x75, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28,
0x05, 0x52, 0x07, 0x67, 0x72, 0x70, 0x43, 0x70, 0x75, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72,
0x70, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72,
0x70, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x67, 0x72, 0x70, 0x5f, 0x6d, 0x65, 0x6d,
0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x67, 0x72, 0x70, 0x4d, 0x65, 0x6d, 0x12, 0x1b,
0x0a, 0x09, 0x67, 0x72, 0x70, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28,
0x05, 0x52, 0x08, 0x67, 0x72, 0x70, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x67,
0x72, 0x70, 0x5f, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x0b,
0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x67, 0x72, 0x70, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x4a,
0x6f, 0x62, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x70, 0x5f, 0x77, 0x61, 0x6c, 0x6c, 0x18,
0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, 0x70, 0x57, 0x61, 0x6c, 0x6c, 0x12, 0x25,
0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x63, 0x70, 0x75, 0x5f, 0x6d, 0x69, 0x6e, 0x73, 0x5f, 0x70,
0x6a, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6d, 0x61, 0x78, 0x43, 0x70, 0x75, 0x4d,
0x69, 0x6e, 0x73, 0x50, 0x6a, 0x12, 0x2c, 0x0a, 0x13, 0x6d, 0x61, 0x78, 0x5f, 0x63, 0x70, 0x75,
0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x6d, 0x69, 0x6e, 0x73, 0x5f, 0x70, 0x75, 0x18, 0x0e, 0x20, 0x01,
0x28, 0x03, 0x52, 0x0f, 0x6d, 0x61, 0x78, 0x43, 0x70, 0x75, 0x52, 0x75, 0x6e, 0x4d, 0x69, 0x6e,
0x73, 0x50, 0x75, 0x12, 0x1e, 0x0a, 0x0b, 0x6d, 0x61, 0x78, 0x5f, 0x63, 0x70, 0x75, 0x73, 0x5f,
0x70, 0x6a, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x6d, 0x61, 0x78, 0x43, 0x70, 0x75,
0x73, 0x50, 0x6a, 0x12, 0x1e, 0x0a, 0x0b, 0x6d, 0x61, 0x78, 0x5f, 0x63, 0x70, 0x75, 0x73, 0x5f,
0x70, 0x75, 0x18, 0x10, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x6d, 0x61, 0x78, 0x43, 0x70, 0x75,
0x73, 0x50, 0x75, 0x12, 0x1e, 0x0a, 0x0b, 0x6d, 0x61, 0x78, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x5f,
0x70, 0x75, 0x18, 0x11, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x6d, 0x61, 0x78, 0x4a, 0x6f, 0x62,
0x73, 0x50, 0x75, 0x12, 0x20, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x73,
0x5f, 0x70, 0x6a, 0x18, 0x12, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6d, 0x61, 0x78, 0x4e, 0x6f,
0x64, 0x65, 0x73, 0x50, 0x6a, 0x12, 0x2b, 0x0a, 0x12, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x75, 0x62,
0x6d, 0x69, 0x74, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x5f, 0x70, 0x75, 0x18, 0x13, 0x20, 0x01, 0x28,
0x05, 0x52, 0x0f, 0x6d, 0x61, 0x78, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x4a, 0x6f, 0x62, 0x73,
0x50, 0x75, 0x12, 0x1e, 0x0a, 0x0b, 0x6d, 0x61, 0x78, 0x5f, 0x77, 0x61, 0x6c, 0x6c, 0x5f, 0x70,
0x6a, 0x18, 0x14, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x6d, 0x61, 0x78, 0x57, 0x61, 0x6c, 0x6c,
0x50, 0x6a, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09,
0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x65, 0x6d, 0x70,
0x74, 0x5f, 0x62, 0x69, 0x74, 0x73, 0x74, 0x72, 0x18, 0x16, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d,
0x70, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x42, 0x69, 0x74, 0x73, 0x74, 0x72, 0x12, 0x21, 0x0a,
0x0c, 0x70, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x17, 0x20,
0x03, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x4c, 0x69, 0x73, 0x74,
0x12, 0x21, 0x0a, 0x0c, 0x70, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x5f, 0x6d, 0x6f, 0x64, 0x65,
0x18, 0x18, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x70, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x4d,
0x6f, 0x64, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18,
0x19, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12,
0x29, 0x0a, 0x05, 0x75, 0x73, 0x61, 0x67, 0x65, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13,
0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x51, 0x6f, 0x73, 0x55, 0x73, 0x61, 0x67, 0x65, 0x49,
0x6e, 0x66, 0x6f, 0x52, 0x05, 0x75, 0x73, 0x61, 0x67, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x75, 0x73,
0x61, 0x67, 0x65, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x01, 0x52,
0x0b, 0x75, 0x73, 0x61, 0x67, 0x65, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x1f, 0x0a, 0x0b,
0x75, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x18, 0x1c, 0x20, 0x01, 0x28,
0x01, 0x52, 0x0a, 0x75, 0x73, 0x61, 0x67, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x22, 0x47, 0x0a,
0x0b, 0x4c, 0x69, 0x73, 0x74, 0x51, 0x6f, 0x73, 0x73, 0x52, 0x65, 0x71, 0x12, 0x38, 0x0a, 0x0d,
0x73, 0x6c, 0x75, 0x72, 0x6d, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x53, 0x6c, 0x75, 0x72,
0x6d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x56,
0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x3b, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x51, 0x6f,
0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2b, 0x0a, 0x09, 0x71, 0x6f, 0x73, 0x5f, 0x69, 0x6e,
0x66, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x73, 0x6c, 0x75, 0x72,
0x6d, 0x2e, 0x51, 0x6f, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x71, 0x6f, 0x73, 0x49, 0x6e,
0x66, 0x6f, 0x73, 0x42, 0x0a, 0x5a, 0x08, 0x2f, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x70, 0x62, 0x62,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_idl_slurmdb_qos_proto_rawDescOnce sync.Once
file_idl_slurmdb_qos_proto_rawDescData = file_idl_slurmdb_qos_proto_rawDesc
)
func file_idl_slurmdb_qos_proto_rawDescGZIP() []byte {
file_idl_slurmdb_qos_proto_rawDescOnce.Do(func() {
file_idl_slurmdb_qos_proto_rawDescData = protoimpl.X.CompressGZIP(file_idl_slurmdb_qos_proto_rawDescData)
})
return file_idl_slurmdb_qos_proto_rawDescData
}
var file_idl_slurmdb_qos_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_idl_slurmdb_qos_proto_goTypes = []interface{}{
(*QosUsageInfo)(nil), // 0: slurm.QosUsageInfo
(*QosInfo)(nil), // 1: slurm.QosInfo
(*ListQossReq)(nil), // 2: slurm.ListQossReq
(*ListQossResp)(nil), // 3: slurm.ListQossResp
(SlurmVersion)(0), // 4: slurm.SlurmVersion
}
var file_idl_slurmdb_qos_proto_depIdxs = []int32{
0, // 0: slurm.QosInfo.usage:type_name -> slurm.QosUsageInfo
4, // 1: slurm.ListQossReq.slurm_version:type_name -> slurm.SlurmVersion
1, // 2: slurm.ListQossResp.qos_infos:type_name -> slurm.QosInfo
3, // [3:3] is the sub-list for method output_type
3, // [3:3] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_idl_slurmdb_qos_proto_init() }
func file_idl_slurmdb_qos_proto_init() {
if File_idl_slurmdb_qos_proto != nil {
return
}
file_idl_static_proto_init()
if !protoimpl.UnsafeEnabled {
file_idl_slurmdb_qos_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QosUsageInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_idl_slurmdb_qos_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QosInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_idl_slurmdb_qos_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListQossReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_idl_slurmdb_qos_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListQossResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_idl_slurmdb_qos_proto_rawDesc,
NumEnums: 0,
NumMessages: 4,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_idl_slurmdb_qos_proto_goTypes,
DependencyIndexes: file_idl_slurmdb_qos_proto_depIdxs,
MessageInfos: file_idl_slurmdb_qos_proto_msgTypes,
}.Build()
File_idl_slurmdb_qos_proto = out.File
file_idl_slurmdb_qos_proto_rawDesc = nil
file_idl_slurmdb_qos_proto_goTypes = nil
file_idl_slurmdb_qos_proto_depIdxs = nil
}

File diff suppressed because it is too large Load Diff

View File

@ -1,482 +0,0 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc (unknown)
// source: idl/slurmdb_wckey.proto
package slurmpb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
_ "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type WckeyInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
AccountingList []*AccountingInfo `protobuf:"bytes,1,rep,name=accounting_list,json=accountingList,proto3" json:"accounting_list,omitempty"`
Cluster string `protobuf:"bytes,2,opt,name=cluster,proto3" json:"cluster,omitempty"`
Id int32 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"`
IsDef int32 `protobuf:"varint,4,opt,name=is_def,json=isDef,proto3" json:"is_def,omitempty"`
Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
Uid int32 `protobuf:"varint,6,opt,name=uid,proto3" json:"uid,omitempty"`
User string `protobuf:"bytes,7,opt,name=user,proto3" json:"user,omitempty"`
}
func (x *WckeyInfo) Reset() {
*x = WckeyInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_slurmdb_wckey_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *WckeyInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WckeyInfo) ProtoMessage() {}
func (x *WckeyInfo) ProtoReflect() protoreflect.Message {
mi := &file_idl_slurmdb_wckey_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use WckeyInfo.ProtoReflect.Descriptor instead.
func (*WckeyInfo) Descriptor() ([]byte, []int) {
return file_idl_slurmdb_wckey_proto_rawDescGZIP(), []int{0}
}
func (x *WckeyInfo) GetAccountingList() []*AccountingInfo {
if x != nil {
return x.AccountingList
}
return nil
}
func (x *WckeyInfo) GetCluster() string {
if x != nil {
return x.Cluster
}
return ""
}
func (x *WckeyInfo) GetId() int32 {
if x != nil {
return x.Id
}
return 0
}
func (x *WckeyInfo) GetIsDef() int32 {
if x != nil {
return x.IsDef
}
return 0
}
func (x *WckeyInfo) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *WckeyInfo) GetUid() int32 {
if x != nil {
return x.Uid
}
return 0
}
func (x *WckeyInfo) GetUser() string {
if x != nil {
return x.User
}
return ""
}
type ListWckeysReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
SlurmVersion SlurmVersion `protobuf:"varint,1,opt,name=slurm_version,json=slurmVersion,proto3,enum=slurm.SlurmVersion" json:"slurm_version,omitempty"`
}
func (x *ListWckeysReq) Reset() {
*x = ListWckeysReq{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_slurmdb_wckey_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListWckeysReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListWckeysReq) ProtoMessage() {}
func (x *ListWckeysReq) ProtoReflect() protoreflect.Message {
mi := &file_idl_slurmdb_wckey_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListWckeysReq.ProtoReflect.Descriptor instead.
func (*ListWckeysReq) Descriptor() ([]byte, []int) {
return file_idl_slurmdb_wckey_proto_rawDescGZIP(), []int{1}
}
func (x *ListWckeysReq) GetSlurmVersion() SlurmVersion {
if x != nil {
return x.SlurmVersion
}
return SlurmVersion_tianhe
}
type ListWckeysResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
WckeyInfos []*WckeyInfo `protobuf:"bytes,1,rep,name=wckey_infos,json=wckeyInfos,proto3" json:"wckey_infos,omitempty"`
}
func (x *ListWckeysResp) Reset() {
*x = ListWckeysResp{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_slurmdb_wckey_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListWckeysResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListWckeysResp) ProtoMessage() {}
func (x *ListWckeysResp) ProtoReflect() protoreflect.Message {
mi := &file_idl_slurmdb_wckey_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListWckeysResp.ProtoReflect.Descriptor instead.
func (*ListWckeysResp) Descriptor() ([]byte, []int) {
return file_idl_slurmdb_wckey_proto_rawDescGZIP(), []int{2}
}
func (x *ListWckeysResp) GetWckeyInfos() []*WckeyInfo {
if x != nil {
return x.WckeyInfos
}
return nil
}
type GetWckeyReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
SlurmVersion SlurmVersion `protobuf:"varint,1,opt,name=slurm_version,json=slurmVersion,proto3,enum=slurm.SlurmVersion" json:"slurm_version,omitempty"`
Wckey string `protobuf:"bytes,2,opt,name=wckey,proto3" json:"wckey,omitempty"`
}
func (x *GetWckeyReq) Reset() {
*x = GetWckeyReq{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_slurmdb_wckey_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetWckeyReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetWckeyReq) ProtoMessage() {}
func (x *GetWckeyReq) ProtoReflect() protoreflect.Message {
mi := &file_idl_slurmdb_wckey_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetWckeyReq.ProtoReflect.Descriptor instead.
func (*GetWckeyReq) Descriptor() ([]byte, []int) {
return file_idl_slurmdb_wckey_proto_rawDescGZIP(), []int{3}
}
func (x *GetWckeyReq) GetSlurmVersion() SlurmVersion {
if x != nil {
return x.SlurmVersion
}
return SlurmVersion_tianhe
}
func (x *GetWckeyReq) GetWckey() string {
if x != nil {
return x.Wckey
}
return ""
}
type GetWckeyResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
WckeyInfo []*WckeyInfo `protobuf:"bytes,1,rep,name=wckey_info,json=wckeyInfo,proto3" json:"wckey_info,omitempty"`
}
func (x *GetWckeyResp) Reset() {
*x = GetWckeyResp{}
if protoimpl.UnsafeEnabled {
mi := &file_idl_slurmdb_wckey_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetWckeyResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetWckeyResp) ProtoMessage() {}
func (x *GetWckeyResp) ProtoReflect() protoreflect.Message {
mi := &file_idl_slurmdb_wckey_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetWckeyResp.ProtoReflect.Descriptor instead.
func (*GetWckeyResp) Descriptor() ([]byte, []int) {
return file_idl_slurmdb_wckey_proto_rawDescGZIP(), []int{4}
}
func (x *GetWckeyResp) GetWckeyInfo() []*WckeyInfo {
if x != nil {
return x.WckeyInfo
}
return nil
}
var File_idl_slurmdb_wckey_proto protoreflect.FileDescriptor
var file_idl_slurmdb_wckey_proto_rawDesc = []byte{
0x0a, 0x17, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x64, 0x62, 0x5f, 0x77, 0x63,
0x6b, 0x65, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x73, 0x6c, 0x75, 0x72, 0x6d,
0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x10, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x64, 0x62,
0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x22, 0xc6, 0x01, 0x0a, 0x09, 0x57, 0x63, 0x6b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x12,
0x3e, 0x0a, 0x0f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x69,
0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d,
0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x52,
0x0e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x4c, 0x69, 0x73, 0x74, 0x12,
0x18, 0x0a, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x52, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x69, 0x73, 0x5f,
0x64, 0x65, 0x66, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x69, 0x73, 0x44, 0x65, 0x66,
0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28,
0x05, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x07,
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x49, 0x0a, 0x0d, 0x4c, 0x69,
0x73, 0x74, 0x57, 0x63, 0x6b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x71, 0x12, 0x38, 0x0a, 0x0d, 0x73,
0x6c, 0x75, 0x72, 0x6d, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0e, 0x32, 0x13, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x53, 0x6c, 0x75, 0x72, 0x6d,
0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x56, 0x65,
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x43, 0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x63, 0x6b,
0x65, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x31, 0x0a, 0x0b, 0x77, 0x63, 0x6b, 0x65, 0x79,
0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x73,
0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x57, 0x63, 0x6b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0a,
0x77, 0x63, 0x6b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x22, 0x5d, 0x0a, 0x0b, 0x47, 0x65,
0x74, 0x57, 0x63, 0x6b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x12, 0x38, 0x0a, 0x0d, 0x73, 0x6c, 0x75,
0x72, 0x6d, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
0x32, 0x13, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x53, 0x6c, 0x75, 0x72, 0x6d, 0x56, 0x65,
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x56, 0x65, 0x72, 0x73,
0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x63, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01,
0x28, 0x09, 0x52, 0x05, 0x77, 0x63, 0x6b, 0x65, 0x79, 0x22, 0x3f, 0x0a, 0x0c, 0x47, 0x65, 0x74,
0x57, 0x63, 0x6b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2f, 0x0a, 0x0a, 0x77, 0x63, 0x6b,
0x65, 0x79, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e,
0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x57, 0x63, 0x6b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52,
0x09, 0x77, 0x63, 0x6b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x0a, 0x5a, 0x08, 0x2f, 0x73,
0x6c, 0x75, 0x72, 0x6d, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_idl_slurmdb_wckey_proto_rawDescOnce sync.Once
file_idl_slurmdb_wckey_proto_rawDescData = file_idl_slurmdb_wckey_proto_rawDesc
)
func file_idl_slurmdb_wckey_proto_rawDescGZIP() []byte {
file_idl_slurmdb_wckey_proto_rawDescOnce.Do(func() {
file_idl_slurmdb_wckey_proto_rawDescData = protoimpl.X.CompressGZIP(file_idl_slurmdb_wckey_proto_rawDescData)
})
return file_idl_slurmdb_wckey_proto_rawDescData
}
var file_idl_slurmdb_wckey_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_idl_slurmdb_wckey_proto_goTypes = []interface{}{
(*WckeyInfo)(nil), // 0: slurm.WckeyInfo
(*ListWckeysReq)(nil), // 1: slurm.ListWckeysReq
(*ListWckeysResp)(nil), // 2: slurm.ListWckeysResp
(*GetWckeyReq)(nil), // 3: slurm.GetWckeyReq
(*GetWckeyResp)(nil), // 4: slurm.GetWckeyResp
(*AccountingInfo)(nil), // 5: slurm.AccountingInfo
(SlurmVersion)(0), // 6: slurm.SlurmVersion
}
var file_idl_slurmdb_wckey_proto_depIdxs = []int32{
5, // 0: slurm.WckeyInfo.accounting_list:type_name -> slurm.AccountingInfo
6, // 1: slurm.ListWckeysReq.slurm_version:type_name -> slurm.SlurmVersion
0, // 2: slurm.ListWckeysResp.wckey_infos:type_name -> slurm.WckeyInfo
6, // 3: slurm.GetWckeyReq.slurm_version:type_name -> slurm.SlurmVersion
0, // 4: slurm.GetWckeyResp.wckey_info:type_name -> slurm.WckeyInfo
5, // [5:5] is the sub-list for method output_type
5, // [5:5] is the sub-list for method input_type
5, // [5:5] is the sub-list for extension type_name
5, // [5:5] is the sub-list for extension extendee
0, // [0:5] is the sub-list for field type_name
}
func init() { file_idl_slurmdb_wckey_proto_init() }
func file_idl_slurmdb_wckey_proto_init() {
if File_idl_slurmdb_wckey_proto != nil {
return
}
file_idl_static_proto_init()
file_idl_slurmdb_accounting_proto_init()
if !protoimpl.UnsafeEnabled {
file_idl_slurmdb_wckey_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*WckeyInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_idl_slurmdb_wckey_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListWckeysReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_idl_slurmdb_wckey_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListWckeysResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_idl_slurmdb_wckey_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetWckeyReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_idl_slurmdb_wckey_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetWckeyResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_idl_slurmdb_wckey_proto_rawDesc,
NumEnums: 0,
NumMessages: 5,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_idl_slurmdb_wckey_proto_goTypes,
DependencyIndexes: file_idl_slurmdb_wckey_proto_depIdxs,
MessageInfos: file_idl_slurmdb_wckey_proto_msgTypes,
}.Build()
File_idl_slurmdb_wckey_proto = out.File
file_idl_slurmdb_wckey_proto_rawDesc = nil
file_idl_slurmdb_wckey_proto_goTypes = nil
file_idl_slurmdb_wckey_proto_depIdxs = nil
}

View File

@ -1,130 +0,0 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc (unknown)
// source: idl/static.proto
package slurmpb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// slurm version
type SlurmVersion int32
const (
// 0 - tianhe hpc
SlurmVersion_tianhe SlurmVersion = 0
// 1 - shenwei hpc
SlurmVersion_shenwei SlurmVersion = 1
)
// Enum value maps for SlurmVersion.
var (
SlurmVersion_name = map[int32]string{
0: "tianhe",
1: "shenwei",
}
SlurmVersion_value = map[string]int32{
"tianhe": 0,
"shenwei": 1,
}
)
func (x SlurmVersion) Enum() *SlurmVersion {
p := new(SlurmVersion)
*p = x
return p
}
func (x SlurmVersion) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SlurmVersion) Descriptor() protoreflect.EnumDescriptor {
return file_idl_static_proto_enumTypes[0].Descriptor()
}
func (SlurmVersion) Type() protoreflect.EnumType {
return &file_idl_static_proto_enumTypes[0]
}
func (x SlurmVersion) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SlurmVersion.Descriptor instead.
func (SlurmVersion) EnumDescriptor() ([]byte, []int) {
return file_idl_static_proto_rawDescGZIP(), []int{0}
}
var File_idl_static_proto protoreflect.FileDescriptor
var file_idl_static_proto_rawDesc = []byte{
0x0a, 0x10, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x12, 0x05, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2a, 0x27, 0x0a, 0x0c, 0x53, 0x6c, 0x75,
0x72, 0x6d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0a, 0x0a, 0x06, 0x74, 0x69, 0x61,
0x6e, 0x68, 0x65, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x73, 0x68, 0x65, 0x6e, 0x77, 0x65, 0x69,
0x10, 0x01, 0x42, 0x0a, 0x5a, 0x08, 0x2f, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x70, 0x62, 0x62, 0x06,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_idl_static_proto_rawDescOnce sync.Once
file_idl_static_proto_rawDescData = file_idl_static_proto_rawDesc
)
func file_idl_static_proto_rawDescGZIP() []byte {
file_idl_static_proto_rawDescOnce.Do(func() {
file_idl_static_proto_rawDescData = protoimpl.X.CompressGZIP(file_idl_static_proto_rawDescData)
})
return file_idl_static_proto_rawDescData
}
var file_idl_static_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_idl_static_proto_goTypes = []interface{}{
(SlurmVersion)(0), // 0: slurm.SlurmVersion
}
var file_idl_static_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_idl_static_proto_init() }
func file_idl_static_proto_init() {
if File_idl_static_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_idl_static_proto_rawDesc,
NumEnums: 1,
NumMessages: 0,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_idl_static_proto_goTypes,
DependencyIndexes: file_idl_static_proto_depIdxs,
EnumInfos: file_idl_static_proto_enumTypes,
}.Build()
File_idl_static_proto = out.File
file_idl_static_proto_rawDesc = nil
file_idl_static_proto_goTypes = nil
file_idl_static_proto_depIdxs = nil
}

View File

@ -1,43 +0,0 @@
{
"swagger": "2.0",
"info": {
"title": "idl/node.proto",
"version": "version not set"
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {},
"definitions": {
"protobufAny": {
"type": "object",
"properties": {
"@type": {
"type": "string"
}
},
"additionalProperties": {}
},
"rpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
}
}
}

View File

@ -1,552 +0,0 @@
{
"swagger": "2.0",
"info": {
"title": "idl/slurm.proto",
"version": "version not set"
},
"tags": [
{
"name": "SlurmService"
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {},
"definitions": {
"protobufAny": {
"type": "object",
"properties": {
"@type": {
"type": "string"
}
},
"additionalProperties": {}
},
"rpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
},
"slurmAccountInfo": {
"type": "object",
"properties": {
"assocList": {
"type": "array",
"items": {
"$ref": "#/definitions/slurmAssociationInfo"
}
},
"coordinators": {
"type": "array",
"items": {
"$ref": "#/definitions/slurmCoordInfo"
}
},
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"organization": {
"type": "string"
}
}
},
"slurmAccountingInfo": {
"type": "object",
"properties": {
"allocSecs": {
"type": "string",
"format": "int64"
},
"id": {
"type": "integer",
"format": "int32"
},
"periodStart": {
"type": "string",
"format": "date-time"
}
}
},
"slurmAddAccountResp": {
"type": "object",
"properties": {
"result": {
"type": "string"
}
}
},
"slurmAssocUsageInfo": {
"type": "object"
},
"slurmAssociationInfo": {
"type": "object",
"properties": {
"accountingList": {
"type": "array",
"items": {
"$ref": "#/definitions/slurmAccountingInfo"
}
},
"acct": {
"type": "string"
},
"cluster": {
"type": "string"
},
"defQosId": {
"type": "integer",
"format": "int32"
},
"grpCpuMins": {
"type": "string",
"format": "int64"
},
"grpGpuRunMins": {
"type": "string",
"format": "int64"
},
"grpCpus": {
"type": "integer",
"format": "int32"
},
"grpJobs": {
"type": "integer",
"format": "int32"
},
"grpMem": {
"type": "integer",
"format": "int32"
},
"grpNodes": {
"type": "integer",
"format": "int32"
},
"grpSubmitJobs": {
"type": "integer",
"format": "int32"
},
"grpWall": {
"type": "integer",
"format": "int32"
},
"id": {
"type": "integer",
"format": "int32"
},
"isDef": {
"type": "integer",
"format": "int32"
},
"lft": {
"type": "integer",
"format": "int32"
},
"maxCpuMinsPj": {
"type": "string",
"format": "int64"
},
"maxCpuRunMins": {
"type": "string",
"format": "int64"
},
"maxCpusPj": {
"type": "integer",
"format": "int32"
},
"maxJobs": {
"type": "integer",
"format": "int32"
},
"maxNodesPj": {
"type": "integer",
"format": "int32"
},
"maxSubmitJobs": {
"type": "integer",
"format": "int32"
},
"maxWallPj": {
"type": "integer",
"format": "int32"
},
"parentAcct": {
"type": "string"
},
"parentId": {
"type": "integer",
"format": "int32"
},
"partition": {
"type": "string"
},
"qosList": {
"type": "array",
"items": {
"$ref": "#/definitions/slurmQosInfo"
}
},
"rgt": {
"type": "integer",
"format": "int32"
},
"sharesRaw": {
"type": "integer",
"format": "int32"
},
"uid": {
"type": "integer",
"format": "int32"
},
"assocUsage": {
"$ref": "#/definitions/slurmAssocUsageInfo"
},
"user": {
"type": "string"
}
}
},
"slurmCoordInfo": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"direct": {
"type": "integer",
"format": "int32"
}
}
},
"slurmDeleteAccountResp": {
"type": "object",
"properties": {
"result": {
"type": "string"
}
}
},
"slurmGetAccountResp": {
"type": "object",
"properties": {
"accountInfos": {
"type": "array",
"items": {
"$ref": "#/definitions/slurmAccountInfo"
}
}
}
},
"slurmGetAssociationResp": {
"type": "object",
"properties": {
"assocInfos": {
"type": "array",
"items": {
"$ref": "#/definitions/slurmAssociationInfo"
}
}
}
},
"slurmGetUserResp": {
"type": "object",
"properties": {
"userInfo": {
"type": "array",
"items": {
"$ref": "#/definitions/slurmUserInfo"
}
}
}
},
"slurmGetWckeyResp": {
"type": "object",
"properties": {
"wckeyInfo": {
"type": "array",
"items": {
"$ref": "#/definitions/slurmWckeyInfo"
}
}
}
},
"slurmListAccountsResp": {
"type": "object",
"properties": {
"accountInfos": {
"type": "array",
"items": {
"$ref": "#/definitions/slurmAccountInfo"
}
}
}
},
"slurmListAssociationsResp": {
"type": "object",
"properties": {
"assocInfos": {
"type": "array",
"items": {
"$ref": "#/definitions/slurmAssociationInfo"
}
}
}
},
"slurmListQossResp": {
"type": "object",
"properties": {
"qosInfos": {
"type": "array",
"items": {
"$ref": "#/definitions/slurmQosInfo"
}
}
}
},
"slurmListUsersResp": {
"type": "object",
"properties": {
"userInfos": {
"type": "array",
"items": {
"$ref": "#/definitions/slurmUserInfo"
}
}
}
},
"slurmListWckeysResp": {
"type": "object",
"properties": {
"wckeyInfos": {
"type": "array",
"items": {
"$ref": "#/definitions/slurmWckeyInfo"
}
}
}
},
"slurmQosInfo": {
"type": "object",
"properties": {
"description": {
"type": "string"
},
"id": {
"type": "integer",
"format": "int32"
},
"flags": {
"type": "integer",
"format": "int32"
},
"graceTime": {
"type": "integer",
"format": "int32"
},
"grpCpuMins": {
"type": "string",
"format": "int64"
},
"grpCpuRunMins": {
"type": "string",
"format": "int64"
},
"grpCpus": {
"type": "integer",
"format": "int32"
},
"grpJobs": {
"type": "integer",
"format": "int32"
},
"grpMem": {
"type": "integer",
"format": "int32"
},
"grpNodes": {
"type": "integer",
"format": "int32"
},
"grpSubmitJobs": {
"type": "integer",
"format": "int32"
},
"grpWall": {
"type": "integer",
"format": "int32"
},
"maxCpuMinsPj": {
"type": "string",
"format": "int64"
},
"maxCpuRunMinsPu": {
"type": "string",
"format": "int64"
},
"maxCpusPj": {
"type": "integer",
"format": "int32"
},
"maxCpusPu": {
"type": "integer",
"format": "int32"
},
"maxJobsPu": {
"type": "integer",
"format": "int32"
},
"maxNodesPj": {
"type": "integer",
"format": "int32"
},
"maxSubmitJobsPu": {
"type": "integer",
"format": "int32"
},
"maxWallPj": {
"type": "integer",
"format": "int32"
},
"name": {
"type": "string"
},
"preemptBitstr": {
"type": "integer",
"format": "int32"
},
"preemptList": {
"type": "array",
"items": {
"type": "string"
}
},
"preemptMode": {
"type": "integer",
"format": "int32"
},
"priority": {
"type": "integer",
"format": "int32"
},
"usage": {
"$ref": "#/definitions/slurmQosUsageInfo"
},
"usageFactor": {
"type": "number",
"format": "double"
},
"usageThres": {
"type": "number",
"format": "double"
}
}
},
"slurmQosUsageInfo": {
"type": "object"
},
"slurmSlurmVersion": {
"type": "string",
"enum": [
"tianhe",
"shenwei"
],
"default": "tianhe",
"description": "- tianhe: 0 - tianhe hpc\n - shenwei: 1 - shenwei hpc",
"title": "slurm version"
},
"slurmUserInfo": {
"type": "object",
"properties": {
"adminLevel": {
"type": "integer",
"format": "int32"
},
"associationList": {
"type": "array",
"items": {
"$ref": "#/definitions/slurmAssociationInfo"
}
},
"coordList": {
"type": "array",
"items": {
"$ref": "#/definitions/slurmCoordInfo"
}
},
"defaultAcct": {
"type": "string"
},
"defaultWckey": {
"type": "string"
},
"name": {
"type": "string"
},
"oldName": {
"type": "string"
},
"uid": {
"type": "integer",
"format": "int32"
},
"wckeyList": {
"type": "array",
"items": {
"$ref": "#/definitions/slurmWckeyInfo"
}
}
}
},
"slurmWckeyInfo": {
"type": "object",
"properties": {
"accountingList": {
"type": "array",
"items": {
"$ref": "#/definitions/slurmAccountingInfo"
}
},
"cluster": {
"type": "string"
},
"id": {
"type": "integer",
"format": "int32"
},
"isDef": {
"type": "integer",
"format": "int32"
},
"name": {
"type": "string"
},
"uid": {
"type": "integer",
"format": "int32"
},
"user": {
"type": "string"
}
}
}
}
}

View File

@ -1,43 +0,0 @@
{
"swagger": "2.0",
"info": {
"title": "idl/slurmdb_account.proto",
"version": "version not set"
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {},
"definitions": {
"protobufAny": {
"type": "object",
"properties": {
"@type": {
"type": "string"
}
},
"additionalProperties": {}
},
"rpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
}
}
}

View File

@ -1,43 +0,0 @@
{
"swagger": "2.0",
"info": {
"title": "idl/slurmdb_accounting.proto",
"version": "version not set"
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {},
"definitions": {
"protobufAny": {
"type": "object",
"properties": {
"@type": {
"type": "string"
}
},
"additionalProperties": {}
},
"rpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
}
}
}

View File

@ -1,43 +0,0 @@
{
"swagger": "2.0",
"info": {
"title": "idl/slurmdb_assoc.proto",
"version": "version not set"
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {},
"definitions": {
"protobufAny": {
"type": "object",
"properties": {
"@type": {
"type": "string"
}
},
"additionalProperties": {}
},
"rpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
}
}
}

View File

@ -1,43 +0,0 @@
{
"swagger": "2.0",
"info": {
"title": "idl/slurmdb_cluster.proto",
"version": "version not set"
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {},
"definitions": {
"protobufAny": {
"type": "object",
"properties": {
"@type": {
"type": "string"
}
},
"additionalProperties": {}
},
"rpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
}
}
}

View File

@ -1,43 +0,0 @@
{
"swagger": "2.0",
"info": {
"title": "idl/slurmdb_coord.proto",
"version": "version not set"
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {},
"definitions": {
"protobufAny": {
"type": "object",
"properties": {
"@type": {
"type": "string"
}
},
"additionalProperties": {}
},
"rpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
}
}
}

View File

@ -1,43 +0,0 @@
{
"swagger": "2.0",
"info": {
"title": "idl/slurmdb_qos.proto",
"version": "version not set"
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {},
"definitions": {
"protobufAny": {
"type": "object",
"properties": {
"@type": {
"type": "string"
}
},
"additionalProperties": {}
},
"rpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
}
}
}

View File

@ -1,43 +0,0 @@
{
"swagger": "2.0",
"info": {
"title": "idl/slurmdb_user.proto",
"version": "version not set"
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {},
"definitions": {
"protobufAny": {
"type": "object",
"properties": {
"@type": {
"type": "string"
}
},
"additionalProperties": {}
},
"rpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
}
}
}

View File

@ -1,43 +0,0 @@
{
"swagger": "2.0",
"info": {
"title": "idl/slurmdb_wckey.proto",
"version": "version not set"
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {},
"definitions": {
"protobufAny": {
"type": "object",
"properties": {
"@type": {
"type": "string"
}
},
"additionalProperties": {}
},
"rpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
}
}
}

View File

@ -1,43 +0,0 @@
{
"swagger": "2.0",
"info": {
"title": "idl/static.proto",
"version": "version not set"
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {},
"definitions": {
"protobufAny": {
"type": "object",
"properties": {
"@type": {
"type": "string"
}
},
"additionalProperties": {}
},
"rpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
}
}
}

View File

@ -19,6 +19,12 @@ service SlurmService {
// get specific user info from slurmdb
rpc GetUser(GetUserReq) returns (GetUserResp);
// add new user
rpc AddUser(AddUserReq) returns (AddUserResp);
// delete specific user
rpc DeleteUser(DeleteUserReq) returns (DeleteUserResp);
// list all associations from slurmdb
rpc ListAssociations(ListAssociationsReq) returns (ListAssociationsResp);

View File

@ -7,6 +7,10 @@ http:
get: "/apis/slurm/listUsers"
- selector: slurm.SlurmService.GetUser
get: "/apis/slurm/getUser"
- selector: slurm.SlurmService.AddUser
post: "/apis/slurm/addUser"
- selector: slurm.SlurmService.DeleteUser
delete: "/apis/slurm/deleteUser"
- selector: slurm.SlurmService.ListAssociations
get: "/apis/slurm/listAssociations"
- selector: slurm.SlurmService.GetAssociation
@ -16,9 +20,9 @@ http:
- selector: slurm.SlurmService.GetAccount
get: "/apis/slurm/getAccount"
- selector: slurm.SlurmService.AddAccount
get: "/apis/slurm/addAccount"
post: "/apis/slurm/addAccount"
- selector: slurm.SlurmService.DeleteAccount
get: "/apis/slurm/deleteAccount"
delete: "/apis/slurm/deleteAccount"
- selector: slurm.SlurmService.ListQoss
get: "/apis/slurm/listQoss"
- selector: slurm.SlurmService.ListWckeys

View File

@ -40,7 +40,7 @@ message GetUserResp {
repeated UserInfo user_info = 1;
}
message AddUsersReq{
message AddUserReq{
SlurmVersion slurm_version = 1;
string accounts=2;
string admin_level=3;
@ -56,20 +56,20 @@ message AddUsersReq{
string max_submit_jobs=13;
string max_wall=14;
string names=15;
string partition=16;
string partitions=16;
string qos_level=17;
}
message AddUsersResp {
message AddUserResp {
string result =1;
}
message DeleteUsersReq{
message DeleteUserReq{
SlurmVersion slurm_version = 1;
string names=2;
}
message DeleteUsersResp {
message DeleteUserResp {
string result =1;
}

View File

@ -32,6 +32,26 @@ func (s *Server) GetUser(ctx context.Context, req *slurmpb.GetUserReq) (*slurmpb
return resp, nil
}
// AddUser add slurm user
func (s *Server) AddUser(ctx context.Context, req *slurmpb.AddUserReq) (*slurmpb.AddUserResp, error) {
resp, err := AddUser(ctx, req)
if err != nil {
glog.Errorf("AddSlurmUser error %+v", err)
return nil, status.Errorf(codes.Internal, err.Error())
}
return resp, nil
}
// DeleteUser delete specific slurm user
func (s *Server) DeleteUser(ctx context.Context, req *slurmpb.DeleteUserReq) (*slurmpb.DeleteUserResp, error) {
resp, err := DeleteUser(ctx, req)
if err != nil {
glog.Errorf("DeleteSlurmUser error %+v", err)
return nil, status.Errorf(codes.Internal, err.Error())
}
return resp, nil
}
// ListAssociations return all slurm associations
func (s *Server) ListAssociations(ctx context.Context, req *slurmpb.ListAssociationsReq) (*slurmpb.ListAssociationsResp, error) {
resp, err := ListAssociations(ctx, req)

View File

@ -24,6 +24,24 @@ func GetUser(ctx context.Context, req *pbslurm.GetUserReq) (*pbslurm.GetUserResp
return resp, nil
}
func AddUser(ctx context.Context, req *pbslurm.AddUserReq) (*pbslurm.AddUserResp, error) {
slurm, _ := slurmer.SelectSlurmVersion(req.SlurmVersion)
if slurm == nil {
return nil, nil
}
resp, _ := slurm.AddUser(ctx, req)
return resp, nil
}
func DeleteUser(ctx context.Context, req *pbslurm.DeleteUserReq) (*pbslurm.DeleteUserResp, error) {
slurm, _ := slurmer.SelectSlurmVersion(req.SlurmVersion)
if slurm == nil {
return nil, nil
}
resp, _ := slurm.DeleteUser(ctx, req)
return resp, nil
}
func ListAssociations(ctx context.Context, req *pbslurm.ListAssociationsReq) (*pbslurm.ListAssociationsResp, error) {
slurm, _ := slurmer.SelectSlurmVersion(req.SlurmVersion)
if slurm == nil {

View File

@ -119,44 +119,77 @@ func (slurmStruct SlurmStruct) GetUser(ctx context.Context, req *pbslurm.GetUser
return &resp, nil
}
func Queue() {
cli := ssh.Cli{
Addr: "25.8.2.1:22",
User: "nudt_ysz",
Pwd: "nudt_ysz",
func (slurmStruct SlurmStruct) AddUser(ctx context.Context, req *pbslurm.AddUserReq) (*pbslurm.AddUserResp, error) {
cmd := "/usr/local/bin/sacctmgr add user "
cmd = cmd + req.Names
if len(req.Accounts) != 0 {
cmd = cmd + " Accounts=" + req.Accounts
}
// 建立连接对象
cl, _ := cli.Connect()
// 退出时关闭连接
defer cl.Client.Close()
_, err := cl.Run(`yhqueue`)
if err != nil {
print("error")
return
if len(req.AdminLevel) != 0 {
cmd = cmd + " AdminLevel=" + req.AdminLevel
}
}
func (slurmStruct SlurmStruct) AddUser(ctx context.Context, req *pbslurm.AddUsersReq) (*pbslurm.AddUsersResp, error) {
cli := ssh.Cli{
Addr: "localhost:22",
User: "root",
Pwd: "123123",
if len(req.Clusters) != 0 {
cmd = cmd + " Clusters=" + req.Clusters
}
// 建立连接对象
cl, _ := cli.Connect()
// 退出时关闭连接
defer cl.Client.Close()
cmd := "sacctmgr add user"
_, err := cl.Run(cmd)
if err != nil {
print("error")
if len(req.DefaultAccount) != 0 {
cmd = cmd + " DefaultAccount=" + req.DefaultAccount
}
if len(req.DefaultQos) != 0 {
cmd = cmd + " DefaultQOS=" + req.DefaultQos
}
if len(req.DefaultWckey) != 0 {
cmd = cmd + " DefaultWCKey=" + req.DefaultWckey
}
if len(req.FairShare) != 0 {
cmd = cmd + " Fairshare=" + req.FairShare
}
if len(req.MaxCpuMins) != 0 {
cmd = cmd + " MaxCPUMins=" + req.MaxCpuMins
}
if len(req.MaxCpus) != 0 {
cmd = cmd + " MaxCPUs=" + req.MaxCpus
}
if len(req.MaxJobs) != 0 {
cmd = cmd + " MaxJobs=" + req.MaxJobs
}
if len(req.MaxNodes) != 0 {
cmd = cmd + " MaxNodes=" + req.MaxNodes
}
if len(req.MaxSubmitJobs) != 0 {
cmd = cmd + " MaxSubmitJobs=" + req.MaxSubmitJobs
}
if len(req.MaxWall) != 0 {
cmd = cmd + " MaxWall=" + req.MaxWall
}
if len(req.Partitions) != 0 {
cmd = cmd + " Partitions=" + req.Partitions
}
if len(req.QosLevel) != 0 {
cmd = cmd + " QosLevel=" + req.QosLevel
}
resp := pbslurm.AddUsersResp{}
resp.Result = ""
cmd = cmd + " -i"
result := ssh.ExecCommand(cmd)
resp := pbslurm.AddUserResp{}
resp.Result = result
return &resp, nil
}
func (slurmStruct SlurmStruct) DeleteUser(ctx context.Context, req *pbslurm.DeleteUserReq) (*pbslurm.DeleteUserResp, error) {
cmd := "/usr/local/bin/sacctmgr delete user "
cmd = cmd + req.Names
cmd = cmd + " -i"
result := ssh.ExecCommand(cmd)
resp := pbslurm.DeleteUserResp{}
resp.Result = result
return &resp, nil
}

View File

@ -8,6 +8,9 @@ import (
type Slurmer interface {
ListUsers(ctx context.Context, req *pbslurm.ListUsersReq) (resp *pbslurm.ListUsersResp, err error) //list slurm users
GetUser(ctx context.Context, req *pbslurm.GetUserReq) (resp *pbslurm.GetUserResp, err error) //get specific slurm user
AddUser(ctx context.Context, req *pbslurm.AddUserReq) (resp *pbslurm.AddUserResp, err error) //add slurm user
DeleteUser(ctx context.Context, req *pbslurm.DeleteUserReq) (resp *pbslurm.DeleteUserResp, err error) //delete slurm user
ListClusters(ctx context.Context, req *pbslurm.ClusterInfoMsgReq) (resp *pbslurm.ClusterInfoMsgResp, err error) //list slurm users
ListAssociations(ctx context.Context, req *pbslurm.ListAssociationsReq) (resp *pbslurm.ListAssociationsResp, err error) //list slurm associations
GetAssociation(ctx context.Context, req *pbslurm.GetAssociationReq) (resp *pbslurm.GetAssociationResp, err error) //get specific slurm associations
ListAccounts(ctx context.Context, req *pbslurm.ListAccountsReq) (resp *pbslurm.ListAccountsResp, err error) //list slurm accounts