tart/Sources/tart
victorserbu2709 df3de33f1a
Posibility to add Labels when pushing OCI Image (#1052)
* Posibility to add Labels when pushing OCI Image

Example running:
tart push $image ${registry}/org/${image}-testing --labels com.org.revision=testing --labels com.org.repo.buildid=123456

* Fix Linting

Run swift package plugin --allow-writing-to-package-directory swiftformat --cache ignore

* Update Sources/tart/Commands/Push.swift

Co-authored-by: Nikolay Edigaryev <edigaryev@gmail.com>

* Update Sources/tart/Commands/Push.swift

Co-authored-by: Nikolay Edigaryev <edigaryev@gmail.com>

* Update Sources/tart/Commands/Push.swift

Co-authored-by: Nikolay Edigaryev <edigaryev@gmail.com>

* Update Sources/tart/OCI/Manifest.swift

Co-authored-by: Nikolay Edigaryev <edigaryev@gmail.com>

* Update Sources/tart/Commands/Push.swift

Co-authored-by: Nikolay Edigaryev <edigaryev@gmail.com>

* Update Sources/tart/Commands/Push.swift

* Do not use a variable to store parseLabels() results

* Trim spaces before splitting labels and support empty values

---------

Co-authored-by: Victor Serbu <victors@4psa.com>
Co-authored-by: Nikolay Edigaryev <edigaryev@gmail.com>
Co-authored-by: Fedor Korotkov <fedor.korotkov@gmail.com>
2025-04-14 16:10:12 +00:00
..
CI Sentry integration (#352) 2022-12-15 13:50:21 +00:00
Commands Posibility to add Labels when pushing OCI Image (#1052) 2025-04-14 16:10:12 +00:00
Credentials Always use write(contentsOf:) instead of write(_:) (#997) 2025-01-15 00:26:30 +04:00
DeviceInfo Set User-Agent header for OCI HTTP requests (#478) 2023-04-28 18:02:57 +04:00
Formatter Suspend/resume support (#527) 2023-07-06 18:04:39 +00:00
Logging Async http client for pull/push (#95) 2022-05-20 11:04:21 -04:00
MACAddressResolver Prevent pipe deadlock when spawning a Process() (#916) 2024-10-02 09:48:23 -04:00
Network Fixed Swift Warning (#787) 2024-04-11 19:53:10 +04:00
OCI Posibility to add Labels when pushing OCI Image (#1052) 2025-04-14 16:10:12 +00:00
Passphrase Reformat code idents and introduce the SwiftFormat linter (#339) 2022-11-29 15:56:13 +00:00
Platform Better message if hardware model is not supported by the host (#962) 2024-12-03 06:52:40 -05:00
ShellCompletions Add shell completions (#780) 2024-04-11 06:22:50 -04:00
VNC tart run: resolve VM's IP using ARP when using --net-bridged and --vnc (#811) 2024-05-02 18:04:26 +04:00
Config.swift Reformat code idents and introduce the SwiftFormat linter (#339) 2022-11-29 15:56:13 +00:00
Fetcher.swift Registry: limit the text output on unexpected status code (#981) 2024-12-20 11:55:08 +04:00
FileLock.swift Reformat code idents and introduce the SwiftFormat linter (#339) 2022-11-29 15:56:13 +00:00
IPSWCache.swift Reformat code idents and introduce the SwiftFormat linter (#339) 2022-11-29 15:56:13 +00:00
LocalLayerCache.swift Optimize DiskV2 Deduplication (#878) 2024-08-05 12:24:31 -04:00
PIDLock.swift tart delete: return human-friendly error when local VM doesn't exist (#910) 2024-09-26 14:45:14 +04:00
Prunable.swift Show both size and actual size of files (#742) 2024-02-27 20:13:38 +04:00
Root.swift Sentry: upgrade and attach command-line arguments (#774) 2024-04-02 18:31:16 +04:00
Serial.swift Reformatted Serial.swift 2023-03-16 10:22:27 -04:00
URL+AccessDate.swift utimes(2): use errno to explain the error (#931) 2024-10-31 16:33:03 -04:00
URL+Prunable.swift Optimize DiskV2 Deduplication (#878) 2024-08-05 12:24:31 -04:00
Utils.swift Reformat code idents and introduce the SwiftFormat linter (#339) 2022-11-29 15:56:13 +00:00
VM+Recovery.swift Use MainActor to ensure we're running on main queue (#515) 2023-06-07 15:06:33 +04:00
VM.swift Always use write(contentsOf:) instead of write(_:) (#997) 2025-01-15 00:26:30 +04:00
VMConfig.swift tart set: support --{,no-}display-auto-reconfigure (#954) 2024-11-20 23:55:11 +04:00
VMDirectory+Archive.swift tart import: fix import failing due to SIGBUS (#458) 2023-03-30 15:52:48 +04:00
VMDirectory+OCI.swift Posibility to add Labels when pushing OCI Image (#1052) 2025-04-14 16:10:12 +00:00
VMDirectory.swift tart pull: try to re-use APFS blocks by cloning the base image (#864) 2024-07-25 15:33:15 +00:00
VMStorageHelper.swift tart delete: return human-friendly error when local VM doesn't exist (#910) 2024-09-26 14:45:14 +04:00
VMStorageLocal.swift Do not prune running VMs (#861) 2024-07-15 07:10:51 -04:00
VMStorageOCI.swift tart pull: re-try disk layer downloads by specifying "Range" header (#980) 2024-12-19 21:21:33 +04:00