Transfer: Registry: Enable plain HTTP

Currenlty transfer service doesn't handle plain HTTP connection.
This commit fixes this issue by propagating
`(core/remotes/docker/config).HostOptions.DefaultScheme` from client to the
transfer service.
This commit also fixes ctr to use this feature for "--plain-http" flag.

Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
This commit is contained in:
Kohei Tokunaga
2024-03-28 21:54:46 +09:00
parent 0807efb9ef
commit 4332794384
6 changed files with 91 additions and 46 deletions

View File

@@ -7468,6 +7468,13 @@ file {
type: TYPE_STRING
json_name: "hostDir"
}
field {
name: "default_scheme"
number: 4
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "defaultScheme"
}
nested_type {
name: "HeadersEntry"
field {