commander

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2016 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 ListPools added in v0.7.2

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

TODO: shouldn't the command cmd be printing the output, and not the package? The app, config, host, and runtime sections all do this too. (otherwise we should just combine the two packages). And why do we print the output here, but print the error in main???

func PoolCreate added in v0.7.2

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

Create a pool for an environment

func PoolDelete added in v0.7.2

func PoolDelete(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
	MaintenanceMode string
}

Jump to

Keyboard shortcuts

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