View Source SquareCloud.Apps (SquareCloud v0.3.0)
Application manager
Link to this section Summary
Functions
Create an application file
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 Functions
@spec create_file(binary(), binary(), binary()) :: Tesla.Env.t()
Create an application file
@spec delete(binary()) :: Tesla.Env.t()
Delete your application
@spec delete_file(binary(), binary()) :: Tesla.Env.t()
Delete an application file
@spec get(binary()) :: Tesla.Env.t()
Get application information
@spec get_backup(binary()) :: Tesla.Env.t()
Get application backup
@spec get_logs(binary()) :: Tesla.Env.t()
Get application logs
@spec get_status(binary()) :: Tesla.Env.t()
Get application status
@spec list_files(binary(), binary()) :: Tesla.Env.t()
List your application files
@spec read_file(binary(), binary()) :: Tesla.Env.t()
Read an application file
@spec restart(binary()) :: Tesla.Env.t()
Restart application
@spec start(binary()) :: Tesla.Env.t()
Start application
@spec stop(binary()) :: Tesla.Env.t()
Stop application
@spec upload(binary()) :: Tesla.Env.t()
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")