mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46:16 +00:00
init
This commit is contained in:
14
app/Enums/CronjobStatus.php
Normal file
14
app/Enums/CronjobStatus.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use BenSampo\Enum\Enum;
|
||||
|
||||
final class CronjobStatus extends Enum
|
||||
{
|
||||
const CREATING = 'creating';
|
||||
|
||||
const READY = 'ready';
|
||||
|
||||
const DELETING = 'deleting';
|
||||
}
|
16
app/Enums/Database.php
Normal file
16
app/Enums/Database.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use BenSampo\Enum\Enum;
|
||||
|
||||
final class Database extends Enum
|
||||
{
|
||||
const NONE = 'none';
|
||||
|
||||
const MYSQL57 = 'mysql57';
|
||||
|
||||
const MYSQL80 = 'mysql80';
|
||||
|
||||
const MARIADB = 'mariadb';
|
||||
}
|
16
app/Enums/DatabaseStatus.php
Normal file
16
app/Enums/DatabaseStatus.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use BenSampo\Enum\Enum;
|
||||
|
||||
final class DatabaseStatus extends Enum
|
||||
{
|
||||
const READY = 'ready';
|
||||
|
||||
const CREATING = 'creating';
|
||||
|
||||
const FAILED = 'failed';
|
||||
|
||||
const DELETING = 'deleting';
|
||||
}
|
16
app/Enums/DatabaseUserStatus.php
Normal file
16
app/Enums/DatabaseUserStatus.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use BenSampo\Enum\Enum;
|
||||
|
||||
final class DatabaseUserStatus extends Enum
|
||||
{
|
||||
const READY = 'ready';
|
||||
|
||||
const CREATING = 'creating';
|
||||
|
||||
const FAILED = 'failed';
|
||||
|
||||
const DELETING = 'deleting';
|
||||
}
|
14
app/Enums/DeploymentStatus.php
Normal file
14
app/Enums/DeploymentStatus.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use BenSampo\Enum\Enum;
|
||||
|
||||
final class DeploymentStatus extends Enum
|
||||
{
|
||||
const DEPLOYING = 'deploying';
|
||||
|
||||
const FINISHED = 'finished';
|
||||
|
||||
const FAILED = 'failed';
|
||||
}
|
14
app/Enums/FirewallRuleStatus.php
Normal file
14
app/Enums/FirewallRuleStatus.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use BenSampo\Enum\Enum;
|
||||
|
||||
final class FirewallRuleStatus extends Enum
|
||||
{
|
||||
const CREATING = 'creating';
|
||||
|
||||
const READY = 'ready';
|
||||
|
||||
const DELETING = 'deleting';
|
||||
}
|
12
app/Enums/LogType.php
Normal file
12
app/Enums/LogType.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use BenSampo\Enum\Enum;
|
||||
|
||||
final class LogType extends Enum
|
||||
{
|
||||
const SERVER = 'server';
|
||||
|
||||
const SITE = 'site';
|
||||
}
|
14
app/Enums/NotificationChannel.php
Normal file
14
app/Enums/NotificationChannel.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use BenSampo\Enum\Enum;
|
||||
|
||||
final class NotificationChannel extends Enum
|
||||
{
|
||||
const EMAIL = 'email';
|
||||
|
||||
const SLACK = 'slack';
|
||||
|
||||
const DISCORD = 'discord';
|
||||
}
|
14
app/Enums/OperatingSystem.php
Normal file
14
app/Enums/OperatingSystem.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use BenSampo\Enum\Enum;
|
||||
|
||||
final class OperatingSystem extends Enum
|
||||
{
|
||||
const UBUNTU18 = 'ubuntu_18';
|
||||
|
||||
const UBUNTU20 = 'ubuntu_20';
|
||||
|
||||
const UBUNTU22 = 'ubuntu_22';
|
||||
}
|
24
app/Enums/QueueStatus.php
Normal file
24
app/Enums/QueueStatus.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use BenSampo\Enum\Enum;
|
||||
|
||||
final class QueueStatus extends Enum
|
||||
{
|
||||
const RUNNING = 'running';
|
||||
|
||||
const CREATING = 'creating';
|
||||
|
||||
const DELETING = 'deleting';
|
||||
|
||||
const FAILED = 'failed';
|
||||
|
||||
const STARTING = 'starting';
|
||||
|
||||
const STOPPING = 'stopping';
|
||||
|
||||
const RESTARTING = 'restarting';
|
||||
|
||||
const STOPPED = 'stopped';
|
||||
}
|
20
app/Enums/ServerProvider.php
Normal file
20
app/Enums/ServerProvider.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use BenSampo\Enum\Enum;
|
||||
|
||||
final class ServerProvider extends Enum
|
||||
{
|
||||
const CUSTOM = 'custom';
|
||||
|
||||
const AWS = 'aws';
|
||||
|
||||
const LINODE = 'linode';
|
||||
|
||||
const DIGITALOCEAN = 'digitalocean';
|
||||
|
||||
const VULTR = 'vultr';
|
||||
|
||||
const HETZNER = 'hetzner';
|
||||
}
|
16
app/Enums/ServerStatus.php
Normal file
16
app/Enums/ServerStatus.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use BenSampo\Enum\Enum;
|
||||
|
||||
final class ServerStatus extends Enum
|
||||
{
|
||||
const READY = 'ready';
|
||||
|
||||
const INSTALLING = 'installing';
|
||||
|
||||
const INSTALLATION_FAILED = 'installation_failed';
|
||||
|
||||
const DISCONNECTED = 'disconnected';
|
||||
}
|
10
app/Enums/ServerType.php
Normal file
10
app/Enums/ServerType.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use BenSampo\Enum\Enum;
|
||||
|
||||
final class ServerType extends Enum
|
||||
{
|
||||
const REGULAR = 'regular';
|
||||
}
|
26
app/Enums/ServiceStatus.php
Normal file
26
app/Enums/ServiceStatus.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use BenSampo\Enum\Enum;
|
||||
|
||||
final class ServiceStatus extends Enum
|
||||
{
|
||||
const READY = 'ready';
|
||||
|
||||
const INSTALLING = 'installing';
|
||||
|
||||
const INSTALLATION_FAILED = 'installation_failed';
|
||||
|
||||
const UNINSTALLING = 'uninstalling';
|
||||
|
||||
const FAILED = 'failed';
|
||||
|
||||
const STARTING = 'starting';
|
||||
|
||||
const STOPPING = 'stopping';
|
||||
|
||||
const RESTARTING = 'restarting';
|
||||
|
||||
const STOPPED = 'stopped';
|
||||
}
|
16
app/Enums/SiteStatus.php
Normal file
16
app/Enums/SiteStatus.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use BenSampo\Enum\Enum;
|
||||
|
||||
final class SiteStatus extends Enum
|
||||
{
|
||||
const READY = 'ready';
|
||||
|
||||
const INSTALLING = 'installing';
|
||||
|
||||
const INSTALLATION_FAILED = 'installation_failed';
|
||||
|
||||
const DELETING = 'deleting';
|
||||
}
|
14
app/Enums/SiteType.php
Normal file
14
app/Enums/SiteType.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use BenSampo\Enum\Enum;
|
||||
|
||||
final class SiteType extends Enum
|
||||
{
|
||||
const PHP = 'php';
|
||||
|
||||
const LARAVEL = 'laravel';
|
||||
|
||||
const WORDPRESS = 'wordpress';
|
||||
}
|
16
app/Enums/SourceControl.php
Normal file
16
app/Enums/SourceControl.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use BenSampo\Enum\Enum;
|
||||
|
||||
final class SourceControl extends Enum
|
||||
{
|
||||
const GITHUB = 'github';
|
||||
|
||||
const GITLAB = 'gitlab';
|
||||
|
||||
const BITBUCKET = 'bitbucket';
|
||||
|
||||
const CUSTOM = 'custom';
|
||||
}
|
14
app/Enums/SshKeyStatus.php
Normal file
14
app/Enums/SshKeyStatus.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use BenSampo\Enum\Enum;
|
||||
|
||||
final class SshKeyStatus extends Enum
|
||||
{
|
||||
const ADDING = 'adding';
|
||||
|
||||
const ADDED = 'added';
|
||||
|
||||
const DELETING = 'deleting';
|
||||
}
|
16
app/Enums/SslStatus.php
Normal file
16
app/Enums/SslStatus.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use BenSampo\Enum\Enum;
|
||||
|
||||
final class SslStatus extends Enum
|
||||
{
|
||||
const CREATED = 'created';
|
||||
|
||||
const CREATING = 'creating';
|
||||
|
||||
const DELETING = 'deleting';
|
||||
|
||||
const FAILED = 'failed';
|
||||
}
|
12
app/Enums/SslType.php
Normal file
12
app/Enums/SslType.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use BenSampo\Enum\Enum;
|
||||
|
||||
final class SslType extends Enum
|
||||
{
|
||||
const LETSENCRYPT = 'letsencrypt';
|
||||
|
||||
const CUSTOM = 'custom';
|
||||
}
|
12
app/Enums/StorageProvider.php
Normal file
12
app/Enums/StorageProvider.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use BenSampo\Enum\Enum;
|
||||
|
||||
final class StorageProvider extends Enum
|
||||
{
|
||||
const GOOGLE = 'google';
|
||||
|
||||
const DROPBOX = 'dropbox';
|
||||
}
|
10
app/Enums/Webserver.php
Normal file
10
app/Enums/Webserver.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use BenSampo\Enum\Enum;
|
||||
|
||||
final class Webserver extends Enum
|
||||
{
|
||||
const NGINX = 'nginx';
|
||||
}
|
Reference in New Issue
Block a user