sesterce-cli
Version:
A powerful command-line interface tool for managing Sesterce Cloud services. Sesterce CLI provides easy access to GPU cloud instances, AI inference services, container registries, and SSH key management directly from your terminal.
21 lines • 837 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.StartInferenceInstance = void 0;
const either_1 = require("@/core/logic/either");
const start_instance_error_1 = require("./errors/start-instance-error");
class StartInferenceInstance {
constructor(apiClient) {
this.apiClient = apiClient;
}
async execute(instanceId) {
try {
await this.apiClient.post(`/ai-inference/instances/${instanceId}/start`);
return (0, either_1.right)(null);
}
catch (error) {
return (0, either_1.left)(new start_instance_error_1.StartInferenceInstanceError(error instanceof Error ? error.message : "Unexpected error occurred."));
}
}
}
exports.StartInferenceInstance = StartInferenceInstance;
//# sourceMappingURL=start-instance.js.map