storage

package
v2.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// CachedStorages stores the cached list of storages in order to not hit the service more than once
	// TODO: refactor
	CachedStorages []upcloud.Storage
)

Functions

func BaseStorageCommand

func BaseStorageCommand() commands.Command

BaseStorageCommand creates the base "storage" command

func CloneCommand

func CloneCommand() commands.Command

CloneCommand creates the "storage clone" command

func CreateCommand

func CreateCommand() commands.Command

CreateCommand creates the "storage create" command

func DeleteCommand

func DeleteCommand() commands.Command

DeleteCommand creates the "storage delete" command

func ImportCommand

func ImportCommand() commands.Command

ImportCommand creates the "storage import" command

func ListCommand

func ListCommand() commands.Command

ListCommand creates the "storage list" command

func ModifyCommand

func ModifyCommand() commands.Command

ModifyCommand creates the "storage modify" command

func SearchSingleStorage

func SearchSingleStorage(uuidOrTitle string, exec commands.Executor) (*upcloud.Storage, error)

SearchSingleStorage returns exactly one storage where title or uuid matches uuidOrTitle TODO: remove the cross-command dependencies

func ShowCommand

func ShowCommand() commands.Command

ShowCommand creates the "storage show" command

func TemplatizeCommand

func TemplatizeCommand() commands.Command

TemplatizeCommand creates the "storage templatise" command TODO: figure out consistent naming, one way or the other.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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