Documentation ¶
Overview ¶
Package apps provides methods for managing deis apps.
Index ¶
- Variables
- func Delete(c *deis.Client, appID string) error
- func Get(c *deis.Client, appID string) (api.App, error)
- func List(c *deis.Client, results int) (api.Apps, int, error)
- func Logs(c *deis.Client, appID string, lines int) (string, error)
- func New(c *deis.Client, appID string) (api.App, error)
- func Run(c *deis.Client, appID string, command string) (api.AppRunResponse, error)
- func Transfer(c *deis.Client, appID string, username string) error
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 Logs ¶
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 ¶
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.