hcloudutil

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package hcloudutil contains utility functions for hcloud servers.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidProviderID indicates that the providerID is invalid.
	ErrInvalidProviderID = fmt.Errorf("invalid providerID")
	// ErrNilProviderID indicates that the providerID is nil.
	ErrNilProviderID = fmt.Errorf("nil providerID")
)

Functions

func HandleRateLimitExceeded

func HandleRateLimitExceeded(obj runtimeObjectWithConditions, err error, functionName string) bool

HandleRateLimitExceeded handles rate limit exceeded errors. Returns true if RateLimit is reached.

func ProviderIDFromServerID

func ProviderIDFromServerID(serverID int) string

ProviderIDFromServerID returns the providerID of a hcloud server from a serverID.

func ServerIDFromProviderID

func ServerIDFromProviderID(providerID *string) (int64, error)

ServerIDFromProviderID returns the serverID from a providerID.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL