userspace

package
v5.0.0-...-2679821 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: AGPL-3.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompressTask

func CompressTask(ctx context.Context, router nodes.Client, selectedPaths []string, targetNodePath string, format string, languages ...string) (*jobs.Job, error)

func CopyMoveTask

func CopyMoveTask(ctx context.Context, router nodes.Client, selectedPaths []string, targetNodePath string, targetIsParent bool, move bool, languages ...string) (*jobs.Job, error)

func DeduplicateNodes

func DeduplicateNodes(nn []*tree.Node) (out []*tree.Node)

DeduplicateNodes takes a slice of nodes and make sure there are no duplicates based on their path

func DeleteNodesTask

func DeleteNodesTask(ctx context.Context, router nodes.Client, selectedPaths []string, permanently bool, languages ...string) ([]*jobs.Job, error)

func ExtractTask

func ExtractTask(ctx context.Context, router nodes.Client, selectedNode string, targetPath string, format string, languages ...string) (*jobs.Job, error)

func FindRecycleForSource

func FindRecycleForSource(ctx context.Context, source *tree.Node, ancestors []*tree.Node) (recycle *tree.Node, err error)

func MkDirsOrFiles

func MkDirsOrFiles(ctx context.Context, router nodes.Client, nodes []*tree.Node, recursive bool, tplUuid string) (nn []*tree.Node, er error)

MkDirsOrFiles creates folders (recursively) or empty files, or files hydrated by existing templates

func P8migrationTask

func P8migrationTask(ctx context.Context, jsonParams string) (*jobs.Job, error)

func PersistSelection

func PersistSelection(ctx context.Context, nodes []*tree.Node) (string, error)

PersistSelection transforms a list of nodes to a selection with a UUID

func RestoreTask

func RestoreTask(ctx context.Context, router nodes.Client, paths []string, languages ...string) ([]*jobs.Job, []*tree.Node, error)

func SourceInRecycle

func SourceInRecycle(ctx context.Context, source *tree.Node, ancestors []*tree.Node) bool

func SyncDatasourceTask

func SyncDatasourceTask(ctx context.Context, dsName string, languages ...string) (*jobs.Job, error)

func WgetTask

func WgetTask(ctx context.Context, router nodes.Client, parentPath string, urls []string, languages ...string) ([]*jobs.Job, error)

WgetTask launch one or many background task for downloading URL to the storage

Types

type DeleteJobs

type DeleteJobs struct {
	RecyclesNodes map[string]*tree.Node
	RecycleMoves  map[string]*RecycleMoves
	Deletes       []string
}

func NewDeleteJobs

func NewDeleteJobs() *DeleteJobs

type RecycleMoves

type RecycleMoves struct {
	Sources   []string
	Workspace *idm.Workspace
}

Jump to

Keyboard shortcuts

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