hugofs

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package hugofs provides the file systems used by Hugo.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Destination

func Destination() afero.Fs

Destination returns Hugo's destionation file system.

func InitDefaultFs

func InitDefaultFs()

InitDefaultFs initializes with the OS file system as source and destination file systems.

func InitFs

func InitFs(fs afero.Fs)

InitFs initializes with the given file system as source and destination file systems.

func InitMemFs

func InitMemFs()

InitMemFs initializes with a MemMapFs as source and destination file systems. Useful for testing.

func Os

func Os() afero.Fs

Os returns an OS file system.

func SetDestination

func SetDestination(fs afero.Fs)

SetDestination sets Hugo's destionation file system

func SetSource

func SetSource(fs afero.Fs)

SetSource sets Hugo's source file system and re-initializes dependent file systems.

func Source

func Source() afero.Fs

Source returns Hugo's source file system.

func WorkingDir

func WorkingDir() *afero.BasePathFs

WorkingDir returns a read-only file system restricted to the project working dir.

Types

This section is empty.

Jump to

Keyboard shortcuts

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