prefixer

package
v0.0.0-...-a6c2dd6 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: AGPL-3.0 Imports: 0 Imported by: 31

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