From 9b03cacc87c4d59fc301c21ef73ddc301ec753fb Mon Sep 17 00:00:00 2001 From: baude Date: Sun, 9 Dec 2018 14:26:21 -0600 Subject: Add Play podman play kube adds the ability for the user to recreate pods and containers from a Kubernetes YAML file in libpod. Signed-off-by: baude --- API.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'API.md') diff --git a/API.md b/API.md index 7bc866d98..51787496c 100755 --- a/API.md +++ b/API.md @@ -31,6 +31,10 @@ in the [API.md](https://github.com/containers/libpod/blob/master/API.md) file in [func ExportImage(name: string, destination: string, compress: bool, tags: []string) string](#ExportImage) +[func GenerateKube() NotImplemented](#GenerateKube) + +[func GenerateKubeService() NotImplemented](#GenerateKubeService) + [func GetAttachSockets(name: string) Sockets](#GetAttachSockets) [func GetContainer(name: string) ListContainerData](#GetContainer) @@ -99,6 +103,8 @@ in the [API.md](https://github.com/containers/libpod/blob/master/API.md) file in [func RenameContainer() NotImplemented](#RenameContainer) +[func ReplayKube() NotImplemented](#ReplayKube) + [func ResizeContainerTty() NotImplemented](#ResizeContainerTty) [func RestartContainer(name: string, timeout: int) string](#RestartContainer) @@ -358,6 +364,18 @@ a booleon option to force compression. It also takes in a string array of tags tags of the same image to a tarball (each tag should be of the form :). Upon completion, the ID of the image is returned. If the image cannot be found in local storage, an [ImageNotFound](#ImageNotFound) error will be returned. See also [ImportImage](ImportImage). +### func GenerateKube +
+ +method GenerateKube() [NotImplemented](#NotImplemented)
+GenerateKube generates a Kubernetes v1 Pod description of a Podman container or pod +and its containers. The description is in YAML. See also [ReplayKube](ReplayKube). +### func GenerateKubeService +
+ +method GenerateKubeService() [NotImplemented](#NotImplemented)
+GenerateKubeService generates a Kubernetes v1 Service description of a Podman container or pod +and its containers. The description is in YAML. See also [GenerateKube](GenerateKube). ### func GetAttachSockets
@@ -808,6 +826,12 @@ $ varlink call -m unix:/run/podman/io.podman/io.podman.RemovePod '{"name": "62f4 method RenameContainer() [NotImplemented](#NotImplemented)
This method has not be implemented yet. +### func ReplayKube +
+ +method ReplayKube() [NotImplemented](#NotImplemented)
+ReplayKube recreates a pod and its containers based on a Kubernetes v1 Pod description (in YAML) +like that created by GenerateKube. See also [GenerateKube](GenerateKube). ### func ResizeContainerTty
-- cgit v1.2.3-54-g00ecf