entity

package
v0.0.0-...-85ec5f7 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fs

type Fs struct {
	*OriginFs
	*PathSpec
}

type OriginFs

type OriginFs struct {
	// Source is Hugo's source file system.
	// Note that this will always be a "plain" Afero filesystem:
	// * afero.OsFs when running in production
	// * afero.MemMapFs for many of the tests.
	Source afero.Fs

	// PublishDir is where Hugo publishes its rendered content.
	// It's mounted inside publishDir (default /public).
	PublishDir afero.Fs

	// WorkingDirReadOnly is a read-only file system
	// restricted to the project working dir.
	WorkingDirReadOnly afero.Fs
}

func (*OriginFs) Origin

func (f *OriginFs) Origin() afero.Fs

func (*OriginFs) Publish

func (f *OriginFs) Publish() afero.Fs

func (*OriginFs) Working

func (f *OriginFs) Working() afero.Fs

type PathSpec

type PathSpec struct {
	*valueobject.BaseFs
}

PathSpec holds methods that decides how paths in URLs and files in Hugo should look like.

func (*PathSpec) ContentFs

func (ps *PathSpec) ContentFs() afero.Fs

func (*PathSpec) LayoutFs

func (ps *PathSpec) LayoutFs() afero.Fs

Jump to

Keyboard shortcuts

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