cleanup provider interface to support editor workbench

pull/419/head
Frostebite 2022-08-02 20:09:40 +01:00
parent 2b7c589c7b
commit 6ffc4c6508
8 changed files with 12 additions and 77 deletions

42
dist/index.js vendored
View File

@ -2260,7 +2260,6 @@ const aws_job_stack_1 = __nccwpck_require__(70633);
const aws_base_stack_1 = __nccwpck_require__(26112);
const __1 = __nccwpck_require__(41359);
const aws_cli_commands_1 = __nccwpck_require__(34340);
const task_service_1 = __nccwpck_require__(67205);
const tertiary_resources_service_1 = __nccwpck_require__(61627);
class AWSBuildEnvironment {
constructor(buildParameters) {
@ -2285,19 +2284,12 @@ class AWSBuildEnvironment {
previewOnly) {
throw new Error('Method not implemented.');
}
listAll() {
listResources() {
return __awaiter(this, void 0, void 0, function* () {
yield aws_cli_commands_1.AwsCliCommands.awsListAll();
return '';
});
}
listTasks() {
return __awaiter(this, void 0, void 0, function* () {
yield aws_cli_commands_1.AwsCliCommands.awsListJobs();
yield task_service_1.TaskService.awsListTasks();
return '';
});
}
cleanup(
// eslint-disable-next-line no-unused-vars
buildGuid,
@ -2713,13 +2705,7 @@ class Kubernetes {
watch() {
throw new Error('Method not implemented.');
}
listAll() {
throw new Error('Method not implemented.');
}
listTasks() {
throw new Error('Method not implemented.');
}
listOtherResources() {
listResources() {
throw new Error('Method not implemented.');
}
garbageCollect(
@ -3408,13 +3394,7 @@ class LocalDockerCloudRunner {
watch() {
throw new Error('Method not implemented.');
}
listAll() {
throw new Error('Method not implemented.');
}
listTasks() {
throw new Error('Method not implemented.');
}
listOtherResources() {
listResources() {
throw new Error('Method not implemented.');
}
garbageCollect(
@ -3490,13 +3470,7 @@ class LocalCloudRunner {
watch() {
throw new Error('Method not implemented.');
}
listAll() {
throw new Error('Method not implemented.');
}
listTasks() {
throw new Error('Method not implemented.');
}
listOtherResources() {
listResources() {
throw new Error('Method not implemented.');
}
garbageCollect(
@ -3572,13 +3546,7 @@ class TestCloudRunner {
watch() {
throw new Error('Method not implemented.');
}
listAll() {
throw new Error('Method not implemented.');
}
listTasks() {
throw new Error('Method not implemented.');
}
listOtherResources() {
listResources() {
throw new Error('Method not implemented.');
}
garbageCollect(

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -10,7 +10,6 @@ import { AWSJobStack } from './aws-job-stack';
import { AWSBaseStack } from './aws-base-stack';
import { Input } from '../../..';
import { AwsCliCommands } from './commands/aws-cli-commands';
import { TaskService } from './services/task-service';
import { TertiaryResourcesService } from './services/tertiary-resources-service';
class AWSBuildEnvironment implements ProviderInterface {
@ -41,17 +40,11 @@ class AWSBuildEnvironment implements ProviderInterface {
throw new Error('Method not implemented.');
}
async listAll() {
async listResources() {
await AwsCliCommands.awsListAll();
return '';
}
async listTasks() {
await AwsCliCommands.awsListJobs();
await TaskService.awsListTasks();
return '';
}
async cleanup(
// eslint-disable-next-line no-unused-vars

View File

@ -45,13 +45,7 @@ class Kubernetes implements ProviderInterface {
watch(): Promise<string> {
throw new Error('Method not implemented.');
}
listAll(): Promise<string> {
throw new Error('Method not implemented.');
}
listTasks(): Promise<string> {
throw new Error('Method not implemented.');
}
listOtherResources(): Promise<string> {
listResources(): Promise<string> {
throw new Error('Method not implemented.');
}
garbageCollect(

View File

@ -12,13 +12,7 @@ class LocalDockerCloudRunner implements ProviderInterface {
watch(): Promise<string> {
throw new Error('Method not implemented.');
}
listAll(): Promise<string> {
throw new Error('Method not implemented.');
}
listTasks(): Promise<string> {
throw new Error('Method not implemented.');
}
listOtherResources(): Promise<string> {
listResources(): Promise<string> {
throw new Error('Method not implemented.');
}
garbageCollect(

View File

@ -12,13 +12,7 @@ class LocalCloudRunner implements ProviderInterface {
watch(): Promise<string> {
throw new Error('Method not implemented.');
}
listAll(): Promise<string> {
throw new Error('Method not implemented.');
}
listTasks(): Promise<string> {
throw new Error('Method not implemented.');
}
listOtherResources(): Promise<string> {
listResources(): Promise<string> {
throw new Error('Method not implemented.');
}
garbageCollect(

View File

@ -39,9 +39,7 @@ export interface ProviderInterface {
// eslint-disable-next-line no-unused-vars
secrets: CloudRunnerSecret[],
): Promise<string>;
listAll(): Promise<string>;
listTasks(): Promise<string>;
listOtherResources(): Promise<string>;
listResources(): Promise<string>;
garbageCollect(
// eslint-disable-next-line no-unused-vars
filter: string,

View File

@ -11,13 +11,7 @@ class TestCloudRunner implements ProviderInterface {
watch(): Promise<string> {
throw new Error('Method not implemented.');
}
listAll(): Promise<string> {
throw new Error('Method not implemented.');
}
listTasks(): Promise<string> {
throw new Error('Method not implemented.');
}
listOtherResources(): Promise<string> {
listResources(): Promise<string> {
throw new Error('Method not implemented.');
}
garbageCollect(