import { default } from "https://deno.land/x/ptereno@v1.0.1/lib/models/Client.ts";
Properties
Methods
Uploads a local file to a specific server.
Sends POST requests using multipart form data.
Compresses multiple files on a specific server.
Creates a new server backup.
If no options are provided, the panel will fill in the data for you.
Creates a new schedule on a specific server.
If you need help with setting up cron schedules, refer to this website: https://crontab.guru/
Creates a new task on a specific schedule.
The payload field can only be used if action is not set to backup.
Decompresses a file on a specific server.
Deletes a server allocation.
The allocation must not be the default server allocation.
Deletes multiple files on a specific server.
Retrieves a list of database objects on a server.
Retrieves raw contents from a file.
The file parameter can also include a directory to the file.
Both bukkit.yml
and /logs/latest.txt
are valid.
Returns a websocket connection to the server.
Locks a server backup. This also unlocks backups that are already locked.
Triggers a server to reinstall.
WARNING: This can potentially delete preexisting server files, use this method with caution.
Updates the chmod for a single file.
Updates the chmod for multiple files.
Uploads a local file to a specific server.
Sends POST requests with raw body data.
Requires read permissions.
Writes data into a file on a specific server.
If you want to upload a file and have it handled for you,
use the uploadFile
method.