credentials

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultUsername = "dbuser"
	DefaultPassword = "$uper$ecret"
)

Variables

This section is empty.

Functions

func FormatConnectionString

func FormatConnectionString(dbType, username, password, host, port, dbName string) string

FormatConnectionString formats a connection string based on database type

func FormatEnvVar

func FormatEnvVar(connectionString string) string

FormatEnvVar formats the connection string as an environment variable

func GeneratePassword

func GeneratePassword(length int) (string, error)

GeneratePassword generates a random alphanumeric password of the specified length

Types

This section is empty.

Jump to

Keyboard shortcuts

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