cmdadmin

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package cmdadmin is the admin's commands of callback-server: they run on the base, on the server's machine.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Backup

func Backup(cobra *cobra.Command, db bun.IDB, file string) error

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.

func EnsurePassword

func EnsurePassword(ctx context.Context, db bun.IDB) error

EnsurePassword sets the password from CALLBACK_PASSWORD on a base that has none yet: a server put up from a compose file is usable at once. It does nothing once a password is set.

func ResetPassword

func ResetPassword(cobra *cobra.Command, db bun.IDB) error

ResetPassword changes the password: from CALLBACK_PASSWORD, or asked on the terminal.

Types

This section is empty.

Jump to

Keyboard shortcuts

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