enum case consistency, wip creating service
This commit is contained in:
@@ -4,6 +4,6 @@ namespace App\Enums;
|
||||
|
||||
enum OrganisationRole: string
|
||||
{
|
||||
case Admin = 'admin';
|
||||
case Member = 'member';
|
||||
case ADMIN = 'admin';
|
||||
case MEMBER = 'member';
|
||||
}
|
||||
|
||||
@@ -4,5 +4,5 @@ namespace App\Enums;
|
||||
|
||||
enum RepositoryType: string
|
||||
{
|
||||
case Git = 'git';
|
||||
case GIT = 'git';
|
||||
}
|
||||
@@ -4,6 +4,6 @@ namespace App\Enums;
|
||||
|
||||
enum ServerProvider: string
|
||||
{
|
||||
case Hetzner = 'hetzner';
|
||||
case DigitalOcean = 'digital-ocean';
|
||||
case HETZNER = 'hetzner';
|
||||
case DIGITAL_OCEAN = 'digital-ocean';
|
||||
}
|
||||
|
||||
12
app/Enums/ServiceCategory.php
Normal file
12
app/Enums/ServiceCategory.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
enum ServiceCategory: string
|
||||
{
|
||||
case DATABASE = 'database';
|
||||
case APPLICATION = 'application';
|
||||
case GATEWAY = 'gateway';
|
||||
case STORAGE = 'storage';
|
||||
case CACHE = 'cache';
|
||||
}
|
||||
@@ -4,6 +4,8 @@ namespace App\Enums;
|
||||
|
||||
enum ServiceStatus: string
|
||||
{
|
||||
case NOT_INSTALLED = 'not-installed';
|
||||
case INSTALLING = 'installing';
|
||||
case RUNNING = 'running';
|
||||
case STOPPED = 'stopped';
|
||||
case ERROR = 'error';
|
||||
|
||||
16
app/Enums/ServiceType.php
Normal file
16
app/Enums/ServiceType.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
enum ServiceType: string {
|
||||
case FRANKENPHP = 'frankenphp';
|
||||
case PHP_FPM = 'php-fpm';
|
||||
case POSTGRES = 'postgres';
|
||||
case CADDY = 'caddy';
|
||||
case VALKEY = 'valkey';
|
||||
|
||||
// future?
|
||||
case MYSQL = 'mysql';
|
||||
case NGINX = 'nginx';
|
||||
case REDIS = 'redis';
|
||||
}
|
||||
Reference in New Issue
Block a user