1
0
mirror of https://github.com/lxc/incus.git synced 2026-02-05 09:46:19 +01:00

644 Commits

Author SHA1 Message Date
Stéphane Graber
5c1618953c client/oci: Use SHA256 of combined layers as digest
The digest from the registry refers to the image itself rather than a
particular build. As a result it would lead to the same digest on all
architectures.

On our end, for cache handling, we need each architecture to have its
own stable digest. Relying on the particular layers should achieve that.

Closes #2682

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-11-28 17:33:56 -05:00
Stéphane Graber
0d3339685c client: Add full variants of volume and bucket list functions
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-11-27 18:51:05 -05:00
Stéphane Graber
e5bb1ec415 client: Add GetStoragePoolBucketFull and GetStoragePoolVolumeFull
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-11-27 18:51:04 -05:00
Lucas Bremgartner
63cbaa5b3a client: Omit trailing ? for /events without query parameters
Signed-off-by: Lucas Bremgartner <lucas.bremgartner@futurfusion.io>
2025-11-05 07:34:53 +01:00
Lucas Bremgartner
a1b6cd0260 client: Add GetEventsByType and GetEventsAllProjectsByType
Signed-off-by: Lucas Bremgartner <lucas.bremgartner@futurfusion.io>
2025-11-04 16:07:17 +01:00
Piotr Resztak
bd3977112a api: Add 'file_storage_volume' extension
Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
2025-10-24 21:14:57 +02:00
Piotr Resztak
6034049c0b client: Add support for file management in storage volumes
Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
2025-10-24 21:14:57 +02:00
Stéphane Graber
1089efa109 Merge pull request #2509 from stgraber/main
Rework cluster internal certificate validation
2025-09-25 22:01:13 -04:00
Stéphane Graber
ae91d978d5 Merge pull request #2508 from stgraber/cluster
Add cluster group preseeding
2025-09-25 20:12:19 -04:00
Stéphane Graber
4f1443bc81 client: Implement IdenticalCertificate
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-09-25 19:39:40 -04:00
Stéphane Graber
dc17fd1d24 client: Add support for cluster group preseeding
Closes #2499

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-09-25 16:02:33 -04:00
Stéphane Graber
43b02c81f1 client/oci: Set the umoci logger on init
Closes #2481

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-09-25 14:33:53 -04:00
Helder Ardachnikoff Gomes
1aca1e8fa9 client: Allow config/device override on backup import
Signed-off-by: Helder Ardachnikoff Gomes <helder.versatti@gmail.com>
2025-09-16 18:45:38 -04:00
Angelos Kolaitis
a0aad161fc client/oci: Allow OCI image names with a pinned hash
Enables specifying OCI images as `IMAGE:TAG@HASH`

