diff options
author | baude <bbaude@redhat.com> | 2020-12-07 10:54:54 -0600 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2020-12-10 12:53:08 -0600 |
commit | ead8b5be0f86293801fcf22ef41dddbddb02bef7 (patch) | |
tree | 16d616db423f93867e57b6b0cb0a27ff49f979d0 /pkg/bindings/images/types.go | |
parent | 2bb149034bd67dd4027768863fed2fce853833ae (diff) | |
download | podman-ead8b5be0f86293801fcf22ef41dddbddb02bef7.tar.gz podman-ead8b5be0f86293801fcf22ef41dddbddb02bef7.tar.bz2 podman-ead8b5be0f86293801fcf22ef41dddbddb02bef7.zip |
Bindings refactor
this is step one of refactoring our golang binaries. we will no be
using structs to pass optional options. required options will still
arguments to the binding itself.
the structs then have a generator to create helper functions which
should then be added to the git repo.
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/bindings/images/types.go')
-rw-r--r-- | pkg/bindings/images/types.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/bindings/images/types.go b/pkg/bindings/images/types.go new file mode 100644 index 000000000..340c7bdb9 --- /dev/null +++ b/pkg/bindings/images/types.go @@ -0,0 +1,8 @@ +package images + +//go:generate go run ../generator/generator.go RemoveOptions +// RemoveOptions are optional options for image removal +type RemoveOptions struct { + // Forces removes all containers based on the image + Force *bool +} |