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 // Number of goroutines to use for concurrent processing Concurrency int }
Config type represents a set of settings to use when creating and processing the catalog
type Status ¶ added in v0.5.0
type Status struct { sync.RWMutex // Items contain the status for resources after being processed. Items map[string]*StatusItem }
Status type contains status information about processed resources.
type StatusItem ¶ added in v0.5.0
type StatusItem struct { // StateChanged field specifies whether or not a resource has changed // after being evaluated and processed. StateChanged bool // Err contains any errors that were encountered during resource // evaluation and processing. Err error }
StatusItem type represents a single item for a processed resource.
Click to show internal directories.
Click to hide internal directories.