Documentation ¶
Overview ¶
Package apps provides methods for managing drycc apps.
Index ¶
- Variables
- func Delete(c *drycc.Client, appID string) error
- func Get(c *drycc.Client, appID string) (api.App, error)
- func List(c *drycc.Client, results int) (api.Apps, int, error)
- func Logs(c *drycc.Client, appID string, request api.AppLogsRequest) (*websocket.Conn, error)
- func New(c *drycc.Client, appID string) (api.App, error)
- func Run(c *drycc.Client, appID string, command string, volumes map[string]interface{}, ...) error
- func Transfer(c *drycc.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=drycc 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=drycc logs <logger pod>
3) Making sure that the container logs were mounted properly into the fluentd pod: kubectl --namespace=drycc 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/drycc/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 retrieve 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 drycc.ErrDuplicateApp will be returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.