mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
kubelet/container: Add Pull() and IsImagePresent() to runtime interface.
This commit is contained in:
parent
fade245a44
commit
de6e81fb4a
@ -66,7 +66,10 @@ type Runtime interface {
|
|||||||
// Attaches the processes stdin, stdout, and stderr. Optionally uses a
|
// Attaches the processes stdin, stdout, and stderr. Optionally uses a
|
||||||
// tty.
|
// tty.
|
||||||
ExecInContainer(container api.Container, pod *api.Pod, stdin io.Reader, stdout, stderr io.WriteCloser, tty bool)
|
ExecInContainer(container api.Container, pod *api.Pod, stdin io.Reader, stdout, stderr io.WriteCloser, tty bool)
|
||||||
// TODO(yifan): Pull/Remove images
|
// Pull pulls an image from the network to local storage.
|
||||||
|
Pull(image string)
|
||||||
|
// IsImagePresent checks whether the container image is already in the local storage.
|
||||||
|
IsImagePresent(image string) (bool, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Container runner is a narrow interface to consume in the Kubelet
|
// Container runner is a narrow interface to consume in the Kubelet
|
||||||
|
Loading…
Reference in New Issue
Block a user