fixtures

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package fixtures builds public protocol inputs. It never mutates daemon storage.

Index

Constants

View Source
const (
	Authority  = "authority_test"
	Owner      = "principal_O"
	PrincipalA = "principal_A"
	PrincipalB = "principal_B"
	Acceptance = "principal_X"
	Reader     = "principal_R"
	AgentA     = "agent_A"
	AgentB     = "agent_B"
)

Variables

View Source
var StartTime = time.Date(2026, 10, 30, 0, 0, 0, 0, time.UTC)

Functions

func Bootstrap

func Bootstrap() (config.Config, map[string]string)

func Contract

func Contract(eligible []string, recovery string, rework bool) map[string]any

func Create

func Create(eligible []string, recovery string, rework bool) map[string]any

func Grant

func Grant(principal string, agent any, actions []string, until time.Time) map[string]any

func Grants

func Grants(eligible []string) []any

func ImmutableRef

func ImmutableRef(uri, mediaType string, content []byte) map[string]any

func Key

func Key() string

Key returns a fresh UUIDv4 without introducing a production UUID dependency.

func Timestamp

func Timestamp(t time.Time) string

func Token

func Token() string

Token generates disposable fixture credentials rather than committing secrets.

Types

This section is empty.

Jump to

Keyboard shortcuts

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