libpod

package
v1.8.1-rc3 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: Apache-2.0 Imports: 30 Imported by: 1 module, 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 ContainerExists

func ContainerExists(w http.ResponseWriter, r *http.Request)

func CreateContainer added in v1.8.1

func CreateContainer(w http.ResponseWriter, r *http.Request)

CreateContainer takes a specgenerator and makes a container. It returns the new container ID on success along with any warnings.

func CreateNetwork

func CreateNetwork(w http.ResponseWriter, r *http.Request)

func CreateVolume

func CreateVolume(w http.ResponseWriter, r *http.Request)

func ExportImage

func ExportImage(w http.ResponseWriter, r *http.Request)

func GetContainer

func GetContainer(w http.ResponseWriter, r *http.Request)

func GetImage

func GetImage(w http.ResponseWriter, r *http.Request)

func GetImages

func GetImages(w http.ResponseWriter, r *http.Request)

func ImageExists

func ImageExists(w http.ResponseWriter, r *http.Request)

func ImageTree

func ImageTree(w http.ResponseWriter, r *http.Request)

func ImagesImport

func ImagesImport(w http.ResponseWriter, r *http.Request)

func ImagesLoad

func ImagesLoad(w http.ResponseWriter, r *http.Request)

func ImagesPull

func ImagesPull(w http.ResponseWriter, r *http.Request)

func InspectNetwork

func InspectNetwork(w http.ResponseWriter, r *http.Request)

func InspectVolume

func InspectVolume(w http.ResponseWriter, r *http.Request)

func KillContainer

func KillContainer(w http.ResponseWriter, r *http.Request)

func ListContainers

func ListContainers(w http.ResponseWriter, r *http.Request)

func ListNetworks

func ListNetworks(w http.ResponseWriter, r *http.Request)

func ListVolumes

func ListVolumes(w http.ResponseWriter, r *http.Request)

func MountContainer

func MountContainer(w http.ResponseWriter, r *http.Request)

func PodCreate

func PodCreate(w http.ResponseWriter, r *http.Request)

func PodDelete

func PodDelete(w http.ResponseWriter, r *http.Request)

func PodExists

func PodExists(w http.ResponseWriter, r *http.Request)

func PodInspect

func PodInspect(w http.ResponseWriter, r *http.Request)

func PodKill

func PodKill(w http.ResponseWriter, r *http.Request)

func PodPause

func PodPause(w http.ResponseWriter, r *http.Request)

func PodPrune

func PodPrune(w http.ResponseWriter, r *http.Request)

func PodRestart

func PodRestart(w http.ResponseWriter, r *http.Request)

func PodStart

func PodStart(w http.ResponseWriter, r *http.Request)

func PodStop

func PodStop(w http.ResponseWriter, r *http.Request)

func PodUnpause

func PodUnpause(w http.ResponseWriter, r *http.Request)

func Pods

func Pods(w http.ResponseWriter, r *http.Request)

func PruneImages

func PruneImages(w http.ResponseWriter, r *http.Request)

func PruneVolumes

func PruneVolumes(w http.ResponseWriter, r *http.Request)

func RemoveContainer

func RemoveContainer(w http.ResponseWriter, r *http.Request)

func RemoveNetwork

func RemoveNetwork(w http.ResponseWriter, r *http.Request)

func RemoveVolume

func RemoveVolume(w http.ResponseWriter, r *http.Request)

func RunHealthCheck

func RunHealthCheck(w http.ResponseWriter, r *http.Request)

func ShowMountedContainers

func ShowMountedContainers(w http.ResponseWriter, r *http.Request)

func StopContainer

func StopContainer(w http.ResponseWriter, r *http.Request)

func UnmountContainer

func UnmountContainer(w http.ResponseWriter, r *http.Request)

func WaitContainer

func WaitContainer(w http.ResponseWriter, r *http.Request)

Types

type ListContainer added in v1.8.1

type ListContainer struct {
	// Container command
	Command []string
	// Container creation time
	Created int64
	// If container has exited/stopped
	Exited bool
	// Time container exited
	ExitedAt int64
	// If container has exited, the return code from the command
	ExitCode int32
	// The unique identifier for the container
	ID string `json:"Id"`
	// Container image
	Image string
	// If this container is a Pod infra container
	IsInfra bool
	// Labels for container
	Labels map[string]string
	// User volume mounts
	Mounts []string
	// The names assigned to the container
	Names []string
	// Namespaces the container belongs to.  Requires the
	// namespace boolean to be true
	Namespaces ListContainerNamespaces
	// The process id of the container
	Pid int
	// If the container is part of Pod, the Pod ID. Requires the pod
	// boolean to be set
	Pod string
	// If the container is part of Pod, the Pod name. Requires the pod
	// boolean to be set
	PodName string
	// Port mappings
	Ports []ocicni.PortMapping
	// Size of the container rootfs.  Requires the size boolean to be true
	Size *shared.ContainerSize
	// Time when container started
	StartedAt int64
	// State of container
	State string
}

Listcontainer describes a container suitable for listing

func ListContainerBatch added in v1.8.1

func ListContainerBatch(rt *libpod.Runtime, ctr *libpod.Container, opts shared.PsOptions) (ListContainer, error)

BatchContainerOp is used in ps to reduce performance hits by "batching" locks.

type ListContainerNamespaces added in v1.8.1

type ListContainerNamespaces struct {
	// Mount namespace
	MNT string `json:"Mnt,omitempty"`
	// Cgroup namespace
	Cgroup string `json:"Cgroup,omitempty"`
	// IPC namespace
	IPC string `json:"Ipc,omitempty"`
	// Network namespace
	NET string `json:"Net,omitempty"`
	// PID namespace
	PIDNS string `json:"Pidns,omitempty"`
	// UTS namespace
	UTS string `json:"Uts,omitempty"`
	// User namespace
	User string `json:"User,omitempty"`
}

ListContainer Namespaces contains the identifiers of the container's Linux namespaces

Jump to

Keyboard shortcuts

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