bootstrapmeta

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

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