manifest

package
v0.0.0-...-66b962f Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2014 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LoggingKeys = map[string]bool{"name": true, "panic": true, "alert": true, "crit": true, "error": true, "warn": true, "notice": true, "info": true, "debug": true}

Functions

This section is empty.

Types

type Data

type Data struct {
	Name          string                       `toml:"name"`
	Description   string                       `toml:"description"`
	Internal      bool                         `toml:"internal"`
	AppType       string                       `toml:"app_type"`
	JavaType      string                       `toml:"java_type"`
	RunCommands   []string                     `toml:"run_commands"`
	Dependencies  []string                     `toml:"dependencies"`
	SetupCommands []string                     `toml:"setup_commands"`
	CPUShares     uint                         `toml:"cpu_shares"`
	MemoryLimit   uint                         `toml:"memory_limit"`
	Logging       map[string]map[string]string `toml:"logging"`

	// FIXME(manas) Deprecated, TBD.
	RunCommand interface{} `toml:"run_command"`
}

func Read

func Read(r io.Reader) (*Data, error)

func ReadFile

func ReadFile(fname string) (*Data, error)

func (*Data) ValidateFacility

func (man *Data) ValidateFacility(fac string) error

Jump to

Keyboard shortcuts

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