Documentation ¶
Index ¶
- Variables
- func AddStartFlags(cmd *cobra.Command, settings *Settings)
- func EnsureKanaPlugin(siteDirectory, version, siteName string) error
- func EnsureSSLCerts(appDirectory string, useSSL bool, consoleOutput *console.Console) error
- func GetDefaultFilePermissions() (dirPerms, filePerms int)
- func GetHtaccess(multisite string) string
- func ListSettings(settings *Settings, consoleOutput *console.Console)
- func Load(kanaSettings *Settings, version string, cmd *cobra.Command) error
- func PrintSingleSetting(name string, kanaSettings *Settings, consoleOutput *console.Console)
- func TrustSSL(rootCert string, consoleOutput *console.Console) error
- func VerifySSLTrust() error
- type File
- type Koanf
- type PluginVersion
- type Setting
- type Settings
- func (s *Settings) Get(name string) string
- func (s *Settings) GetAll(settingsType string) map[string]interface{}
- func (s *Settings) GetBool(name string) bool
- func (s *Settings) GetDomain() string
- func (s *Settings) GetInt(name string) int64
- func (s *Settings) GetProtocol() string
- func (s *Settings) GetSlice(name string) []string
- func (s *Settings) GetURL() string
- func (s *Settings) Set(name string, value interface{}, setVars ...bool) error
- func (s *Settings) WriteLocalSettings(localSettings map[string]interface{}) error
- type StartFlag
Constants ¶
This section is empty.
Variables ¶
View Source
var DynamicToml string
View Source
var KanaWordPressPlugin string
View Source
var SubDirectoryMultisiteHtaccess string
View Source
var SubDomainMultisiteHtaccess string
View Source
var TraefikToml string
Functions ¶
func AddStartFlags ¶
func EnsureKanaPlugin ¶
EnsureKanaPlugin ensures the Kana plugin file is in place and ready to go.
func EnsureSSLCerts ¶
EnsureSSLCerts Ensures SSL certificates have been generated and are where they need to be.
func GetDefaultFilePermissions ¶
func GetDefaultFilePermissions() (dirPerms, filePerms int)
GetDefaultFilePermissions returns the default directory permissions and the default file permissions.
func GetHtaccess ¶
GetHtaccess Returns the correct .htaccess file for the multisite type.
func ListSettings ¶
ListSettings Lists all settings for the config command.
func PrintSingleSetting ¶
func VerifySSLTrust ¶
func VerifySSLTrust() error
VerifySSLTrust verifies the SSL certificate has been added to that Apple Keychain.
Types ¶
type PluginVersion ¶
PluginVersion represents the name and version of a plugin to allow for better templating.
type Setting ¶
type Setting struct {
// contains filtered or unexported fields
}
An individual setting and its associated data.
type Settings ¶
type Settings struct {
// contains filtered or unexported fields
}
A collection of all settings values used by Kana.
func (*Settings) GetProtocol ¶
func (*Settings) WriteLocalSettings ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.