Documentation ¶
Index ¶
- func SanitizeNotebookName(name string) (string, error)
- type CSRFService
- type CSRFToken
- type NotebookRegistry
- func (r NotebookRegistry) BuildNotebookDescriptor(notebookname string, recipe types.Recipe) (types.Notebook, error)
- func (r NotebookRegistry) DetermineNotebookNameByAbsDir(absdir string) (string, error)
- func (r NotebookRegistry) FindNotebooks(folderpath string) ([]types.Notebook, error)
- func (r NotebookRegistry) GetNotebookByName(name string) (types.Notebook, error)
- func (r NotebookRegistry) GetNotebooks() []types.Notebook
- func (r NotebookRegistry) GetNotebooksPath() string
- func (r *NotebookRegistry) Refresh(notebook types.Notebook) (types.Notebook, error)
- func (r *NotebookRegistry) RegisterNotebook(notebook types.Notebook)
- func (r *NotebookRegistry) Renamed(notebook types.Notebook, newname string) (types.Notebook, error)
- type NotebookWatcher
- type RecipeRegistry
- type Routes
- func (r Routes) APINewNotebook() string
- func (r Routes) APINotebookExec(name string) string
- func (r Routes) APINotebookRename(name string) string
- func (r Routes) APINotebookSetContent(name string) string
- func (r Routes) APINotebookStop(name string) string
- func (r Routes) Home() string
- func (r Routes) Notebook(name string) string
- type WalkFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SanitizeNotebookName ¶
Types ¶
type CSRFService ¶
type CSRFService struct {
// contains filtered or unexported fields
}
func NewCSRFService ¶
func NewCSRFService() *CSRFService
func (CSRFService) IsValid ¶
func (cs CSRFService) IsValid(token CSRFToken) bool
func (*CSRFService) NewToken ¶
func (cs *CSRFService) NewToken() CSRFToken
type NotebookRegistry ¶
type NotebookRegistry struct {
// contains filtered or unexported fields
}
func NewNotebookRegistry ¶
func NewNotebookRegistry(notebookspath string, reciperegistry *RecipeRegistry) *NotebookRegistry
func (NotebookRegistry) BuildNotebookDescriptor ¶
func (NotebookRegistry) DetermineNotebookNameByAbsDir ¶
func (r NotebookRegistry) DetermineNotebookNameByAbsDir(absdir string) (string, error)
func (NotebookRegistry) FindNotebooks ¶
func (r NotebookRegistry) FindNotebooks(folderpath string) ([]types.Notebook, error)
func (NotebookRegistry) GetNotebookByName ¶
func (r NotebookRegistry) GetNotebookByName(name string) (types.Notebook, error)
func (NotebookRegistry) GetNotebooks ¶
func (r NotebookRegistry) GetNotebooks() []types.Notebook
func (NotebookRegistry) GetNotebooksPath ¶
func (r NotebookRegistry) GetNotebooksPath() string
func (*NotebookRegistry) RegisterNotebook ¶
func (r *NotebookRegistry) RegisterNotebook(notebook types.Notebook)
type NotebookWatcher ¶
type NotebookWatcher struct {
// contains filtered or unexported fields
}
func NewNotebookWatcher ¶
func NewNotebookWatcher(registry *NotebookRegistry, onChange func(types.Notebook)) (*NotebookWatcher, error)
func (*NotebookWatcher) AddNotebook ¶
func (w *NotebookWatcher) AddNotebook(notebook types.Notebook) error
func (*NotebookWatcher) Watch ¶
func (w *NotebookWatcher) Watch() error
type RecipeRegistry ¶
type RecipeRegistry struct {
// contains filtered or unexported fields
}
func NewRecipeRegistry ¶
func NewRecipeRegistry() *RecipeRegistry
func (*RecipeRegistry) AddRecipe ¶
func (rr *RecipeRegistry) AddRecipe(recipe types.Recipe) *RecipeRegistry
func (RecipeRegistry) GetRecipeByKey ¶
func (rr RecipeRegistry) GetRecipeByKey(key string) *types.Recipe
func (RecipeRegistry) GetRecipeForMainFilename ¶
func (rr RecipeRegistry) GetRecipeForMainFilename(mainfilename string) (types.Recipe, error)
func (RecipeRegistry) GetRecipes ¶
func (rr RecipeRegistry) GetRecipes() []types.Recipe
type Routes ¶
type Routes struct{}
func (Routes) APINewNotebook ¶
func (Routes) APINotebookExec ¶
func (Routes) APINotebookRename ¶
func (Routes) APINotebookSetContent ¶
func (Routes) APINotebookStop ¶
Click to show internal directories.
Click to hide internal directories.