Documentation ¶
Index ¶
- Constants
- func Edit(ctx *cli.Context, prev *structureSpec.Storage) error
- func GetOrRequireAMatch(ctx *cli.Context, prev ...string) string
- func GetOrSelect(ctx *cli.Context) (*structureSpec.Storage, error)
- func GetPublic(ctx *cli.Context, prev ...bool) bool
- func GetVersioning(ctx *cli.Context, prev ...bool) bool
- func New(ctx *cli.Context) (*structureSpec.Storage, error)
- func SelectABucket(ctx *cli.Context, prev ...string) string
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 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 GetVersioning ¶
func New ¶
func New(ctx *cli.Context) (*structureSpec.Storage, error)
func SelectABucket ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.