Documentation
¶
Overview ¶
Package cmdadmin is the admin's commands of callback-server: they run on the base, on the server's machine.
Index ¶
Constants ¶
const DefaultUser = "admin"
DefaultUser is the name of the account EnsurePassword creates without CALLBACK_USER.
Variables ¶
This section is empty.
Functions ¶
func Backup ¶
Backup copies the base to file while the server runs: VACUUM INTO writes a clean copy in one read transaction. The image has no sqlite3 to do it. A Postgres base has pg_dump.
func EnsurePassword ¶
EnsurePassword creates the account of a base that has none, named CALLBACK_USER (DefaultUser when unset) with the password CALLBACK_PASSWORD: a server put up from a compose file is usable at once. In the multi mode, without CALLBACK_PASSWORD, the base waits for its first sign-up instead. On a base of one account, CALLBACK_USER renames it; otherwise it does nothing.
Types ¶
This section is empty.