mirror of https://github.com/containers/podman.git
varlink: Remove `NotImplemented` type
Remove the `NotImplemented` type and comment out the methods that use it. This way we can keep track of the methods that still need to be implemented without committing them to stable API. Signed-off-by: Lars Karlitski <lars@karlitski.net>
This commit is contained in:
parent
faafdcf1f3
commit
a097772cf7
|
|
@ -13,10 +13,6 @@ type Version (
|
|||
remote_api_version: int
|
||||
)
|
||||
|
||||
type NotImplemented (
|
||||
comment: string
|
||||
)
|
||||
|
||||
type StringResponse (
|
||||
message: string
|
||||
)
|
||||
|
|
@ -521,7 +517,7 @@ method ExportContainer(name: string, path: string) -> (tarfile: string)
|
|||
method GetContainerStats(name: string) -> (container: ContainerStats)
|
||||
|
||||
# This method has not be implemented yet.
|
||||
method ResizeContainerTty() -> (notimplemented: NotImplemented)
|
||||
# method ResizeContainerTty() -> (notimplemented: NotImplemented)
|
||||
|
||||
# StartContainer starts a created or stopped container. It takes the name or ID of container. It returns
|
||||
# the container ID once started. If the container cannot be found, a [ContainerNotFound](#ContainerNotFound)
|
||||
|
|
@ -553,10 +549,10 @@ method RestartContainer(name: string, timeout: int) -> (container: string)
|
|||
method KillContainer(name: string, signal: int) -> (container: string)
|
||||
|
||||
# This method has not be implemented yet.
|
||||
method UpdateContainer() -> (notimplemented: NotImplemented)
|
||||
# method UpdateContainer() -> (notimplemented: NotImplemented)
|
||||
|
||||
# This method has not be implemented yet.
|
||||
method RenameContainer() -> (notimplemented: NotImplemented)
|
||||
# method RenameContainer() -> (notimplemented: NotImplemented)
|
||||
|
||||
# PauseContainer takes the name or ID of container and pauses it. If the container cannot be found,
|
||||
# a [ContainerNotFound](#ContainerNotFound) error will be returned; otherwise the ID of the container is returned.
|
||||
|
|
@ -569,7 +565,7 @@ method PauseContainer(name: string) -> (container: string)
|
|||
method UnpauseContainer(name: string) -> (container: string)
|
||||
|
||||
# This method has not be implemented yet.
|
||||
method AttachToContainer() -> (notimplemented: NotImplemented)
|
||||
# method AttachToContainer() -> (notimplemented: NotImplemented)
|
||||
|
||||
# GetAttachSockets takes the name or ID of an existing container. It returns file paths for two sockets needed
|
||||
# to properly communicate with a container. The first is the actual I/O socket that the container uses. The
|
||||
|
|
@ -635,7 +631,7 @@ method GetImage(name: string) -> (image: ImageInList)
|
|||
method BuildImage(build: BuildInfo) -> (image: BuildResponse)
|
||||
|
||||
# This function is not implemented yet.
|
||||
method CreateImage() -> (notimplemented: NotImplemented)
|
||||
# method CreateImage() -> (notimplemented: NotImplemented)
|
||||
|
||||
# InspectImage takes the name or ID of an image and returns a string respresentation of data associated with the
|
||||
#image. You must serialize the string into JSON to use it further. An [ImageNotFound](#ImageNotFound) error will
|
||||
|
|
@ -926,10 +922,10 @@ method UnpausePod(name: string) -> (pod: string)
|
|||
method RemovePod(name: string, force: bool) -> (pod: string)
|
||||
|
||||
# This method has not be implemented yet.
|
||||
method WaitPod() -> (notimplemented: NotImplemented)
|
||||
# method WaitPod() -> (notimplemented: NotImplemented)
|
||||
|
||||
# This method has not been implemented yet.
|
||||
method TopPod() -> (notimplemented: NotImplemented)
|
||||
# method TopPod() -> (notimplemented: NotImplemented)
|
||||
|
||||
# GetPodStats takes the name or ID of a pod and returns a pod name and slice of ContainerStats structure which
|
||||
# contains attributes like memory and cpu usage. If the pod cannot be found, a [PodNotFound](#PodNotFound)
|
||||
|
|
@ -1033,19 +1029,19 @@ method UnmountContainer(name: string, force: bool) -> ()
|
|||
method ImagesPrune(all: bool) -> (pruned: []string)
|
||||
|
||||
# This function is not implemented yet.
|
||||
method ListContainerPorts(name: string) -> (notimplemented: NotImplemented)
|
||||
# method ListContainerPorts(name: string) -> (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).
|
||||
method GenerateKube() -> (notimplemented: NotImplemented)
|
||||
# method GenerateKube() -> (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).
|
||||
method GenerateKubeService() -> (notimplemented: NotImplemented)
|
||||
# method GenerateKubeService() -> (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).
|
||||
method ReplayKube() -> (notimplemented: NotImplemented)
|
||||
# method ReplayKube() -> (notimplemented: NotImplemented)
|
||||
|
||||
# ContainerConfig returns a container's config in string form. This call is for
|
||||
# development of Podman only and generally should not be used.
|
||||
|
|
|
|||
|
|
@ -247,11 +247,6 @@ func (i *LibpodAPI) GetContainerStats(call iopodman.VarlinkCall, name string) er
|
|||
return call.ReplyGetContainerStats(cs)
|
||||
}
|
||||
|
||||
// ResizeContainerTty ...
|
||||
func (i *LibpodAPI) ResizeContainerTty(call iopodman.VarlinkCall) error {
|
||||
return call.ReplyMethodNotImplemented("ResizeContainerTty")
|
||||
}
|
||||
|
||||
// StartContainer ...
|
||||
func (i *LibpodAPI) StartContainer(call iopodman.VarlinkCall, name string) error {
|
||||
ctr, err := i.Runtime.LookupContainer(name)
|
||||
|
|
@ -324,16 +319,6 @@ func (i *LibpodAPI) KillContainer(call iopodman.VarlinkCall, name string, signal
|
|||
return call.ReplyKillContainer(ctr.ID())
|
||||
}
|
||||
|
||||
// UpdateContainer ...
|
||||
func (i *LibpodAPI) UpdateContainer(call iopodman.VarlinkCall) error {
|
||||
return call.ReplyMethodNotImplemented("UpdateContainer")
|
||||
}
|
||||
|
||||
// RenameContainer ...
|
||||
func (i *LibpodAPI) RenameContainer(call iopodman.VarlinkCall) error {
|
||||
return call.ReplyMethodNotImplemented("RenameContainer")
|
||||
}
|
||||
|
||||
// PauseContainer ...
|
||||
func (i *LibpodAPI) PauseContainer(call iopodman.VarlinkCall, name string) error {
|
||||
ctr, err := i.Runtime.LookupContainer(name)
|
||||
|
|
@ -358,12 +343,6 @@ func (i *LibpodAPI) UnpauseContainer(call iopodman.VarlinkCall, name string) err
|
|||
return call.ReplyUnpauseContainer(ctr.ID())
|
||||
}
|
||||
|
||||
// AttachToContainer ...
|
||||
// TODO: DO we also want a different one for websocket?
|
||||
func (i *LibpodAPI) AttachToContainer(call iopodman.VarlinkCall) error {
|
||||
return call.ReplyMethodNotImplemented("AttachToContainer")
|
||||
}
|
||||
|
||||
// WaitContainer ...
|
||||
func (i *LibpodAPI) WaitContainer(call iopodman.VarlinkCall, name string) error {
|
||||
ctr, err := i.Runtime.LookupContainer(name)
|
||||
|
|
|
|||
|
|
@ -276,12 +276,6 @@ func build(runtime *libpod.Runtime, options imagebuildah.BuildOptions, dockerfil
|
|||
return c
|
||||
}
|
||||
|
||||
// CreateImage ...
|
||||
// TODO With Pull being added, should we skip Create?
|
||||
func (i *LibpodAPI) CreateImage(call iopodman.VarlinkCall) error {
|
||||
return call.ReplyMethodNotImplemented("CreateImage")
|
||||
}
|
||||
|
||||
// InspectImage returns an image's inspect information as a string that can be serialized.
|
||||
// Requires an image ID or name
|
||||
func (i *LibpodAPI) InspectImage(call iopodman.VarlinkCall, name string) error {
|
||||
|
|
|
|||
Loading…
Reference in New Issue