summaryrefslogtreecommitdiff
path: root/libpod/runtime_pod.go
diff options
context:
space:
mode:
authorhaircommander <pehunt@redhat.com>2018-07-09 17:48:20 -0400
committerhaircommander <pehunt@redhat.com>2018-07-13 09:17:33 -0400
commita04a8d1dd4d375ebe5084bac760dc82f88cfc77f (patch)
tree4b02c7e49ec737c6e9ffd4412e5212b856df518c /libpod/runtime_pod.go
parent1aad3fd96b61705243e8f6ae35f65946916aa8a5 (diff)
downloadpodman-a04a8d1dd4d375ebe5084bac760dc82f88cfc77f.tar.gz
podman-a04a8d1dd4d375ebe5084bac760dc82f88cfc77f.tar.bz2
podman-a04a8d1dd4d375ebe5084bac760dc82f88cfc77f.zip
Added full podman pod ps, with tests and man page
Signed-off-by: haircommander <pehunt@redhat.com>
Diffstat (limited to 'libpod/runtime_pod.go')
-rw-r--r--libpod/runtime_pod.go45
1 files changed, 0 insertions, 45 deletions
diff --git a/libpod/runtime_pod.go b/libpod/runtime_pod.go
index 3ad8454b4..f5a2b017b 100644
--- a/libpod/runtime_pod.go
+++ b/libpod/runtime_pod.go
@@ -52,51 +52,6 @@ func (r *Runtime) HasPod(id string) (bool, error) {
return r.state.HasPod(id)
}
-// ContainerIDsInPod returns the IDs of containers in the pod
-func (r *Runtime) ContainerIDsInPod(pod *Pod) ([]string, error) {
- r.lock.RLock()
- defer r.lock.RUnlock()
-
- if !r.valid {
- return nil, ErrRuntimeStopped
- }
-
- return r.state.PodContainersByID(pod)
-}
-
-// ContainersInPod returns the containers in the pod
-func (r *Runtime) ContainersInPod(pod *Pod) ([]*Container, error) {
- r.lock.RLock()
- defer r.lock.RUnlock()
-
- if !r.valid {
- return nil, ErrRuntimeStopped
- }
-
- return r.state.PodContainers(pod)
-}
-
-// ContainerNamesInPod returns the names of containers in the pod
-func (r *Runtime) ContainerNamesInPod(pod *Pod) ([]string, error) {
- r.lock.RLock()
- defer r.lock.RUnlock()
-
- if !r.valid {
- return nil, ErrRuntimeStopped
- }
-
- var ctrNames []string
- ctrs, err := r.ContainersInPod(pod)
- if err != nil {
- return nil, err
- }
- for _, ctr := range ctrs {
- ctrNames = append(ctrNames, ctr.Name())
- }
-
- return ctrNames, nil
-}
-
// LookupPod retrieves a pod by its name or a partial ID
// If a partial ID is not unique, an error will be returned
func (r *Runtime) LookupPod(idOrName string) (*Pod, error) {