varlinkapi

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2019 License: Apache-2.0 Imports: 39 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New creates a new varlink client

Types

type LibpodAPI

type LibpodAPI struct {
	Cli *cobra.Command
	iopodman.VarlinkInterface
	Runtime *libpod.Runtime
}

LibpodAPI is the basic varlink struct for libpod

func (*LibpodAPI) BuildImage

func (i *LibpodAPI) BuildImage(call iopodman.VarlinkCall, config iopodman.BuildInfo) error

BuildImage ...

func (*LibpodAPI) Commit

func (i *LibpodAPI) Commit(call iopodman.VarlinkCall, name, imageName string, changes []string, author, message string, pause bool, manifestType string) error

Commit ...

func (*LibpodAPI) ContainerArtifacts

func (i *LibpodAPI) ContainerArtifacts(call iopodman.VarlinkCall, name, artifactName string) error

ContainerArtifacts returns an untouched container's artifact in string format

func (*LibpodAPI) ContainerCheckpoint

func (i *LibpodAPI) ContainerCheckpoint(call iopodman.VarlinkCall, name string, keep, leaveRunning, tcpEstablished bool) error

ContainerCheckpoint ...

func (*LibpodAPI) ContainerConfig

func (i *LibpodAPI) ContainerConfig(call iopodman.VarlinkCall, name string) error

ContainerConfig returns just the container.config struct

func (*LibpodAPI) ContainerExists

func (i *LibpodAPI) ContainerExists(call iopodman.VarlinkCall, name string) error

ContainerExists looks in local storage for the existence of a container

func (*LibpodAPI) ContainerInspectData

func (i *LibpodAPI) ContainerInspectData(call iopodman.VarlinkCall, name string) error

ContainerInspectData returns the inspect data of a container in string format

func (*LibpodAPI) ContainerRestore

func (i *LibpodAPI) ContainerRestore(call iopodman.VarlinkCall, name string, keep, tcpEstablished bool) error

ContainerRestore ...

func (*LibpodAPI) ContainerRunlabel

func (i *LibpodAPI) ContainerRunlabel(call iopodman.VarlinkCall, input iopodman.Runlabel) error

ContainerRunlabel ...

func (*LibpodAPI) ContainerStateData

func (i *LibpodAPI) ContainerStateData(call iopodman.VarlinkCall, name string) error

ContainerStateData returns a container's state data in string format

func (*LibpodAPI) CreateContainer

func (i *LibpodAPI) CreateContainer(call iopodman.VarlinkCall, config iopodman.Create) error

CreateContainer ...

func (*LibpodAPI) CreatePod

func (i *LibpodAPI) CreatePod(call iopodman.VarlinkCall, create iopodman.PodCreate) error

CreatePod ...

func (*LibpodAPI) DeleteStoppedContainers

func (i *LibpodAPI) DeleteStoppedContainers(call iopodman.VarlinkCall) error

DeleteStoppedContainers ...

func (*LibpodAPI) DeleteUnusedImages

func (i *LibpodAPI) DeleteUnusedImages(call iopodman.VarlinkCall) error

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 iopodman.VarlinkCall, name, outPath string) error

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

func (i *LibpodAPI) GetAttachSockets(call iopodman.VarlinkCall, name string) error

GetAttachSockets ...

func (*LibpodAPI) GetContainer

func (i *LibpodAPI) GetContainer(call iopodman.VarlinkCall, id string) error

GetContainer ...

func (*LibpodAPI) GetContainerLogs

func (i *LibpodAPI) GetContainerLogs(call iopodman.VarlinkCall, name string) error

GetContainerLogs ...

func (*LibpodAPI) GetContainerStats

func (i *LibpodAPI) GetContainerStats(call iopodman.VarlinkCall, name string) error

GetContainerStats ...

func (*LibpodAPI) GetImage

func (i *LibpodAPI) GetImage(call iopodman.VarlinkCall, id string) error

GetImage returns a single image in the form of a Image

func (*LibpodAPI) GetInfo

func (i *LibpodAPI) GetInfo(call iopodman.VarlinkCall) error

GetInfo returns details about the podman host and its stores

func (*LibpodAPI) GetPod

func (i *LibpodAPI) GetPod(call iopodman.VarlinkCall, name string) error

GetPod ...

func (*LibpodAPI) GetPodStats

func (i *LibpodAPI) GetPodStats(call iopodman.VarlinkCall, name string) error

GetPodStats ...

func (*LibpodAPI) GetPodsByContext

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

func (i *LibpodAPI) GetVersion(call iopodman.VarlinkCall) error

GetVersion ...

func (*LibpodAPI) GetVolumes

func (i *LibpodAPI) GetVolumes(call iopodman.VarlinkCall, args []string, all bool) error

GetVolumes returns all the volumes known to the remote system

func (*LibpodAPI) HistoryImage

func (i *LibpodAPI) HistoryImage(call iopodman.VarlinkCall, name string) error

HistoryImage returns the history of the image's layers Requires an image or name

func (*LibpodAPI) ImageExists

func (i *LibpodAPI) ImageExists(call iopodman.VarlinkCall, name string) error

ImageExists returns bool as to whether the input image exists in local storage

func (*LibpodAPI) ImageSave

func (i *LibpodAPI) ImageSave(call iopodman.VarlinkCall, options iopodman.ImageSaveOptions) error

ImageSave ....

func (*LibpodAPI) ImagesPrune

