cmd

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2015 License: Apache-2.0, Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PlatformCommand is shorthand for "all the Deis components."
	PlatformCommand string = "platform"
	// StatelessPlatformCommand is shorthand for the components except store-*, database, and logger.
	StatelessPlatformCommand string = "stateless-platform"

	// DefaultRouterMeshSize defines the default number of routers to be loaded when installing the platform.
	DefaultRouterMeshSize uint8 = 3
)

Variables

View Source
var RouterMeshSize = DefaultRouterMeshSize

Number of routers to be installed. By default, it's DefaultRouterMeshSize.

View Source
var Stderr io.Writer = os.Stdout

Location to write standard error information. By default, this is the os.Stderr.

View Source
var Stdout io.Writer = os.Stderr

Location to write standard output. By default, this is the os.Stdout.

Functions

func CheckRequiredKeys added in v1.8.0

func CheckRequiredKeys(cb config.Backend) error

CheckRequiredKeys exist in config backend

func Config

func Config(target string, action string, key []string, cb config.Backend) error

Config gets or sets a configuration value from the cluster.

A configuration value is stored and retrieved from a key/value store at /deis/<component>/<config>. Configuration values are typically used for component-level configuration, such as enabling TLS for the routers.

func Dock added in v1.9.0

func Dock(target string, cmd []string, b backend.Backend) error

Dock connects to the appropriate host and runs 'docker exec -it'.

func Install

func Install(targets []string, b backend.Backend, cb config.Backend, checkKeys func(config.Backend) error) error

Install loads the definitions of components from local unit files. After Install, the components will be available to Start.

func InstallK8s added in v1.9.0

func InstallK8s(b backend.Backend) error

InstallK8s Installs K8s

func InstallMesos added in v1.9.0

func InstallMesos(b backend.Backend) error

InstallMesos loads all Mesos units for StartMesos

func InstallPlatform

func InstallPlatform(b backend.Backend, cb config.Backend, checkKeys func(config.Backend) error, stateless bool) error

InstallPlatform loads all components' definitions from local unit files. After InstallPlatform, all components will be available for StartPlatform.

func InstallSwarm added in v1.6.0

func InstallSwarm(b backend.Backend) error

InstallSwarm Installs swarm

func Journal

func Journal(targets []string, b backend.Backend) error

Journal prints log output for the specified components.

func ListUnitFiles

func ListUnitFiles(b backend.Backend) error

ListUnitFiles prints the contents of all defined unit files.

func ListUnits

func ListUnits(b backend.Backend) error

ListUnits prints a list of installed units.

func RefreshUnits

func RefreshUnits(dir, tag, url string) error

RefreshUnits overwrites local unit files with those requested. Downloading from the Deis project GitHub URL by tag or SHA is the only mechanism currently supported.

func Restart

func Restart(targets []string, b backend.Backend) error

Restart stops and then starts the specified components.

func RollingRestart added in v1.9.0

func RollingRestart(target string, b backend.Backend) error

RollingRestart restart instance unit in a rolling manner

func SSH added in v1.8.0

func SSH(target string, cmd []string, b backend.Backend) error

SSH opens an interactive shell on a machine in the cluster

func Scale

func Scale(targets []string, b backend.Backend) error

Scale grows or shrinks the number of running components. Currently "router", "registry" and "store-gateway" are the only types that can be scaled.

func Start

func Start(targets []string, b backend.Backend) error

Start activates the specified components.

func StartK8s added in v1.9.0

func StartK8s(b backend.Backend) error

StartK8s starts K8s Schduler

func StartMesos added in v1.9.0

func StartMesos(b backend.Backend) error

StartMesos activates all Mesos components.

func StartPlatform

func StartPlatform(b backend.Backend, stateless bool) error

StartPlatform activates all components.

func StartSwarm added in v1.6.0

func StartSwarm(b backend.Backend) error

StartSwarm starts Swarm Schduler

func Status

func Status(targets []string, b backend.Backend) error

Status prints the current status of components.

func Stop

func Stop(targets []string, b backend.Backend) error

Stop deactivates the specified components.

func StopK8s added in v1.9.0

func StopK8s(b backend.Backend) error

StopK8s stops K8s

func StopMesos added in v1.9.0

func StopMesos(b backend.Backend) error

StopMesos deactivates all Mesos components.

func StopPlatform

func StopPlatform(b backend.Backend, stateless bool) error

StopPlatform deactivates all components.

func StopSwarm added in v1.6.0

func StopSwarm(b backend.Backend) error

StopSwarm stops swarm

func UnInstallK8s added in v1.9.0

func UnInstallK8s(b backend.Backend) error

UnInstallK8s uninstall K8s

func UnInstallSwarm added in v1.6.0

func UnInstallSwarm(b backend.Backend) error

UnInstallSwarm uninstall Swarm

func Uninstall

func Uninstall(targets []string, b backend.Backend) error

Uninstall unloads the definitions of the specified components. After Uninstall, the components will be unavailable until Install is called.

func UninstallMesos added in v1.9.0

func UninstallMesos(b backend.Backend) error

UninstallMesos unloads and uninstalls all Mesos component definitions

func UninstallPlatform added in v0.14.0

func UninstallPlatform(b backend.Backend, stateless bool) error

UninstallPlatform unloads all components' definitions. After UninstallPlatform, all components will be unavailable.

func UpgradePrep added in v1.9.0

func UpgradePrep(b backend.Backend) error

UpgradePrep stops and uninstalls all components except router and publisher

func UpgradeTakeover added in v1.9.0

func UpgradeTakeover(b backend.Backend, cb config.Backend) error

UpgradeTakeover gracefully starts a platform stopped with UpgradePrep

Types

This section is empty.

Jump to

Keyboard shortcuts

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