summaryrefslogtreecommitdiff
path: root/pkg/bindings/pods/pods.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2021-01-18 09:29:40 -0600
committerbaude <bbaude@redhat.com>2021-01-18 13:48:51 -0600
commit4ccb0729b4f0a25eb53f62c2f6ca7f8925f0fe4e (patch)
treeed2003809730d195c95905cf4c307a8e9047d2d0 /pkg/bindings/pods/pods.go
parent5b3c7a52939275784c45c9747dd5864bd0581ff5 (diff)
downloadpodman-4ccb0729b4f0a25eb53f62c2f6ca7f8925f0fe4e.tar.gz
podman-4ccb0729b4f0a25eb53f62c2f6ca7f8925f0fe4e.tar.bz2
podman-4ccb0729b4f0a25eb53f62c2f6ca7f8925f0fe4e.zip
Add binding options for container|pod exists
It turns out an options was added to container exists so it makes sense to have pods and container exists calls have an optional structure for options. Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/bindings/pods/pods.go')
-rw-r--r--pkg/bindings/pods/pods.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/bindings/pods/pods.go b/pkg/bindings/pods/pods.go
index 4fcaf81f1..ef30348f8 100644
--- a/pkg/bindings/pods/pods.go
+++ b/pkg/bindings/pods/pods.go
@@ -38,7 +38,7 @@ func CreatePodFromSpec(ctx context.Context, s *specgen.PodSpecGenerator, options
}
// Exists is a lightweight method to determine if a pod exists in local storage
-func Exists(ctx context.Context, nameOrID string) (bool, error) {
+func Exists(ctx context.Context, nameOrID string, options *ExistsOptions) (bool, error) {
conn, err := bindings.GetClient(ctx)
if err != nil {
return false, err