assets

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: AGPL-3.0 Imports: 7 Imported by: 0

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 php+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/install")

	// PydioFrontBox holds the root of the pydio front static files
	PydioFrontBox = packr.NewBox("./src/pydio")
)

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) (error, int, int64)

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