mirror of
https://github.com/apricote/hcloud-upload-image.git
synced 2026-02-07 02:07:05 +00:00
feat: add --location flag to specify datacenter region
Allow users to specify which Hetzner datacenter location to use for the temporary server during image upload. Defaults to fsn1 for backward compatibility. Available locations: fsn1, nbg1, hel1, ash, hil, sin
This commit is contained in:
parent
a9b16cf07c
commit
4bf44efe08
5 changed files with 28 additions and 3 deletions
|
|
@ -24,6 +24,7 @@ func ExampleClient_Upload() {
|
|||
ImageURL: imageURL,
|
||||
ImageCompression: hcloudimages.CompressionBZ2,
|
||||
Architecture: hcloud.ArchitectureX86,
|
||||
Location: &hcloud.Location{Name: "nbg1"}, // Optional: defaults to fsn1
|
||||
})
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue