volume

package
v0.1.40 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, name string, size int) (types.Volume, error)

Create creates a new volume, size in GB

func Delete

func Delete(ctx context.Context, name string) error

Delete deletes a volume

func List

func List(ctx context.Context) ([]types.Volume, error)

List lists all volumes for a given project or default project if none is specified

func RenderVolumesList

func RenderVolumesList(volumes []types.Volume, highlight *types.Volume)

func Update

func Update(ctx context.Context, name string, newSize int) error

Update updates an existing volume

Types

This section is empty.

Jump to

Keyboard shortcuts

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