storage

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: MIT Imports: 18 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 BackupCommand

func BackupCommand() commands.Command

BackupCommand creates the "storage backup" command

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 CreateBackupCommand

func CreateBackupCommand() commands.Command

CreateBackupCommand creates the "storage backup create" 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 RestoreBackupCommand

func RestoreBackupCommand() commands.Command

RestoreBackupCommand creates the "storage backup restore" command

func SearchSingleStorage

func SearchSingleStorage(uuidOrTitle string, service service.Storage) (*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.

Jump to

Keyboard shortcuts

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