commander

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2015 License: MIT Imports: 11 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppAssign

func AppAssign(configStore *config.Store, app, env, pool string) error

func AppCreate

func AppCreate(configStore *config.Store, app, env string) error

func AppDelete

func AppDelete(configStore *config.Store, app, env string) error

func AppDeploy

func AppDeploy(configStore *config.Store, serviceRuntime *runtime.ServiceRuntime, app, env, version string) error

func AppList

func AppList(configStore *config.Store, env string) error

func AppRestart

func AppRestart(Store *config.Store, app, env string) error

func AppRun

func AppRun(configStore *config.Store, serviceRuntime *runtime.ServiceRuntime, app, env string, args []string) error

func AppShell

func AppShell(configStore *config.Store, serviceRuntime *runtime.ServiceRuntime, app, env, pool string) error

func AppUnassign

func AppUnassign(configStore *config.Store, app, env, pool string) error

func Balanced

func Balanced(configStore *config.Store, hostId, app, env, pool string) (int, error)

Balanced returns the number of instances that should be run on the host according to the desired state for the app in the given env and pool. The number returned for the host represent an approximately equal distribution across all hosts.

func ConfigGet

func ConfigGet(configStore *config.Store, app, env string, envVars []string) error

func ConfigList

func ConfigList(configStore *config.Store, app, env string) error

func ConfigSet

func ConfigSet(configStore *config.Store, app, env string, envVars []string) error

func ConfigUnset

func ConfigUnset(configStore *config.Store, app, env string, envVars []string) error

func HostsList

func HostsList(configStore *config.Store, env, pool string) error

func RuntimeList

func RuntimeList(configStore *config.Store, app, env, pool string) error

func RuntimeSet

func RuntimeSet(configStore *config.Store, app, env, pool string, options RuntimeOptions) (bool, error)

func RuntimeUnset

func RuntimeUnset(configStore *config.Store, app, env, pool string, options RuntimeOptions) (bool, error)

Types

type RuntimeOptions

type RuntimeOptions struct {
	Ps          int
	Memory      string
	CPUShares   string
	VirtualHost string
	Port        string
}

Jump to

Keyboard shortcuts

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