Versions in this module Expand all Collapse all v1 v1.0.0 May 31, 2023 Changes in this version + const ImportNotebookServers + const ServerStatusPending + const ServerStatusRunning + const ServerStatusTerminated + const ServerStatusTerminating + const ServerStatusUnknown + const VolumeTypeNFS + const VolumeTypeS3 + const VolumeTypeTOS + type CreateParam struct + Image string + ResourceSize notebook.ResourceSize + Volumes []Volume + WorkspaceID string + type Factory struct + func NewFactory(officialImages []string, sizeOptions []notebook.ResourceOption) *Factory + func (f *Factory) GetResourceSizes() []notebook.ResourceSize + func (f *Factory) New(param *CreateParam) (*NotebookServer, error) + type ImportNotebookServersEvent struct + ImportFileBaseDir string + Schema schema.NotebookTypedSchema + WorkspaceID string + func NewImportNotebookServersEvent(workspaceID, baseDir string, schema schema.NotebookTypedSchema) *ImportNotebookServersEvent + func NewImportNotebookServersEventFromPayload(data []byte) (*ImportNotebookServersEvent, error) + func (e *ImportNotebookServersEvent) Delay() time.Duration + func (e *ImportNotebookServersEvent) EventType() string + func (e *ImportNotebookServersEvent) Payload() []byte + type NotebookServer struct + CreateTime time.Time + ID string + Settings Settings + Status Status + UpdateTime time.Time + Volumes []Volume + WorkspaceID string + type Repository interface + Delete func(context.Context, *NotebookServer) error + Get func(context.Context, string) (*NotebookServer, error) + Save func(context.Context, *NotebookServer) error + type Runtime interface + Create func(context.Context, *NotebookServer) error + Delete func(context.Context, *NotebookServer) error + GetStatus func(context.Context, *NotebookServer) (*Status, error) + Start func(context.Context, *NotebookServer) error + Stop func(context.Context, *NotebookServer) error + type Service interface + Create func(context.Context, *NotebookServer) error + Delete func(ctx context.Context, id string) error + Start func(ctx context.Context, id string) error + Stop func(ctx context.Context, id string) error + Update func(context.Context, *NotebookServer) error + func NewService(repo Repository, runtime Runtime) Service + type Settings struct + DockerImage string + NodeSelector map[string]string + ResourceSize notebook.ResourceSize + type Status struct + AccessURL string + Status string + type UnimplementedRuntime struct + func (UnimplementedRuntime) Create(context.Context, *NotebookServer) error + func (UnimplementedRuntime) Delete(context.Context, *NotebookServer) error + func (UnimplementedRuntime) GetStatus(context.Context, *NotebookServer) (*Status, error) + func (UnimplementedRuntime) Start(context.Context, *NotebookServer) error + func (UnimplementedRuntime) Stop(context.Context, *NotebookServer) error + type Volume struct + MountRelativePath string + Name string + Source string + Type string