Documentation ¶
Index ¶
- Constants
- func Command(name string, arg ...string) *exec.Cmd
- func Load(site *Site, kanaSettings *settings.Settings)
- type PluginInfo
- type Site
- func (s *Site) EnsureDocker(consoleOutput *console.Console) error
- func (s *Site) ExportDatabase(args []string, consoleOutput *console.Console) (string, error)
- func (s *Site) ExportSiteConfig(consoleOutput *console.Console) error
- func (s *Site) GetSiteLink() (string, error)
- func (s *Site) GetSiteList(checkRunningStatus bool) ([]SiteInfo, error)
- func (s *Site) ImportDatabase(file string, preserve bool, replaceDomain string, ...) error
- func (s *Site) IsSiteRunning() bool
- func (s *Site) IsXdebugRunning(consoleOutput *console.Console) bool
- func (s *Site) OpenSite(openDatabaseFlag, openMailpitFlag, openSiteFlag, openAdminFlag bool, ...) error
- func (s *Site) StartSite(consoleOutput *console.Console) error
- func (s *Site) StartXdebug(consoleOutput *console.Console) error
- func (s *Site) StopSite() error
- func (s *Site) StopXdebug(consoleOutput *console.Console) error
- func (s *Site) WPCli(command []string, interactive bool, consoleOutput *console.Console) (statusCode int64, output string, err error)
- func (s *Site) WordPress(command string, restart, root bool) (docker.ExecResult, error)
- type SiteInfo
Constants ¶
View Source
const DefaultType = "site"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PluginInfo ¶
type Site ¶
type Site struct { Named bool // contains filtered or unexported fields }
func (*Site) EnsureDocker ¶
EnsureDocker Ensures Docker is available for commands that need it.
func (*Site) ExportDatabase ¶
func (*Site) ExportSiteConfig ¶
ExportSiteSConfig Saves the current running config to a file.
func (*Site) GetSiteLink ¶
GetSiteLink returns the link to the site.
func (*Site) GetSiteList ¶
GetSiteList Returns a list of all Kana sites, their location and whether they're running.
func (*Site) ImportDatabase ¶
func (*Site) IsSiteRunning ¶
IsSiteRunning Returns true if the site is up and running in Docker or false. Does not verify other errors.
func (*Site) IsXdebugRunning ¶
IsXdebugRunning returns true if Xdebug is already running or false if not.
func (*Site) OpenSite ¶
func (s *Site) OpenSite(openDatabaseFlag, openMailpitFlag, openSiteFlag, openAdminFlag bool, consoleOutput *console.Console) error
OpenSite Opens the current site in a browser if it is running.
func (*Site) StartXdebug ¶
StartXdebug installs and starts xdebug in the site's PHP container.
func (*Site) StopXdebug ¶
StopXdebug stops Xdebug by restarting the WordPress containers.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.