app

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	E *engine.Engine
	// contains filtered or unexported fields
}

func New

func New(logger *log.Logger) App

func NewWithFS

func NewWithFS(logger *log.Logger, fs billy.Filesystem, isMem bool) App

func (App) ExportFile

func (a App) ExportFile(
	pre Preview,
	tx *gorm.DB,
	dirPerm os.FileMode,
	filePerm os.FileMode,
) error
func (a App) ExportLink(
	pre Preview,
	tx *gorm.DB,
	dirPerm os.FileMode,
	filePerm os.FileMode,
) error

func (App) ImportFile

func (a App) ImportFile(
	pre Preview,
	dirPerm os.FileMode,
	filePerm os.FileMode,
) error
func (a App) ImportLink(
	pre Preview,
	tx *gorm.DB,
	dirPerm os.FileMode,
	filePerm os.FileMode,
) error

func (App) PreviewExportFile

func (a App) PreviewExportFile(
	dot gp.GardenPath,
	dtt gp.GardenPath,
) (*Preview, error)
func (a App) PreviewExportLink(
	dot gp.GardenPath,
	dtt gp.GardenPath,
) (*Preview, error)

func (App) PreviewImportFile

func (a App) PreviewImportFile(
	dot gp.GardenPath,
	dtt gp.GardenPath,
) (*Preview, error)
func (a App) PreviewImportLink(
	dot gp.GardenPath,
	dtt gp.GardenPath,
) (*Preview, error)

Dot should be link and dtt should be file.

func (a App) PreviewUnlink(
	dot gp.GardenPath,
	dtt gp.GardenPath,
) (*Preview, error)
func (a App) Unlink(
	pre Preview,
	tx *gorm.DB,
	dirPerm os.FileMode,
	filePerm os.FileMode,
) error

func (App) WalkExportFile

func (a App) WalkExportFile(
	group string,
	base gp.GardenPath,
	onPreview func(Preview) error,
) (err error)
func (a App) WalkExportLink(
	group string,
	base gp.GardenPath,
	onPreview func(Preview) error,
) (err error)

func (App) WalkImportFile

func (a App) WalkImportFile(
	group string,
	base gp.GardenPath,
	onPreview func(Preview) error,
) (err error)
func (a App) WalkImportLink(
	group string,
	base gp.GardenPath,
	onPreview func(Preview) error,
) (err error)
func (a App) WalkUnlink(
	group string,
	base gp.GardenPath,
	onPreview func(Preview) error,
) (err error)

type FileOp

type FileOp int
const (
	FileOpNone FileOp = iota
	FileOpSkip
	FileOpCreate
	FileOpOverwrite
)

type Preview

type Preview struct {
	Dot   *filesystem.PathStat
	DotOp FileOp
	Dtt   *filesystem.PathStat
	DttOp FileOp
}

Jump to

Keyboard shortcuts

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