summaryrefslogtreecommitdiff
path: root/pkg/bindings
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-07-28 14:48:28 +0200
committerGitHub <noreply@github.com>2021-07-28 14:48:28 +0200
commit6c5966cf3cbfa15602ba2d9ef57284f2669a321d (patch)
tree452db7496ba00a2e0da6ff4fce77b27a93fa7c12 /pkg/bindings
parenta5de8314188d7376f645d8ac6c6f7a6f685b6a45 (diff)
parent60b9e8c0da683d253f3828f00442fc5a75540368 (diff)
downloadpodman-6c5966cf3cbfa15602ba2d9ef57284f2669a321d.tar.gz
podman-6c5966cf3cbfa15602ba2d9ef57284f2669a321d.tar.bz2
podman-6c5966cf3cbfa15602ba2d9ef57284f2669a321d.zip
Merge pull request #10910 from adrianreber/2021-07-12-checkpoint-restore-into-pod
Add support for checkpoint/restore into and out of pods
Diffstat (limited to 'pkg/bindings')
-rw-r--r--pkg/bindings/containers/types.go1
-rw-r--r--pkg/bindings/containers/types_restore_options.go16
2 files changed, 17 insertions, 0 deletions
diff --git a/pkg/bindings/containers/types.go b/pkg/bindings/containers/types.go
index 39492077b..cf088441f 100644
--- a/pkg/bindings/containers/types.go
+++ b/pkg/bindings/containers/types.go
@@ -62,6 +62,7 @@ type RestoreOptions struct {
Keep *bool
Name *string
TCPEstablished *bool
+ Pod *string
}
//go:generate go run ../generator/generator.go CreateOptions
diff --git a/pkg/bindings/containers/types_restore_options.go b/pkg/bindings/containers/types_restore_options.go
index ea6c810a2..820a7696f 100644
--- a/pkg/bindings/containers/types_restore_options.go
+++ b/pkg/bindings/containers/types_restore_options.go
@@ -131,3 +131,19 @@ func (o *RestoreOptions) GetTCPEstablished() bool {
}
return *o.TCPEstablished
}
+
+// WithPod
+func (o *RestoreOptions) WithPod(value string) *RestoreOptions {
+ v := &value
+ o.Pod = v
+ return o
+}
+
+// GetPod
+func (o *RestoreOptions) GetPod() string {
+ var pod string
+ if o.Pod == nil {
+ return pod
+ }
+ return *o.Pod
+}