dtprojcreator

package
v0.146.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2026 License: Apache-2.0 Imports: 12 Imported by: 2 modules, 1 package

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

Index

Constants

View Source
const ProjectReadmeContent = `# DataTug Project

This directory contains DataTug project configuration.`

Variables

This section is empty.

Functions

func CreateProjectFiles

func CreateProjectFiles(
	ctx context.Context,
	p *datatug.Project,
	projPath string,
	fs Storage,
	reportStatus datatug.StatusReporter,
) error

func IsCancelled

func IsCancelled(ctx context.Context) bool

IsCancelled is a helper to check for context cancellation

Types

type Storage

type Storage interface {
	FileExists(ctx context.Context, filePath string) (bool, error)
	OpenFile(ctx context.Context, filePath string) (io.ReadCloser, error)
	WriteFile(ctx context.Context, filePath string, reader io.Reader) error
	Commit(ctx context.Context, message string) error
}

Jump to

Keyboard shortcuts

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