catalog

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2016 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Catalog

type Catalog struct {
	// Loaded modules after topological sorting
	Modules []*module.Module

	// Instantiated resources from the loaded modules
	Resources []resource.Resource

	// Catalog configuration
	Config *Config
}

Catalog type represents a collection of modules and resources

func Load

func Load(config *Config) (*Catalog, error)

Load creates a new catalog from the provided configuration

func (*Catalog) Run

func (c *Catalog) Run() error

Run processes the catalog

type Config

type Config struct {
	// Name of main module to load
	Main string

	// Do not take any actions, just report what would be done
	DryRun bool

	// Module configuration settings to use
	ModuleConfig *module.Config
}

Config type represents a set of settings to use when creating and processing the catalog

Jump to

Keyboard shortcuts

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