View Source SquareCloud.Apps (SquareCloud v0.2.0)

Application manager

Link to this section Summary

Functions

Delete your application

Delete an application file

Get application information

Get application backup

Get application logs

Get application status

List your application files

Read an application file

Restart application

Start application

Stop application

Send a application to SquareCloud

Link to this section Types

@type option() :: String.t() | integer()
@type response() :: Tesla.Env.t()

Link to this section Functions

Link to this function

delete(app_id)

View Source (since 0.1.0)
@spec delete(option()) :: response()

Delete your application

Link to this function

delete_file(app_id, path)

View Source (since 0.1.0)
@spec delete_file(option(), String.t()) :: response()

Delete an application file

Link to this function

get(app_id)

View Source (since 0.1.0)
@spec get(option()) :: response()

Get application information

Link to this function

get_backup(app_id)

View Source (since 0.1.0)
@spec get_backup(option()) :: response()

Get application backup

Link to this function

get_logs(app_id)

View Source (since 0.1.0)
@spec get_logs(option()) :: response()

Get application logs

Link to this function

get_status(app_id)

View Source (since 0.1.0)
@spec get_status(option()) :: response()

Get application status

Link to this function

list_files(app_id, path)

View Source (since 0.1.0)
@spec list_files(option(), String.t()) :: response()

List your application files

Link to this function

read_file(app_id, path)

View Source (since 0.1.0)
@spec read_file(option(), String.t()) :: response()

Read an application file

Link to this function

restart(app_id)

View Source (since 0.1.0)
@spec restart(option()) :: response()

Restart application

Link to this function

start(app_id)

View Source (since 0.1.0)
@spec start(option()) :: response()

Start application

Link to this function

stop(app_id)

View Source (since 0.1.0)
@spec stop(option()) :: response()

Stop application

Link to this function

upload(file_path)

View Source (since 0.1.0)
@spec upload(String.t()) :: response()

Send a application to SquareCloud

how-to-use

How to use

In this example, it's assumed that we have a zip file in the root directory as /bot.zip

SquareCloud.Apps.upload("/bot.zip")