Documentation ¶
Index ¶
- Constants
- func CheckRequiredKeys() error
- func Config(target string, action string, key []string) error
- func Install(targets []string, b backend.Backend, checkKeys func() error) error
- func InstallPlatform(b backend.Backend, checkKeys func() error, stateless bool) error
- func InstallSwarm(b backend.Backend) error
- func Journal(targets []string, b backend.Backend) error
- func ListUnitFiles(b backend.Backend) error
- func ListUnits(b backend.Backend) error
- func RefreshUnits(dir, tag, url string) error
- func Restart(targets []string, b backend.Backend) error
- func SSH(target string, b backend.Backend) error
- func Scale(targets []string, b backend.Backend) error
- func Start(targets []string, b backend.Backend) error
- func StartPlatform(b backend.Backend, stateless bool) error
- func StartSwarm(b backend.Backend) error
- func Status(targets []string, b backend.Backend) error
- func Stop(targets []string, b backend.Backend) error
- func StopPlatform(b backend.Backend, stateless bool) error
- func StopSwarm(b backend.Backend) error
- func UnInstallSwarm(b backend.Backend) error
- func Uninstall(targets []string, b backend.Backend) error
- func UninstallPlatform(b backend.Backend, stateless bool) error
Constants ¶
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" )
Variables ¶
This section is empty.
Functions ¶
func CheckRequiredKeys ¶ added in v1.8.0
func CheckRequiredKeys() error
CheckRequiredKeys exist in etcd
func Config ¶
Config gets or sets a configuration value from the cluster.
A configuration value is stored and retrieved from a key/value store (in this case, etcd) at /deis/<component>/<config>. Configuration values are typically used for component-level configuration, such as enabling TLS for the routers.
func Install ¶
Install loads the definitions of components from local unit files. After Install, the components will be available to Start.
func InstallPlatform ¶
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
InstallSwarm Installs swarm
func ListUnitFiles ¶
ListUnitFiles prints the contents of all defined unit files.
func RefreshUnits ¶
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 Scale ¶
Scale grows or shrinks the number of running components. Currently "router", "registry" and "store-gateway" are the only types that can be scaled.
func StartPlatform ¶
StartPlatform activates all components.
func StartSwarm ¶ added in v1.6.0
StartSwarm starts Swarm Schduler
func StopPlatform ¶
StopPlatform deactivates all components.
func UnInstallSwarm ¶ added in v1.6.0
UnInstallSwarm uninstall Swarm
Types ¶
This section is empty.