storagePrompts

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NamePrompt       = "Storage Name:"
	SelectPrompt     = "Select a Storage:"
	StorageMatch     = "Match:"
	PublicPrompt     = "Public:"
	VersioningPrompt = "Do Versioning:"
	BucketPrompt     = "Bucket:"

	CreateThis = "Create this storage?"
	DeleteThis = "Delete this storage?"
	EditThis   = "Edit this storage?"
	NoneFound  = "no storages found"
	NotFound   = "storage `%s` not found"
)

Variables

This section is empty.

Functions

func Edit

func Edit(ctx *cli.Context, prev *structureSpec.Storage) error

func GetOrRequireAMatch

func GetOrRequireAMatch(ctx *cli.Context, prev ...string) string

func GetOrSelect

func GetOrSelect(ctx *cli.Context) (*structureSpec.Storage, error)

GetOrSelect will try to get the storage from a name flag if it is not set in the flag it will offer a selection menu

func GetPublic

func GetPublic(ctx *cli.Context, prev ...bool) bool

func GetVersioning

func GetVersioning(ctx *cli.Context, prev ...bool) bool

func New

func New(ctx *cli.Context) (*structureSpec.Storage, error)

func SelectABucket

func SelectABucket(ctx *cli.Context, prev ...string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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