func (i *LibpodAPI) ImagesPrune(call iopodman.VarlinkCall, all bool) error

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

func (i *LibpodAPI) InspectContainer(call iopodman.VarlinkCall, name string) error

InspectContainer ...

func (*LibpodAPI) InspectImage

func (i *LibpodAPI) InspectImage(call iopodman.VarlinkCall, name string) error

InspectImage returns an image's inspect information as a string that can be serialized. Requires an image ID or name

func (*LibpodAPI) InspectPod

func (i *LibpodAPI) InspectPod(call iopodman.VarlinkCall, name string) error

InspectPod ...

func (*LibpodAPI) KillContainer

func (i *LibpodAPI) KillContainer(call iopodman.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) KillPod

func (i *LibpodAPI) KillPod(call iopodman.VarlinkCall, name string, signal int64) error

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

func (i *LibpodAPI) ListContainerChanges(call iopodman.VarlinkCall, name string) error

ListContainerChanges ...

func (*LibpodAPI) ListContainerMounts

func (i *LibpodAPI) ListContainerMounts(call iopodman.VarlinkCall) error

ListContainerMounts ...

func (*LibpodAPI) ListContainerProcesses

func (i *LibpodAPI) ListContainerProcesses(call iopodman.VarlinkCall, name string, opts []string) error

ListContainerProcesses ...

func (*LibpodAPI) ListContainers

func (i *LibpodAPI) ListContainers(call iopodman.VarlinkCall) error

ListContainers ...

func (*LibpodAPI) ListImages

func (i *LibpodAPI) ListImages(call iopodman.VarlinkCall) error

ListImages lists all the images in the store It requires no inputs.

func (*LibpodAPI) ListPods

func (i *LibpodAPI) ListPods(call iopodman.VarlinkCall) error

ListPods ...

func (*LibpodAPI) LoadImage

func (i *LibpodAPI) LoadImage(call iopodman.VarlinkCall, name, inputFile string, deleteInputFile, quiet bool) error

LoadImage ...

func (*LibpodAPI) MountContainer

func (i *LibpodAPI) MountContainer(call iopodman.VarlinkCall, name string) error

MountContainer ...

func (*LibpodAPI) PauseContainer

func (i *LibpodAPI) PauseContainer(call iopodman.VarlinkCall, name string) error

PauseContainer ...

func (*LibpodAPI) PausePod

func (i *LibpodAPI) PausePod(call iopodman.VarlinkCall, name string) error

PausePod ...

func (*LibpodAPI) PodStateData

func (i *LibpodAPI) PodStateData(call iopodman.VarlinkCall, name string) error

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

func (i *LibpodAPI) ReceiveFile(call iopodman.VarlinkCall, filepath string, delete bool) error

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

func (i *LibpodAPI) RemoveImage(call iopodman.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) RemovePod

func (i *LibpodAPI) RemovePod(call iopodman.VarlinkCall, name string, force bool) error

RemovePod ...

func (*LibpodAPI) RestartContainer

func (i *LibpodAPI) RestartContainer(call iopodman.VarlinkCall, name string, timeout int64) error

RestartContainer ...

func (*LibpodAPI) RestartPod

func (i *LibpodAPI) RestartPod(call iopodman.VarlinkCall, name string) error

RestartPod ...

func (*LibpodAPI) SearchImages

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

func (i *LibpodAPI) SendFile(call iopodman.VarlinkCall, ftype string, length int64) error

SendFile allows a client to send a file to the varlink server

func (*LibpodAPI) StartContainer

func (i *LibpodAPI) StartContainer(call iopodman.VarlinkCall, name string) error

StartContainer ...

func (*LibpodAPI) StartPod

func (i *LibpodAPI) StartPod(call iopodman.VarlinkCall, name string) error

StartPod ...

func (*LibpodAPI) StopContainer

func (i *LibpodAPI) StopContainer(call iopodman.VarlinkCall, name string, timeout int64) error

StopContainer ...

func (*LibpodAPI) StopPod

func (i *LibpodAPI) StopPod(call iopodman.VarlinkCall, name string, timeout int64) error

StopPod ...

func (*LibpodAPI) TagImage

func (i *LibpodAPI) TagImage(call iopodman.VarlinkCall, name, tag string) error

TagImage accepts an image name and tag as strings and tags an image in the local store.

func (*LibpodAPI) UnmountContainer

func (i *LibpodAPI) UnmountContainer(call iopodman.VarlinkCall, name string, force bool) error

UnmountContainer ...

func (*LibpodAPI) UnpauseContainer

func (i *LibpodAPI) UnpauseContainer(call iopodman.VarlinkCall, name string) error

UnpauseContainer ...

func (*LibpodAPI) UnpausePod

func (i *LibpodAPI) UnpausePod(call iopodman.VarlinkCall, name string) error

UnpausePod ...

func (*LibpodAPI) VolumeCreate

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

func (i *LibpodAPI) VolumeRemove(call iopodman.VarlinkCall, options iopodman.VolumeRemoveOpts) error

VolumeRemove removes volumes by options.All or options.Volumes

func (*LibpodAPI) VolumesPrune

func (i *LibpodAPI) VolumesPrune(call iopodman.VarlinkCall) error

VolumesPrune removes unused images via a varlink call

func (*LibpodAPI) WaitContainer

func (i *LibpodAPI) WaitContainer(call iopodman.VarlinkCall, name string) error

WaitContainer ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL