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 aws_base_stack_1 = __nccwpck_require__(26112);
const __1 = __nccwpck_require__(41359); const __1 = __nccwpck_require__(41359);
const aws_cli_commands_1 = __nccwpck_require__(34340); const aws_cli_commands_1 = __nccwpck_require__(34340);
const task_service_1 = __nccwpck_require__(67205);
const tertiary_resources_service_1 = __nccwpck_require__(61627); const tertiary_resources_service_1 = __nccwpck_require__(61627);
class AWSBuildEnvironment { class AWSBuildEnvironment {
constructor(buildParameters) { constructor(buildParameters) {
@ -2285,19 +2284,12 @@ class AWSBuildEnvironment {
previewOnly) { previewOnly) {
throw new Error('Method not implemented.'); throw new Error('Method not implemented.');
} }
listAll() { listResources() {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
yield aws_cli_commands_1.AwsCliCommands.awsListAll(); yield aws_cli_commands_1.AwsCliCommands.awsListAll();
return ''; 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( cleanup(
// eslint-disable-next-line no-unused-vars // eslint-disable-next-line no-unused-vars
buildGuid, buildGuid,
@ -2713,13 +2705,7 @@ class Kubernetes {
watch() { watch() {
throw new Error('Method not implemented.'); throw new Error('Method not implemented.');
} }
listAll() { listResources() {
throw new Error('Method not implemented.');
}
listTasks() {
throw new Error('Method not implemented.');
}
listOtherResources() {
throw new Error('Method not implemented.'); throw new Error('Method not implemented.');
} }
garbageCollect( garbageCollect(
@ -3408,13 +3394,7 @@ class LocalDockerCloudRunner {
watch() { watch() {
throw new Error('Method not implemented.'); throw new Error('Method not implemented.');
} }
listAll() { listResources() {
throw new Error('Method not implemented.');
}
listTasks() {
throw new Error('Method not implemented.');
}
listOtherResources() {
throw new Error('Method not implemented.'); throw new Error('Method not implemented.');
} }
garbageCollect( garbageCollect(
@ -3490,13 +3470,7 @@ class LocalCloudRunner {
watch() { watch() {
throw new Error('Method not implemented.'); throw new Error('Method not implemented.');
} }
listAll() { listResources() {
throw new Error('Method not implemented.');
}
listTasks() {
throw new Error('Method not implemented.');
}
listOtherResources() {
throw new Error('Method not implemented.'); throw new Error('Method not implemented.');
} }
garbageCollect( garbageCollect(
@ -3572,13 +3546,7 @@ class TestCloudRunner {
watch() { watch() {
throw new Error('Method not implemented.'); throw new Error('Method not implemented.');
} }
listAll() { listResources() {
throw new Error('Method not implemented.');
}
listTasks() {
throw new Error('Method not implemented.');
}
listOtherResources() {
throw new Error('Method not implemented.'); throw new Error('Method not implemented.');
} }
garbageCollect( 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 { AWSBaseStack } from './aws-base-stack';
import { Input } from '../../..'; import { Input } from '../../..';
import { AwsCliCommands } from './commands/aws-cli-commands'; import { AwsCliCommands } from './commands/aws-cli-commands';
import { TaskService } from './services/task-service';
import { TertiaryResourcesService } from './services/tertiary-resources-service'; import { TertiaryResourcesService } from './services/tertiary-resources-service';
class AWSBuildEnvironment implements ProviderInterface { class AWSBuildEnvironment implements ProviderInterface {
@ -41,17 +40,11 @@ class AWSBuildEnvironment implements ProviderInterface {
throw new Error('Method not implemented.'); throw new Error('Method not implemented.');
} }
async listAll() { async listResources() {
await AwsCliCommands.awsListAll(); await AwsCliCommands.awsListAll();
return ''; return '';
} }
async listTasks() {
await AwsCliCommands.awsListJobs();
await TaskService.awsListTasks();
return '';
}
async cleanup( async cleanup(
// eslint-disable-next-line no-unused-vars // eslint-disable-next-line no-unused-vars

View File

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

View File

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

View File

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

View File

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

View File

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