Documentation ¶
Index ¶
- func New(cli *cliconfig.PodmanCommand, runtime *libpod.Runtime) *iopodman.VarlinkInterface
- type LibpodAPI
- func (i *LibpodAPI) BuildImage(call iopodman.VarlinkCall, config iopodman.BuildInfo) error
- func (i *LibpodAPI) Commit(call iopodman.VarlinkCall, name, imageName string, changes []string, ...) error
- func (i *LibpodAPI) ContainerArtifacts(call iopodman.VarlinkCall, name, artifactName string) error
- func (i *LibpodAPI) ContainerCheckpoint(call iopodman.VarlinkCall, name string, ...) error
- func (i *LibpodAPI) ContainerConfig(call iopodman.VarlinkCall, name string) error
- func (i *LibpodAPI) ContainerExists(call iopodman.VarlinkCall, name string) error
- func (i *LibpodAPI) ContainerInspectData(call iopodman.VarlinkCall, name string) error
- func (i *LibpodAPI) ContainerRestore(call iopodman.VarlinkCall, name string, keep, tcpEstablished bool) error
- func (i *LibpodAPI) ContainerRunlabel(call iopodman.VarlinkCall, input iopodman.Runlabel) error
- func (i *LibpodAPI) ContainerStateData(call iopodman.VarlinkCall, name string) error
- func (i *LibpodAPI) CreateContainer(call iopodman.VarlinkCall, config iopodman.Create) error
- func (i *LibpodAPI) CreatePod(call iopodman.VarlinkCall, create iopodman.PodCreate) error
- func (i *LibpodAPI) DeleteStoppedContainers(call iopodman.VarlinkCall) error
- func (i *LibpodAPI) DeleteUnusedImages(call iopodman.VarlinkCall) error
- func (i *LibpodAPI) ExportContainer(call iopodman.VarlinkCall, name, outPath string) error
- func (i *LibpodAPI) ExportImage(call iopodman.VarlinkCall, name, destination string, compress bool, ...) error
- func (i *LibpodAPI) GetAttachSockets(call iopodman.VarlinkCall, name string) error
- func (i *LibpodAPI) GetContainer(call iopodman.VarlinkCall, id string) error
- func (i *LibpodAPI) GetContainerLogs(call iopodman.VarlinkCall, name string) error
- func (i *LibpodAPI) GetContainerStats(call iopodman.VarlinkCall, name string) error
- func (i *LibpodAPI) GetContainersByContext(call iopodman.VarlinkCall, all, latest bool, input []string) error
- func (i *LibpodAPI) GetImage(call iopodman.VarlinkCall, id string) error
- func (i *LibpodAPI) GetInfo(call iopodman.VarlinkCall) error
- func (i *LibpodAPI) GetPod(call iopodman.VarlinkCall, name string) error
- func (i *LibpodAPI) GetPodStats(call iopodman.VarlinkCall, name string) error
- func (i *LibpodAPI) GetPodsByContext(call iopodman.VarlinkCall, all, latest bool, input []string) error
- func (i *LibpodAPI) GetVersion(call iopodman.VarlinkCall) error
- func (i *LibpodAPI) GetVolumes(call iopodman.VarlinkCall, args []string, all bool) error
- func (i *LibpodAPI) HistoryImage(call iopodman.VarlinkCall, name string) error
- func (i *LibpodAPI) ImageExists(call iopodman.VarlinkCall, name string) error
- func (i *LibpodAPI) ImageSave(call iopodman.VarlinkCall, options iopodman.ImageSaveOptions) error
- func (i *LibpodAPI) ImagesPrune(call iopodman.VarlinkCall, all bool) error
- func (i *LibpodAPI) ImportImage(call iopodman.VarlinkCall, source, reference, message string, changes []string, ...) error
- func (i *LibpodAPI) InspectContainer(call iopodman.VarlinkCall, name string) error
- func (i *LibpodAPI) InspectImage(call iopodman.VarlinkCall, name string) error
- func (i *LibpodAPI) InspectPod(call iopodman.VarlinkCall, name string) error
- func (i *LibpodAPI) KillContainer(call iopodman.VarlinkCall, name string, signal int64) error
- func (i *LibpodAPI) KillPod(call iopodman.VarlinkCall, name string, signal int64) error
- func (i *LibpodAPI) ListContainerChanges(call iopodman.VarlinkCall, name string) error
- func (i *LibpodAPI) ListContainerMounts(call iopodman.VarlinkCall) error
- func (i *LibpodAPI) ListContainerProcesses(call iopodman.VarlinkCall, name string, opts []string) error
- func (i *LibpodAPI) ListContainers(call iopodman.VarlinkCall) error
- func (i *LibpodAPI) ListImages(call iopodman.VarlinkCall) error
- func (i *LibpodAPI) ListPods(call iopodman.VarlinkCall) error
- func (i *LibpodAPI) LoadImage(call iopodman.VarlinkCall, name, inputFile string, deleteInputFile, quiet bool) error
- func (i *LibpodAPI) MountContainer(call iopodman.VarlinkCall, name string) error
- func (i *LibpodAPI) PauseContainer(call iopodman.VarlinkCall, name string) error
- func (i *LibpodAPI) PausePod(call iopodman.VarlinkCall, name string) error
- func (i *LibpodAPI) PodStateData(call iopodman.VarlinkCall, name string) error
- func (i *LibpodAPI) PullImage(call iopodman.VarlinkCall, name string, certDir, creds, signaturePolicy string, ...) error
- func (i *LibpodAPI) PushImage(call iopodman.VarlinkCall, name, tag string, tlsVerify *bool, ...) error
- func (i *LibpodAPI) ReceiveFile(call iopodman.VarlinkCall, filepath string, delete bool) error
- func (i *LibpodAPI) RemoveContainer(call iopodman.VarlinkCall, name string, force bool, removeVolumes bool) error
- func (i *LibpodAPI) RemoveImage(call iopodman.VarlinkCall, name string, force bool) error
- func (i *LibpodAPI) RemovePod(call iopodman.VarlinkCall, name string, force bool) error
- func (i *LibpodAPI) RestartContainer(call iopodman.VarlinkCall, name string, timeout int64) error
- func (i *LibpodAPI) RestartPod(call iopodman.VarlinkCall, name string) error
- func (i *LibpodAPI) SearchImages(call iopodman.VarlinkCall, query string, limit *int64, tlsVerify *bool, ...) error
- func (i *LibpodAPI) SendFile(call iopodman.VarlinkCall, ftype string, length int64) error
- func (i *LibpodAPI) StartContainer(call iopodman.VarlinkCall, name string) error
- func (i *LibpodAPI) StartPod(call iopodman.VarlinkCall, name string) error
- func (i *LibpodAPI) StopContainer(call iopodman.VarlinkCall, name string, timeout int64) error
- func (i *LibpodAPI) StopPod(call iopodman.VarlinkCall, name string, timeout int64) error
- func (i *LibpodAPI) TagImage(call iopodman.VarlinkCall, name, tag string) error
- func (i *LibpodAPI) UnmountContainer(call iopodman.VarlinkCall, name string, force bool) error
- func (i *LibpodAPI) UnpauseContainer(call iopodman.VarlinkCall, name string) error
- func (i *LibpodAPI) UnpausePod(call iopodman.VarlinkCall, name string) error
- func (i *LibpodAPI) VolumeCreate(call iopodman.VarlinkCall, options iopodman.VolumeCreateOpts) error
- func (i *LibpodAPI) VolumeRemove(call iopodman.VarlinkCall, options iopodman.VolumeRemoveOpts) error
- func (i *LibpodAPI) VolumesPrune(call iopodman.VarlinkCall) error
- func (i *LibpodAPI) WaitContainer(call iopodman.VarlinkCall, name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(cli *cliconfig.PodmanCommand, runtime *libpod.Runtime) *iopodman.VarlinkInterface
New creates a new varlink client
Types ¶
type LibpodAPI ¶
LibpodAPI is the basic varlink struct for libpod
func (*LibpodAPI) BuildImage ¶
BuildImage ...
func (*LibpodAPI) Commit ¶ added in v0.5.3
func (i *LibpodAPI) Commit(call iopodman.VarlinkCall, name, imageName string, changes []string, author, message string, pause bool, manifestType string) error
Commit ...
func (*LibpodAPI) ContainerArtifacts ¶ added in v1.1.0
ContainerArtifacts returns an untouched container's artifact in string format
func (*LibpodAPI) ContainerCheckpoint ¶ added in v0.12.1
func (i *LibpodAPI) ContainerCheckpoint(call iopodman.VarlinkCall, name string, keep, leaveRunning, tcpEstablished bool) error
ContainerCheckpoint ...
func (*LibpodAPI) ContainerConfig ¶ added in v1.1.0
ContainerConfig returns just the container.config struct
func (*LibpodAPI) ContainerExists ¶ added in v0.12.1
ContainerExists looks in local storage for the existence of a container
func (*LibpodAPI) ContainerInspectData ¶ added in v1.1.0
ContainerInspectData returns the inspect data of a container in string format
func (*LibpodAPI) ContainerRestore ¶ added in v0.12.1
func (i *LibpodAPI) ContainerRestore(call iopodman.VarlinkCall, name string, keep, tcpEstablished bool) error
ContainerRestore ...
func (*LibpodAPI) ContainerRunlabel ¶ added in v0.12.1
ContainerRunlabel ...
func (*LibpodAPI) ContainerStateData ¶ added in v1.1.0
ContainerStateData returns a container's state data in string format
func (*LibpodAPI) CreateContainer ¶
CreateContainer ...
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 ¶
ExportContainer ...
func (*LibpodAPI) ExportImage ¶
func (i *LibpodAPI) ExportImage(call iopodman.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) GetContainersByContext ¶ added in v1.1.2
func (i *LibpodAPI) GetContainersByContext(call iopodman.VarlinkCall, all, latest bool, input []string) error
GetContainersByContext returns a slice of container ids based on all, latest, or a list
func (*LibpodAPI) GetInfo ¶ added in v0.5.2
GetInfo returns details about the podman host and its stores
func (*LibpodAPI) GetPodStats ¶ added in v0.8.4
GetPodStats ...
func (*LibpodAPI) GetPodsByContext ¶ added in v1.1.0
func (i *LibpodAPI) GetPodsByContext(call iopodman.VarlinkCall, all, latest bool, input []string) error
GetPodsByContext returns a slice of pod ids based on all, latest, or a list
func (*LibpodAPI) GetVersion ¶
GetVersion ...
func (*LibpodAPI) GetVolumes ¶ added in v1.1.0
GetVolumes returns all the volumes known to the remote system
func (*LibpodAPI) HistoryImage ¶
HistoryImage returns the history of the image's layers Requires an image or name
func (*LibpodAPI) ImageExists ¶ added in v0.12.1
ImageExists returns bool as to whether the input image exists in local storage
func (*LibpodAPI) ImagesPrune ¶ added in v1.0.1
ImagesPrune ....
func (*LibpodAPI) ImportImage ¶
func (i *LibpodAPI) ImportImage(call iopodman.VarlinkCall, source, reference, message string, changes []string, delete bool) 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) InspectPod ¶ added in v0.8.3
InspectPod ...
func (*LibpodAPI) KillContainer ¶
KillContainer kills a running container. If you want to use the default SIGTERM signal, just send a -1 for the signal arg.
func (*LibpodAPI) KillPod ¶ added in v0.8.3
KillPod kills the running containers in a pod. If you want to use the default SIGTERM signal, just send a -1 for the signal arg.
func (*LibpodAPI) ListContainerChanges ¶
ListContainerChanges ...
func (*LibpodAPI) ListContainerMounts ¶ added in v0.12.1
ListContainerMounts ...
func (*LibpodAPI) ListContainerProcesses ¶
func (i *LibpodAPI) ListContainerProcesses(call iopodman.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) LoadImage ¶ added in v1.1.0
func (i *LibpodAPI) LoadImage(call iopodman.VarlinkCall, name, inputFile string, deleteInputFile, quiet bool) error
LoadImage ...
func (*LibpodAPI) MountContainer ¶ added in v0.12.1
MountContainer ...
func (*LibpodAPI) PauseContainer ¶
PauseContainer ...
func (*LibpodAPI) PodStateData ¶ added in v1.1.0
PodStateData returns a container's state data in string format
func (*LibpodAPI) PullImage ¶
func (i *LibpodAPI) PullImage(call iopodman.VarlinkCall, name string, certDir, creds, signaturePolicy string, tlsVerify *bool) error
PullImage pulls an image from a registry to the image store.
func (*LibpodAPI) PushImage ¶
func (i *LibpodAPI) PushImage(call iopodman.VarlinkCall, name, tag string, tlsVerify *bool, signaturePolicy, creds, certDir string, compress bool, format string, removeSignatures bool, signBy string) error
PushImage pushes an local image to registry
func (*LibpodAPI) ReceiveFile ¶ added in v1.1.0
ReceiveFile allows the varlink server to send a file to a client
func (*LibpodAPI) RemoveContainer ¶
func (i *LibpodAPI) RemoveContainer(call iopodman.VarlinkCall, name string, force bool, removeVolumes bool) error
RemoveContainer ...
func (*LibpodAPI) RemoveImage ¶
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) RestartContainer ¶
RestartContainer ...
func (*LibpodAPI) RestartPod ¶ added in v0.8.3
RestartPod ...
func (*LibpodAPI) SearchImages ¶ added in v1.1.0
func (i *LibpodAPI) SearchImages(call iopodman.VarlinkCall, query string, limit *int64, tlsVerify *bool, filter iopodman.ImageSearchFilter) error
SearchImages searches all registries configured in /etc/containers/registries.conf for an image Requires an image name and a search limit as int
func (*LibpodAPI) SendFile ¶ added in v1.1.0
SendFile allows a client to send a file to the varlink server
func (*LibpodAPI) StartContainer ¶
StartContainer ...
func (*LibpodAPI) StopContainer ¶
StopContainer ...
func (*LibpodAPI) TagImage ¶
TagImage accepts an image name and tag as strings and tags an image in the local store.
func (*LibpodAPI) UnmountContainer ¶ added in v0.12.1
UnmountContainer ...
func (*LibpodAPI) UnpauseContainer ¶
UnpauseContainer ...
func (*LibpodAPI) UnpausePod ¶ added in v0.8.3
UnpausePod ...
func (*LibpodAPI) VolumeCreate ¶ added in v1.1.0
func (i *LibpodAPI) VolumeCreate(call iopodman.VarlinkCall, options iopodman.VolumeCreateOpts) error
VolumeCreate creates a libpod volume based on input from a varlink connection
func (*LibpodAPI) VolumeRemove ¶ added in v1.1.0
func (i *LibpodAPI) VolumeRemove(call iopodman.VarlinkCall, options iopodman.VolumeRemoveOpts) error
VolumeRemove removes volumes by options.All or options.Volumes
func (*LibpodAPI) VolumesPrune ¶ added in v1.1.0
VolumesPrune removes unused images via a varlink call
func (*LibpodAPI) WaitContainer ¶
WaitContainer ...