Documentation ¶
Index ¶
- type Manager
- func (m *Manager) ActivateApp(app string, domain string) error
- func (m *Manager) FetchBundle(bundle string) error
- func (m *Manager) Init() error
- func (m *Manager) InitAppRoot() error
- func (m *Manager) LoadSigningKey() error
- func (m *Manager) StageApp(bundle string) error
- func (m *Manager) SyncApps(sites []state.SiteState) error
- func (m *Manager) SyncMiscFiles() (bool, bool, error)
- func (m *Manager) SyncSiteFolders(sites []state.SiteState) (bool, error)
- func (m *Manager) SyncState(sites []state.SiteState) (updated bool, restartServer bool, err error)
- func (m *Manager) WriteDefaultApp() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager contains helper functions to manage apps and sites
var Instance *Manager
Instance is a singleton for Manager
func (*Manager) ActivateApp ¶
ActivateApp points a site to an app, by creating the symbolic link
func (*Manager) FetchBundle ¶
FetchBundle downloads the application's bundle
func (*Manager) InitAppRoot ¶
InitAppRoot creates a new, empty app root folder
func (*Manager) LoadSigningKey ¶
LoadSigningKey loads the code signing public key
func (*Manager) SyncMiscFiles ¶
SyncMiscFiles synchronizes the misc folder This contains the DH parameters and the node manager's TLS
func (*Manager) SyncSiteFolders ¶
SyncSiteFolders ensures that we have the correct folders in the site directory, and TLS certificates are present
func (*Manager) SyncState ¶
SyncState ensures that the state of the filesystem matches the desired one
func (*Manager) WriteDefaultApp ¶
WriteDefaultApp creates the files for the default app on disk