template

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package template declares the built-in `template` collection: the marker of an object that is a template of its type.

A template is an ordinary object of the type it is for — it holds that type's values and datasets like any member — filed under this collection. CreateObjectOpts.From copies an object; when the source is filed here the marker is not carried over and the new row is stamped `any.template` {id, version} (internal/types/any). Hidden, and registered by the SDK itself ahead of the consumer's collections (spaceobjects.NewStoreWithConfig), so a consumer registration under this id is refused at Open.

Index

Constants

View Source
const (
	// CollectionId is the collection's literal id and xKey.
	CollectionId = "template"
	Name         = "Template"
	Description  = "Marks a template: an object of its type whose values and datasets are what a copy starts from"

	// PropTitle is the label a template picker shows — not the
	// pre-filled name, which may be empty. PropVersion is the
	// template's version: the one a copy records under
	// any.template.version, bumped by the consumer when the template
	// changes.
	PropTitle   = "title"
	PropVersion = "version"
)

Variables

This section is empty.

Functions

func Collection

func Collection() handler.Collection

Collection returns the registered declaration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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