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.8"
version = "2.3.9"
authors = ["Gaius <gaius.qi@gmail.com>"]
edition = "2021"
license = "Apache-2.0"
Expand Down
544 changes: 319 additions & 225 deletions pkg/apis/common/v2/common.pb.go

Large diffs are not rendered by default.

155 changes: 155 additions & 0 deletions pkg/apis/common/v2/common.pb.validate.go

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

13 changes: 13 additions & 0 deletions pkg/apis/common/v2/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,10 @@ message Download {
// Scheduling policy represents how the download interacts with the scheduler,
// default is AUTO.
SchedulingPolicy scheduling_policy = 35 [(validate.rules).enum.defined_only = true];
// Image is the OCI image that the task belongs to, such as the manifest, config or layer
// of the image. The peer records the task as referenced by the image, so deleting the
// image keeps the tasks still referenced by other images.
optional Image image = 36;

reserved 21;
reserved "load_to_cache";
Expand Down Expand Up @@ -854,6 +858,15 @@ message OpenCSG {
}];
}

// Image represents an OCI image.
message Image {
// Reference is the canonical reference of the image, for example docker.io/library/nginx:latest
// or docker.io/library/nginx@sha256:xxx. The same image must use the same reference.
string reference = 1 [(validate.rules).string.min_len = 1];
// Platform of the image in the format of os/arch, for example linux/amd64.
string platform = 2 [(validate.rules).string.pattern = "^[a-z0-9]+/[a-z0-9]+$"];
}

// Range represents download range.
message Range {
// Start of range.
Expand Down
Loading
Loading