prefixer

package
v0.0.0-...-c54dfb2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: AGPL-3.0 Imports: 0 Imported by: 3 modules, 31 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

Index

Constants

View Source
const GlobalCouchCluster = -1

GlobalCouchCluster is the index of the CouchDB cluster for the global and secrets databases.

View Source
const UnknownDomainName string = "<unknown>"

UnknownDomainName represents the human-readable string of an empty domain name of a prefixer struct

Variables

View Source
var GlobalPrefixer = NewPrefixer(GlobalCouchCluster, "", "global")

GlobalPrefixer returns a global prefixer with the wildcard '*' as prefix.

View Source
var SecretsPrefixer = NewPrefixer(GlobalCouchCluster, "", "secrets")

SecretsPrefixer is the the prefix used for db which hold a cozy stack secrets.

Functions

This section is empty.

Types

type Prefixer

type Prefixer interface {
	DBCluster() int
	DBPrefix() string
	DomainName() string
}

Prefixer interface describes a handle for a specific instance by its domain and a specific and unique prefix.

func NewPrefixer

func NewPrefixer(cluster int, domain, prefix string) Prefixer

NewPrefixer returns a prefixer with the specified domain and prefix values.

Jump to

Keyboard shortcuts

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