pods

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: Apache-2.0 Imports: 10 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 CreatePodFromSpec added in v1.9.0

func CreatePodFromSpec(ctx context.Context, s *specgen.PodSpecGenerator) (*entities.PodCreateReport, error)

func Exists

func Exists(ctx context.Context, nameOrID string) (bool, error)

Exists is a lightweight method to determine if a pod exists in local storage

func Inspect

func Inspect(ctx context.Context, nameOrID string) (*entities.PodInspectReport, error)

Inspect returns low-level information about the given pod.

func Kill

func Kill(ctx context.Context, nameOrID string, signal *string) (*entities.PodKillReport, error)

Kill sends a SIGTERM to all the containers in a pod. The optional signal parameter can be used to override SIGTERM.

func List

func List(ctx context.Context, filters map[string][]string) ([]*entities.ListPodsReport, error)

List returns all pods in local storage. The optional filters parameter can be used to refine which pods should be listed.

func Pause

func Pause(ctx context.Context, nameOrID string) (*entities.PodPauseReport, error)

Pause pauses all running containers in a given pod.

func Prune

func Prune(ctx context.Context) error

Prune removes all non-running pods in local storage.

func Remove

func Remove(ctx context.Context, nameOrID string, force *bool) (*entities.PodRmReport, error)

Remove deletes a Pod from from local storage. The optional force parameter denotes that the Pod can be removed even if in a running state.

func Restart

func Restart(ctx context.Context, nameOrID string) (*entities.PodRestartReport, error)

Restart restarts all containers in a pod.

func Start

func Start(ctx context.Context, nameOrID string) (*entities.PodStartReport, error)

Start starts all containers in a pod.

func Stats

func Stats() error

func Stop

func Stop(ctx context.Context, nameOrID string, timeout *int) (*entities.PodStopReport, error)

Stop stops all containers in a Pod. The optional timeout parameter can be used to override the timeout before the container is killed.

func Top

func Top(ctx context.Context, nameOrID string, descriptors []string) ([]string, error)

Top gathers statistics about the running processes in a pod. The nameOrID can be a pod name or a partial/full ID. The descriptors allow for specifying which data to collect from each process.

func Unpause

func Unpause(ctx context.Context, nameOrID string) (*entities.PodUnpauseReport, error)

Unpause unpauses all paused containers in a Pod.

Types

This section is empty.

Jump to

Keyboard shortcuts

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