Documentation ¶
Index ¶
- Variables
- func GetDefaultPermissions() (dirPerms, filePerms int)
- func TrustSSL(consoleOutput *console.Console) error
- func VerifySSLTrust() error
- type File
- type KanaPluginVars
- type LocalSettings
- type Settings
- func (s *Settings) EnsureKanaPlugin(appDir string) error
- func (s *Settings) EnsureSSLCerts(consoleOutput *console.Console) error
- func (s *Settings) EnsureStaticConfigFiles() error
- func (s *Settings) GetGlobalSetting(args []string) (string, error)
- func (s *Settings) GetHtaccess() string
- func (s *Settings) ListSettings(consoleOutput *console.Console)
- func (s *Settings) LoadGlobalSettings() error
- func (s *Settings) LoadLocalSettings(cmd *cobra.Command) (bool, error)
- func (s *Settings) ProcessNameFlag(cmd *cobra.Command) (bool, error)
- func (s *Settings) ProcessStartFlags(cmd *cobra.Command, flags StartFlags)
- func (s *Settings) SetGlobalSetting(args []string) error
- func (s *Settings) WriteLocalSettings(localSettings *LocalSettings) error
- type StartFlags
Constants ¶
This section is empty.
Variables ¶
var DynamicToml string
var KanaWordPressPlugin string
var SubDirectoryMultisiteHtaccess string
var SubDomainMultisiteHtaccess string
var TraefikToml string
Functions ¶
func GetDefaultPermissions ¶
func GetDefaultPermissions() (dirPerms, filePerms int)
GetDefaultPermissions returns the default directory permissions and the default file permissions.
func VerifySSLTrust ¶
func VerifySSLTrust() error
VerifySSLTrust verifies the SSL certificate has been added to that Apple Keychain.
Types ¶
type KanaPluginVars ¶
type KanaPluginVars struct {
SiteName, Version string
}
type LocalSettings ¶
type Settings ¶
type Settings struct {
Local, Xdebug, Mailpit, SSL, WPDebug, Activate bool
RemoveDefaultPlugins bool
ImageUpdateDays int
AdminEmail, AdminPassword, AdminUsername string
AppDirectory, SiteDirectory, WorkingDirectory string
AppDomain, SiteDomain string
Name string
PHP string
MariaDB string
RootCert, RootKey, SiteCert, SiteKey string
URL, Protocol string
Type string
DatabaseClient string
Multisite string
Plugins []string
// contains filtered or unexported fields
}
Settings Individual Settings for use throughout the app lifecycle.
func NewSettings ¶
func (*Settings) EnsureKanaPlugin ¶
EnsureKanaPlugin ensures the Kana plugin file is in place and ready to go.
func (*Settings) EnsureSSLCerts ¶
EnsureSSLCerts Ensures SSL certificates have been generated and are where they need to be.
func (*Settings) EnsureStaticConfigFiles ¶
EnsureStaticConfigFiles Ensures the application's static config files have been generated and are where they need to be.
func (*Settings) GetGlobalSetting ¶
GetGlobalSetting Retrieves a global setting for the "config" command.
func (*Settings) GetHtaccess ¶
func (*Settings) ListSettings ¶
ListSettings Lists all settings for the config command.
func (*Settings) LoadGlobalSettings ¶
LoadGlobalSettings gets config information that transcends sites such as app and default settings.
func (*Settings) LoadLocalSettings ¶
LoadLocalSettings Loads the config for the current site being called.
func (*Settings) ProcessNameFlag ¶
ProcessNameFlag Processes the name flag on the site resetting all appropriate local variables.
func (*Settings) ProcessStartFlags ¶
func (s *Settings) ProcessStartFlags(cmd *cobra.Command, flags StartFlags)
ProcessStartFlags Process the start flags and save them to the settings object.
func (*Settings) SetGlobalSetting ¶
SetGlobalSetting Sets a global setting for the "config" command.
func (*Settings) WriteLocalSettings ¶
func (s *Settings) WriteLocalSettings(localSettings *LocalSettings) error
WriteLocalSettings Writes all appropriate local settings to the local config file.