mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-08 09:22:34 +00:00
Plugins base (#613)
* wip * wip * cleanup * notification channels * phpstan * services * remove server types * refactoring * refactoring
This commit is contained in:
@ -4,17 +4,17 @@
|
||||
|
||||
final class BackupFileStatus
|
||||
{
|
||||
const CREATED = 'created';
|
||||
const string CREATED = 'created';
|
||||
|
||||
const CREATING = 'creating';
|
||||
const string CREATING = 'creating';
|
||||
|
||||
const FAILED = 'failed';
|
||||
const string FAILED = 'failed';
|
||||
|
||||
const DELETING = 'deleting';
|
||||
const string DELETING = 'deleting';
|
||||
|
||||
const RESTORING = 'restoring';
|
||||
const string RESTORING = 'restoring';
|
||||
|
||||
const RESTORED = 'restored';
|
||||
const string RESTORED = 'restored';
|
||||
|
||||
const RESTORE_FAILED = 'restore_failed';
|
||||
const string RESTORE_FAILED = 'restore_failed';
|
||||
}
|
||||
|
@ -4,11 +4,11 @@
|
||||
|
||||
final class BackupStatus
|
||||
{
|
||||
const RUNNING = 'running';
|
||||
const string RUNNING = 'running';
|
||||
|
||||
const FAILED = 'failed';
|
||||
const string FAILED = 'failed';
|
||||
|
||||
const DELETING = 'deleting';
|
||||
const string DELETING = 'deleting';
|
||||
|
||||
const STOPPED = 'stopped';
|
||||
const string STOPPED = 'stopped';
|
||||
}
|
||||
|
@ -4,9 +4,9 @@
|
||||
|
||||
final class CommandExecutionStatus
|
||||
{
|
||||
const EXECUTING = 'executing';
|
||||
const string EXECUTING = 'executing';
|
||||
|
||||
const COMPLETED = 'completed';
|
||||
const string COMPLETED = 'completed';
|
||||
|
||||
const FAILED = 'failed';
|
||||
const string FAILED = 'failed';
|
||||
}
|
||||
|
@ -4,17 +4,17 @@
|
||||
|
||||
final class CronjobStatus
|
||||
{
|
||||
const CREATING = 'creating';
|
||||
const string CREATING = 'creating';
|
||||
|
||||
const READY = 'ready';
|
||||
const string READY = 'ready';
|
||||
|
||||
const DELETING = 'deleting';
|
||||
const string DELETING = 'deleting';
|
||||
|
||||
const ENABLING = 'enabling';
|
||||
const string ENABLING = 'enabling';
|
||||
|
||||
const DISABLING = 'disabling';
|
||||
const string DISABLING = 'disabling';
|
||||
|
||||
const UPDATING = 'updating';
|
||||
const string UPDATING = 'updating';
|
||||
|
||||
const DISABLED = 'disabled';
|
||||
const string DISABLED = 'disabled';
|
||||
}
|
||||
|
@ -1,38 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use App\Traits\Enum;
|
||||
|
||||
final class Database
|
||||
{
|
||||
use Enum;
|
||||
|
||||
const NONE = 'none';
|
||||
|
||||
const MYSQL57 = 'mysql57';
|
||||
|
||||
const MYSQL80 = 'mysql80';
|
||||
|
||||
const MYSQL84 = 'mysql84';
|
||||
|
||||
const MARIADB103 = 'mariadb103';
|
||||
|
||||
const MARIADB104 = 'mariadb104';
|
||||
|
||||
const MARIADB106 = 'mariadb1006';
|
||||
|
||||
const MARIADB1011 = 'mariadb1011';
|
||||
|
||||
const MARIADB114 = 'mariadb114';
|
||||
|
||||
const POSTGRESQL12 = 'postgresql12';
|
||||
|
||||
const POSTGRESQL13 = 'postgresql13';
|
||||
|
||||
const POSTGRESQL14 = 'postgresql14';
|
||||
|
||||
const POSTGRESQL15 = 'postgresql15';
|
||||
|
||||
const POSTGRESQL16 = 'postgresql16';
|
||||
}
|
@ -4,11 +4,11 @@
|
||||
|
||||
final class DatabaseStatus
|
||||
{
|
||||
const READY = 'ready';
|
||||
const string READY = 'ready';
|
||||
|
||||
const CREATING = 'creating';
|
||||
const string CREATING = 'creating';
|
||||
|
||||
const FAILED = 'failed';
|
||||
const string FAILED = 'failed';
|
||||
|
||||
const DELETING = 'deleting';
|
||||
const string DELETING = 'deleting';
|
||||
}
|
||||
|
@ -4,11 +4,11 @@
|
||||
|
||||
final class DatabaseUserStatus
|
||||
{
|
||||
const READY = 'ready';
|
||||
const string READY = 'ready';
|
||||
|
||||
const CREATING = 'creating';
|
||||
const string CREATING = 'creating';
|
||||
|
||||
const FAILED = 'failed';
|
||||
const string FAILED = 'failed';
|
||||
|
||||
const DELETING = 'deleting';
|
||||
const string DELETING = 'deleting';
|
||||
}
|
||||
|
@ -4,9 +4,9 @@
|
||||
|
||||
final class DeploymentStatus
|
||||
{
|
||||
const DEPLOYING = 'deploying';
|
||||
const string DEPLOYING = 'deploying';
|
||||
|
||||
const FINISHED = 'finished';
|
||||
const string FINISHED = 'finished';
|
||||
|
||||
const FAILED = 'failed';
|
||||
const string FAILED = 'failed';
|
||||
}
|
||||
|
@ -4,13 +4,13 @@
|
||||
|
||||
final class FirewallRuleStatus
|
||||
{
|
||||
const CREATING = 'creating';
|
||||
const string CREATING = 'creating';
|
||||
|
||||
const UPDATING = 'updating';
|
||||
const string UPDATING = 'updating';
|
||||
|
||||
const READY = 'ready';
|
||||
const string READY = 'ready';
|
||||
|
||||
const DELETING = 'deleting';
|
||||
const string DELETING = 'deleting';
|
||||
|
||||
const FAILED = 'failed';
|
||||
const string FAILED = 'failed';
|
||||
}
|
||||
|
@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
final class LogType
|
||||
{
|
||||
const SERVER = 'server';
|
||||
|
||||
const SITE = 'site';
|
||||
}
|
@ -1,32 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use App\Traits\Enum;
|
||||
|
||||
final class NodeJS
|
||||
{
|
||||
use Enum;
|
||||
|
||||
const NONE = 'none';
|
||||
|
||||
const V4 = '4';
|
||||
|
||||
const V6 = '6';
|
||||
|
||||
const V8 = '8';
|
||||
|
||||
const V10 = '10';
|
||||
|
||||
const V12 = '12';
|
||||
|
||||
const V14 = '14';
|
||||
|
||||
const V16 = '16';
|
||||
|
||||
const V18 = '18';
|
||||
|
||||
const V20 = '20';
|
||||
|
||||
const V22 = '22';
|
||||
}
|
@ -1,14 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
final class NotificationChannel
|
||||
{
|
||||
const EMAIL = 'email';
|
||||
|
||||
const SLACK = 'slack';
|
||||
|
||||
const DISCORD = 'discord';
|
||||
|
||||
const TELEGRAM = 'telegram';
|
||||
}
|
@ -1,32 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use App\Traits\Enum;
|
||||
|
||||
final class PHP
|
||||
{
|
||||
use Enum;
|
||||
|
||||
const NONE = 'none';
|
||||
|
||||
const V70 = '7.0';
|
||||
|
||||
const V71 = '7.1';
|
||||
|
||||
const V72 = '7.2';
|
||||
|
||||
const V73 = '7.3';
|
||||
|
||||
const V74 = '7.4';
|
||||
|
||||
const V80 = '8.0';
|
||||
|
||||
const V81 = '8.1';
|
||||
|
||||
const V82 = '8.2';
|
||||
|
||||
const V83 = '8.3';
|
||||
|
||||
const V84 = '8.4';
|
||||
}
|
@ -4,7 +4,7 @@
|
||||
|
||||
final class PHPIniType
|
||||
{
|
||||
const CLI = 'cli';
|
||||
const string CLI = 'cli';
|
||||
|
||||
const FPM = 'fpm';
|
||||
const string FPM = 'fpm';
|
||||
}
|
||||
|
@ -4,11 +4,11 @@
|
||||
|
||||
final class RedirectStatus
|
||||
{
|
||||
const CREATING = 'creating';
|
||||
const string CREATING = 'creating';
|
||||
|
||||
const READY = 'ready';
|
||||
const string READY = 'ready';
|
||||
|
||||
const DELETING = 'deleting';
|
||||
const string DELETING = 'deleting';
|
||||
|
||||
const FAILED = 'failed';
|
||||
const string FAILED = 'failed';
|
||||
}
|
||||
|
@ -4,9 +4,9 @@
|
||||
|
||||
final class ScriptExecutionStatus
|
||||
{
|
||||
const EXECUTING = 'executing';
|
||||
const string EXECUTING = 'executing';
|
||||
|
||||
const COMPLETED = 'completed';
|
||||
const string COMPLETED = 'completed';
|
||||
|
||||
const FAILED = 'failed';
|
||||
const string FAILED = 'failed';
|
||||
}
|
||||
|
@ -1,18 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
final class ServerProvider
|
||||
{
|
||||
const CUSTOM = 'custom';
|
||||
|
||||
const AWS = 'aws';
|
||||
|
||||
const LINODE = 'linode';
|
||||
|
||||
const DIGITALOCEAN = 'digitalocean';
|
||||
|
||||
const VULTR = 'vultr';
|
||||
|
||||
const HETZNER = 'hetzner';
|
||||
}
|
@ -4,13 +4,13 @@
|
||||
|
||||
final class ServerStatus
|
||||
{
|
||||
const READY = 'ready';
|
||||
const string READY = 'ready';
|
||||
|
||||
const INSTALLING = 'installing';
|
||||
const string INSTALLING = 'installing';
|
||||
|
||||
const INSTALLATION_FAILED = 'installation_failed';
|
||||
const string INSTALLATION_FAILED = 'installation_failed';
|
||||
|
||||
const DISCONNECTED = 'disconnected';
|
||||
const string DISCONNECTED = 'disconnected';
|
||||
|
||||
const UPDATING = 'updating';
|
||||
const string UPDATING = 'updating';
|
||||
}
|
||||
|
@ -1,13 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
/**
|
||||
* @deprecated server types will be dropped
|
||||
*/
|
||||
final class ServerType
|
||||
{
|
||||
const REGULAR = 'regular';
|
||||
|
||||
const DATABASE = 'database';
|
||||
}
|
@ -4,27 +4,27 @@
|
||||
|
||||
final class ServiceStatus
|
||||
{
|
||||
const READY = 'ready';
|
||||
const string READY = 'ready';
|
||||
|
||||
const INSTALLING = 'installing';
|
||||
const string INSTALLING = 'installing';
|
||||
|
||||
const INSTALLATION_FAILED = 'installation_failed';
|
||||
const string INSTALLATION_FAILED = 'installation_failed';
|
||||
|
||||
const UNINSTALLING = 'uninstalling';
|
||||
const string UNINSTALLING = 'uninstalling';
|
||||
|
||||
const FAILED = 'failed';
|
||||
const string FAILED = 'failed';
|
||||
|
||||
const STARTING = 'starting';
|
||||
const string STARTING = 'starting';
|
||||
|
||||
const STOPPING = 'stopping';
|
||||
const string STOPPING = 'stopping';
|
||||
|
||||
const RESTARTING = 'restarting';
|
||||
const string RESTARTING = 'restarting';
|
||||
|
||||
const STOPPED = 'stopped';
|
||||
const string STOPPED = 'stopped';
|
||||
|
||||
const ENABLING = 'enabling';
|
||||
const string ENABLING = 'enabling';
|
||||
|
||||
const DISABLING = 'disabling';
|
||||
const string DISABLING = 'disabling';
|
||||
|
||||
const DISABLED = 'disabled';
|
||||
const string DISABLED = 'disabled';
|
||||
}
|
||||
|
@ -1,16 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
final class SiteFeature
|
||||
{
|
||||
const DEPLOYMENT = 'deployment';
|
||||
|
||||
const ENV = 'env';
|
||||
|
||||
const SSL = 'ssl';
|
||||
|
||||
const WORKERS = 'workers';
|
||||
|
||||
const COMMANDS = 'commands';
|
||||
}
|
@ -4,11 +4,11 @@
|
||||
|
||||
final class SiteStatus
|
||||
{
|
||||
const READY = 'ready';
|
||||
const string READY = 'ready';
|
||||
|
||||
const INSTALLING = 'installing';
|
||||
const string INSTALLING = 'installing';
|
||||
|
||||
const INSTALLATION_FAILED = 'installation_failed';
|
||||
const string INSTALLATION_FAILED = 'installation_failed';
|
||||
|
||||
const DELETING = 'deleting';
|
||||
const string DELETING = 'deleting';
|
||||
}
|
||||
|
@ -1,18 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
final class SiteType
|
||||
{
|
||||
const PHP = 'php';
|
||||
|
||||
const PHP_BLANK = 'php-blank';
|
||||
|
||||
const LARAVEL = 'laravel';
|
||||
|
||||
const WORDPRESS = 'wordpress';
|
||||
|
||||
const PHPMYADMIN = 'phpmyadmin';
|
||||
|
||||
const LOAD_BALANCER = 'load-balancer';
|
||||
}
|
@ -1,12 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
final class SourceControl
|
||||
{
|
||||
const GITHUB = 'github';
|
||||
|
||||
const GITLAB = 'gitlab';
|
||||
|
||||
const BITBUCKET = 'bitbucket';
|
||||
}
|
@ -4,9 +4,9 @@
|
||||
|
||||
final class SshKeyStatus
|
||||
{
|
||||
const ADDING = 'adding';
|
||||
const string ADDING = 'adding';
|
||||
|
||||
const ADDED = 'added';
|
||||
const string ADDED = 'added';
|
||||
|
||||
const DELETING = 'deleting';
|
||||
const string DELETING = 'deleting';
|
||||
}
|
||||
|
@ -4,11 +4,11 @@
|
||||
|
||||
final class SslStatus
|
||||
{
|
||||
const CREATED = 'created';
|
||||
const string CREATED = 'created';
|
||||
|
||||
const CREATING = 'creating';
|
||||
const string CREATING = 'creating';
|
||||
|
||||
const DELETING = 'deleting';
|
||||
const string DELETING = 'deleting';
|
||||
|
||||
const FAILED = 'failed';
|
||||
const string FAILED = 'failed';
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
final class SslType
|
||||
{
|
||||
const LETSENCRYPT = 'letsencrypt';
|
||||
const string LETSENCRYPT = 'letsencrypt';
|
||||
|
||||
const CUSTOM = 'custom';
|
||||
const string CUSTOM = 'custom';
|
||||
}
|
||||
|
@ -1,14 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
final class StorageProvider
|
||||
{
|
||||
const DROPBOX = 'dropbox';
|
||||
|
||||
const FTP = 'ftp';
|
||||
|
||||
const LOCAL = 'local';
|
||||
|
||||
const S3 = 's3';
|
||||
}
|
@ -4,7 +4,7 @@
|
||||
|
||||
final class UserRole
|
||||
{
|
||||
const USER = 'user';
|
||||
const string USER = 'user';
|
||||
|
||||
const ADMIN = 'admin';
|
||||
const string ADMIN = 'admin';
|
||||
}
|
||||
|
@ -1,12 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
final class Webserver
|
||||
{
|
||||
const NONE = 'none';
|
||||
|
||||
const NGINX = 'nginx';
|
||||
|
||||
const CADDY = 'caddy';
|
||||
}
|
@ -4,19 +4,19 @@
|
||||
|
||||
final class WorkerStatus
|
||||
{
|
||||
const RUNNING = 'running';
|
||||
const string RUNNING = 'running';
|
||||
|
||||
const CREATING = 'creating';
|
||||
const string CREATING = 'creating';
|
||||
|
||||
const DELETING = 'deleting';
|
||||
const string DELETING = 'deleting';
|
||||
|
||||
const FAILED = 'failed';
|
||||
const string FAILED = 'failed';
|
||||
|
||||
const STARTING = 'starting';
|
||||
const string STARTING = 'starting';
|
||||
|
||||
const STOPPING = 'stopping';
|
||||
const string STOPPING = 'stopping';
|
||||
|
||||
const RESTARTING = 'restarting';
|
||||
const string RESTARTING = 'restarting';
|
||||
|
||||
const STOPPED = 'stopped';
|
||||
const string STOPPED = 'stopped';
|
||||
}
|
||||
|
Reference in New Issue
Block a user