devmaster

package
v1.801.463 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: Apache-2.0 Imports: 2 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 devmaster keys a test binary.

cek needs a master key before the first database opens, and it does not go looking for one — a process that could not resolve a key opens nothing rather than writing plaintext. A production process resolves it through credz.Boot, from KMS. A test process has no KMS, so it mints its own.

Importing this package for its side effect is how a test binary says that:

import _ "github.com/hanzoai/cloud/internal/devmaster"

It is stated once here rather than in a TestMain per package, because it is one fact about test binaries and not seventy independent decisions.

It does nothing outside a test binary. An import that reached production could otherwise key a real deployment with a master that dies with the process — every database written under it unreadable on the next boot, and nothing on fire until then.

Jump to

Keyboard shortcuts

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