config

package
v0.0.0-...-eb6e48b Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2014 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

func List

func List() []string

List out the available processes

func LoadConfigs

func LoadConfigs()

func PrintConfig

func PrintConfig(name string)

func PrintProcesses

func PrintProcesses()

PrintProcesses prints out the listing of all the sections in the config file

Types

type Config

type Config struct {
	Process map[string]*Settings
}

func Processes

func Processes() Config

type Settings

type Settings struct {
	App         string
	StartCmd    string
	Console     string
	Instances   int
	Port        int
	MB          int
	GB          int
	Bytes       int
	Domain      []string
	Allow       []string
	Kill        bool
	Container   string
	Volumn      []string
	WorkingDir  string
	QuotedOpts  string
	BuildFile   string
	Dns         string
	UseNginx    bool
	Env         []string
	IncludeEnv  bool
	UseBundler  bool
	PostInstall string
	PostUpdate  string
}

func Process

func Process(name string) *Settings

Process pulls the settings for the given process

func (*Settings) Valid

func (s *Settings) Valid() (message string, valid bool)

Jump to

Keyboard shortcuts

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