Documentation ¶
Index ¶
- func New(cli *cli.Context) *ioprojectatomicpodman.VarlinkInterface
- type LibpodAPI
- func (i *LibpodAPI) AttachToContainer(call ioprojectatomicpodman.VarlinkCall) error
- func (i *LibpodAPI) BuildImage(call ioprojectatomicpodman.VarlinkCall, config ioprojectatomicpodman.BuildInfo) error
- func (i *LibpodAPI) Commit(call ioprojectatomicpodman.VarlinkCall, name, imageName string, ...) error
- func (i *LibpodAPI) CreateContainer(call ioprojectatomicpodman.VarlinkCall, config ioprojectatomicpodman.Create) error
- func (i *LibpodAPI) CreateImage(call ioprojectatomicpodman.VarlinkCall) error
- func (i *LibpodAPI) DeleteStoppedContainers(call ioprojectatomicpodman.VarlinkCall) error
- func (i *LibpodAPI) DeleteUnusedImages(call ioprojectatomicpodman.VarlinkCall) error
- func (i *LibpodAPI) ExportContainer(call ioprojectatomicpodman.VarlinkCall, name, path string) error
- func (i *LibpodAPI) ExportImage(call ioprojectatomicpodman.VarlinkCall, name, destination string, ...) error
- func (i *LibpodAPI) GetAttachSockets(call ioprojectatomicpodman.VarlinkCall, name string) error
- func (i *LibpodAPI) GetContainer(call ioprojectatomicpodman.VarlinkCall, name string) error
- func (i *LibpodAPI) GetContainerLogs(call ioprojectatomicpodman.VarlinkCall, name string) error
- func (i *LibpodAPI) GetContainerStats(call ioprojectatomicpodman.VarlinkCall, name string) error
- func (i *LibpodAPI) GetImage(call ioprojectatomicpodman.VarlinkCall, name string) error
- func (i *LibpodAPI) GetInfo(call ioprojectatomicpodman.VarlinkCall) error
- func (i *LibpodAPI) GetVersion(call ioprojectatomicpodman.VarlinkCall) error
- func (i *LibpodAPI) HistoryImage(call ioprojectatomicpodman.VarlinkCall, name string) error
- func (i *LibpodAPI) ImportImage(call ioprojectatomicpodman.VarlinkCall, source, reference, message string, ...) error
- func (i *LibpodAPI) InspectContainer(call ioprojectatomicpodman.VarlinkCall, name string) error
- func (i *LibpodAPI) InspectImage(call ioprojectatomicpodman.VarlinkCall, name string) error
- func (i *LibpodAPI) KillContainer(call ioprojectatomicpodman.VarlinkCall, name string, signal int64) error
- func (i *LibpodAPI) ListContainerChanges(call ioprojectatomicpodman.VarlinkCall, name string) error
- func (i *LibpodAPI) ListContainerProcesses(call ioprojectatomicpodman.VarlinkCall, name string, opts []string) error
- func (i *LibpodAPI) ListContainers(call ioprojectatomicpodman.VarlinkCall) error
- func (i *LibpodAPI) ListImages(call ioprojectatomicpodman.VarlinkCall) error
- func (i *LibpodAPI) PauseContainer(call ioprojectatomicpodman.VarlinkCall, name string) error
- func (i *LibpodAPI) Ping(call ioprojectatomicpodman.VarlinkCall) error
- func (i *LibpodAPI) PullImage(call ioprojectatomicpodman.VarlinkCall, name string) error
- func (i *LibpodAPI) PushImage(call ioprojectatomicpodman.VarlinkCall, name, tag string, tlsVerify bool) error
- func (i *LibpodAPI) RemoveContainer(call ioprojectatomicpodman.VarlinkCall, name string, force bool) error
- func (i *LibpodAPI) RemoveImage(call ioprojectatomicpodman.VarlinkCall, name string, force bool) error
- func (i *LibpodAPI) RenameContainer(call ioprojectatomicpodman.VarlinkCall) error
- func (i *LibpodAPI) ResizeContainerTty(call ioprojectatomicpodman.VarlinkCall) error
- func (i *LibpodAPI) RestartContainer(call ioprojectatomicpodman.VarlinkCall, name string, timeout int64) error
- func (i *LibpodAPI) SearchImage(call ioprojectatomicpodman.VarlinkCall, name string, limit int64) error
- func (i *LibpodAPI) StartContainer(call ioprojectatomicpodman.VarlinkCall, name string) error
- func (i *LibpodAPI) StopContainer(call ioprojectatomicpodman.VarlinkCall, name string, timeout int64) error
- func (i *LibpodAPI) TagImage(call ioprojectatomicpodman.VarlinkCall, name, tag string) error
- func (i *LibpodAPI) UnpauseContainer(call ioprojectatomicpodman.VarlinkCall, name string) error
- func (i *LibpodAPI) UpdateContainer(call ioprojectatomicpodman.VarlinkCall) error
- func (i *LibpodAPI) WaitContainer(call ioprojectatomicpodman.VarlinkCall, name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(cli *cli.Context) *ioprojectatomicpodman.VarlinkInterface
New creates a new varlink client
Types ¶
type LibpodAPI ¶
type LibpodAPI struct { Cli *cli.Context ioprojectatomicpodman.VarlinkInterface }
LibpodAPI is the basic varlink struct for libpod
func (*LibpodAPI) AttachToContainer ¶
AttachToContainer ... TODO: DO we also want a different one for websocket?
func (*LibpodAPI) BuildImage ¶
func (i *LibpodAPI) BuildImage(call ioprojectatomicpodman.VarlinkCall, config ioprojectatomicpodman.BuildInfo) error
BuildImage ...
func (*LibpodAPI) Commit ¶ added in v0.5.3
func (i *LibpodAPI) Commit(call ioprojectatomicpodman.VarlinkCall, name, imageName string, changes []string, author, message string, pause bool) error
Commit ...
func (*LibpodAPI) CreateContainer ¶
func (i *LibpodAPI) CreateContainer(call ioprojectatomicpodman.VarlinkCall, config ioprojectatomicpodman.Create) error
CreateContainer ...
func (*LibpodAPI) CreateImage ¶
CreateImage ... TODO With Pull being added, should we skip Create?
func (*LibpodAPI) DeleteStoppedContainers ¶
DeleteStoppedContainers ...
func (*LibpodAPI) DeleteUnusedImages ¶
DeleteUnusedImages deletes any images that do not have containers associated with it. TODO Filters are not implemented
func (*LibpodAPI) ExportContainer ¶
func (i *LibpodAPI) ExportContainer(call ioprojectatomicpodman.VarlinkCall, name, path string) error
ExportContainer ...
func (*LibpodAPI) ExportImage ¶
func (i *LibpodAPI) ExportImage(call ioprojectatomicpodman.VarlinkCall, name, destination string, compress bool, tags []string) error
ExportImage exports an image to the provided destination destination must have the transport type!!
func (*LibpodAPI) GetAttachSockets ¶ added in v0.5.4
GetAttachSockets ...
func (*LibpodAPI) GetContainer ¶ added in v0.5.1
GetContainer ...
func (*LibpodAPI) GetContainerLogs ¶
GetContainerLogs ...
func (*LibpodAPI) GetContainerStats ¶
GetContainerStats ...
func (*LibpodAPI) GetImage ¶ added in v0.6.1
GetImage returns a single image in the form of a ImageInList
func (*LibpodAPI) GetInfo ¶ added in v0.5.2
GetInfo returns details about the podman host and its stores
func (*LibpodAPI) GetVersion ¶
GetVersion ...
func (*LibpodAPI) HistoryImage ¶
HistoryImage returns the history of the image's layers Requires an image or name
func (*LibpodAPI) ImportImage ¶
func (i *LibpodAPI) ImportImage(call ioprojectatomicpodman.VarlinkCall, source, reference, message string, changes []string) error
ImportImage imports an image from a tarball to the image store
func (*LibpodAPI) InspectContainer ¶
InspectContainer ...
func (*LibpodAPI) InspectImage ¶
InspectImage returns an image's inspect information as a string that can be serialized. Requires an image ID or name
func (*LibpodAPI) KillContainer ¶
func (i *LibpodAPI) KillContainer(call ioprojectatomicpodman.VarlinkCall, name string, signal int64) error
KillContainer kills a running container. If you want to use the default SIGTERM signal, just send a -1 for the signal arg.
func (*LibpodAPI) ListContainerChanges ¶
ListContainerChanges ...
func (*LibpodAPI) ListContainerProcesses ¶
func (i *LibpodAPI) ListContainerProcesses(call ioprojectatomicpodman.VarlinkCall, name string, opts []string) error
ListContainerProcesses ...
func (*LibpodAPI) ListContainers ¶
ListContainers ...
func (*LibpodAPI) ListImages ¶
ListImages lists all the images in the store It requires no inputs.
func (*LibpodAPI) PauseContainer ¶
PauseContainer ...
func (*LibpodAPI) Ping ¶
Ping returns a simple string "OK" response for clients to make sure the service is working.
func (*LibpodAPI) PullImage ¶
PullImage pulls an image from a registry to the image store. TODO This implementation is incomplete
func (*LibpodAPI) PushImage ¶
func (i *LibpodAPI) PushImage(call ioprojectatomicpodman.VarlinkCall, name, tag string, tlsVerify bool) error
PushImage pushes an local image to registry TODO We need to add options for signing, credentials, tls, and multi-tag
func (*LibpodAPI) RemoveContainer ¶
func (i *LibpodAPI) RemoveContainer(call ioprojectatomicpodman.VarlinkCall, name string, force bool) error
RemoveContainer ...
func (*LibpodAPI) RemoveImage ¶
func (i *LibpodAPI) RemoveImage(call ioprojectatomicpodman.VarlinkCall, name string, force bool) error
RemoveImage accepts a image name or ID as a string and force bool to determine if it should remove the image even if being used by stopped containers
func (*LibpodAPI) RenameContainer ¶
RenameContainer ...
func (*LibpodAPI) ResizeContainerTty ¶
ResizeContainerTty ...
func (*LibpodAPI) RestartContainer ¶
func (i *LibpodAPI) RestartContainer(call ioprojectatomicpodman.VarlinkCall, name string, timeout int64) error
RestartContainer ...
func (*LibpodAPI) SearchImage ¶
func (i *LibpodAPI) SearchImage(call ioprojectatomicpodman.VarlinkCall, name string, limit int64) error
SearchImage searches all registries configured in /etc/containers/registries.conf for an image Requires an image name and a search limit as int
func (*LibpodAPI) StartContainer ¶
StartContainer ...
func (*LibpodAPI) StopContainer ¶
func (i *LibpodAPI) StopContainer(call ioprojectatomicpodman.VarlinkCall, name string, timeout int64) error
StopContainer ...
func (*LibpodAPI) TagImage ¶
TagImage accepts an image name and tag as strings and tags an image in the local store.
func (*LibpodAPI) UnpauseContainer ¶
UnpauseContainer ...
func (*LibpodAPI) UpdateContainer ¶
UpdateContainer ...
func (*LibpodAPI) WaitContainer ¶
WaitContainer ...