Documentation
¶
Index ¶
Constants ¶
View Source
const ( FlagNoCompose = "no-compose" FlagDyoVersion = "dyo-version" FlagDeployTestMail = "deploy-test-mail" FlagDeployTraefik = "deploy-traefik" FlagAddTraefikLabels = "add-traefik-labels" FlagUseHTTPS = "use-https" FlagAcmeEmail = "acme-email" FlagDomain = "domain" FlagSMTPUri = "smtp-uri" FlagFromEmail = "from-email" FlagFromName = "from-name" FlagCruxEncryptionKey = "encryption-secret-key" FlagKratosPostgresPassword = "kratos-postgres-password" // #nosec 101 // these are not passwords FlagCruxPostgresPassword = "crux-postgres-password" // #nosec 101 // these are not passwords FlagRootPostgresPassword = "root-postgres-password" // #nosec 101 // these are not passwords FlagCruxSecret = "crux-secret" FlagKratosSecret = "kratos-secret" FlagComposeDir = "compose-dir" )
Variables ¶
This section is empty.
Functions ¶
func GenerateComposeConfig ¶
func PromptBoolOrExit ¶
func PromptText ¶
Types ¶
type ComposeItem ¶
type ComposeItems ¶
type ComposeItems []ComposeItem
func GetItems ¶
func GetItems(composeFolder string, deployTestMail, deployTraefik, addTraefikLabels, tls bool) ComposeItems
func (ComposeItems) GetFileNames ¶
func (c ComposeItems) GetFileNames() []string
func (ComposeItems) WriteToDisk ¶
func (c ComposeItems) WriteToDisk() error
type Config ¶
type Config struct {
AcmeEmail string
ComposeFile string
CruxSecret string
CruxPostgresPassword string
CruxAgentHost string
EncryptionSecretKey string
ExternalPort string
ExternalProto string
Domain string
DyoVersion string
FromEmail string
FromName string
KratosPostgresPassword string
KratosSecret string
RootPostgresPassword string
NodeEnv string
SmtpURI string //nolint
AddTraefikLabels bool
DeployTestMail bool
DeployTraefik bool
NoCompose bool
UseHTTPS bool
}
func (*Config) PromptUserInput ¶
func (cfg *Config) PromptUserInput()
Click to show internal directories.
Click to hide internal directories.