Signed-off-by: Angelos Kolaitis <neoaggelos@gmail.com>
2025-09-07 12:08:17 +03:00
Stéphane Graber
a83e437873 client: Add configurable temp directory
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-07-31 19:23:09 -04:00
Stéphane Graber
2d08ba86f1 client: Add SkipGetEvents
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Sponsored-by: https://webdock.io
2025-07-31 18:41:10 -04:00
Cory Chang
d45cf16c29 client/oci: Refactor skopeo logic and add credentials support
Signed-off-by: Cory Chang <ccory2004@gmail.com>
2025-07-29 01:57:18 -04:00
Stéphane Graber
39d8708751 client: Use server-advertised OIDC scopes
Closes #2249

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-07-28 14:25:56 -04:00
Stéphane Graber
79e9704c35 client: Add GetStoragePoolsWithFilter
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-07-25 16:04:25 -04:00
Stéphane Graber
a1b00c9a25 client: Add GetClusterMembersWithFilter
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-07-25 15:47:55 -04:00
Robby Callicotte
81803ecdb9 client: Fixed non-constant format string in call to fmt.Errorf
Signed-off-by: Robby Callicotte <rcallicotte@fedoraproject.org>
2025-07-08 23:18:16 -04:00
Lucas Bremgartner
4b02940d5e client: Don't swallow error if incusParseResponse is successful
Signed-off-by: Lucas Bremgartner <lucas.bremgartner@futurfusion.io>
2025-06-17 15:31:50 +02:00
Piotr Resztak
e7c34a56dc client: Add DeletePendingClusterMember
Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
2025-05-27 10:39:44 +02:00
Nathan Chase
48a2cd3f22 client: Don't needlessly use format string functions
Signed-off-by: Nathan Chase <ntc477@utexas.edu>
2025-05-23 01:39:12 -04:00
Piotr Resztak
727041a1c2 client: Use the umoci Go package instead of the command
Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
2025-05-21 14:14:40 -04:00
Aryan Khatri
7a3b1a7ba2 client: Add GetStoragePoolVolumeFileSFTPConn
Signed-off-by: Aryan Khatri <aryankhatri@utexas.edu>
2025-05-07 01:02:52 -04:00
Lucas Bremgartner
8607b85476 client: Fix required extension for GetNetworkAddressSetsAllProjects
Signed-off-by: Lucas Bremgartner <lucas.bremgartner@futurfusion.io>
2025-05-06 13:17:24 +02:00
Akshat Kumar
cd73a90f74 client: Add certificate handling to ApplyServerPreseed
Signed-off-by: Akshat Kumar <akaman.boss@gmail.com>
2025-05-06 00:54:14 -04:00
Allison Chen
6417cb5f2b client: Add server-side filtering for certificates
Signed-off-by: Allison Chen <allisonchen2542@gmail.com>
2025-05-01 22:59:45 -04:00
karo
9d8dee1a35 client: rename all instances of sha256.New() to hash256 so they dont collide with the package name
Signed-off-by: karo <karolin.kostial@gmail.com>
2025-04-30 18:02:20 +02:00
Stéphane Graber
0068dddf16 Merge pull request #2015 from rahafjrw/filter_incus_project_list
Add server-side filtering for `incus project list`
2025-04-28 22:23:08 -04:00
Stéphane Graber
66a682e3ad Merge pull request #2022 from presztak/incus_migrate_custom_volume
Extend incus-migrate to support uploading filesystems and disks as custom volumes
2025-04-28 21:44:02 -04:00
Rahaf Aljerwi
8d689cada2 client: Add GetProjectsWithFilter
Signed-off-by: Rahaf Aljerwi <aljerwi.rahaf@yahoo.com>
2025-04-28 20:58:05 -04:00
Piotr Resztak
363bf66656 client: Add CreateStoragePoolVolumeFromMigration
Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
2025-04-28 20:26:01 -04:00
Stéphane Graber
0804a8bdb0 Merge pull request #2017 from The127/refactor-unnecessary-if-checks
Refactor unnecessary if checks
2025-04-28 19:49:00 -04:00
karo
0f47aaf7bd client: remove unnecessary err check and unused variable ioErr
Removes an unnecessary err check where ioErr was never assigned to a value and therefore always nil. Also removes the variable all together since it is now no longer used anywhere.

Signed-off-by: karo <karolin.kostial@gmail.com>
2025-04-28 12:23:36 +02:00
Allison Chen
dfe4c517e7 client: Add server-side filtering for storage buckets
Signed-off-by: Allison Chen <allisonchen2542@gmail.com>
2025-04-27 22:09:56 -04:00
karo
73c08ac6ff client: Rename variables because error is a builtin interface name
Signed-off-by: karo <karolin.kostial@gmail.com>
2025-04-27 15:40:08 +02:00
Abdulrahman Alshahrani
0dcf7f875f client: Add server-side filtering for networks
Signed-off-by: Abdulrahman Alshahrani <abdulrahmanalshahrani@utexas.edu>
2025-04-24 19:27:46 -05:00
Abdulrahman Alshahrani
b1be552ba0 client: Add server-side filtering for profiles
Signed-off-by: Abdulrahman Alshahrani <abdulrahmanalshahrani@utexas.edu>
2025-04-23 23:23:39 -04:00
Robby Callicotte
a144648ce4 client/incus: Fix non-constant format strings
Signed-off-by: Robby Callicotte <rcallicotte@fedoraproject.org>
2025-04-06 14:57:16 -04:00
Isidore Reinhardt
8eed850782 client: Add network address set functions
Signed-off-by: Isidore Reinhardt <pro.irhndt@4fk.fr>
2025-04-04 15:15:25 -04:00
Stéphane Graber
080446fbf9 client/oci: Only replace the first match
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-04-02 21:59:59 -04:00
Stéphane Graber
1e04b9c8ed client: Update for ArchitectureID
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-04-02 21:59:54 -04:00
Stéphane Graber
54e7c21734 client: Make golangci-lint clean
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-04-02 19:43:11 -04:00
Stéphane Graber
6e2530cdb0 client: Pass ETag in UpdateCluster
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-04-02 19:43:10 -04:00
Stéphane Graber
bf10a39516 client: Pass ETag in UpdateWarning
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-04-02 19:43:09 -04:00
Piotr Resztak
4f3bef7c72 client: Add GetImagesAllProjectsWithFilter
Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
2025-04-01 20:34:15 +02:00
Stéphane Graber
6f07fd5689 client: Use strings.ReplaceAll
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-03-28 17:34:42 -04:00
Stéphane Graber
547f98e68f client: Fix gofumpt
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-03-17 18:00:32 -04:00