domainPrompts

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 GetGeneratedFQDN(ctx *cli.Context, prev ...bool) bool

func GetGeneratedFQDNPrefix

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

func GetOrRequireACertificate

func GetOrRequireACertificate(c *cli.Context, prev ...string) string

func GetOrRequireAKey

func GetOrRequireAKey(c *cli.Context, prev ...string) string

func GetOrRequireAnFQDN

func GetOrRequireAnFQDN(c *cli.Context, prev ...string) string

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.

Jump to

Keyboard shortcuts

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