bootstrapmeta

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 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 bootstrapmeta holds shared constants and helpers for system DB first-run bootstrap. Orchestration lives in each ApitoSystemDB driver implementation.

Index

Constants

View Source
const (
	AdminEmail         = "admin@apito.io"
	DefaultAdminPass   = "#ApitoRocks#"
	AdminFirstName     = "Apito"
	AdminLastName      = "Admin"
	StarterProjectID   = "apito_website"
	StarterProjectName = "Apito Website"
	// OSSStarterSQLiteFile is the SQLite filename (under Config.DefaultDatabaseDir) for the bundled
	// starter project when SYSTEM_DB_ENGINE=coredb. Not read from PROJECT_DB_* env.
	OSSStarterSQLiteFile = "apito_starter.sqlite"
	// StarterMongoDatabaseName is the logical Mongo database for the OSS starter project when the
	// system database is MongoDB (uses SYSTEM_DB_* connection fields).
	StarterMongoDatabaseName = "apito_starter_apito_website"
	// StarterPostgresDatabaseName is the physical database for the OSS starter project when the
	// system database engine is PostgreSQL (uses SYSTEM_DB_* connection as admin; InitProjectBase creates the DB).
	StarterPostgresDatabaseName = "apito_starter_apito_website"
)

Variables

This section is empty.

Functions

func HashDefaultAdminPassword

func HashDefaultAdminPassword() ([]byte, error)

HashDefaultAdminPassword returns a bcrypt hash for the default bootstrap password.

func IsUserLookupMiss

func IsUserLookupMiss(err error) bool

IsUserLookupMiss reports whether err means the user document was not found.

func LogDefaultAdminCredentials

func LogDefaultAdminCredentials(email, plainPassword string)

LogDefaultAdminCredentials prints the bordered login banner (plaintext password).

Types

This section is empty.

Jump to

Keyboard shortcuts

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