apps

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2015 License: BSD-4-Clause, MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(appName string, remote string) error

func Destroy

func Destroy(appName string) error

func List

func List() error

func Logs

func Logs(appName string, stream bool, n int, filter string) error

func Ps added in v1.1.0

func Ps(app string) error

func Restart added in v1.1.0

func Restart(app string, sync bool, args []string) error

func Run

func Run(opts RunOpts) error

func Scale added in v1.1.0

func Scale(app string, sync bool, types []string) error

Types

type LogsRes added in v1.1.0

type LogsRes struct {
	LogsURL string   `json:"logs_url"`
	App     *api.App `json:"app"`
}

type RunOpts added in v1.1.0

type RunOpts struct {
	App            string
	Cmd            []string
	CmdEnv         []string
	Files          []string
	StdinCopyFunc  func(io.Writer, io.Reader) (int64, error)
	StdoutCopyFunc func(io.Writer, io.Reader) (int64, error)
}

type ScaleRes added in v1.1.0

type ScaleRes struct {
	Containers []api.Container `json:"containers"`
}

type ScaleUnprocessableEntity added in v1.1.0

type ScaleUnprocessableEntity struct {
	Errors map[string]map[string][]string `json:"errors"`
}

func (ScaleUnprocessableEntity) Error added in v1.1.0

func (err ScaleUnprocessableEntity) Error() string

type WSEvent added in v1.1.0

type WSEvent struct {
	Type      string    `json:"event"`
	Log       string    `json:"log"`
	Timestamp time.Time `json:"timestamp"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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