mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-06 14:25:45 -05:00
27 lines
968 B
PHP
27 lines
968 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pterodactyl\Contracts\Servers;
|
|
|
|
use Pterodactyl\Models\Server;
|
|
use Pterodactyl\Models\User;
|
|
use Throwable;
|
|
|
|
interface UpdatesServerStartup
|
|
{
|
|
/**
|
|
* Update a server's startup at the given user level. The input is validated here, so it
|
|
* can come straight from any caller; only the fields given are validated. The
|
|
* environment is checked against the egg's variable rules, and below the admin level
|
|
* only the variables a user may edit are written. Only an administrator changes the
|
|
* startup command, egg, Docker image and install script flag; at the admin level an
|
|
* install script flag left out turns it off.
|
|
*
|
|
* @param ActionInput $input any of environment and, at the admin level, startup, egg_id, docker_image and skip_scripts
|
|
*
|
|
* @throws Throwable
|
|
*/
|
|
public function update(Server $server, array $input, int $userLevel = User::USER_LEVEL_USER): Server;
|
|
}
|