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.3.15"
version = "2.3.16"
authors = ["Gaius <gaius.qi@gmail.com>"]
edition = "2021"
license = "Apache-2.0"
Expand Down
569 changes: 278 additions & 291 deletions pkg/apis/scheduler/v2/scheduler.pb.go

Large diffs are not rendered by default.

41 changes: 0 additions & 41 deletions pkg/apis/scheduler/v2/scheduler.pb.validate.go

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

7 changes: 1 addition & 6 deletions pkg/apis/scheduler/v2/scheduler.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1289,11 +1289,6 @@ message AnnounceImageManifestRequest {
string media_type = 4 [(validate.rules).string.min_len = 1];
// Content length is the size(bytes) of the image manifest.
uint64 content_length = 5;
// TTL is the time to live of the image manifest in the scheduler.
google.protobuf.Duration ttl = 6 [(validate.rules).duration = {
required: true
gte: {seconds: 1}
}];
}

// Scheduler RPC Service.
Expand Down Expand Up @@ -1433,6 +1428,6 @@ service Scheduler {
rpc StatImageManifest(StatImageManifestRequest) returns (StatImageManifestResponse);

// AnnounceImageManifest announces the image manifest that the tag of the image is resolved to,
// the scheduler keeps it until the ttl expires.
// the scheduler keeps it until the ttl of the cache in the scheduler expires.
rpc AnnounceImageManifest(AnnounceImageManifestRequest) returns (google.protobuf.Empty);
}
4 changes: 2 additions & 2 deletions pkg/apis/scheduler/v2/scheduler_grpc.pb.go

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

4 changes: 1 addition & 3 deletions proto/scheduler.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1121,8 +1121,6 @@ message AnnounceImageManifestRequest {
string media_type = 4;
// Content length is the size(bytes) of the image manifest.
uint64 content_length = 5;
// TTL is the time to live of the image manifest in the scheduler.
google.protobuf.Duration ttl = 6;
}

// Scheduler RPC Service.
Expand Down Expand Up @@ -1262,6 +1260,6 @@ service Scheduler {
rpc StatImageManifest(StatImageManifestRequest) returns (StatImageManifestResponse);

// AnnounceImageManifest announces the image manifest that the tag of the image is resolved to,
// the scheduler keeps it until the ttl expires.
// the scheduler keeps it until the ttl of the cache in the scheduler expires.
rpc AnnounceImageManifest(AnnounceImageManifestRequest) returns (google.protobuf.Empty);
}
10 changes: 5 additions & 5 deletions python/dragonfly_api/scheduler_pb2.py

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions python/dragonfly_api/scheduler_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1038,17 +1038,15 @@ class StatImageManifestResponse(_message.Message):
def __init__(self, digest: _Optional[str] = ..., media_type: _Optional[str] = ..., content_length: _Optional[int] = ...) -> None: ...

class AnnounceImageManifestRequest(_message.Message):
__slots__ = ("host_id", "reference", "digest", "media_type", "content_length", "ttl")
__slots__ = ("host_id", "reference", "digest", "media_type", "content_length")
HOST_ID_FIELD_NUMBER: _ClassVar[int]
REFERENCE_FIELD_NUMBER: _ClassVar[int]
DIGEST_FIELD_NUMBER: _ClassVar[int]
MEDIA_TYPE_FIELD_NUMBER: _ClassVar[int]
CONTENT_LENGTH_FIELD_NUMBER: _ClassVar[int]
TTL_FIELD_NUMBER: _ClassVar[int]
host_id: str
reference: str
digest: str
media_type: str
content_length: int
ttl: _duration_pb2.Duration
def __init__(self, host_id: _Optional[str] = ..., reference: _Optional[str] = ..., digest: _Optional[str] = ..., media_type: _Optional[str] = ..., content_length: _Optional[int] = ..., ttl: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ...) -> None: ...
def __init__(self, host_id: _Optional[str] = ..., reference: _Optional[str] = ..., digest: _Optional[str] = ..., media_type: _Optional[str] = ..., content_length: _Optional[int] = ...) -> None: ...
2 changes: 1 addition & 1 deletion python/dragonfly_api/scheduler_pb2_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ def StatImageManifest(self, request, context):

def AnnounceImageManifest(self, request, context):
"""AnnounceImageManifest announces the image manifest that the tag of the image is resolved to,
the scheduler keeps it until the ttl expires.
the scheduler keeps it until the ttl of the cache in the scheduler expires.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
Expand Down
Binary file modified src/descriptor.bin
Binary file not shown.
7 changes: 2 additions & 5 deletions src/scheduler.v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1627,9 +1627,6 @@ pub struct AnnounceImageManifestRequest {
/// Content length is the size(bytes) of the image manifest.
#[prost(uint64, tag = "5")]
pub content_length: u64,
/// TTL is the time to live of the image manifest in the scheduler.
#[prost(message, optional, tag = "6")]
pub ttl: ::core::option::Option<::prost_wkt_types::Duration>,
}
/// Generated client implementations.
pub mod scheduler_client {
Expand Down Expand Up @@ -2653,7 +2650,7 @@ pub mod scheduler_client {
self.inner.unary(req, path, codec).await
}
/// AnnounceImageManifest announces the image manifest that the tag of the image is resolved to,
/// the scheduler keeps it until the ttl expires.
/// the scheduler keeps it until the ttl of the cache in the scheduler expires.
pub async fn announce_image_manifest(
&mut self,
request: impl tonic::IntoRequest<super::AnnounceImageManifestRequest>,
Expand Down Expand Up @@ -2991,7 +2988,7 @@ pub mod scheduler_server {
tonic::Status,
>;
/// AnnounceImageManifest announces the image manifest that the tag of the image is resolved to,
/// the scheduler keeps it until the ttl expires.
/// the scheduler keeps it until the ttl of the cache in the scheduler expires.
async fn announce_image_manifest(
&self,
request: tonic::Request<super::AnnounceImageManifestRequest>,
Expand Down
Loading