summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorQi Wang <qiwan@redhat.com>2020-03-19 14:37:58 -0400
committerQi Wang <qiwan@redhat.com>2020-03-19 14:38:12 -0400
commit9ac58fd78e4f04f3807f18020124882ad68e3ffb (patch)
tree503c17531b38724992645c7e6b2712390ef52329 /cmd/podman
parent173f430852e52a1acf69b4d9d18da20893031a79 (diff)
downloadpodman-9ac58fd78e4f04f3807f18020124882ad68e3ffb.tar.gz
podman-9ac58fd78e4f04f3807f18020124882ad68e3ffb.tar.bz2
podman-9ac58fd78e4f04f3807f18020124882ad68e3ffb.zip
Use creds form PullImage remote
fix #5511 Adds creds argument to PullImage API and Enables podman-remote to pull image with --creds Signed-off-by: Qi Wang <qiwan@redhat.com>
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/varlink/io.podman.varlink7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmd/podman/varlink/io.podman.varlink b/cmd/podman/varlink/io.podman.varlink
index e9792fa8f..0ef350fc2 100644
--- a/cmd/podman/varlink/io.podman.varlink
+++ b/cmd/podman/varlink/io.podman.varlink
@@ -105,6 +105,11 @@ type ImageSearchFilter (
star_count: int
)
+type AuthConfig (
+ username: string,
+ password: string
+)
+
type KubePodService (
pod: string,
service: string
@@ -932,7 +937,7 @@ method ExportImage(name: string, destination: string, compress: bool, tags: []st
# PullImage pulls an image from a repository to local storage. After a successful pull, the image id and logs
# are returned as a [MoreResponse](#MoreResponse). This connection also will handle a WantsMores request to send
# status as it occurs.
-method PullImage(name: string) -> (reply: MoreResponse)
+method PullImage(name: string, creds: AuthConfig) -> (reply: MoreResponse)
# CreatePod creates a new empty pod. It uses a [PodCreate](#PodCreate) type for input.
# On success, the ID of the newly created pod will be returned.