storetest

package
v0.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunHost

func RunHost(t *testing.T, open func(t *testing.T) controld.HostStore)

RunHost is the contract of controld.HostStore: the persistence the self-hosted host owns beside the control repositories — identity (users and bearer tokens), the vault (secrets and credentials), and the four lookups the control ports deliberately have no method for.

Every case answers with the control sentinel set: a lookup that finds nothing is control.ErrNotFound, and a name already held is control.ErrConflict. There is one sentinel set in the codebase, and this is it.

A lookup case needs rows HostStore itself cannot create, so it asks the store for its repository accessors. Every store that has host lookups has them; one that does not is failed here rather than silently skipped.

Types

This section is empty.

Jump to

Keyboard shortcuts

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