spiegel_podman/pkg/domain/entities
Daniel J Walsh b765c91580
Add --replace option to podman artifact add command
This commit implements the --replace functionality for the artifact add command,
allowing users to replace existing artifacts without having to manually remove
them first.

Changes made:
- Add Replace field to ArtifactAddOptions entity types
- Add --replace CLI flag with validation to prevent conflicts with --append
- Implement replace logic in ABI backend to remove existing artifacts before adding
- Update API handlers and tunnel implementation for podman-remote support
- Add comprehensive documentation and examples to man page
- Add e2e and system BATS tests for --replace functionality
- Fix code formatting in pkg/bindings/artifacts/types_pull_options.go:
  * Reorder imports with proper spacing
  * Fix function declaration spacing
  * Convert spaces to proper tab indentation
  * Remove extraneous blank lines

The --replace option follows the same pattern as other podman replace options
like 'podman container create --replace' and 'podman pod create --replace'.
It gracefully handles cases where no existing artifact exists (no error thrown).

Usage examples:
  podman artifact add --replace quay.io/myimage/artifact:latest /path/to/file
  podman artifact add --replace localhost/test/artifact /tmp/newfile.txt

Fixes: Implements requested --replace functionality for artifact add command
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2025-10-06 12:22:40 -04:00
..
reports ci: rm allow-unused from nolintlint settings 2025-03-31 12:27:55 -07:00
types Implement TLS API Support 2025-09-26 09:09:54 -06:00
apply.go Add podman kube apply command 2022-11-01 15:30:17 -04:00
artifact.go Add --replace option to podman artifact add command 2025-10-06 12:22:40 -04:00
auto-update.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
container_ps.go add filter for container command 2025-03-02 19:47:44 +02:00
containers.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
engine.go Implement TLS API Support 2025-09-26 09:09:54 -06:00
engine_container.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
engine_image.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
events.go properly implement pull-error event status 2024-03-05 10:50:42 +01:00
generate.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
healthcheck.go podmanv2 enable healthcheck run 2020-03-29 18:48:29 -05:00
images.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
machine.go feat: Add support for configuring swap in Podman machine 2025-04-29 12:20:24 +10:00
manifest.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
network.go swagger fix infinitive recursion on some types 2024-04-12 15:26:34 +02:00
play.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
pods.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
quadlet.go Initial implementation of podman quadlet commands 2025-07-18 13:57:11 -07:00
scp.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
secrets.go Secret create - add ignore option to allow noop 2025-06-24 15:43:38 -04:00
system.go Add podman system check for checking storage consistency 2024-06-04 10:00:37 -04:00
types.go run modernize -fix ./... 2025-09-10 16:17:04 +02:00
volumes.go Refactor volume import to support the remote client 2025-06-23 13:42:22 -04:00