mirror of
https://github.com/apricote/hcloud-upload-image.git
synced 2026-01-13 21:31:03 +00:00
chore: add license info for code taken from other repos
This commit is contained in:
parent
d0729e1cb5
commit
27d4e3240e
6 changed files with 24 additions and 12 deletions
|
|
@ -1,3 +1,7 @@
|
|||
// SPDX-License-Identifier: MIT
|
||||
// From https://gitlab.com/hetznercloud/fleeting-plugin-hetzner/-/blob/0f60204582289c243599f8ca0f5be4822789131d/internal/utils/ssh_key.go
|
||||
// Copyright (c) 2024 Hetzner Cloud GmbH
|
||||
|
||||
package sshkey
|
||||
|
||||
import (
|
||||
|
|
@ -7,9 +11,6 @@ import (
|
|||
"golang.org/x/crypto/ssh"
|
||||
)
|
||||
|
||||
// From https://gitlab.com/hetznercloud/fleeting-plugin-hetzner/-/blob/0f60204582289c243599f8ca0f5be4822789131d/internal/utils/ssh_key.go
|
||||
// Copyright (c) 2024 Hetzner Cloud GmbH
|
||||
|
||||
func GenerateKeyPair() ([]byte, []byte, error) {
|
||||
pub, priv, err := ed25519.GenerateKey(nil)
|
||||
if err != nil {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
// SPDX-License-Identifier: MIT
|
||||
// From https://gitlab.com/hetznercloud/fleeting-plugin-hetzner/-/blob/0f60204582289c243599f8ca0f5be4822789131d/internal/utils/ssh_key_test.go
|
||||
// Copyright (c) 2024 Hetzner Cloud GmbH
|
||||
|
||||
package sshkey
|
||||
|
||||
import (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue