Versions in this module Expand all Collapse all v1 v1.0.0 May 31, 2023 Changes in this version + const ImportNotebooks + func NameOfPath(name string) string + func NamespaceOfPath(name string) string + func Path(namespace, name string) string + type CreateParam struct + Content []byte + Name string + WorkspaceID string + type Factory struct + func NewFactory() *Factory + func (f *Factory) New(param *CreateParam) (*Notebook, error) + type IPythonNotebook struct + Cells []IPythonNotebookCell + Format int + FormatMinor int + Meta IPythonNotebookMeta + type IPythonNotebookCell struct + Attachments map[string]interface{} + ExecutionCount *int + ID string + Meta map[string]interface{} + Outputs []IPythonNotebookCellOutput + Source []string + Type string + type IPythonNotebookCellOutput struct + Data map[string]interface{} + EName string + EValue string + ExecutionCount int + Meta map[string]interface{} + Name string + Text []string + Traceback []string + Type string + type IPythonNotebookKernelSpec struct + DisplayName string + Language string + Name string + type IPythonNotebookLanguageInfo struct + FileExtension string + MimeType string + Name string + PygmentsLexer string + Version string + type IPythonNotebookMeta struct + KernelSpec IPythonNotebookKernelSpec + LanguageInfo IPythonNotebookLanguageInfo + MaxCellID int + type ImportNotebooksEvent struct + ImportFileBaseDir string + Schema schema.NotebookTypedSchema + WorkspaceID string + func NewImportNotebooksEvent(workspaceID, baseDir string, schema schema.NotebookTypedSchema) *ImportNotebooksEvent + func NewImportNotebooksEventFromPayload(data []byte) (*ImportNotebooksEvent, error) + func (e *ImportNotebooksEvent) Delay() time.Duration + func (e *ImportNotebooksEvent) EventType() string + func (e *ImportNotebooksEvent) Payload() []byte + type Notebook struct + Content []byte + Name string + Namespace string + UpdateTime time.Time + func (n *Notebook) Path() string + type Repository interface + Delete func(context.Context, *Notebook) error + Get func(context.Context, string) (*Notebook, error) + Save func(context.Context, *Notebook) error + type Service interface + Create func(context.Context, *Notebook) error + Delete func(ctx context.Context, path string) error + Update func(context.Context, *Notebook) error + Upsert func(context.Context, *Notebook) error + func NewService(repo Repository) Service