template4datatug

package
v0.62.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 15 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Code generated by generate_cloud_demo_template.py; DO NOT EDIT.

Package template4datatug holds a reviewed, immutable DataTug demo template. The provider adapter supplies the selected repository and branch; this package only returns bounded regular-file bytes for one project folder.

Code generated by generate_shipping_component.py; DO NOT EDIT.

Code generated by generate_demo_template.py; DO NOT EDIT.

Index

Constants

View Source
const (
	CloudDemoProjectCommit = "28cd85774c2b6823ba4ebaec101666903739bf38"
	// CloudDemoProjectTree is the Git tree of the pinned project folder.
	CloudDemoProjectTree = "d6817c06088cd7bf358585aabd5619f780084a99"
	// CloudDemoProjectFileCount is the exact number of regular files in this pinned template.
	CloudDemoProjectFileCount = 810
)
View Source
const (
	DemoProjectID     = "demo-project-1"
	DemoProjectSource = "datatug/datatug-demo-project"
)
View Source
const (
	DemoProjectCommit = "9277f638803d6b1fcf4b1380bd5b727747605288"
	// DemoProjectFileCount is the exact number of regular files in this pinned template.
	DemoProjectFileCount = 750
)
View Source
const ShippingComponentCommit = "f97d71ea1b16e4494f4b57e42c5dbc43234930b9"
View Source
const ShippingComponentDigest = "be0e32a305f233a14568d815b23fe8bc735ab270a0854cc1f7d05a8251bdc248"
View Source
const ShippingComponentID = "shipping-investigation"
View Source
const ShippingComponentVersion = 1

Variables

View Source
var (
	ErrInvalidTemplate = errors.New("invalid DataTug demo template")
	ErrInvalidFolder   = errors.New("invalid project folder")
)

Functions

func CloneDemoProject

func CloneDemoProject(folder, projectID, title string, created time.Time) (map[string][]byte, error)

CloneDemoProject assigns destination identity and saved-query creation metadata. The manifest's other JSON members and all other template files survive.

func CloudDemoProjectFiles added in v0.61.1

func CloudDemoProjectFiles(folder string) (map[string][]byte, error)

CloudDemoProjectFiles returns the separately pinned canonical source used to qualify demo-to-cloud copying. The historical GitHub setup template retains DemoProjectCommit and its existing proof size contract.

func DemoProjectFiles

func DemoProjectFiles(folder string) (map[string][]byte, error)

DemoProjectFiles verifies the embedded archive against its independently recorded manifest, then returns a clone beneath folder. Every non-manifest file keeps its source bytes. Callers may replace datatug-project.json with a new identity/title/access/created object before a single Git commit.

func ShippingComponentFiles added in v0.59.1

func ShippingComponentFiles() (map[string][]byte, error)

ShippingComponentFiles returns fresh, hash-verified definition bytes. It never changes DemoProjectCommit or admits an execution source.

func StampClonedQueryCreation added in v0.59.1

func StampClonedQueryCreation(files map[string][]byte, at time.Time) error

StampClonedQueryCreation assigns creation metadata to the new destination's saved queries without narrowing or discarding rich source metadata.

func ValidateFolder

func ValidateFolder(folder string) error

ValidateFolder rejects path traversal and ambiguous external-key delimiters. Nested folders are supported only as clean, bounded relative paths.

Types

This section is empty.

Jump to

Keyboard shortcuts

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