Documentation ¶
Index ¶
- Constants
- func Edit(ctx *cli.Context, prev *structureSpec.Domain) error
- func GetGeneratedFQDN(ctx *cli.Context, prev ...bool) bool
- func GetGeneratedFQDNPrefix(ctx *cli.Context, prev ...string) string
- func GetOrRequireACertificate(c *cli.Context, prev ...string) string
- func GetOrRequireAKey(c *cli.Context, prev ...string) string
- func GetOrRequireAnFQDN(c *cli.Context, prev ...string) string
- func GetOrSelect(ctx *cli.Context) (*structureSpec.Domain, error)
- func New(ctx *cli.Context) (*structureSpec.Domain, error)
Constants ¶
View Source
const ( NamePrompt = "Domain Name:" SelectPrompt = "Select a Domain:" CertificateTypePrompt = "Certificate type:" CertificateFilePrompt = "Certificate file:" KeyFilePrompt = "Key file:" FQDNPrompt = "FQDN:" CreateThis = "Create this domain?" DeleteThis = "Delete this domain?" EditThis = "Edit this domain?" NoneFound = "no domains found" NotFound = "domain `%s` not found" )
Variables ¶
This section is empty.
Functions ¶
func Edit ¶
func Edit(ctx *cli.Context, prev *structureSpec.Domain) error
func GetGeneratedFQDN ¶
func GetGeneratedFQDNPrefix ¶
func GetOrRequireAKey ¶
func GetOrRequireAnFQDN ¶
func GetOrSelect ¶
func GetOrSelect(ctx *cli.Context) (*structureSpec.Domain, error)
GetOrSelect will try to get the domain 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.Domain, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.