assets

package
v3.0.9+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: AGPL-3.0 Imports: 7 Imported by: 16

Documentation

Overview

Package assets is based on Packr to embed static data inside the binary.

It embeds the small pure-js frontend loaded at install time and the pure-JS frontend served to the end-users (packages separately, not committed and added a build time).

Index

Constants

This section is empty.

Variables

View Source
var (
	// PydioInstallBox holds the root of the pydio install static files
	PydioInstallBox = packr.NewBox("./src")
)

Functions

func GetAssets

func GetAssets(path string) (string, error)

GetAssets returns the location of the assets if they physically exist

func RestoreAssets

func RestoreAssets(dir string, box packr.Box, pg chan float64, excludes ...string) (int, int64, error)

RestoreAssets copies the files from the binary to a hard location on the disk It returns an error, or the total number of files and the total size of all files written

Types

This section is empty.

Jump to

Keyboard shortcuts

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