pods

package
v4.9.4 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 29 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListPodReporter

type ListPodReporter struct {
	*entities.ListPodsReport
}

ListPodReporter is a struct for pod ps output

func (ListPodReporter) ContainerIds

func (l ListPodReporter) ContainerIds() string

func (ListPodReporter) ContainerNames

func (l ListPodReporter) ContainerNames() string

func (ListPodReporter) ContainerStatuses

func (l ListPodReporter) ContainerStatuses() string

func (ListPodReporter) Created

func (l ListPodReporter) Created() string

Created returns a human readable created time/date

func (ListPodReporter) ID

func (l ListPodReporter) ID() string

ID is a wrapper to Id for compat, typos

func (ListPodReporter) Id

func (l ListPodReporter) Id() string

Id returns the Pod id

func (ListPodReporter) InfraID

func (l ListPodReporter) InfraID() string

Added for backwards compatibility with podmanv1

func (ListPodReporter) InfraId

func (l ListPodReporter) InfraId() string

InfraId returns the infra container id for the pod depending on trunc

func (ListPodReporter) Labels

func (l ListPodReporter) Labels() map[string]string

Labels returns a map of the pod's labels

func (ListPodReporter) Networks

func (l ListPodReporter) Networks() string

Networks returns the infra container network names in string format

func (ListPodReporter) NumberOfContainers

func (l ListPodReporter) NumberOfContainers() int

NumberOfContainers returns an int representation for the number of containers belonging to the pod

func (ListPodReporter) Restarts added in v4.6.0

func (l ListPodReporter) Restarts() string

Restarts returns the total number of restarts for all the containers in the pod

Jump to

Keyboard shortcuts

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