ps

package
v0.0.0-...-c9ffa05 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2018 License: MIT Imports: 5 Imported by: 2

Documentation

Overview

Package ps provides methods for managing app processes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByType

func ByType(processes api.PodsList) api.PodTypes

ByType organizes processes of an app by process type.

func List

func List(c *deis.Client, appID string, results int) (api.PodsList, int, error)

List lists an app's processes.

func Restart

func Restart(c *deis.Client, appID string, procType string, name string) (api.PodsList, error)

Restart restarts an app's processes. To restart all app processes, pass empty strings for procType and name. To restart an specific process, pass an procType by leave name empty. To restart a specific instance, pass a procType and a name.

func Scale

func Scale(c *deis.Client, appID string, targets map[string]int) error

Scale increases or decreases an app's processes. The processes are specified in the target argument, a key-value map, where the key is the process name and the value is the number of replicas

Types

This section is empty.

Jump to

Keyboard shortcuts

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