apps

package
v1.16.6 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: BSD-4-Clause, MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KB = 1024
	MB = KB * 1024
	GB = MB * 1024
)

Variables

This section is empty.

Functions

func Create

func Create(appName string, remote string, buildpack string) error

func Destroy

func Destroy(appName string) error

func Events added in v1.16.6

func Events(app string, paginationOpts scalingo.PaginationOpts) error

func ForceHTTPS added in v1.16.6

func ForceHTTPS(appName string, enable bool) error

func Info added in v1.16.6

func Info(appName string) error

func List

func List() error

func Logs

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

func LogsArchives added in v1.16.6

func LogsArchives(appName string, page int) error

func Ps added in v1.1.0

func Ps(app string) error

func Rename added in v1.16.6

func Rename(appName string, newName 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

func Stats added in v1.16.6

func Stats(app string, stream bool) error

func StickySession added in v1.16.6

func StickySession(appName string, enable bool) error

Types

type LogsRes added in v1.1.0

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

type RunOpts added in v1.1.0

type RunOpts struct {
	App            string
	DisplayCmd     string
	Silent         bool
	Detached       bool
	Size           string
	Type           string
	Cmd            []string
	CmdEnv         []string
	Files          []string
	StdinCopyFunc  func(stdio.Writer, stdio.Reader) (int64, error)
	StdoutCopyFunc func(stdio.Writer, stdio.Reader) (int64, error)
}

type ScaleRes added in v1.1.0

type ScaleRes struct {
	Containers []scalingo.ContainerType `json:"containers"`
}

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