Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dragonfly-api"
version = "2.2.27"
version = "2.2.28"
authors = ["Gaius <gaius.qi@gmail.com>"]
edition = "2021"
license = "Apache-2.0"
Expand Down
1,945 changes: 995 additions & 950 deletions pkg/apis/dfdaemon/v2/dfdaemon.pb.go

Large diffs are not rendered by default.

57 changes: 57 additions & 0 deletions pkg/apis/dfdaemon/v2/dfdaemon.pb.validate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 21 additions & 3 deletions pkg/apis/dfdaemon/v2/dfdaemon.proto
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,13 @@ message StatLocalTaskResponse {
}

// ListLocalTasksRequest represents request of ListLocalTasks.
message ListLocalTasksRequest {}
message ListLocalTasksRequest {
// Remote IP represents the IP address of the client initiating the list request.
optional string remote_ip = 1 [(validate.rules).string = {
ip: true
ignore_empty: true
}];
}

// ListLocalTasksResponse represents response of ListLocalTasks.
message ListLocalTasksResponse {
Expand Down Expand Up @@ -588,7 +594,13 @@ message StatLocalPersistentTaskResponse {
}

// ListLocalPersistentTasksRequest represents request of ListLocalPersistentTasks.
message ListLocalPersistentTasksRequest {}
message ListLocalPersistentTasksRequest {
// Remote IP represents the IP address of the client initiating the list request.
optional string remote_ip = 1 [(validate.rules).string = {
ip: true
ignore_empty: true
}];
}

// ListLocalPersistentTasksResponse represents response of ListLocalPersistentTasks.
message ListLocalPersistentTasksResponse {
Expand Down Expand Up @@ -814,7 +826,13 @@ message StatLocalPersistentCacheTaskResponse {
}

// ListLocalPersistentCacheTasksRequest represents request of ListLocalPersistentCacheTasks.
message ListLocalPersistentCacheTasksRequest {}
message ListLocalPersistentCacheTasksRequest {
// Remote IP represents the IP address of the client initiating the list request.
optional string remote_ip = 1 [(validate.rules).string = {
ip: true
ignore_empty: true
}];
}

// ListLocalPersistentTasksResponse represents response of ListLocalPersistentTasks.
message ListLocalPersistentCacheTasksResponse {
Expand Down
15 changes: 12 additions & 3 deletions proto/dfdaemon.proto
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ message StatLocalTaskResponse {
}

// ListLocalTasksRequest represents request of ListLocalTasks.
message ListLocalTasksRequest {}
message ListLocalTasksRequest {
// Remote IP represents the IP address of the client initiating the list request.
optional string remote_ip = 1;
}

// ListLocalTasksResponse represents response of ListLocalTasks.
message ListLocalTasksResponse {
Expand Down Expand Up @@ -503,7 +506,10 @@ message StatLocalPersistentTaskResponse {
}

// ListLocalPersistentTasksRequest represents request of ListLocalPersistentTasks.
message ListLocalPersistentTasksRequest {}
message ListLocalPersistentTasksRequest {
// Remote IP represents the IP address of the client initiating the list request.
optional string remote_ip = 1;
}

// ListLocalPersistentTasksResponse represents response of ListLocalPersistentTasks.
message ListLocalPersistentTasksResponse {
Expand Down Expand Up @@ -686,7 +692,10 @@ message StatLocalPersistentCacheTaskResponse {
}

// ListLocalPersistentCacheTasksRequest represents request of ListLocalPersistentCacheTasks.
message ListLocalPersistentCacheTasksRequest {}
message ListLocalPersistentCacheTasksRequest {
// Remote IP represents the IP address of the client initiating the list request.
optional string remote_ip = 1;
}

// ListLocalPersistentTasksResponse represents response of ListLocalPersistentTasks.
message ListLocalPersistentCacheTasksResponse {
Expand Down
Binary file modified src/descriptor.bin
Binary file not shown.
24 changes: 18 additions & 6 deletions src/dfdaemon.v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,12 @@ pub struct StatLocalTaskResponse {
}
/// ListLocalTasksRequest represents request of ListLocalTasks.
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ListLocalTasksRequest {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ListLocalTasksRequest {
/// Remote IP represents the IP address of the client initiating the list request.
#[prost(string, optional, tag = "1")]
pub remote_ip: ::core::option::Option<::prost::alloc::string::String>,
}
/// ListLocalTasksResponse represents response of ListLocalTasks.
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
Expand Down Expand Up @@ -689,8 +693,12 @@ pub struct StatLocalPersistentTaskResponse {
}
/// ListLocalPersistentTasksRequest represents request of ListLocalPersistentTasks.
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ListLocalPersistentTasksRequest {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ListLocalPersistentTasksRequest {
/// Remote IP represents the IP address of the client initiating the list request.
#[prost(string, optional, tag = "1")]
pub remote_ip: ::core::option::Option<::prost::alloc::string::String>,
}
/// ListLocalPersistentTasksResponse represents response of ListLocalPersistentTasks.
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
Expand Down Expand Up @@ -953,8 +961,12 @@ pub struct StatLocalPersistentCacheTaskResponse {
}
/// ListLocalPersistentCacheTasksRequest represents request of ListLocalPersistentCacheTasks.
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ListLocalPersistentCacheTasksRequest {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ListLocalPersistentCacheTasksRequest {
/// Remote IP represents the IP address of the client initiating the list request.
#[prost(string, optional, tag = "1")]
pub remote_ip: ::core::option::Option<::prost::alloc::string::String>,
}
/// ListLocalPersistentTasksResponse represents response of ListLocalPersistentTasks.
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
Expand Down
Loading