template4datatug

package
v0.15.2 Latest Latest
Warning

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

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

Documentation

Overview

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_demo_template.py; DO NOT EDIT.

Index

Constants

View Source
const (
	DemoProjectID     = "demo-project-1"
	DemoProjectSource = "datatug/datatug-demo-project"
)
View Source
const (
	DemoProjectCommit = "d32475de887f65fc18276fae2c8c7a6af5b3fcf6"
	// DemoProjectFileCount is the exact number of regular files in this pinned template.
	DemoProjectFileCount = 637
)

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 rewrites only the source project's identity fields. The manifest's other JSON members and all other template files survive.

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 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