Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Catalog ¶
type Catalog struct {
// Unsorted contains the list of resources created by Lua
Unsorted []resource.Resource `luar:"-"`
// contains filtered or unexported fields
}
Catalog type contains a collection of resources
func (*Catalog) Add ¶ added in v0.3.0
Add adds a resource to the catalog. This method is called from Lua when adding new resources
type Config ¶
type Config struct {
// Name of the Lua module to load and execute
Module string
// Do not take any actions, just report what would be done
DryRun bool
// Writer used to log events
Logger *log.Logger
// Path to the site repo containing module and data files
SiteRepo string
// The Lua state
L *lua.LState
}
Config type represents a set of settings to use when creating and processing the catalog
Click to show internal directories.
Click to hide internal directories.