chore: add license info for code taken from other repos

This commit is contained in:
Julian Tölle 2024-05-04 22:12:19 +02:00
parent d0729e1cb5
commit 27d4e3240e
6 changed files with 24 additions and 12 deletions

View file

@ -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 {

View file

@ -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 (