mirror of https://github.com/dragonflyoss/api.git
feat: add features field for manager (#385)
Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
parent
76eabba0b0
commit
84d23a2f38
|
@ -190,7 +190,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "dragonfly-api"
|
name = "dragonfly-api"
|
||||||
version = "2.0.154"
|
version = "2.0.155"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"prost",
|
"prost",
|
||||||
"prost-types",
|
"prost-types",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "dragonfly-api"
|
name = "dragonfly-api"
|
||||||
version = "2.0.154"
|
version = "2.0.155"
|
||||||
authors = ["Gaius <gaius.qi@gmail.com>"]
|
authors = ["Gaius <gaius.qi@gmail.com>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
|
|
|
@ -43,26 +43,6 @@ func (m *MockManagerClient) EXPECT() *MockManagerClientMockRecorder {
|
||||||
return m.recorder
|
return m.recorder
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateModel mocks base method.
|
|
||||||
func (m *MockManagerClient) CreateModel(ctx context.Context, in *manager.CreateModelRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
|
||||||
m.ctrl.T.Helper()
|
|
||||||
varargs := []any{ctx, in}
|
|
||||||
for _, a := range opts {
|
|
||||||
varargs = append(varargs, a)
|
|
||||||
}
|
|
||||||
ret := m.ctrl.Call(m, "CreateModel", varargs...)
|
|
||||||
ret0, _ := ret[0].(*emptypb.Empty)
|
|
||||||
ret1, _ := ret[1].(error)
|
|
||||||
return ret0, ret1
|
|
||||||
}
|
|
||||||
|
|
||||||
// CreateModel indicates an expected call of CreateModel.
|
|
||||||
func (mr *MockManagerClientMockRecorder) CreateModel(ctx, in any, opts ...any) *gomock.Call {
|
|
||||||
mr.mock.ctrl.T.Helper()
|
|
||||||
varargs := append([]any{ctx, in}, opts...)
|
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateModel", reflect.TypeOf((*MockManagerClient)(nil).CreateModel), varargs...)
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetObjectStorage mocks base method.
|
// GetObjectStorage mocks base method.
|
||||||
func (m *MockManagerClient) GetObjectStorage(ctx context.Context, in *manager.GetObjectStorageRequest, opts ...grpc.CallOption) (*manager.ObjectStorage, error) {
|
func (m *MockManagerClient) GetObjectStorage(ctx context.Context, in *manager.GetObjectStorageRequest, opts ...grpc.CallOption) (*manager.ObjectStorage, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
|
@ -423,21 +403,6 @@ func (m *MockManagerServer) EXPECT() *MockManagerServerMockRecorder {
|
||||||
return m.recorder
|
return m.recorder
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateModel mocks base method.
|
|
||||||
func (m *MockManagerServer) CreateModel(arg0 context.Context, arg1 *manager.CreateModelRequest) (*emptypb.Empty, error) {
|
|
||||||
m.ctrl.T.Helper()
|
|
||||||
ret := m.ctrl.Call(m, "CreateModel", arg0, arg1)
|
|
||||||
ret0, _ := ret[0].(*emptypb.Empty)
|
|
||||||
ret1, _ := ret[1].(error)
|
|
||||||
return ret0, ret1
|
|
||||||
}
|
|
||||||
|
|
||||||
// CreateModel indicates an expected call of CreateModel.
|
|
||||||
func (mr *MockManagerServerMockRecorder) CreateModel(arg0, arg1 any) *gomock.Call {
|
|
||||||
mr.mock.ctrl.T.Helper()
|
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateModel", reflect.TypeOf((*MockManagerServer)(nil).CreateModel), arg0, arg1)
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetObjectStorage mocks base method.
|
// GetObjectStorage mocks base method.
|
||||||
func (m *MockManagerServer) GetObjectStorage(arg0 context.Context, arg1 *manager.GetObjectStorageRequest) (*manager.ObjectStorage, error) {
|
func (m *MockManagerServer) GetObjectStorage(arg0 context.Context, arg1 *manager.GetObjectStorageRequest) (*manager.ObjectStorage, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
|
|
|
@ -212,6 +212,8 @@ message UpdateSchedulerRequest {
|
||||||
string ip = 6 [(validate.rules).string = {ip: true}];
|
string ip = 6 [(validate.rules).string = {ip: true}];
|
||||||
// Scheduler port.
|
// Scheduler port.
|
||||||
int32 port = 7 [(validate.rules).int32 = {gte: 1024, lt: 65535}];
|
int32 port = 7 [(validate.rules).int32 = {gte: 1024, lt: 65535}];
|
||||||
|
// Scheduler features.
|
||||||
|
repeated string features = 8 [(validate.rules).string = {min_len: 1, ignore_empty: true}];
|
||||||
}
|
}
|
||||||
|
|
||||||
// ListSchedulersRequest represents request of ListSchedulers.
|
// ListSchedulersRequest represents request of ListSchedulers.
|
||||||
|
|
|
@ -209,6 +209,8 @@ message UpdateSchedulerRequest {
|
||||||
string ip = 6;
|
string ip = 6;
|
||||||
// Scheduler port.
|
// Scheduler port.
|
||||||
int32 port = 7;
|
int32 port = 7;
|
||||||
|
// Scheduler features.
|
||||||
|
repeated string features = 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ListSchedulersRequest represents request of ListSchedulers.
|
// ListSchedulersRequest represents request of ListSchedulers.
|
||||||
|
|
Binary file not shown.
|
@ -265,6 +265,9 @@ pub struct UpdateSchedulerRequest {
|
||||||
/// Scheduler port.
|
/// Scheduler port.
|
||||||
#[prost(int32, tag = "7")]
|
#[prost(int32, tag = "7")]
|
||||||
pub port: i32,
|
pub port: i32,
|
||||||
|
/// Scheduler features.
|
||||||
|
#[prost(string, repeated, tag = "8")]
|
||||||
|
pub features: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
|
||||||
}
|
}
|
||||||
/// ListSchedulersRequest represents request of ListSchedulers.
|
/// ListSchedulersRequest represents request of ListSchedulers.
|
||||||
#[derive(serde::Serialize, serde::Deserialize)]
|
#[derive(serde::Serialize, serde::Deserialize)]
|
||||||
|
|
Loading…
Reference in New Issue