diff options
author | baude <bbaude@redhat.com> | 2018-06-05 13:18:52 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-06-05 19:31:13 +0000 |
commit | 06a29f0bdeeaca1591e80aac8e08b5363fdb9977 (patch) | |
tree | c8c1a7cb4d9573e17cb2ce29fbb202af4ced7fb7 /API.md | |
parent | 7965bf54048044d63f967d2b4ce8efe1e1072f05 (diff) | |
download | podman-06a29f0bdeeaca1591e80aac8e08b5363fdb9977.tar.gz podman-06a29f0bdeeaca1591e80aac8e08b5363fdb9977.tar.bz2 podman-06a29f0bdeeaca1591e80aac8e08b5363fdb9977.zip |
varlink build fixes
the varlink build was not working as designed and required some touch-ups:
* return a struct that includes logs and the new image ID
* pass namespaceoption so that networking in buildah works
Signed-off-by: baude <bbaude@redhat.com>
Closes: #903
Approved by: rhatdan
Diffstat (limited to 'API.md')
-rwxr-xr-x | API.md | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -5,7 +5,7 @@ in the [API.md](https://github.com/projectatomic/libpod/blob/master/API.md) file [func AttachToContainer() NotImplemented](#AttachToContainer) -[func BuildImage(build: BuildInfo) []string](#BuildImage) +[func BuildImage(build: BuildInfo) BuildResponse](#BuildImage) [func Commit(name: string, image_name: string, changes: []string, author: string, message: string, pause: bool) string](#Commit) @@ -87,6 +87,8 @@ in the [API.md](https://github.com/projectatomic/libpod/blob/master/API.md) file [type BuildInfo](#BuildInfo) +[type BuildResponse](#BuildResponse) + [type ContainerChanges](#ContainerChanges) [type ContainerMount](#ContainerMount) @@ -148,10 +150,10 @@ This method has not be implemented yet. ### <a name="BuildImage"></a>func BuildImage <div style="background-color: #E8E8E8; padding: 15px; margin: 10px; border-radius: 10px;"> -method BuildImage(build: [BuildInfo](#BuildInfo)) [[]string](#[]string)</div> +method BuildImage(build: [BuildInfo](#BuildInfo)) [BuildResponse](#BuildResponse)</div> BuildImage takes a [BuildInfo](#BuildInfo) structure and builds an image. At a minimum, you must provide the -'dockerfile' and 'tags' options in the BuildInfo structure. Upon a successful build, it will -return the ID of the container. +'dockerfile' and 'tags' options in the BuildInfo structure. It will return a [BuildResponse](#BuildResponse) structure +that contains the build logs and resulting image ID. ### <a name="Commit"></a>func Commit <div style="background-color: #E8E8E8; padding: 15px; margin: 10px; border-radius: 10px;"> @@ -557,6 +559,13 @@ annotations [[]string](#[]string) build_args [map[string]](#map[string]) image_format [string](https://godoc.org/builtin#string) +### <a name="BuildResponse"></a>type BuildResponse + +BuildResponse is used to describe the responses for building images + +logs [[]string](#[]string) + +id [string](https://godoc.org/builtin#string) ### <a name="ContainerChanges"></a>type ContainerChanges ContainerChanges describes the return struct for ListContainerChanges |