cleanup provider interface to support editor workbench
parent
2b7c589c7b
commit
6ffc4c6508
|
|
@ -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(
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue