22 lines
483 B
PHP
22 lines
483 B
PHP
<?php
|
|
|
|
namespace App\Drivers\Concerns;
|
|
|
|
use App\Enums\EnvironmentAttachmentRole;
|
|
use App\Models\ServiceSlice;
|
|
|
|
interface SupportsSlices
|
|
{
|
|
/**
|
|
* @return array<int, string>
|
|
*/
|
|
public function supportedSliceTypes(): array;
|
|
|
|
/**
|
|
* @return array<string, string>
|
|
*/
|
|
public function environmentExportsForSlice(ServiceSlice $slice, ?EnvironmentAttachmentRole $role = null): array;
|
|
|
|
public function provisionSliceScript(ServiceSlice $slice): string;
|
|
}
|