import { BaseProject , CopyOptions , ProjectStatus , ProjectState , getProject , } from "./base" ; import getLogger from "@cocalc/backend/logger" ; const winston = getLogger ( "project-control-kubernetes" ) ; class Project extends BaseProject { async state ( ) { console . log ( "state" ) ; throw Error ( "implement me" ) ; } async status ( ) { winston . debug ( "status " , this . project_id ) ; throw Error ( "implement me" ) ; } async start ( ) { winston . debug ( "start " , this . project_id ) ; throw Error ( "implement me" ) ; } async stop ( ) { winston . debug ( "stop " , this . project_id ) ; throw Error ( "implement me" ) ; } async copyPath ( opts ) { winston . debug ( "doCopyPath " , this . project_id , opts ) ; throw Error ( "implement me" ) ; } } export default function get ( project_id ) { return ( getProject ( project_id ) as Project ) ?? new Project ( project_id ) ; }