utils

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderIDPrefix          = "linode://"
	DNS1123LabelMaxLength int = 63
)

Variables

This section is empty.

Functions

func IgnoreLinodeAPIError

func IgnoreLinodeAPIError(err error, code int) error

IgnoreLinodeAPIError returns the error except matches to status code

func IsLinodeProviderID

func IsLinodeProviderID(providerID string) bool

func IsPrivate

func IsPrivate(ip *net.IP, linodeExternalNetwork *net.IPNet) bool

func ParseProviderID

func ParseProviderID(providerID string) (int, error)

Types

type InvalidProviderIDError

type InvalidProviderIDError struct {
	Value string
}

func (InvalidProviderIDError) Error

func (e InvalidProviderIDError) Error() string

Jump to

Keyboard shortcuts

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