linodevolumes

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const LinodeVolumeLabelLength = 32

TODO: Rename this variable

Variables

This section is empty.

Functions

func NodeIdAsInt

func NodeIdAsInt(caller string, w withNode) (int, error)

func VolumeIdAsInt

func VolumeIdAsInt(caller string, w withVolume) (int, error)

Types

type LinodeVolumeKey

type LinodeVolumeKey struct {
	VolumeID int
	Label    string
}

func CreateLinodeVolumeKey

func CreateLinodeVolumeKey(id int, label string) LinodeVolumeKey

func ParseLinodeVolumeKey

func ParseLinodeVolumeKey(key string) (*LinodeVolumeKey, error)

func (*LinodeVolumeKey) GetNormalizedLabel

func (key *LinodeVolumeKey) GetNormalizedLabel() string

func (*LinodeVolumeKey) GetNormalizedLabelWithPrefix

func (key *LinodeVolumeKey) GetNormalizedLabelWithPrefix(prefix string) string

func (*LinodeVolumeKey) GetVolumeID

func (key *LinodeVolumeKey) GetVolumeID() int

func (*LinodeVolumeKey) GetVolumeKey

func (key *LinodeVolumeKey) GetVolumeKey() string

func (*LinodeVolumeKey) GetVolumeLabel

func (key *LinodeVolumeKey) GetVolumeLabel() string

Jump to

Keyboard shortcuts

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