admin

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package admin serves the standalone administration surface: server-rendered HTML over embedded assets, with no client vocabulary, workflow or approval flow in it. It reads the identity registry and the dataset's own description. Record values never reach these pages, and neither do secrets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler renders the administration pages. access is an internal handle the composition provisions for reading the dataset's description and schema: it is not a credential, because no token maps to it and none can be issued for it. It carries read only.

func New

func New(authority *identity.Authority, records store.Store, access store.Access, engine string) (*Handler, error)

func (*Handler) APIRoutes

func (h *Handler) APIRoutes(mux *http.ServeMux)

APIRoutes registers the administration API.

func (*Handler) ReaderRoutes

func (h *Handler) ReaderRoutes(mux *http.ServeMux)

ReaderRoutes is the deployment's owner surface, using an ordinary write approval rather than the separately consented administration API.

func (*Handler) Routes

func (h *Handler) Routes(mux *http.ServeMux)

func (*Handler) SetAcquisitions

func (h *Handler) SetAcquisitions(m *acquisition.Manager)

func (*Handler) SetBackup

func (h *Handler) SetBackup(backup func(context.Context) (string, error))

SetBackup installs how a server administrator takes a backup on demand. Backups belong to the composition, which knows where they are kept.

Jump to

Keyboard shortcuts

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