schema

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package schema is keyforge's Ent schema: the registry's records.

States are stored as small integers whose values are those of the Go constants in package registry and package keyforge, and the partial unique indexes below refer to them by value. Changing a constant is a stored-format change.

Optional times are NULL, never the zero time, so that "not yet" is distinguishable from "the year 1".

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataKey

type DataKey struct{ ent.Schema }

DataKey is a data-encryption key, held wrapped.

func (DataKey) Edges

func (DataKey) Edges() []ent.Edge

Edges of DataKey.

func (DataKey) Fields

func (DataKey) Fields() []ent.Field

Fields of DataKey.

func (DataKey) Indexes

func (DataKey) Indexes() []ent.Index

Indexes of DataKey.

type KEK

type KEK struct{ ent.Schema }

KEK is a key-encryption key.

func (KEK) Edges

func (KEK) Edges() []ent.Edge

Edges of KEK.

func (KEK) Fields

func (KEK) Fields() []ent.Field

Fields of KEK.

func (KEK) Indexes

func (KEK) Indexes() []ent.Index

Indexes of KEK.

type KEKVersion

type KEKVersion struct{ ent.Schema }

KEKVersion is one version of a KEK.

func (KEKVersion) Edges

func (KEKVersion) Edges() []ent.Edge

Edges of KEKVersion.

func (KEKVersion) Fields

func (KEKVersion) Fields() []ent.Field

Fields of KEKVersion.

func (KEKVersion) Indexes

func (KEKVersion) Indexes() []ent.Index

Indexes of KEKVersion.

type Sentinel

type Sentinel struct{ ent.Schema }

Sentinel is the sealed marker kept for a KEK version.

func (Sentinel) Edges

func (Sentinel) Edges() []ent.Edge

Edges of Sentinel.

func (Sentinel) Fields

func (Sentinel) Fields() []ent.Field

Fields of Sentinel.

func (Sentinel) Indexes

func (Sentinel) Indexes() []ent.Index

Indexes of Sentinel.

type Shred

type Shred struct{ ent.Schema }

Shred is the record of a subject's erasure.

func (Shred) Fields

func (Shred) Fields() []ent.Field

Fields of Shred.

func (Shred) Indexes

func (Shred) Indexes() []ent.Index

Indexes of Shred.

Jump to

Keyboard shortcuts

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