SDK: No image upload function provided #3133
Copy link
Copy link
Open
Labels
Description
Activity
Hi @robinschneider,
that's a good point. We will consider moving the upload logic from the CLI to the SDK. I have created a ticket in our internal backlog for this.
Best regards
Rubenany progress on this? I'd like to get rid of my custom implementation for the upload too :)
Problem description
I want to use the STACKIT Go SDK to upload images.
The
CreateImage().CreateImagePayload().Execute()only returns an ID and an upload endpoint.There is no function to upload the image.
I would expect the SDK provides this as well.
Proposed solution
Provide a function to upload an image.
The CLI allows uploading images, so the function was already created for the CLI, this should be part of the SDK in order to reuse it in CLI and other applications.