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: MPL-2.0
|
||||
// From https://github.com/hetznercloud/terraform-provider-hcloud/blob/v1.46.1/internal/control/retry.go
|
||||
// Copyright (c) Hetzner Cloud GmbH
|
||||
|
||||
package control
|
||||
|
||||
import (
|
||||
|
|
@ -8,9 +12,6 @@ import (
|
|||
"github.com/apricote/hcloud-upload-image/hcloudimages/contextlogger"
|
||||
)
|
||||
|
||||
// From https://github.com/hetznercloud/terraform-provider-hcloud/blob/v1.46.1/internal/control/retry.go
|
||||
// Copyright (c) Hetzner Cloud GmbH
|
||||
|
||||
// Retry executes f at most maxTries times.
|
||||
func Retry(ctx context.Context, maxTries int, f func() error) error {
|
||||
logger := contextlogger.From(ctx)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue