appmanager

package
v0.5.0-beta.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2020 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

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

func (m *Manager) ActivateApp(app string, domain string) error

ActivateApp points a site to an app, by creating the symbolic link

func (*Manager) FetchBundle

func (m *Manager) FetchBundle(bundle string) error

FetchBundle downloads the application's bundle

func (*Manager) Init

func (m *Manager) Init() error

Init the object

func (*Manager) InitAppRoot

func (m *Manager) InitAppRoot() error

InitAppRoot creates a new, empty app root folder

func (*Manager) LoadSigningKey

func (m *Manager) LoadSigningKey() error

LoadSigningKey loads the code signing public key

func (*Manager) StageApp

func (m *Manager) StageApp(bundle string) error

StageApp stages an app after unpacking the bundle

func (*Manager) SyncApps

func (m *Manager) SyncApps(sites []state.SiteState) error

SyncApps ensures that we have the correct apps

func (*Manager) SyncMiscFiles

func (m *Manager) SyncMiscFiles() (bool, bool, error)

SyncMiscFiles synchronizes the misc folder This contains the DH parameters and the node manager's TLS

func (*Manager) SyncSiteFolders

func (m *Manager) SyncSiteFolders(sites []state.SiteState) (bool, error)

SyncSiteFolders ensures that we have the correct folders in the site directory, and TLS certificates are present

func (*Manager) SyncState

func (m *Manager) SyncState(sites []state.SiteState) (updated bool, restartServer bool, err error)

SyncState ensures that the state of the filesystem matches the desired one

func (*Manager) WriteDefaultApp

func (m *Manager) WriteDefaultApp() error

WriteDefaultApp creates the files for the default app on disk

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL