mirror of
https://github.com/apricote/hcloud-upload-image.git
synced 2026-01-13 21:31:03 +00:00
chore(deps): update module github.com/hetznercloud/hcloud-go/v2 to v2.15.0
This commit is contained in:
parent
4e24d83c7a
commit
b6913b46c6
7 changed files with 110 additions and 75 deletions
|
|
@ -10,7 +10,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/hetznercloud/hcloud-go/v2/hcloud"
|
||||
"github.com/hetznercloud/hcloud-go/v2/hcloud/exp/kit/sshutils"
|
||||
"github.com/hetznercloud/hcloud-go/v2/hcloud/exp/kit/sshutil"
|
||||
"golang.org/x/crypto/ssh"
|
||||
|
||||
"github.com/apricote/hcloud-upload-image/hcloudimages/contextlogger"
|
||||
|
|
@ -136,7 +136,7 @@ func (s *Client) Upload(ctx context.Context, options UploadOptions) (*hcloud.Ima
|
|||
|
||||
// 1. Create SSH Key
|
||||
logger.InfoContext(ctx, "# Step 1: Generating SSH Key")
|
||||
privateKey, publicKey, err := sshutils.GenerateKeyPair()
|
||||
privateKey, publicKey, err := sshutil.GenerateKeyPair()
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to generate temporary ssh key pair: %w", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue