seed

package
v0.35.2 Latest Latest
Warning

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

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

Documentation

Overview

Package seed provisions the deterministic test fixture: two accounts (alpha, beta) and three plaintext API keys (key-alpha, key-alpha2, key-beta). Plaintext keys + org IDs are written to <dir>/{key,org}-*.txt for the test runner to consume by file.

Seed is idempotent: re-running on an already-seeded DB no-ops (orgs found by name, keys regenerated only if the org has none).

Index

Constants

This section is empty.

Variables

View Source
var ErrAlreadySeeded = errors.New("already seeded")

Sentinel for callers that want to detect "already done" — currently unused but useful when the seeder grows.

Functions

func Run

func Run(ctx context.Context, pool *db.Pool, dir string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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