Documentation ¶
Index ¶
- Constants
- func Edit(ctx *cli.Context, prev *structureSpec.Database) error
- func GetEncryption(ctx *cli.Context, prev ...bool) bool
- func GetOrAskForMinMax(c *cli.Context, prevMin, prevMax int, new bool) (intMin int, intMax int, min string, max string)
- func GetOrRequireAMatch(ctx *cli.Context, prev ...string) string
- func GetOrRequireAnEncryptionKey(c *cli.Context, prev ...string) string
- func GetOrSelect(ctx *cli.Context) (*structureSpec.Database, error)
- func New(ctx *cli.Context) (*structureSpec.Database, error)
Constants ¶
View Source
const ( NamePrompt = "Database Name:" SelectPrompt = "Select a Database:" DatabaseMatch = "Match:" EncryptionPrompt = "Encrypt Database:" EncryptionKeyPrompt = "Encryption Key:" MinPrompt = "Minimum Replicas:" MaxPrompt = "Maximum Replicas:" CreateThis = "Create this database?" DeleteThis = "Delete this database?" EditThis = "Edit this database?" NoneFound = "no databases found" NotFound = "database `%s` not found" ParsingMinFailed = "parsing min(%s) as int failed with: %s" ParsingMaxFailed = "parsing max(%s) as int failed with: %s" MinCannotBeGreaterThanMax = "min(%s) cannot be greater than max(%s)" )
Variables ¶
This section is empty.
Functions ¶
func Edit ¶
func Edit(ctx *cli.Context, prev *structureSpec.Database) error
func GetEncryption ¶
func GetOrAskForMinMax ¶
func GetOrRequireAMatch ¶
func GetOrSelect ¶
func GetOrSelect(ctx *cli.Context) (*structureSpec.Database, error)
GetOrSelect will try to get the database from a name flag if it is not set in the flag it will offer a selection menu
func New ¶
func New(ctx *cli.Context) (*structureSpec.Database, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.