-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use --poll-interval flag (#660)
The `--poll-interval` flag was ignored since a refactoring in #293 (released first in v1.21.0). This adds back the functionality that was lost then.
- Loading branch information
Showing
8 changed files
with
265 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package hcapi2 | ||
|
||
import ( | ||
"github.com/hetznercloud/hcloud-go/v2/hcloud" | ||
) | ||
|
||
// ActionClient embeds the Hetzner Cloud Action client | ||
type ActionClient interface { | ||
hcloud.IActionClient | ||
} | ||
|
||
func NewActionClient(client hcloud.IActionClient) ActionClient { | ||
return &actionClient{ | ||
IActionClient: client, | ||
} | ||
} | ||
|
||
type actionClient struct { | ||
hcloud.IActionClient | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.