apps

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: 7 Imported by: 2

Documentation

Overview

Package apps provides methods for managing deis apps.

Index

Constants

This section is empty.

Variables

View Source
var ErrNoLogs = errors.New(
	`There are currently no log messages. Please check the following things:
1) Logger and fluentd pods are running: kubectl --namespace=deis get pods.
2) The application is writing logs to the logger component by checking that an entry in the ring buffer was created: kubectl --namespace=deis logs <logger pod>
3) Making sure that the container logs were mounted properly into the fluentd pod: kubectl --namespace=deis exec <fluentd pod> ls /var/log/containers
3a) If the above command returns saying /var/log/containers cannot be found then please see the following github issue for a workaround: https://github.com/deis/logger/issues/50`)

ErrNoLogs is returned when logs are missing from an app.

Functions

func Delete

func Delete(c *deis.Client, appID string) error

Delete an app.

func Get

func Get(c *deis.Client, appID string) (api.App, error)

Get app details from a controller.

func List

func List(c *deis.Client, results int) (api.Apps, int, error)

List lists apps on a Deis controller.

func Logs

func Logs(c *deis.Client, appID string, lines int) (string, error)

Logs retrieves logs from an app. The number of log lines fetched can be set by the lines argument. Setting lines = -1 will retrive all app logs.

func New

func New(c *deis.Client, appID string) (api.App, error)

New creates a new app with the given appID. Passing an empty string will result in a randomized app name.

If the app name already exists, the error deis.ErrDuplicateApp will be returned.

func Run

func Run(c *deis.Client, appID string, command string) (api.AppRunResponse, error)

Run a one-time command in your app. This will start a kubernetes job with the same container image and environment as the rest of the app.

func Transfer

func Transfer(c *deis.Client, appID string, username string) error

Transfer an app to another user.

Types

This section is empty.

Jump to

Keyboard shortcuts

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